[562] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[8756] | 3 | # Generated by GNU Autoconf 2.59.
|
---|
[562] | 4 | #
|
---|
[8756] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[562] | 6 | # This configure script is free software; the Free Software Foundation
|
---|
| 7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[8756] | 8 | ## --------------------- ##
|
---|
| 9 | ## M4sh Initialization. ##
|
---|
| 10 | ## --------------------- ##
|
---|
[562] | 11 |
|
---|
[8756] | 12 | # Be Bourne compatible
|
---|
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 14 | emulate sh
|
---|
| 15 | NULLCMD=:
|
---|
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 17 | # is contrary to our usage. Disable this feature.
|
---|
| 18 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 20 | set -o posix
|
---|
| 21 | fi
|
---|
| 22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 23 |
|
---|
| 24 | # Support unset when possible.
|
---|
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 26 | as_unset=unset
|
---|
| 27 | else
|
---|
| 28 | as_unset=false
|
---|
| 29 | fi
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 33 | $as_unset ENV MAIL MAILPATH
|
---|
| 34 | PS1='$ '
|
---|
| 35 | PS2='> '
|
---|
| 36 | PS4='+ '
|
---|
| 37 |
|
---|
| 38 | # NLS nuisances.
|
---|
| 39 | for as_var in \
|
---|
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 42 | LC_TELEPHONE LC_TIME
|
---|
| 43 | do
|
---|
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 45 | eval $as_var=C; export $as_var
|
---|
| 46 | else
|
---|
| 47 | $as_unset $as_var
|
---|
| 48 | fi
|
---|
| 49 | done
|
---|
| 50 |
|
---|
| 51 | # Required to use basename.
|
---|
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 53 | as_expr=expr
|
---|
| 54 | else
|
---|
| 55 | as_expr=false
|
---|
| 56 | fi
|
---|
| 57 |
|
---|
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 59 | as_basename=basename
|
---|
| 60 | else
|
---|
| 61 | as_basename=false
|
---|
| 62 | fi
|
---|
| 63 |
|
---|
| 64 |
|
---|
| 65 | # Name of the executable.
|
---|
| 66 | as_me=`$as_basename "$0" ||
|
---|
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 68 | X"$0" : 'X\(//\)$' \| \
|
---|
| 69 | X"$0" : 'X\(/\)$' \| \
|
---|
| 70 | . : '\(.\)' 2>/dev/null ||
|
---|
| 71 | echo X/"$0" |
|
---|
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 74 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 75 | s/.*/./; q'`
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 79 | # Avoid depending upon Character Ranges.
|
---|
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 83 | as_cr_digits='0123456789'
|
---|
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 85 |
|
---|
| 86 | # The user is always right.
|
---|
| 87 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 88 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 89 | echo "exit 0" >>conf$$.sh
|
---|
| 90 | chmod +x conf$$.sh
|
---|
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 92 | PATH_SEPARATOR=';'
|
---|
| 93 | else
|
---|
| 94 | PATH_SEPARATOR=:
|
---|
| 95 | fi
|
---|
| 96 | rm -f conf$$.sh
|
---|
| 97 | fi
|
---|
| 98 |
|
---|
| 99 |
|
---|
| 100 | as_lineno_1=$LINENO
|
---|
| 101 | as_lineno_2=$LINENO
|
---|
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 105 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 106 | # relative or not.
|
---|
| 107 | case $0 in
|
---|
| 108 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 110 | for as_dir in $PATH
|
---|
| 111 | do
|
---|
| 112 | IFS=$as_save_IFS
|
---|
| 113 | test -z "$as_dir" && as_dir=.
|
---|
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 115 | done
|
---|
| 116 |
|
---|
| 117 | ;;
|
---|
| 118 | esac
|
---|
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 120 | # in which case we are not to be found in the path.
|
---|
| 121 | if test "x$as_myself" = x; then
|
---|
| 122 | as_myself=$0
|
---|
| 123 | fi
|
---|
| 124 | if test ! -f "$as_myself"; then
|
---|
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
---|
| 126 | { (exit 1); exit 1; }; }
|
---|
| 127 | fi
|
---|
| 128 | case $CONFIG_SHELL in
|
---|
| 129 | '')
|
---|
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 132 | do
|
---|
| 133 | IFS=$as_save_IFS
|
---|
| 134 | test -z "$as_dir" && as_dir=.
|
---|
| 135 | for as_base in sh bash ksh sh5; do
|
---|
| 136 | case $as_dir in
|
---|
| 137 | /*)
|
---|
| 138 | if ("$as_dir/$as_base" -c '
|
---|
| 139 | as_lineno_1=$LINENO
|
---|
| 140 | as_lineno_2=$LINENO
|
---|
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 146 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 147 | export CONFIG_SHELL
|
---|
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 149 | fi;;
|
---|
| 150 | esac
|
---|
| 151 | done
|
---|
| 152 | done
|
---|
| 153 | ;;
|
---|
| 154 | esac
|
---|
| 155 |
|
---|
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 158 | # line-number line before each line; the second 'sed' does the real
|
---|
| 159 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 160 | # with the numbered line, and appends trailing '-' during
|
---|
| 161 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 164 | sed '=' <$as_myself |
|
---|
| 165 | sed '
|
---|
| 166 | N
|
---|
| 167 | s,$,-,
|
---|
| 168 | : loop
|
---|
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 170 | t loop
|
---|
| 171 | s,-$,,
|
---|
| 172 | s,^['$as_cr_digits']*\n,,
|
---|
| 173 | ' >$as_me.lineno &&
|
---|
| 174 | chmod +x $as_me.lineno ||
|
---|
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
| 176 | { (exit 1); exit 1; }; }
|
---|
| 177 |
|
---|
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 179 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 180 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 181 | . ./$as_me.lineno
|
---|
| 182 | # Exit status is that of the last command.
|
---|
| 183 | exit
|
---|
| 184 | }
|
---|
| 185 |
|
---|
| 186 |
|
---|
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 188 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 189 | ' ECHO_T=' ' ;;
|
---|
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 192 | esac
|
---|
| 193 |
|
---|
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 195 | as_expr=expr
|
---|
| 196 | else
|
---|
| 197 | as_expr=false
|
---|
| 198 | fi
|
---|
| 199 |
|
---|
| 200 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 201 | echo >conf$$.file
|
---|
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 205 | if test -f conf$$.exe; then
|
---|
| 206 | # Don't use ln at all; we don't have any links
|
---|
| 207 | as_ln_s='cp -p'
|
---|
| 208 | else
|
---|
| 209 | as_ln_s='ln -s'
|
---|
| 210 | fi
|
---|
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 212 | as_ln_s=ln
|
---|
| 213 | else
|
---|
| 214 | as_ln_s='cp -p'
|
---|
| 215 | fi
|
---|
| 216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 217 |
|
---|
| 218 | if mkdir -p . 2>/dev/null; then
|
---|
| 219 | as_mkdir_p=:
|
---|
| 220 | else
|
---|
| 221 | test -d ./-p && rmdir ./-p
|
---|
| 222 | as_mkdir_p=false
|
---|
| 223 | fi
|
---|
| 224 |
|
---|
| 225 | as_executable_p="test -f"
|
---|
| 226 |
|
---|
| 227 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 229 |
|
---|
| 230 | # Sed expression to map a string onto a valid variable name.
|
---|
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 232 |
|
---|
| 233 |
|
---|
| 234 | # IFS
|
---|
| 235 | # We need space, tab and new line, in precisely that order.
|
---|
| 236 | as_nl='
|
---|
| 237 | '
|
---|
| 238 | IFS=" $as_nl"
|
---|
| 239 |
|
---|
| 240 | # CDPATH.
|
---|
| 241 | $as_unset CDPATH
|
---|
| 242 |
|
---|
| 243 |
|
---|
| 244 | # Name of the host.
|
---|
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
| 246 | # so uname gets run too.
|
---|
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 248 |
|
---|
| 249 | exec 6>&1
|
---|
| 250 |
|
---|
| 251 | #
|
---|
| 252 | # Initializations.
|
---|
| 253 | #
|
---|
[562] | 254 | ac_default_prefix=/usr/local
|
---|
[8756] | 255 | ac_config_libobj_dir=.
|
---|
| 256 | cross_compiling=no
|
---|
| 257 | subdirs=
|
---|
| 258 | MFLAGS=
|
---|
| 259 | MAKEFLAGS=
|
---|
| 260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
[562] | 261 |
|
---|
[8756] | 262 | # Maximum number of lines to put in a shell here document.
|
---|
| 263 | # This variable seems obsolete. It should probably be removed, and
|
---|
| 264 | # only ac_max_sed_lines should be used.
|
---|
| 265 | : ${ac_max_here_lines=38}
|
---|
| 266 |
|
---|
| 267 | # Identity of this package.
|
---|
| 268 | PACKAGE_NAME=
|
---|
| 269 | PACKAGE_TARNAME=
|
---|
| 270 | PACKAGE_VERSION=
|
---|
| 271 | PACKAGE_STRING=
|
---|
| 272 | PACKAGE_BUGREPORT=
|
---|
| 273 |
|
---|
| 274 | ac_unique_file="lib/text_t.h"
|
---|
| 275 | # Factoring default headers for most tests.
|
---|
| 276 | ac_includes_default="\
|
---|
| 277 | #include <stdio.h>
|
---|
| 278 | #if HAVE_SYS_TYPES_H
|
---|
| 279 | # include <sys/types.h>
|
---|
| 280 | #endif
|
---|
| 281 | #if HAVE_SYS_STAT_H
|
---|
| 282 | # include <sys/stat.h>
|
---|
| 283 | #endif
|
---|
| 284 | #if STDC_HEADERS
|
---|
| 285 | # include <stdlib.h>
|
---|
| 286 | # include <stddef.h>
|
---|
| 287 | #else
|
---|
| 288 | # if HAVE_STDLIB_H
|
---|
| 289 | # include <stdlib.h>
|
---|
| 290 | # endif
|
---|
| 291 | #endif
|
---|
| 292 | #if HAVE_STRING_H
|
---|
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
| 294 | # include <memory.h>
|
---|
| 295 | # endif
|
---|
| 296 | # include <string.h>
|
---|
| 297 | #endif
|
---|
| 298 | #if HAVE_STRINGS_H
|
---|
| 299 | # include <strings.h>
|
---|
| 300 | #endif
|
---|
| 301 | #if HAVE_INTTYPES_H
|
---|
| 302 | # include <inttypes.h>
|
---|
| 303 | #else
|
---|
| 304 | # if HAVE_STDINT_H
|
---|
| 305 | # include <stdint.h>
|
---|
| 306 | # endif
|
---|
| 307 | #endif
|
---|
| 308 | #if HAVE_UNISTD_H
|
---|
| 309 | # include <unistd.h>
|
---|
| 310 | #endif"
|
---|
| 311 |
|
---|
| 312 | ac_subdirs_all="$ac_subdirs_all packages"
|
---|
[12922] | 313 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD CFLAGS CC LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC GDBM_LIBPATH GDBM_INCLUDE gsdlos MODULEDIRS subdirs LTLIBOBJS'
|
---|
[8756] | 314 | ac_subst_files=''
|
---|
| 315 |
|
---|
[562] | 316 | # Initialize some variables set by options.
|
---|
[8756] | 317 | ac_init_help=
|
---|
| 318 | ac_init_version=false
|
---|
[562] | 319 | # The variables have the same names as the options, with
|
---|
| 320 | # dashes changed to underlines.
|
---|
[8756] | 321 | cache_file=/dev/null
|
---|
[562] | 322 | exec_prefix=NONE
|
---|
| 323 | no_create=
|
---|
| 324 | no_recursion=
|
---|
| 325 | prefix=NONE
|
---|
| 326 | program_prefix=NONE
|
---|
| 327 | program_suffix=NONE
|
---|
| 328 | program_transform_name=s,x,x,
|
---|
| 329 | silent=
|
---|
| 330 | site=
|
---|
| 331 | srcdir=
|
---|
| 332 | verbose=
|
---|
| 333 | x_includes=NONE
|
---|
| 334 | x_libraries=NONE
|
---|
[8756] | 335 |
|
---|
| 336 | # Installation directory options.
|
---|
| 337 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 338 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 339 | # by default will actually change.
|
---|
| 340 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[562] | 341 | bindir='${exec_prefix}/bin'
|
---|
| 342 | sbindir='${exec_prefix}/sbin'
|
---|
| 343 | libexecdir='${exec_prefix}/libexec'
|
---|
| 344 | datadir='${prefix}/share'
|
---|
| 345 | sysconfdir='${prefix}/etc'
|
---|
| 346 | sharedstatedir='${prefix}/com'
|
---|
| 347 | localstatedir='${prefix}/var'
|
---|
| 348 | libdir='${exec_prefix}/lib'
|
---|
| 349 | includedir='${prefix}/include'
|
---|
| 350 | oldincludedir='/usr/include'
|
---|
| 351 | infodir='${prefix}/info'
|
---|
| 352 | mandir='${prefix}/man'
|
---|
| 353 |
|
---|
| 354 | ac_prev=
|
---|
| 355 | for ac_option
|
---|
| 356 | do
|
---|
| 357 | # If the previous option needs an argument, assign it.
|
---|
| 358 | if test -n "$ac_prev"; then
|
---|
| 359 | eval "$ac_prev=\$ac_option"
|
---|
| 360 | ac_prev=
|
---|
| 361 | continue
|
---|
| 362 | fi
|
---|
| 363 |
|
---|
[8756] | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
[562] | 365 |
|
---|
| 366 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 367 |
|
---|
[8756] | 368 | case $ac_option in
|
---|
[562] | 369 |
|
---|
| 370 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 371 | ac_prev=bindir ;;
|
---|
| 372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
[8756] | 373 | bindir=$ac_optarg ;;
|
---|
[562] | 374 |
|
---|
| 375 | -build | --build | --buil | --bui | --bu)
|
---|
[8756] | 376 | ac_prev=build_alias ;;
|
---|
[562] | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
[8756] | 378 | build_alias=$ac_optarg ;;
|
---|
[562] | 379 |
|
---|
| 380 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 382 | ac_prev=cache_file ;;
|
---|
| 383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
[8756] | 385 | cache_file=$ac_optarg ;;
|
---|
[562] | 386 |
|
---|
[8756] | 387 | --config-cache | -C)
|
---|
| 388 | cache_file=config.cache ;;
|
---|
| 389 |
|
---|
[562] | 390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
| 391 | ac_prev=datadir ;;
|
---|
| 392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 393 | | --da=*)
|
---|
[8756] | 394 | datadir=$ac_optarg ;;
|
---|
[562] | 395 |
|
---|
| 396 | -disable-* | --disable-*)
|
---|
[8756] | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[562] | 398 | # Reject names that are not valid shell variable names.
|
---|
[8756] | 399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 401 | { (exit 1); exit 1; }; }
|
---|
| 402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 403 | eval "enable_$ac_feature=no" ;;
|
---|
[562] | 404 |
|
---|
| 405 | -enable-* | --enable-*)
|
---|
[8756] | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[562] | 407 | # Reject names that are not valid shell variable names.
|
---|
[8756] | 408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 410 | { (exit 1); exit 1; }; }
|
---|
| 411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 412 | case $ac_option in
|
---|
| 413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
[562] | 414 | *) ac_optarg=yes ;;
|
---|
| 415 | esac
|
---|
[8756] | 416 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
[562] | 417 |
|
---|
| 418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 420 | | --exec | --exe | --ex)
|
---|
| 421 | ac_prev=exec_prefix ;;
|
---|
| 422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 424 | | --exec=* | --exe=* | --ex=*)
|
---|
[8756] | 425 | exec_prefix=$ac_optarg ;;
|
---|
[562] | 426 |
|
---|
| 427 | -gas | --gas | --ga | --g)
|
---|
| 428 | # Obsolete; use --with-gas.
|
---|
| 429 | with_gas=yes ;;
|
---|
| 430 |
|
---|
[8756] | 431 | -help | --help | --hel | --he | -h)
|
---|
| 432 | ac_init_help=long ;;
|
---|
| 433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 434 | ac_init_help=recursive ;;
|
---|
| 435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 436 | ac_init_help=short ;;
|
---|
[562] | 437 |
|
---|
| 438 | -host | --host | --hos | --ho)
|
---|
[8756] | 439 | ac_prev=host_alias ;;
|
---|
[562] | 440 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
[8756] | 441 | host_alias=$ac_optarg ;;
|
---|
[562] | 442 |
|
---|
| 443 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 444 | | --includ | --inclu | --incl | --inc)
|
---|
| 445 | ac_prev=includedir ;;
|
---|
| 446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 447 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
[8756] | 448 | includedir=$ac_optarg ;;
|
---|
[562] | 449 |
|
---|
| 450 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 451 | ac_prev=infodir ;;
|
---|
| 452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
[8756] | 453 | infodir=$ac_optarg ;;
|
---|
[562] | 454 |
|
---|
| 455 | -libdir | --libdir | --libdi | --libd)
|
---|
| 456 | ac_prev=libdir ;;
|
---|
| 457 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
[8756] | 458 | libdir=$ac_optarg ;;
|
---|
[562] | 459 |
|
---|
| 460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 461 | | --libexe | --libex | --libe)
|
---|
| 462 | ac_prev=libexecdir ;;
|
---|
| 463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 464 | | --libexe=* | --libex=* | --libe=*)
|
---|
[8756] | 465 | libexecdir=$ac_optarg ;;
|
---|
[562] | 466 |
|
---|
| 467 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
| 468 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 469 | | --locals | --local | --loca | --loc | --lo)
|
---|
| 470 | ac_prev=localstatedir ;;
|
---|
| 471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
| 472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
[8756] | 474 | localstatedir=$ac_optarg ;;
|
---|
[562] | 475 |
|
---|
| 476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 477 | ac_prev=mandir ;;
|
---|
| 478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
[8756] | 479 | mandir=$ac_optarg ;;
|
---|
[562] | 480 |
|
---|
| 481 | -nfp | --nfp | --nf)
|
---|
| 482 | # Obsolete; use --without-fp.
|
---|
| 483 | with_fp=no ;;
|
---|
| 484 |
|
---|
| 485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[8756] | 486 | | --no-cr | --no-c | -n)
|
---|
[562] | 487 | no_create=yes ;;
|
---|
| 488 |
|
---|
| 489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 491 | no_recursion=yes ;;
|
---|
| 492 |
|
---|
| 493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 495 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 496 | ac_prev=oldincludedir ;;
|
---|
| 497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
[8756] | 500 | oldincludedir=$ac_optarg ;;
|
---|
[562] | 501 |
|
---|
| 502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 503 | ac_prev=prefix ;;
|
---|
| 504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
[8756] | 505 | prefix=$ac_optarg ;;
|
---|
[562] | 506 |
|
---|
| 507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 508 | | --program-pre | --program-pr | --program-p)
|
---|
| 509 | ac_prev=program_prefix ;;
|
---|
| 510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
[8756] | 512 | program_prefix=$ac_optarg ;;
|
---|
[562] | 513 |
|
---|
| 514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 515 | | --program-suf | --program-su | --program-s)
|
---|
| 516 | ac_prev=program_suffix ;;
|
---|
| 517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
[8756] | 519 | program_suffix=$ac_optarg ;;
|
---|
[562] | 520 |
|
---|
| 521 | -program-transform-name | --program-transform-name \
|
---|
| 522 | | --program-transform-nam | --program-transform-na \
|
---|
| 523 | | --program-transform-n | --program-transform- \
|
---|
| 524 | | --program-transform | --program-transfor \
|
---|
| 525 | | --program-transfo | --program-transf \
|
---|
| 526 | | --program-trans | --program-tran \
|
---|
| 527 | | --progr-tra | --program-tr | --program-t)
|
---|
| 528 | ac_prev=program_transform_name ;;
|
---|
| 529 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 530 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 531 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 532 | | --program-transform=* | --program-transfor=* \
|
---|
| 533 | | --program-transfo=* | --program-transf=* \
|
---|
| 534 | | --program-trans=* | --program-tran=* \
|
---|
| 535 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
[8756] | 536 | program_transform_name=$ac_optarg ;;
|
---|
[562] | 537 |
|
---|
| 538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 539 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 540 | silent=yes ;;
|
---|
| 541 |
|
---|
| 542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 543 | ac_prev=sbindir ;;
|
---|
| 544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 545 | | --sbi=* | --sb=*)
|
---|
[8756] | 546 | sbindir=$ac_optarg ;;
|
---|
[562] | 547 |
|
---|
| 548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 550 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 551 | | --sha | --sh)
|
---|
| 552 | ac_prev=sharedstatedir ;;
|
---|
| 553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 556 | | --sha=* | --sh=*)
|
---|
[8756] | 557 | sharedstatedir=$ac_optarg ;;
|
---|
[562] | 558 |
|
---|
| 559 | -site | --site | --sit)
|
---|
| 560 | ac_prev=site ;;
|
---|
| 561 | -site=* | --site=* | --sit=*)
|
---|
[8756] | 562 | site=$ac_optarg ;;
|
---|
[562] | 563 |
|
---|
| 564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 565 | ac_prev=srcdir ;;
|
---|
| 566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
[8756] | 567 | srcdir=$ac_optarg ;;
|
---|
[562] | 568 |
|
---|
| 569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 570 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 571 | ac_prev=sysconfdir ;;
|
---|
| 572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
[8756] | 574 | sysconfdir=$ac_optarg ;;
|
---|
[562] | 575 |
|
---|
| 576 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
[8756] | 577 | ac_prev=target_alias ;;
|
---|
[562] | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
[8756] | 579 | target_alias=$ac_optarg ;;
|
---|
[562] | 580 |
|
---|
| 581 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 582 | verbose=yes ;;
|
---|
| 583 |
|
---|
[8756] | 584 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 585 | ac_init_version=: ;;
|
---|
[562] | 586 |
|
---|
| 587 | -with-* | --with-*)
|
---|
[8756] | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[562] | 589 | # Reject names that are not valid shell variable names.
|
---|
[8756] | 590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 591 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 592 | { (exit 1); exit 1; }; }
|
---|
[562] | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
[8756] | 594 | case $ac_option in
|
---|
| 595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
[562] | 596 | *) ac_optarg=yes ;;
|
---|
| 597 | esac
|
---|
[8756] | 598 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
[562] | 599 |
|
---|
| 600 | -without-* | --without-*)
|
---|
[8756] | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[562] | 602 | # Reject names that are not valid shell variable names.
|
---|
[8756] | 603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 604 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 605 | { (exit 1); exit 1; }; }
|
---|
| 606 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
| 607 | eval "with_$ac_package=no" ;;
|
---|
[562] | 608 |
|
---|
| 609 | --x)
|
---|
| 610 | # Obsolete; use --with-x.
|
---|
| 611 | with_x=yes ;;
|
---|
| 612 |
|
---|
| 613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 614 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 615 | ac_prev=x_includes ;;
|
---|
| 616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
[8756] | 618 | x_includes=$ac_optarg ;;
|
---|
[562] | 619 |
|
---|
| 620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 622 | ac_prev=x_libraries ;;
|
---|
| 623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
[8756] | 625 | x_libraries=$ac_optarg ;;
|
---|
[562] | 626 |
|
---|
[8756] | 627 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 628 | Try \`$0 --help' for more information." >&2
|
---|
| 629 | { (exit 1); exit 1; }; }
|
---|
[562] | 630 | ;;
|
---|
| 631 |
|
---|
[8756] | 632 | *=*)
|
---|
| 633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 634 | # Reject names that are not valid shell variable names.
|
---|
| 635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
| 636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
| 637 | { (exit 1); exit 1; }; }
|
---|
| 638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
| 639 | eval "$ac_envvar='$ac_optarg'"
|
---|
| 640 | export $ac_envvar ;;
|
---|
| 641 |
|
---|
[562] | 642 | *)
|
---|
[8756] | 643 | # FIXME: should be removed in autoconf 3.0.
|
---|
| 644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
| 645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
| 647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
[562] | 648 | ;;
|
---|
| 649 |
|
---|
| 650 | esac
|
---|
| 651 | done
|
---|
| 652 |
|
---|
| 653 | if test -n "$ac_prev"; then
|
---|
[8756] | 654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
| 655 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
| 656 | { (exit 1); exit 1; }; }
|
---|
[562] | 657 | fi
|
---|
| 658 |
|
---|
[8756] | 659 | # Be sure to have absolute paths.
|
---|
| 660 | for ac_var in exec_prefix prefix
|
---|
| 661 | do
|
---|
| 662 | eval ac_val=$`echo $ac_var`
|
---|
| 663 | case $ac_val in
|
---|
| 664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
| 665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 666 | { (exit 1); exit 1; }; };;
|
---|
| 667 | esac
|
---|
| 668 | done
|
---|
[8200] | 669 |
|
---|
[8756] | 670 | # Be sure to have absolute paths.
|
---|
| 671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
| 672 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
[562] | 673 | do
|
---|
[8756] | 674 | eval ac_val=$`echo $ac_var`
|
---|
| 675 | case $ac_val in
|
---|
| 676 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
| 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 678 | { (exit 1); exit 1; }; };;
|
---|
[562] | 679 | esac
|
---|
| 680 | done
|
---|
| 681 |
|
---|
[8756] | 682 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 683 | # used to hold the argument of --host etc.
|
---|
| 684 | # FIXME: To remove some day.
|
---|
| 685 | build=$build_alias
|
---|
| 686 | host=$host_alias
|
---|
| 687 | target=$target_alias
|
---|
[562] | 688 |
|
---|
[8756] | 689 | # FIXME: To remove some day.
|
---|
| 690 | if test "x$host_alias" != x; then
|
---|
| 691 | if test "x$build_alias" = x; then
|
---|
| 692 | cross_compiling=maybe
|
---|
| 693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 694 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
| 695 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 696 | cross_compiling=yes
|
---|
| 697 | fi
|
---|
| 698 | fi
|
---|
[562] | 699 |
|
---|
[8756] | 700 | ac_tool_prefix=
|
---|
| 701 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
[562] | 702 |
|
---|
[8756] | 703 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 704 |
|
---|
| 705 |
|
---|
[562] | 706 | # Find the source files, if location was not specified.
|
---|
| 707 | if test -z "$srcdir"; then
|
---|
| 708 | ac_srcdir_defaulted=yes
|
---|
| 709 | # Try the directory containing this script, then its parent.
|
---|
[8756] | 710 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
| 711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 712 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 713 | X"$0" : 'X\(//\)$' \| \
|
---|
| 714 | X"$0" : 'X\(/\)' \| \
|
---|
| 715 | . : '\(.\)' 2>/dev/null ||
|
---|
| 716 | echo X"$0" |
|
---|
| 717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 719 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 720 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 721 | s/.*/./; q'`
|
---|
[562] | 722 | srcdir=$ac_confdir
|
---|
| 723 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 724 | srcdir=..
|
---|
| 725 | fi
|
---|
| 726 | else
|
---|
| 727 | ac_srcdir_defaulted=no
|
---|
| 728 | fi
|
---|
| 729 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 730 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
[8756] | 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
| 732 | { (exit 1); exit 1; }; }
|
---|
[562] | 733 | else
|
---|
[8756] | 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
| 735 | { (exit 1); exit 1; }; }
|
---|
[562] | 736 | fi
|
---|
| 737 | fi
|
---|
[8756] | 738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
| 739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
| 740 | { (exit 1); exit 1; }; }
|
---|
| 741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
| 742 | ac_env_build_alias_set=${build_alias+set}
|
---|
| 743 | ac_env_build_alias_value=$build_alias
|
---|
| 744 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
| 745 | ac_cv_env_build_alias_value=$build_alias
|
---|
| 746 | ac_env_host_alias_set=${host_alias+set}
|
---|
| 747 | ac_env_host_alias_value=$host_alias
|
---|
| 748 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
| 749 | ac_cv_env_host_alias_value=$host_alias
|
---|
| 750 | ac_env_target_alias_set=${target_alias+set}
|
---|
| 751 | ac_env_target_alias_value=$target_alias
|
---|
| 752 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
| 753 | ac_cv_env_target_alias_value=$target_alias
|
---|
| 754 | ac_env_CC_set=${CC+set}
|
---|
| 755 | ac_env_CC_value=$CC
|
---|
| 756 | ac_cv_env_CC_set=${CC+set}
|
---|
| 757 | ac_cv_env_CC_value=$CC
|
---|
| 758 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 759 | ac_env_CFLAGS_value=$CFLAGS
|
---|
| 760 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 761 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
| 762 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 763 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
| 764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 765 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
| 766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 767 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 770 | ac_env_CXX_set=${CXX+set}
|
---|
| 771 | ac_env_CXX_value=$CXX
|
---|
| 772 | ac_cv_env_CXX_set=${CXX+set}
|
---|
| 773 | ac_cv_env_CXX_value=$CXX
|
---|
| 774 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 775 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 776 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 777 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 778 | ac_env_CPP_set=${CPP+set}
|
---|
| 779 | ac_env_CPP_value=$CPP
|
---|
| 780 | ac_cv_env_CPP_set=${CPP+set}
|
---|
| 781 | ac_cv_env_CPP_value=$CPP
|
---|
[562] | 782 |
|
---|
[8756] | 783 | #
|
---|
| 784 | # Report the --help message.
|
---|
| 785 | #
|
---|
| 786 | if test "$ac_init_help" = "long"; then
|
---|
| 787 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 788 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 789 | cat <<_ACEOF
|
---|
| 790 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 791 |
|
---|
| 792 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 793 |
|
---|
| 794 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 795 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 796 |
|
---|
| 797 | Defaults for the options are specified in brackets.
|
---|
| 798 |
|
---|
| 799 | Configuration:
|
---|
| 800 | -h, --help display this help and exit
|
---|
| 801 | --help=short display options specific to this package
|
---|
| 802 | --help=recursive display the short help of all the included packages
|
---|
| 803 | -V, --version display version information and exit
|
---|
| 804 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
| 805 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 806 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 807 | -n, --no-create do not create output files
|
---|
| 808 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 809 |
|
---|
| 810 | _ACEOF
|
---|
| 811 |
|
---|
| 812 | cat <<_ACEOF
|
---|
| 813 | Installation directories:
|
---|
| 814 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
| 815 | [$ac_default_prefix]
|
---|
| 816 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
| 817 | [PREFIX]
|
---|
| 818 |
|
---|
| 819 | By default, \`make install' will install all the files in
|
---|
| 820 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 821 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 822 | for instance \`--prefix=\$HOME'.
|
---|
| 823 |
|
---|
| 824 | For better control, use the options below.
|
---|
| 825 |
|
---|
| 826 | Fine tuning of the installation directories:
|
---|
| 827 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 828 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 829 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 830 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
| 831 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 832 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 833 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 834 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 835 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 836 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 837 | --infodir=DIR info documentation [PREFIX/info]
|
---|
| 838 | --mandir=DIR man documentation [PREFIX/man]
|
---|
| 839 | _ACEOF
|
---|
| 840 |
|
---|
| 841 | cat <<\_ACEOF
|
---|
| 842 |
|
---|
| 843 | System types:
|
---|
| 844 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 845 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 846 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
| 847 | _ACEOF
|
---|
| 848 | fi
|
---|
| 849 |
|
---|
| 850 | if test -n "$ac_init_help"; then
|
---|
| 851 |
|
---|
| 852 | cat <<\_ACEOF
|
---|
| 853 |
|
---|
| 854 | Optional Features:
|
---|
| 855 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 856 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 857 | --enable-corba Enable CORBA support
|
---|
| 858 | --enable-z3950 Enable Z39.50 client support
|
---|
[12492] | 859 | --disable-yaz Disable YAZ compilation
|
---|
[12922] | 860 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[8756] | 861 |
|
---|
| 862 | Optional Packages:
|
---|
| 863 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 864 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 865 | --with-micodir Use installed MICO directory
|
---|
| 866 | --with-gdbm=dir Use local gdbm library and headers
|
---|
| 867 | --with-dmalloc use dmalloc, as in
|
---|
| 868 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 869 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 870 |
|
---|
| 871 | Some influential environment variables:
|
---|
| 872 | CC C compiler command
|
---|
| 873 | CFLAGS C compiler flags
|
---|
| 874 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 875 | nonstandard directory <lib dir>
|
---|
| 876 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 877 | headers in a nonstandard directory <include dir>
|
---|
| 878 | CXX C++ compiler command
|
---|
| 879 | CXXFLAGS C++ compiler flags
|
---|
| 880 | CPP C preprocessor
|
---|
| 881 |
|
---|
| 882 | Use these variables to override the choices made by `configure' or to help
|
---|
| 883 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 884 |
|
---|
| 885 | _ACEOF
|
---|
| 886 | fi
|
---|
| 887 |
|
---|
| 888 | if test "$ac_init_help" = "recursive"; then
|
---|
| 889 | # If there are subdirs, report their specific --help.
|
---|
| 890 | ac_popdir=`pwd`
|
---|
| 891 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 892 | test -d $ac_dir || continue
|
---|
| 893 | ac_builddir=.
|
---|
| 894 |
|
---|
| 895 | if test "$ac_dir" != .; then
|
---|
| 896 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 897 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 898 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 899 | else
|
---|
| 900 | ac_dir_suffix= ac_top_builddir=
|
---|
| 901 | fi
|
---|
| 902 |
|
---|
| 903 | case $srcdir in
|
---|
| 904 | .) # No --srcdir option. We are building in place.
|
---|
| 905 | ac_srcdir=.
|
---|
| 906 | if test -z "$ac_top_builddir"; then
|
---|
| 907 | ac_top_srcdir=.
|
---|
| 908 | else
|
---|
| 909 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 910 | fi ;;
|
---|
| 911 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 912 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 913 | ac_top_srcdir=$srcdir ;;
|
---|
| 914 | *) # Relative path.
|
---|
| 915 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 916 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 917 | esac
|
---|
| 918 |
|
---|
| 919 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 920 | # the directories may not exist.
|
---|
| 921 | case `pwd` in
|
---|
| 922 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 923 | *)
|
---|
| 924 | case "$ac_dir" in
|
---|
| 925 | .) ac_abs_builddir=`pwd`;;
|
---|
| 926 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 927 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 928 | esac;;
|
---|
| 929 | esac
|
---|
| 930 | case $ac_abs_builddir in
|
---|
| 931 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 932 | *)
|
---|
| 933 | case ${ac_top_builddir}. in
|
---|
| 934 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 935 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 936 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 937 | esac;;
|
---|
| 938 | esac
|
---|
| 939 | case $ac_abs_builddir in
|
---|
| 940 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 941 | *)
|
---|
| 942 | case $ac_srcdir in
|
---|
| 943 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 944 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 945 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 946 | esac;;
|
---|
| 947 | esac
|
---|
| 948 | case $ac_abs_builddir in
|
---|
| 949 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 950 | *)
|
---|
| 951 | case $ac_top_srcdir in
|
---|
| 952 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 953 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 954 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 955 | esac;;
|
---|
| 956 | esac
|
---|
| 957 |
|
---|
| 958 | cd $ac_dir
|
---|
| 959 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
| 960 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 961 | echo
|
---|
| 962 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 963 | elif test -f $ac_srcdir/configure; then
|
---|
| 964 | echo
|
---|
| 965 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 966 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 967 | test -f $ac_srcdir/configure.in; then
|
---|
| 968 | echo
|
---|
| 969 | $ac_configure --help
|
---|
| 970 | else
|
---|
| 971 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 972 | fi
|
---|
| 973 | cd $ac_popdir
|
---|
| 974 | done
|
---|
| 975 | fi
|
---|
| 976 |
|
---|
| 977 | test -n "$ac_init_help" && exit 0
|
---|
| 978 | if $ac_init_version; then
|
---|
| 979 | cat <<\_ACEOF
|
---|
| 980 |
|
---|
| 981 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
| 982 | This configure script is free software; the Free Software Foundation
|
---|
| 983 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 984 | _ACEOF
|
---|
| 985 | exit 0
|
---|
| 986 | fi
|
---|
| 987 | exec 5>config.log
|
---|
| 988 | cat >&5 <<_ACEOF
|
---|
| 989 | This file contains any messages produced by compilers while
|
---|
| 990 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 991 |
|
---|
| 992 | It was created by $as_me, which was
|
---|
| 993 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 994 |
|
---|
| 995 | $ $0 $@
|
---|
| 996 |
|
---|
| 997 | _ACEOF
|
---|
| 998 | {
|
---|
| 999 | cat <<_ASUNAME
|
---|
| 1000 | ## --------- ##
|
---|
| 1001 | ## Platform. ##
|
---|
| 1002 | ## --------- ##
|
---|
| 1003 |
|
---|
| 1004 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1005 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1006 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1007 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1008 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1009 |
|
---|
| 1010 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1011 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1012 |
|
---|
| 1013 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1014 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1015 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 1016 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
| 1017 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1018 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1019 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1020 |
|
---|
| 1021 | _ASUNAME
|
---|
| 1022 |
|
---|
| 1023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1024 | for as_dir in $PATH
|
---|
| 1025 | do
|
---|
| 1026 | IFS=$as_save_IFS
|
---|
| 1027 | test -z "$as_dir" && as_dir=.
|
---|
| 1028 | echo "PATH: $as_dir"
|
---|
| 1029 | done
|
---|
| 1030 |
|
---|
| 1031 | } >&5
|
---|
| 1032 |
|
---|
| 1033 | cat >&5 <<_ACEOF
|
---|
| 1034 |
|
---|
| 1035 |
|
---|
| 1036 | ## ----------- ##
|
---|
| 1037 | ## Core tests. ##
|
---|
| 1038 | ## ----------- ##
|
---|
| 1039 |
|
---|
| 1040 | _ACEOF
|
---|
| 1041 |
|
---|
| 1042 |
|
---|
| 1043 | # Keep a trace of the command line.
|
---|
| 1044 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1045 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1046 | # Also quote any args containing shell meta-characters.
|
---|
| 1047 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1048 | ac_configure_args=
|
---|
| 1049 | ac_configure_args0=
|
---|
| 1050 | ac_configure_args1=
|
---|
| 1051 | ac_sep=
|
---|
| 1052 | ac_must_keep_next=false
|
---|
| 1053 | for ac_pass in 1 2
|
---|
| 1054 | do
|
---|
| 1055 | for ac_arg
|
---|
| 1056 | do
|
---|
| 1057 | case $ac_arg in
|
---|
| 1058 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1059 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1060 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1061 | continue ;;
|
---|
| 1062 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1063 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1064 | esac
|
---|
| 1065 | case $ac_pass in
|
---|
| 1066 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1067 | 2)
|
---|
| 1068 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1069 | if test $ac_must_keep_next = true; then
|
---|
| 1070 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1071 | else
|
---|
| 1072 | case $ac_arg in
|
---|
| 1073 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1074 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1075 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1076 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1077 | case "$ac_configure_args0 " in
|
---|
| 1078 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1079 | esac
|
---|
| 1080 | ;;
|
---|
| 1081 | -* ) ac_must_keep_next=true ;;
|
---|
| 1082 | esac
|
---|
| 1083 | fi
|
---|
| 1084 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1085 | # Get rid of the leading space.
|
---|
| 1086 | ac_sep=" "
|
---|
| 1087 | ;;
|
---|
| 1088 | esac
|
---|
| 1089 | done
|
---|
| 1090 | done
|
---|
| 1091 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1092 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
| 1093 |
|
---|
| 1094 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1095 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1096 | # would cause problems or look ugly.
|
---|
| 1097 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1098 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
| 1099 | trap 'exit_status=$?
|
---|
| 1100 | # Save into config.log some information that might help in debugging.
|
---|
| 1101 | {
|
---|
| 1102 | echo
|
---|
| 1103 |
|
---|
| 1104 | cat <<\_ASBOX
|
---|
| 1105 | ## ---------------- ##
|
---|
| 1106 | ## Cache variables. ##
|
---|
| 1107 | ## ---------------- ##
|
---|
| 1108 | _ASBOX
|
---|
| 1109 | echo
|
---|
| 1110 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 1111 | {
|
---|
| 1112 | (set) 2>&1 |
|
---|
| 1113 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1114 | *ac_space=\ *)
|
---|
| 1115 | sed -n \
|
---|
| 1116 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1117 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
| 1118 | ;;
|
---|
| 1119 | *)
|
---|
| 1120 | sed -n \
|
---|
| 1121 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
| 1122 | ;;
|
---|
| 1123 | esac;
|
---|
| 1124 | }
|
---|
| 1125 | echo
|
---|
| 1126 |
|
---|
| 1127 | cat <<\_ASBOX
|
---|
| 1128 | ## ----------------- ##
|
---|
| 1129 | ## Output variables. ##
|
---|
| 1130 | ## ----------------- ##
|
---|
| 1131 | _ASBOX
|
---|
| 1132 | echo
|
---|
| 1133 | for ac_var in $ac_subst_vars
|
---|
| 1134 | do
|
---|
| 1135 | eval ac_val=$`echo $ac_var`
|
---|
| 1136 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1137 | done | sort
|
---|
| 1138 | echo
|
---|
| 1139 |
|
---|
| 1140 | if test -n "$ac_subst_files"; then
|
---|
| 1141 | cat <<\_ASBOX
|
---|
| 1142 | ## ------------- ##
|
---|
| 1143 | ## Output files. ##
|
---|
| 1144 | ## ------------- ##
|
---|
| 1145 | _ASBOX
|
---|
| 1146 | echo
|
---|
| 1147 | for ac_var in $ac_subst_files
|
---|
| 1148 | do
|
---|
| 1149 | eval ac_val=$`echo $ac_var`
|
---|
| 1150 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1151 | done | sort
|
---|
| 1152 | echo
|
---|
| 1153 | fi
|
---|
| 1154 |
|
---|
| 1155 | if test -s confdefs.h; then
|
---|
| 1156 | cat <<\_ASBOX
|
---|
| 1157 | ## ----------- ##
|
---|
| 1158 | ## confdefs.h. ##
|
---|
| 1159 | ## ----------- ##
|
---|
| 1160 | _ASBOX
|
---|
| 1161 | echo
|
---|
| 1162 | sed "/^$/d" confdefs.h | sort
|
---|
| 1163 | echo
|
---|
| 1164 | fi
|
---|
| 1165 | test "$ac_signal" != 0 &&
|
---|
| 1166 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1167 | echo "$as_me: exit $exit_status"
|
---|
| 1168 | } >&5
|
---|
| 1169 | rm -f core *.core &&
|
---|
| 1170 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
| 1171 | exit $exit_status
|
---|
| 1172 | ' 0
|
---|
| 1173 | for ac_signal in 1 2 13 15; do
|
---|
| 1174 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
| 1175 | done
|
---|
| 1176 | ac_signal=0
|
---|
| 1177 |
|
---|
| 1178 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 1179 | rm -rf conftest* confdefs.h
|
---|
| 1180 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1181 | echo >confdefs.h
|
---|
| 1182 |
|
---|
| 1183 | # Predefined preprocessor variables.
|
---|
| 1184 |
|
---|
| 1185 | cat >>confdefs.h <<_ACEOF
|
---|
| 1186 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1187 | _ACEOF
|
---|
| 1188 |
|
---|
| 1189 |
|
---|
| 1190 | cat >>confdefs.h <<_ACEOF
|
---|
| 1191 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1192 | _ACEOF
|
---|
| 1193 |
|
---|
| 1194 |
|
---|
| 1195 | cat >>confdefs.h <<_ACEOF
|
---|
| 1196 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1197 | _ACEOF
|
---|
| 1198 |
|
---|
| 1199 |
|
---|
| 1200 | cat >>confdefs.h <<_ACEOF
|
---|
| 1201 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1202 | _ACEOF
|
---|
| 1203 |
|
---|
| 1204 |
|
---|
| 1205 | cat >>confdefs.h <<_ACEOF
|
---|
| 1206 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1207 | _ACEOF
|
---|
| 1208 |
|
---|
| 1209 |
|
---|
| 1210 | # Let the site file select an alternate cache file if it wants to.
|
---|
[562] | 1211 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1212 | if test -z "$CONFIG_SITE"; then
|
---|
| 1213 | if test "x$prefix" != xNONE; then
|
---|
| 1214 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1215 | else
|
---|
| 1216 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1217 | fi
|
---|
| 1218 | fi
|
---|
| 1219 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1220 | if test -r "$ac_site_file"; then
|
---|
[8756] | 1221 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1222 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
| 1223 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[562] | 1224 | . "$ac_site_file"
|
---|
| 1225 | fi
|
---|
| 1226 | done
|
---|
| 1227 |
|
---|
| 1228 | if test -r "$cache_file"; then
|
---|
[8756] | 1229 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1230 | # files actually), so we avoid doing that.
|
---|
| 1231 | if test -f "$cache_file"; then
|
---|
| 1232 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1233 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1234 | case $cache_file in
|
---|
| 1235 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1236 | *) . ./$cache_file;;
|
---|
| 1237 | esac
|
---|
| 1238 | fi
|
---|
[562] | 1239 | else
|
---|
[8756] | 1240 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1241 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1242 | >$cache_file
|
---|
[562] | 1243 | fi
|
---|
| 1244 |
|
---|
[8756] | 1245 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1246 | # value.
|
---|
| 1247 | ac_cache_corrupted=false
|
---|
| 1248 | for ac_var in `(set) 2>&1 |
|
---|
| 1249 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
| 1250 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1251 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 1252 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1253 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
| 1254 | case $ac_old_set,$ac_new_set in
|
---|
| 1255 | set,)
|
---|
| 1256 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1257 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1258 | ac_cache_corrupted=: ;;
|
---|
| 1259 | ,set)
|
---|
| 1260 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1261 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1262 | ac_cache_corrupted=: ;;
|
---|
| 1263 | ,);;
|
---|
| 1264 | *)
|
---|
| 1265 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
| 1266 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1267 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1268 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1269 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1270 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1271 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1272 | ac_cache_corrupted=:
|
---|
| 1273 | fi;;
|
---|
| 1274 | esac
|
---|
| 1275 | # Pass precious variables to config.status.
|
---|
| 1276 | if test "$ac_new_set" = set; then
|
---|
| 1277 | case $ac_new_val in
|
---|
| 1278 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1279 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1280 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1281 | esac
|
---|
| 1282 | case " $ac_configure_args " in
|
---|
| 1283 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1284 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1285 | esac
|
---|
| 1286 | fi
|
---|
| 1287 | done
|
---|
| 1288 | if $ac_cache_corrupted; then
|
---|
| 1289 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1290 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1291 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1292 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1293 | { (exit 1); exit 1; }; }
|
---|
| 1294 | fi
|
---|
| 1295 |
|
---|
[562] | 1296 | ac_ext=c
|
---|
| 1297 | ac_cpp='$CPP $CPPFLAGS'
|
---|
[8756] | 1298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[562] | 1301 |
|
---|
| 1302 |
|
---|
| 1303 |
|
---|
[8200] | 1304 |
|
---|
| 1305 |
|
---|
[8756] | 1306 |
|
---|
| 1307 |
|
---|
| 1308 |
|
---|
| 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 |
|
---|
| 1314 |
|
---|
| 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 |
|
---|
| 1319 |
|
---|
| 1320 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1321 |
|
---|
| 1322 |
|
---|
[562] | 1323 | PACKAGE=gsdl
|
---|
[681] | 1324 | VERSION=2.1
|
---|
[8756] | 1325 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1326 | #define PACKAGE "$PACKAGE"
|
---|
[8756] | 1327 | _ACEOF
|
---|
[562] | 1328 |
|
---|
[8756] | 1329 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1330 | #define VERSION "$VERSION"
|
---|
[8756] | 1331 | _ACEOF
|
---|
[562] | 1332 |
|
---|
[8200] | 1333 |
|
---|
| 1334 |
|
---|
| 1335 |
|
---|
[567] | 1336 | USE_FASTCGI=0
|
---|
| 1337 | if test USE_FASTCGI = 1; then
|
---|
[8756] | 1338 | cat >>confdefs.h <<\_ACEOF
|
---|
[567] | 1339 | #define USE_FASTCGI 1
|
---|
[8756] | 1340 | _ACEOF
|
---|
[567] | 1341 |
|
---|
[8200] | 1342 |
|
---|
[3631] | 1343 | fi
|
---|
[567] | 1344 |
|
---|
[3631] | 1345 | if test USE_LANGACTION = 1; then
|
---|
[8756] | 1346 | cat >>confdefs.h <<\_ACEOF
|
---|
[3631] | 1347 | #define USE_LANGACTION 1
|
---|
[8756] | 1348 | _ACEOF
|
---|
[3631] | 1349 |
|
---|
[8200] | 1350 |
|
---|
[567] | 1351 | fi
|
---|
| 1352 |
|
---|
[1860] | 1353 | # Check whether --enable-corba or --disable-corba was given.
|
---|
| 1354 | if test "${enable_corba+set}" = set; then
|
---|
| 1355 | enableval="$enable_corba"
|
---|
[2471] | 1356 | USE_CORBA=1
|
---|
[1860] | 1357 | else
|
---|
[2471] | 1358 | USE_CORBA=0
|
---|
[8756] | 1359 | fi;
|
---|
| 1360 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1361 | #define USE_CORBA $USE_CORBA
|
---|
[8756] | 1362 | _ACEOF
|
---|
[1860] | 1363 |
|
---|
[8200] | 1364 |
|
---|
| 1365 |
|
---|
[8756] | 1366 |
|
---|
[1860] | 1367 | # Check whether --with-micodir or --without-micodir was given.
|
---|
| 1368 | if test "${with_micodir+set}" = set; then
|
---|
| 1369 | withval="$with_micodir"
|
---|
[2471] | 1370 | MICO_DIR=$enableval
|
---|
[1860] | 1371 | else
|
---|
[2471] | 1372 | MICO_DIR="default"
|
---|
[8756] | 1373 | fi;
|
---|
| 1374 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1375 | #define MICO_DIR "$MICO_DIR"
|
---|
[8756] | 1376 | _ACEOF
|
---|
[1860] | 1377 |
|
---|
[8200] | 1378 |
|
---|
| 1379 |
|
---|
[1938] | 1380 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
| 1381 | if test "${enable_z3950+set}" = set; then
|
---|
| 1382 | enableval="$enable_z3950"
|
---|
| 1383 | USE_Z3950=1
|
---|
| 1384 | else
|
---|
| 1385 | USE_Z3950=0
|
---|
[8756] | 1386 | fi;
|
---|
[2297] | 1387 | if test USE_Z3950 = 1; then
|
---|
[8756] | 1388 | cat >>confdefs.h <<\_ACEOF
|
---|
[2297] | 1389 | #define USE_Z3950 $USE_Z3950
|
---|
[8756] | 1390 | _ACEOF
|
---|
[1938] | 1391 |
|
---|
[8200] | 1392 |
|
---|
[2297] | 1393 | fi
|
---|
[1938] | 1394 |
|
---|
[12492] | 1395 | # Check whether --enable-yaz or --disable-yaz was given.
|
---|
| 1396 | if test "${enable_yaz+set}" = set; then
|
---|
| 1397 | enableval="$enable_yaz"
|
---|
| 1398 | USE_YAZ=0
|
---|
| 1399 | else
|
---|
| 1400 | USE_YAZ=1
|
---|
| 1401 | fi;
|
---|
| 1402 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1403 | #define USE_YAZ $USE_YAZ
|
---|
| 1404 | _ACEOF
|
---|
[8756] | 1405 |
|
---|
[12492] | 1406 |
|
---|
| 1407 |
|
---|
| 1408 |
|
---|
[2279] | 1409 | # Check whether --with-gdbm or --without-gdbm was given.
|
---|
| 1410 | if test "${with_gdbm+set}" = set; then
|
---|
| 1411 | withval="$with_gdbm"
|
---|
| 1412 | gdbmdir=$withval
|
---|
[8756] | 1413 | fi;
|
---|
[2279] | 1414 |
|
---|
[12922] | 1415 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
| 1416 | if test "${enable_accentfold+set}" = set; then
|
---|
| 1417 | enableval="$enable_accentfold"
|
---|
| 1418 | ENABLE_ACCENTFOLD=0
|
---|
| 1419 | else
|
---|
| 1420 | ENABLE_ACCENTFOLD=1
|
---|
| 1421 | fi;
|
---|
| 1422 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1423 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
| 1424 | _ACEOF
|
---|
| 1425 |
|
---|
| 1426 |
|
---|
| 1427 |
|
---|
[11489] | 1428 | LDFLAGS=
|
---|
[1722] | 1429 | if test -z "$CFLAGS"; then
|
---|
[794] | 1430 | CFLAGS=-O2
|
---|
[1722] | 1431 | fi
|
---|
[576] | 1432 |
|
---|
| 1433 |
|
---|
[8756] | 1434 | ac_ext=c
|
---|
| 1435 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1436 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1437 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1439 | if test -n "$ac_tool_prefix"; then
|
---|
| 1440 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1441 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
| 1442 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1443 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1444 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1445 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1446 | else
|
---|
| 1447 | if test -n "$CC"; then
|
---|
| 1448 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1449 | else
|
---|
| 1450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1451 | for as_dir in $PATH
|
---|
| 1452 | do
|
---|
| 1453 | IFS=$as_save_IFS
|
---|
| 1454 | test -z "$as_dir" && as_dir=.
|
---|
| 1455 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1456 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1457 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 1458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1459 | break 2
|
---|
| 1460 | fi
|
---|
| 1461 | done
|
---|
| 1462 | done
|
---|
| 1463 |
|
---|
| 1464 | fi
|
---|
| 1465 | fi
|
---|
| 1466 | CC=$ac_cv_prog_CC
|
---|
| 1467 | if test -n "$CC"; then
|
---|
| 1468 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1469 | echo "${ECHO_T}$CC" >&6
|
---|
| 1470 | else
|
---|
| 1471 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1472 | echo "${ECHO_T}no" >&6
|
---|
| 1473 | fi
|
---|
| 1474 |
|
---|
| 1475 | fi
|
---|
| 1476 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1477 | ac_ct_CC=$CC
|
---|
| 1478 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[562] | 1479 | set dummy gcc; ac_word=$2
|
---|
[8756] | 1480 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1481 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1482 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1483 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1484 | else
|
---|
[8756] | 1485 | if test -n "$ac_ct_CC"; then
|
---|
| 1486 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1487 | else
|
---|
| 1488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1489 | for as_dir in $PATH
|
---|
| 1490 | do
|
---|
| 1491 | IFS=$as_save_IFS
|
---|
| 1492 | test -z "$as_dir" && as_dir=.
|
---|
| 1493 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1494 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1495 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 1496 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1497 | break 2
|
---|
| 1498 | fi
|
---|
| 1499 | done
|
---|
| 1500 | done
|
---|
| 1501 |
|
---|
| 1502 | fi
|
---|
| 1503 | fi
|
---|
| 1504 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1505 | if test -n "$ac_ct_CC"; then
|
---|
| 1506 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1507 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1508 | else
|
---|
| 1509 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1510 | echo "${ECHO_T}no" >&6
|
---|
| 1511 | fi
|
---|
| 1512 |
|
---|
| 1513 | CC=$ac_ct_CC
|
---|
| 1514 | else
|
---|
| 1515 | CC="$ac_cv_prog_CC"
|
---|
| 1516 | fi
|
---|
| 1517 |
|
---|
| 1518 | if test -z "$CC"; then
|
---|
| 1519 | if test -n "$ac_tool_prefix"; then
|
---|
| 1520 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 1521 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
| 1522 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1524 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1525 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1526 | else
|
---|
[562] | 1527 | if test -n "$CC"; then
|
---|
| 1528 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1529 | else
|
---|
[8756] | 1530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1531 | for as_dir in $PATH
|
---|
| 1532 | do
|
---|
| 1533 | IFS=$as_save_IFS
|
---|
| 1534 | test -z "$as_dir" && as_dir=.
|
---|
| 1535 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1536 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1537 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 1538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1539 | break 2
|
---|
| 1540 | fi
|
---|
| 1541 | done
|
---|
| 1542 | done
|
---|
| 1543 |
|
---|
[562] | 1544 | fi
|
---|
| 1545 | fi
|
---|
[8756] | 1546 | CC=$ac_cv_prog_CC
|
---|
[562] | 1547 | if test -n "$CC"; then
|
---|
[8756] | 1548 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1549 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1550 | else
|
---|
[8756] | 1551 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1552 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1553 | fi
|
---|
| 1554 |
|
---|
[8756] | 1555 | fi
|
---|
| 1556 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1557 | ac_ct_CC=$CC
|
---|
| 1558 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1559 | set dummy cc; ac_word=$2
|
---|
| 1560 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1561 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1562 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1563 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1564 | else
|
---|
| 1565 | if test -n "$ac_ct_CC"; then
|
---|
| 1566 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1567 | else
|
---|
| 1568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1569 | for as_dir in $PATH
|
---|
| 1570 | do
|
---|
| 1571 | IFS=$as_save_IFS
|
---|
| 1572 | test -z "$as_dir" && as_dir=.
|
---|
| 1573 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1574 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1575 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 1576 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1577 | break 2
|
---|
| 1578 | fi
|
---|
| 1579 | done
|
---|
| 1580 | done
|
---|
| 1581 |
|
---|
| 1582 | fi
|
---|
| 1583 | fi
|
---|
| 1584 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1585 | if test -n "$ac_ct_CC"; then
|
---|
| 1586 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1587 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1588 | else
|
---|
| 1589 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1590 | echo "${ECHO_T}no" >&6
|
---|
| 1591 | fi
|
---|
| 1592 |
|
---|
| 1593 | CC=$ac_ct_CC
|
---|
| 1594 | else
|
---|
| 1595 | CC="$ac_cv_prog_CC"
|
---|
| 1596 | fi
|
---|
| 1597 |
|
---|
| 1598 | fi
|
---|
[562] | 1599 | if test -z "$CC"; then
|
---|
| 1600 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1601 | set dummy cc; ac_word=$2
|
---|
[8756] | 1602 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1603 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1604 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1605 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1606 | else
|
---|
| 1607 | if test -n "$CC"; then
|
---|
| 1608 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1609 | else
|
---|
| 1610 | ac_prog_rejected=no
|
---|
[8756] | 1611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1612 | for as_dir in $PATH
|
---|
| 1613 | do
|
---|
| 1614 | IFS=$as_save_IFS
|
---|
| 1615 | test -z "$as_dir" && as_dir=.
|
---|
| 1616 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1617 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1618 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 1619 | ac_prog_rejected=yes
|
---|
| 1620 | continue
|
---|
| 1621 | fi
|
---|
| 1622 | ac_cv_prog_CC="cc"
|
---|
| 1623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1624 | break 2
|
---|
| 1625 | fi
|
---|
| 1626 | done
|
---|
| 1627 | done
|
---|
| 1628 |
|
---|
[562] | 1629 | if test $ac_prog_rejected = yes; then
|
---|
| 1630 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 1631 | set dummy $ac_cv_prog_CC
|
---|
| 1632 | shift
|
---|
[8756] | 1633 | if test $# != 0; then
|
---|
[562] | 1634 | # We chose a different compiler from the bogus one.
|
---|
| 1635 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 1636 | # first if we set CC to just the basename; use the full file name.
|
---|
| 1637 | shift
|
---|
[8756] | 1638 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[562] | 1639 | fi
|
---|
| 1640 | fi
|
---|
| 1641 | fi
|
---|
| 1642 | fi
|
---|
[8756] | 1643 | CC=$ac_cv_prog_CC
|
---|
[562] | 1644 | if test -n "$CC"; then
|
---|
[8756] | 1645 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1646 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1647 | else
|
---|
[8756] | 1648 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1649 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1650 | fi
|
---|
| 1651 |
|
---|
[8756] | 1652 | fi
|
---|
| 1653 | if test -z "$CC"; then
|
---|
| 1654 | if test -n "$ac_tool_prefix"; then
|
---|
| 1655 | for ac_prog in cl
|
---|
| 1656 | do
|
---|
| 1657 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1658 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 1659 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1661 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1662 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1663 | else
|
---|
| 1664 | if test -n "$CC"; then
|
---|
| 1665 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1666 | else
|
---|
[8756] | 1667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1668 | for as_dir in $PATH
|
---|
| 1669 | do
|
---|
| 1670 | IFS=$as_save_IFS
|
---|
| 1671 | test -z "$as_dir" && as_dir=.
|
---|
| 1672 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1673 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1674 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 1675 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1676 | break 2
|
---|
| 1677 | fi
|
---|
| 1678 | done
|
---|
| 1679 | done
|
---|
| 1680 |
|
---|
[562] | 1681 | fi
|
---|
| 1682 | fi
|
---|
[8756] | 1683 | CC=$ac_cv_prog_CC
|
---|
[562] | 1684 | if test -n "$CC"; then
|
---|
[8756] | 1685 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1686 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1687 | else
|
---|
[8756] | 1688 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1689 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1690 | fi
|
---|
[8756] | 1691 |
|
---|
| 1692 | test -n "$CC" && break
|
---|
| 1693 | done
|
---|
| 1694 | fi
|
---|
| 1695 | if test -z "$CC"; then
|
---|
| 1696 | ac_ct_CC=$CC
|
---|
| 1697 | for ac_prog in cl
|
---|
| 1698 | do
|
---|
| 1699 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1700 | set dummy $ac_prog; ac_word=$2
|
---|
| 1701 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1702 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1703 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1704 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1705 | else
|
---|
| 1706 | if test -n "$ac_ct_CC"; then
|
---|
| 1707 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1708 | else
|
---|
| 1709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1710 | for as_dir in $PATH
|
---|
| 1711 | do
|
---|
| 1712 | IFS=$as_save_IFS
|
---|
| 1713 | test -z "$as_dir" && as_dir=.
|
---|
| 1714 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1715 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1716 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 1717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1718 | break 2
|
---|
[8200] | 1719 | fi
|
---|
[8756] | 1720 | done
|
---|
| 1721 | done
|
---|
| 1722 |
|
---|
[562] | 1723 | fi
|
---|
[8756] | 1724 | fi
|
---|
| 1725 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1726 | if test -n "$ac_ct_CC"; then
|
---|
| 1727 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1728 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1729 | else
|
---|
| 1730 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1731 | echo "${ECHO_T}no" >&6
|
---|
| 1732 | fi
|
---|
[562] | 1733 |
|
---|
[8756] | 1734 | test -n "$ac_ct_CC" && break
|
---|
| 1735 | done
|
---|
[562] | 1736 |
|
---|
[8756] | 1737 | CC=$ac_ct_CC
|
---|
| 1738 | fi
|
---|
[562] | 1739 |
|
---|
[8756] | 1740 | fi
|
---|
[562] | 1741 |
|
---|
| 1742 |
|
---|
[8756] | 1743 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 1744 | See \`config.log' for more details." >&5
|
---|
| 1745 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 1746 | See \`config.log' for more details." >&2;}
|
---|
| 1747 | { (exit 1); exit 1; }; }
|
---|
| 1748 |
|
---|
| 1749 | # Provide some information about the compiler.
|
---|
| 1750 | echo "$as_me:$LINENO:" \
|
---|
| 1751 | "checking for C compiler version" >&5
|
---|
| 1752 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1753 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1754 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 1755 | ac_status=$?
|
---|
| 1756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1757 | (exit $ac_status); }
|
---|
| 1758 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1759 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1760 | ac_status=$?
|
---|
| 1761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1762 | (exit $ac_status); }
|
---|
| 1763 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1764 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1765 | ac_status=$?
|
---|
| 1766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1767 | (exit $ac_status); }
|
---|
| 1768 |
|
---|
| 1769 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1770 | /* confdefs.h. */
|
---|
| 1771 | _ACEOF
|
---|
| 1772 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1773 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1774 | /* end confdefs.h. */
|
---|
| 1775 |
|
---|
| 1776 | int
|
---|
| 1777 | main ()
|
---|
| 1778 | {
|
---|
| 1779 |
|
---|
| 1780 | ;
|
---|
| 1781 | return 0;
|
---|
| 1782 | }
|
---|
| 1783 | _ACEOF
|
---|
| 1784 | ac_clean_files_save=$ac_clean_files
|
---|
| 1785 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
| 1786 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 1787 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 1788 | # of exeext.
|
---|
| 1789 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 1790 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
| 1791 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
| 1792 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
| 1793 | (eval $ac_link_default) 2>&5
|
---|
| 1794 | ac_status=$?
|
---|
| 1795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1796 | (exit $ac_status); }; then
|
---|
| 1797 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1798 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1799 | # resort.
|
---|
| 1800 |
|
---|
| 1801 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1802 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1803 | ac_cv_exeext=
|
---|
| 1804 | # b.out is created by i960 compilers.
|
---|
| 1805 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
| 1806 | do
|
---|
| 1807 | test -f "$ac_file" || continue
|
---|
| 1808 | case $ac_file in
|
---|
| 1809 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
| 1810 | ;;
|
---|
| 1811 | conftest.$ac_ext )
|
---|
| 1812 | # This is the source file.
|
---|
| 1813 | ;;
|
---|
| 1814 | [ab].out )
|
---|
| 1815 | # We found the default executable, but exeext='' is most
|
---|
| 1816 | # certainly right.
|
---|
| 1817 | break;;
|
---|
| 1818 | *.* )
|
---|
| 1819 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1820 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1821 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1822 | # maintain Libtool? --akim.
|
---|
| 1823 | export ac_cv_exeext
|
---|
| 1824 | break;;
|
---|
| 1825 | * )
|
---|
| 1826 | break;;
|
---|
| 1827 | esac
|
---|
| 1828 | done
|
---|
| 1829 | else
|
---|
| 1830 | echo "$as_me: failed program was:" >&5
|
---|
| 1831 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1832 |
|
---|
| 1833 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 1834 | See \`config.log' for more details." >&5
|
---|
| 1835 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 1836 | See \`config.log' for more details." >&2;}
|
---|
| 1837 | { (exit 77); exit 77; }; }
|
---|
| 1838 | fi
|
---|
| 1839 |
|
---|
| 1840 | ac_exeext=$ac_cv_exeext
|
---|
| 1841 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 1842 | echo "${ECHO_T}$ac_file" >&6
|
---|
| 1843 |
|
---|
| 1844 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1845 | # the compiler is broken, or we cross compile.
|
---|
| 1846 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 1847 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
| 1848 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1849 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1850 | if test "$cross_compiling" != yes; then
|
---|
| 1851 | if { ac_try='./$ac_file'
|
---|
| 1852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1853 | (eval $ac_try) 2>&5
|
---|
| 1854 | ac_status=$?
|
---|
| 1855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1856 | (exit $ac_status); }; }; then
|
---|
| 1857 | cross_compiling=no
|
---|
[562] | 1858 | else
|
---|
[8756] | 1859 | if test "$cross_compiling" = maybe; then
|
---|
| 1860 | cross_compiling=yes
|
---|
| 1861 | else
|
---|
| 1862 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 1863 | If you meant to cross compile, use \`--host'.
|
---|
| 1864 | See \`config.log' for more details." >&5
|
---|
| 1865 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 1866 | If you meant to cross compile, use \`--host'.
|
---|
| 1867 | See \`config.log' for more details." >&2;}
|
---|
| 1868 | { (exit 1); exit 1; }; }
|
---|
| 1869 | fi
|
---|
[562] | 1870 | fi
|
---|
| 1871 | fi
|
---|
[8756] | 1872 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 1873 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 1874 |
|
---|
[8756] | 1875 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
| 1876 | ac_clean_files=$ac_clean_files_save
|
---|
| 1877 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1878 | # the compiler is broken, or we cross compile.
|
---|
| 1879 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 1880 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
| 1881 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 1882 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 1883 |
|
---|
| 1884 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1885 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 1887 | (eval $ac_link) 2>&5
|
---|
| 1888 | ac_status=$?
|
---|
| 1889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1890 | (exit $ac_status); }; then
|
---|
| 1891 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1892 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1893 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1894 | # `rm'.
|
---|
| 1895 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1896 | test -f "$ac_file" || continue
|
---|
| 1897 | case $ac_file in
|
---|
| 1898 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
| 1899 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1900 | export ac_cv_exeext
|
---|
| 1901 | break;;
|
---|
| 1902 | * ) break;;
|
---|
| 1903 | esac
|
---|
| 1904 | done
|
---|
| 1905 | else
|
---|
| 1906 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1907 | See \`config.log' for more details." >&5
|
---|
| 1908 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1909 | See \`config.log' for more details." >&2;}
|
---|
| 1910 | { (exit 1); exit 1; }; }
|
---|
[562] | 1911 | fi
|
---|
| 1912 |
|
---|
[8756] | 1913 | rm -f conftest$ac_cv_exeext
|
---|
| 1914 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 1915 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 1916 |
|
---|
| 1917 | rm -f conftest.$ac_ext
|
---|
| 1918 | EXEEXT=$ac_cv_exeext
|
---|
| 1919 | ac_exeext=$EXEEXT
|
---|
| 1920 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 1921 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
| 1922 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 1923 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1924 | else
|
---|
[8756] | 1925 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1926 | /* confdefs.h. */
|
---|
| 1927 | _ACEOF
|
---|
| 1928 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1929 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1930 | /* end confdefs.h. */
|
---|
| 1931 |
|
---|
| 1932 | int
|
---|
| 1933 | main ()
|
---|
| 1934 | {
|
---|
| 1935 |
|
---|
| 1936 | ;
|
---|
| 1937 | return 0;
|
---|
| 1938 | }
|
---|
| 1939 | _ACEOF
|
---|
| 1940 | rm -f conftest.o conftest.obj
|
---|
| 1941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1942 | (eval $ac_compile) 2>&5
|
---|
| 1943 | ac_status=$?
|
---|
| 1944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1945 | (exit $ac_status); }; then
|
---|
| 1946 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
| 1947 | case $ac_file in
|
---|
| 1948 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
| 1949 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 1950 | break;;
|
---|
| 1951 | esac
|
---|
| 1952 | done
|
---|
[562] | 1953 | else
|
---|
[8756] | 1954 | echo "$as_me: failed program was:" >&5
|
---|
| 1955 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1956 |
|
---|
| 1957 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 1958 | See \`config.log' for more details." >&5
|
---|
| 1959 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 1960 | See \`config.log' for more details." >&2;}
|
---|
| 1961 | { (exit 1); exit 1; }; }
|
---|
[562] | 1962 | fi
|
---|
[8756] | 1963 |
|
---|
| 1964 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[562] | 1965 | fi
|
---|
[8756] | 1966 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 1967 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
| 1968 | OBJEXT=$ac_cv_objext
|
---|
| 1969 | ac_objext=$OBJEXT
|
---|
| 1970 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 1971 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 1972 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 1973 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1974 | else
|
---|
| 1975 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1976 | /* confdefs.h. */
|
---|
| 1977 | _ACEOF
|
---|
| 1978 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1979 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1980 | /* end confdefs.h. */
|
---|
[562] | 1981 |
|
---|
[8756] | 1982 | int
|
---|
| 1983 | main ()
|
---|
| 1984 | {
|
---|
| 1985 | #ifndef __GNUC__
|
---|
| 1986 | choke me
|
---|
| 1987 | #endif
|
---|
[562] | 1988 |
|
---|
[8756] | 1989 | ;
|
---|
| 1990 | return 0;
|
---|
| 1991 | }
|
---|
| 1992 | _ACEOF
|
---|
| 1993 | rm -f conftest.$ac_objext
|
---|
| 1994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1995 | (eval $ac_compile) 2>conftest.er1
|
---|
| 1996 | ac_status=$?
|
---|
| 1997 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1998 | rm -f conftest.er1
|
---|
| 1999 | cat conftest.err >&5
|
---|
| 2000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2001 | (exit $ac_status); } &&
|
---|
| 2002 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2003 | || test ! -s conftest.err'
|
---|
| 2004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2005 | (eval $ac_try) 2>&5
|
---|
| 2006 | ac_status=$?
|
---|
| 2007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2008 | (exit $ac_status); }; } &&
|
---|
| 2009 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2011 | (eval $ac_try) 2>&5
|
---|
| 2012 | ac_status=$?
|
---|
| 2013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2014 | (exit $ac_status); }; }; then
|
---|
| 2015 | ac_compiler_gnu=yes
|
---|
[562] | 2016 | else
|
---|
[8756] | 2017 | echo "$as_me: failed program was:" >&5
|
---|
| 2018 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2019 |
|
---|
| 2020 | ac_compiler_gnu=no
|
---|
[562] | 2021 | fi
|
---|
[8756] | 2022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2023 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
[562] | 2024 |
|
---|
[8756] | 2025 | fi
|
---|
| 2026 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2027 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2028 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2029 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2030 | ac_save_CFLAGS=$CFLAGS
|
---|
| 2031 | CFLAGS="-g"
|
---|
| 2032 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2033 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2034 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2035 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2036 | else
|
---|
[8756] | 2037 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2038 | /* confdefs.h. */
|
---|
| 2039 | _ACEOF
|
---|
| 2040 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2041 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2042 | /* end confdefs.h. */
|
---|
| 2043 |
|
---|
| 2044 | int
|
---|
| 2045 | main ()
|
---|
| 2046 | {
|
---|
| 2047 |
|
---|
| 2048 | ;
|
---|
| 2049 | return 0;
|
---|
| 2050 | }
|
---|
| 2051 | _ACEOF
|
---|
| 2052 | rm -f conftest.$ac_objext
|
---|
| 2053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2054 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2055 | ac_status=$?
|
---|
| 2056 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2057 | rm -f conftest.er1
|
---|
| 2058 | cat conftest.err >&5
|
---|
| 2059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2060 | (exit $ac_status); } &&
|
---|
| 2061 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2062 | || test ! -s conftest.err'
|
---|
| 2063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2064 | (eval $ac_try) 2>&5
|
---|
| 2065 | ac_status=$?
|
---|
| 2066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2067 | (exit $ac_status); }; } &&
|
---|
| 2068 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2070 | (eval $ac_try) 2>&5
|
---|
| 2071 | ac_status=$?
|
---|
| 2072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2073 | (exit $ac_status); }; }; then
|
---|
[562] | 2074 | ac_cv_prog_cc_g=yes
|
---|
| 2075 | else
|
---|
[8756] | 2076 | echo "$as_me: failed program was:" >&5
|
---|
| 2077 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2078 |
|
---|
[8756] | 2079 | ac_cv_prog_cc_g=no
|
---|
[562] | 2080 | fi
|
---|
[8756] | 2081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2082 | fi
|
---|
| 2083 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2084 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[562] | 2085 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8756] | 2086 | CFLAGS=$ac_save_CFLAGS
|
---|
[562] | 2087 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2088 | if test "$GCC" = yes; then
|
---|
| 2089 | CFLAGS="-g -O2"
|
---|
| 2090 | else
|
---|
| 2091 | CFLAGS="-g"
|
---|
| 2092 | fi
|
---|
| 2093 | else
|
---|
| 2094 | if test "$GCC" = yes; then
|
---|
| 2095 | CFLAGS="-O2"
|
---|
| 2096 | else
|
---|
| 2097 | CFLAGS=
|
---|
| 2098 | fi
|
---|
| 2099 | fi
|
---|
[8756] | 2100 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2101 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2102 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2103 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2104 | else
|
---|
| 2105 | ac_cv_prog_cc_stdc=no
|
---|
| 2106 | ac_save_CC=$CC
|
---|
| 2107 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2108 | /* confdefs.h. */
|
---|
| 2109 | _ACEOF
|
---|
| 2110 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2111 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2112 | /* end confdefs.h. */
|
---|
| 2113 | #include <stdarg.h>
|
---|
| 2114 | #include <stdio.h>
|
---|
| 2115 | #include <sys/types.h>
|
---|
| 2116 | #include <sys/stat.h>
|
---|
| 2117 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2118 | struct buf { int x; };
|
---|
| 2119 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2120 | static char *e (p, i)
|
---|
| 2121 | char **p;
|
---|
| 2122 | int i;
|
---|
| 2123 | {
|
---|
| 2124 | return p[i];
|
---|
| 2125 | }
|
---|
| 2126 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2127 | {
|
---|
| 2128 | char *s;
|
---|
| 2129 | va_list v;
|
---|
| 2130 | va_start (v,p);
|
---|
| 2131 | s = g (p, va_arg (v,int));
|
---|
| 2132 | va_end (v);
|
---|
| 2133 | return s;
|
---|
| 2134 | }
|
---|
[8200] | 2135 |
|
---|
[8756] | 2136 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2137 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2138 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 2139 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
| 2140 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2141 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 2142 | that's true only with -std1. */
|
---|
| 2143 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2144 |
|
---|
| 2145 | int test (int i, double x);
|
---|
| 2146 | struct s1 {int (*f) (int a);};
|
---|
| 2147 | struct s2 {int (*f) (double a);};
|
---|
| 2148 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2149 | int argc;
|
---|
| 2150 | char **argv;
|
---|
| 2151 | int
|
---|
| 2152 | main ()
|
---|
| 2153 | {
|
---|
| 2154 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2155 | ;
|
---|
| 2156 | return 0;
|
---|
| 2157 | }
|
---|
| 2158 | _ACEOF
|
---|
| 2159 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2160 | # breaks some systems' header files.
|
---|
| 2161 | # AIX -qlanglvl=ansi
|
---|
| 2162 | # Ultrix and OSF/1 -std1
|
---|
| 2163 | # HP-UX 10.20 and later -Ae
|
---|
| 2164 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2165 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2166 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[562] | 2167 | do
|
---|
[8756] | 2168 | CC="$ac_save_CC $ac_arg"
|
---|
| 2169 | rm -f conftest.$ac_objext
|
---|
| 2170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2171 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2172 | ac_status=$?
|
---|
| 2173 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2174 | rm -f conftest.er1
|
---|
| 2175 | cat conftest.err >&5
|
---|
| 2176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2177 | (exit $ac_status); } &&
|
---|
| 2178 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2179 | || test ! -s conftest.err'
|
---|
| 2180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2181 | (eval $ac_try) 2>&5
|
---|
| 2182 | ac_status=$?
|
---|
| 2183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2184 | (exit $ac_status); }; } &&
|
---|
| 2185 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2187 | (eval $ac_try) 2>&5
|
---|
| 2188 | ac_status=$?
|
---|
| 2189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2190 | (exit $ac_status); }; }; then
|
---|
| 2191 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2192 | break
|
---|
[562] | 2193 | else
|
---|
[8756] | 2194 | echo "$as_me: failed program was:" >&5
|
---|
| 2195 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2196 |
|
---|
[562] | 2197 | fi
|
---|
[8756] | 2198 | rm -f conftest.err conftest.$ac_objext
|
---|
| 2199 | done
|
---|
| 2200 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
| 2201 | CC=$ac_save_CC
|
---|
| 2202 |
|
---|
[562] | 2203 | fi
|
---|
[8756] | 2204 |
|
---|
| 2205 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2206 | x|xno)
|
---|
| 2207 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2208 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
| 2209 | *)
|
---|
| 2210 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2211 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2212 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 2213 | esac
|
---|
| 2214 |
|
---|
| 2215 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2216 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2217 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2218 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2219 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2220 | #ifndef __cplusplus
|
---|
| 2221 | choke me
|
---|
| 2222 | #endif
|
---|
| 2223 | _ACEOF
|
---|
| 2224 | rm -f conftest.$ac_objext
|
---|
| 2225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2226 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2227 | ac_status=$?
|
---|
| 2228 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2229 | rm -f conftest.er1
|
---|
| 2230 | cat conftest.err >&5
|
---|
| 2231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2232 | (exit $ac_status); } &&
|
---|
| 2233 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2234 | || test ! -s conftest.err'
|
---|
| 2235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2236 | (eval $ac_try) 2>&5
|
---|
| 2237 | ac_status=$?
|
---|
| 2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2239 | (exit $ac_status); }; } &&
|
---|
| 2240 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2242 | (eval $ac_try) 2>&5
|
---|
| 2243 | ac_status=$?
|
---|
| 2244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2245 | (exit $ac_status); }; }; then
|
---|
| 2246 | for ac_declaration in \
|
---|
| 2247 | '' \
|
---|
| 2248 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2249 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2250 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2251 | 'extern "C" void exit (int);' \
|
---|
| 2252 | 'void exit (int);'
|
---|
| 2253 | do
|
---|
| 2254 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2255 | /* confdefs.h. */
|
---|
| 2256 | _ACEOF
|
---|
| 2257 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2258 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2259 | /* end confdefs.h. */
|
---|
| 2260 | $ac_declaration
|
---|
| 2261 | #include <stdlib.h>
|
---|
| 2262 | int
|
---|
| 2263 | main ()
|
---|
| 2264 | {
|
---|
| 2265 | exit (42);
|
---|
| 2266 | ;
|
---|
| 2267 | return 0;
|
---|
| 2268 | }
|
---|
| 2269 | _ACEOF
|
---|
| 2270 | rm -f conftest.$ac_objext
|
---|
| 2271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2272 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2273 | ac_status=$?
|
---|
| 2274 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2275 | rm -f conftest.er1
|
---|
| 2276 | cat conftest.err >&5
|
---|
| 2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2278 | (exit $ac_status); } &&
|
---|
| 2279 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2280 | || test ! -s conftest.err'
|
---|
| 2281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2282 | (eval $ac_try) 2>&5
|
---|
| 2283 | ac_status=$?
|
---|
| 2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2285 | (exit $ac_status); }; } &&
|
---|
| 2286 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2288 | (eval $ac_try) 2>&5
|
---|
| 2289 | ac_status=$?
|
---|
| 2290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2291 | (exit $ac_status); }; }; then
|
---|
| 2292 | :
|
---|
[562] | 2293 | else
|
---|
[8756] | 2294 | echo "$as_me: failed program was:" >&5
|
---|
| 2295 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2296 |
|
---|
| 2297 | continue
|
---|
[562] | 2298 | fi
|
---|
[8756] | 2299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2300 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2301 | /* confdefs.h. */
|
---|
| 2302 | _ACEOF
|
---|
| 2303 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2304 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2305 | /* end confdefs.h. */
|
---|
| 2306 | $ac_declaration
|
---|
| 2307 | int
|
---|
| 2308 | main ()
|
---|
| 2309 | {
|
---|
| 2310 | exit (42);
|
---|
| 2311 | ;
|
---|
| 2312 | return 0;
|
---|
| 2313 | }
|
---|
| 2314 | _ACEOF
|
---|
| 2315 | rm -f conftest.$ac_objext
|
---|
| 2316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2317 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2318 | ac_status=$?
|
---|
| 2319 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2320 | rm -f conftest.er1
|
---|
| 2321 | cat conftest.err >&5
|
---|
| 2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2323 | (exit $ac_status); } &&
|
---|
| 2324 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2325 | || test ! -s conftest.err'
|
---|
| 2326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2327 | (eval $ac_try) 2>&5
|
---|
| 2328 | ac_status=$?
|
---|
| 2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2330 | (exit $ac_status); }; } &&
|
---|
| 2331 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2333 | (eval $ac_try) 2>&5
|
---|
| 2334 | ac_status=$?
|
---|
| 2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2336 | (exit $ac_status); }; }; then
|
---|
| 2337 | break
|
---|
| 2338 | else
|
---|
| 2339 | echo "$as_me: failed program was:" >&5
|
---|
| 2340 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[562] | 2341 |
|
---|
[8756] | 2342 | fi
|
---|
| 2343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 2344 | done
|
---|
[8756] | 2345 | rm -f conftest*
|
---|
| 2346 | if test -n "$ac_declaration"; then
|
---|
| 2347 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2348 | echo $ac_declaration >>confdefs.h
|
---|
| 2349 | echo '#endif' >>confdefs.h
|
---|
| 2350 | fi
|
---|
[562] | 2351 |
|
---|
[8756] | 2352 | else
|
---|
| 2353 | echo "$as_me: failed program was:" >&5
|
---|
| 2354 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2355 |
|
---|
[8756] | 2356 | fi
|
---|
| 2357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2358 | ac_ext=c
|
---|
| 2359 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[8200] | 2363 |
|
---|
[8756] | 2364 | ac_ext=cc
|
---|
[8200] | 2365 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 2366 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2367 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2368 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 2369 | if test -n "$ac_tool_prefix"; then
|
---|
| 2370 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
| 2371 | do
|
---|
| 2372 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2373 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 2374 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2376 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2377 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2378 | else
|
---|
| 2379 | if test -n "$CXX"; then
|
---|
| 2380 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2381 | else
|
---|
| 2382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2383 | for as_dir in $PATH
|
---|
| 2384 | do
|
---|
| 2385 | IFS=$as_save_IFS
|
---|
| 2386 | test -z "$as_dir" && as_dir=.
|
---|
| 2387 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2388 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2389 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 2390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2391 | break 2
|
---|
| 2392 | fi
|
---|
| 2393 | done
|
---|
| 2394 | done
|
---|
[8200] | 2395 |
|
---|
[8756] | 2396 | fi
|
---|
| 2397 | fi
|
---|
| 2398 | CXX=$ac_cv_prog_CXX
|
---|
| 2399 | if test -n "$CXX"; then
|
---|
| 2400 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 2401 | echo "${ECHO_T}$CXX" >&6
|
---|
| 2402 | else
|
---|
| 2403 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2404 | echo "${ECHO_T}no" >&6
|
---|
| 2405 | fi
|
---|
[8200] | 2406 |
|
---|
[8756] | 2407 | test -n "$CXX" && break
|
---|
| 2408 | done
|
---|
| 2409 | fi
|
---|
| 2410 | if test -z "$CXX"; then
|
---|
| 2411 | ac_ct_CXX=$CXX
|
---|
| 2412 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
| 2413 | do
|
---|
| 2414 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2415 | set dummy $ac_prog; ac_word=$2
|
---|
| 2416 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2418 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2419 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2420 | else
|
---|
| 2421 | if test -n "$ac_ct_CXX"; then
|
---|
| 2422 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2423 | else
|
---|
| 2424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2425 | for as_dir in $PATH
|
---|
| 2426 | do
|
---|
| 2427 | IFS=$as_save_IFS
|
---|
| 2428 | test -z "$as_dir" && as_dir=.
|
---|
| 2429 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2430 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2431 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 2432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2433 | break 2
|
---|
| 2434 | fi
|
---|
| 2435 | done
|
---|
| 2436 | done
|
---|
[8200] | 2437 |
|
---|
[8756] | 2438 | fi
|
---|
| 2439 | fi
|
---|
| 2440 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2441 | if test -n "$ac_ct_CXX"; then
|
---|
| 2442 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 2443 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[3631] | 2444 | else
|
---|
[8756] | 2445 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2446 | echo "${ECHO_T}no" >&6
|
---|
[3631] | 2447 | fi
|
---|
[562] | 2448 |
|
---|
[8756] | 2449 | test -n "$ac_ct_CXX" && break
|
---|
| 2450 | done
|
---|
| 2451 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
| 2452 |
|
---|
| 2453 | CXX=$ac_ct_CXX
|
---|
[3631] | 2454 | fi
|
---|
[562] | 2455 |
|
---|
[8756] | 2456 |
|
---|
| 2457 | # Provide some information about the compiler.
|
---|
| 2458 | echo "$as_me:$LINENO:" \
|
---|
| 2459 | "checking for C++ compiler version" >&5
|
---|
| 2460 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2461 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2462 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 2463 | ac_status=$?
|
---|
| 2464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2465 | (exit $ac_status); }
|
---|
| 2466 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2467 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2468 | ac_status=$?
|
---|
| 2469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2470 | (exit $ac_status); }
|
---|
| 2471 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2472 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2473 | ac_status=$?
|
---|
| 2474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2475 | (exit $ac_status); }
|
---|
| 2476 |
|
---|
| 2477 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 2478 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 2479 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 2480 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3631] | 2481 | else
|
---|
[8756] | 2482 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2483 | /* confdefs.h. */
|
---|
| 2484 | _ACEOF
|
---|
| 2485 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2486 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2487 | /* end confdefs.h. */
|
---|
| 2488 |
|
---|
| 2489 | int
|
---|
| 2490 | main ()
|
---|
| 2491 | {
|
---|
| 2492 | #ifndef __GNUC__
|
---|
| 2493 | choke me
|
---|
[3631] | 2494 | #endif
|
---|
[8756] | 2495 |
|
---|
| 2496 | ;
|
---|
| 2497 | return 0;
|
---|
| 2498 | }
|
---|
| 2499 | _ACEOF
|
---|
| 2500 | rm -f conftest.$ac_objext
|
---|
| 2501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2502 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2503 | ac_status=$?
|
---|
| 2504 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2505 | rm -f conftest.er1
|
---|
| 2506 | cat conftest.err >&5
|
---|
| 2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2508 | (exit $ac_status); } &&
|
---|
| 2509 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2510 | || test ! -s conftest.err'
|
---|
| 2511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2512 | (eval $ac_try) 2>&5
|
---|
| 2513 | ac_status=$?
|
---|
| 2514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2515 | (exit $ac_status); }; } &&
|
---|
| 2516 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2518 | (eval $ac_try) 2>&5
|
---|
| 2519 | ac_status=$?
|
---|
| 2520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2521 | (exit $ac_status); }; }; then
|
---|
| 2522 | ac_compiler_gnu=yes
|
---|
[8200] | 2523 | else
|
---|
[8756] | 2524 | echo "$as_me: failed program was:" >&5
|
---|
| 2525 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2526 |
|
---|
| 2527 | ac_compiler_gnu=no
|
---|
[8200] | 2528 | fi
|
---|
[8756] | 2529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2530 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2531 |
|
---|
[8200] | 2532 | fi
|
---|
[8756] | 2533 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 2534 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 2535 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2536 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2537 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
| 2538 | CXXFLAGS="-g"
|
---|
| 2539 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 2540 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 2541 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 2542 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2543 | else
|
---|
| 2544 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2545 | /* confdefs.h. */
|
---|
| 2546 | _ACEOF
|
---|
| 2547 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2548 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2549 | /* end confdefs.h. */
|
---|
[3631] | 2550 |
|
---|
[8756] | 2551 | int
|
---|
| 2552 | main ()
|
---|
| 2553 | {
|
---|
[8200] | 2554 |
|
---|
[8756] | 2555 | ;
|
---|
| 2556 | return 0;
|
---|
| 2557 | }
|
---|
| 2558 | _ACEOF
|
---|
| 2559 | rm -f conftest.$ac_objext
|
---|
| 2560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2561 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2562 | ac_status=$?
|
---|
| 2563 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2564 | rm -f conftest.er1
|
---|
| 2565 | cat conftest.err >&5
|
---|
| 2566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2567 | (exit $ac_status); } &&
|
---|
| 2568 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2569 | || test ! -s conftest.err'
|
---|
| 2570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2571 | (eval $ac_try) 2>&5
|
---|
| 2572 | ac_status=$?
|
---|
| 2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2574 | (exit $ac_status); }; } &&
|
---|
| 2575 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2577 | (eval $ac_try) 2>&5
|
---|
| 2578 | ac_status=$?
|
---|
| 2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2580 | (exit $ac_status); }; }; then
|
---|
[562] | 2581 | ac_cv_prog_cxx_g=yes
|
---|
| 2582 | else
|
---|
[8756] | 2583 | echo "$as_me: failed program was:" >&5
|
---|
| 2584 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2585 |
|
---|
[8756] | 2586 | ac_cv_prog_cxx_g=no
|
---|
[562] | 2587 | fi
|
---|
[8756] | 2588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2589 | fi
|
---|
| 2590 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 2591 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
[562] | 2592 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
[8756] | 2593 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
[562] | 2594 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2595 | if test "$GXX" = yes; then
|
---|
| 2596 | CXXFLAGS="-g -O2"
|
---|
| 2597 | else
|
---|
| 2598 | CXXFLAGS="-g"
|
---|
| 2599 | fi
|
---|
| 2600 | else
|
---|
| 2601 | if test "$GXX" = yes; then
|
---|
| 2602 | CXXFLAGS="-O2"
|
---|
| 2603 | else
|
---|
| 2604 | CXXFLAGS=
|
---|
| 2605 | fi
|
---|
| 2606 | fi
|
---|
[8756] | 2607 | for ac_declaration in \
|
---|
| 2608 | '' \
|
---|
| 2609 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2610 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2611 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2612 | 'extern "C" void exit (int);' \
|
---|
| 2613 | 'void exit (int);'
|
---|
| 2614 | do
|
---|
| 2615 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2616 | /* confdefs.h. */
|
---|
| 2617 | _ACEOF
|
---|
| 2618 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2619 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2620 | /* end confdefs.h. */
|
---|
| 2621 | $ac_declaration
|
---|
| 2622 | #include <stdlib.h>
|
---|
| 2623 | int
|
---|
| 2624 | main ()
|
---|
| 2625 | {
|
---|
| 2626 | exit (42);
|
---|
| 2627 | ;
|
---|
| 2628 | return 0;
|
---|
| 2629 | }
|
---|
| 2630 | _ACEOF
|
---|
| 2631 | rm -f conftest.$ac_objext
|
---|
| 2632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2633 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2634 | ac_status=$?
|
---|
| 2635 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2636 | rm -f conftest.er1
|
---|
| 2637 | cat conftest.err >&5
|
---|
| 2638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2639 | (exit $ac_status); } &&
|
---|
| 2640 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2641 | || test ! -s conftest.err'
|
---|
| 2642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2643 | (eval $ac_try) 2>&5
|
---|
| 2644 | ac_status=$?
|
---|
| 2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2646 | (exit $ac_status); }; } &&
|
---|
| 2647 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2649 | (eval $ac_try) 2>&5
|
---|
| 2650 | ac_status=$?
|
---|
| 2651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2652 | (exit $ac_status); }; }; then
|
---|
| 2653 | :
|
---|
| 2654 | else
|
---|
| 2655 | echo "$as_me: failed program was:" >&5
|
---|
| 2656 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[3063] | 2657 |
|
---|
[8756] | 2658 | continue
|
---|
| 2659 | fi
|
---|
| 2660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2661 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2662 | /* confdefs.h. */
|
---|
| 2663 | _ACEOF
|
---|
| 2664 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2665 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2666 | /* end confdefs.h. */
|
---|
| 2667 | $ac_declaration
|
---|
| 2668 | int
|
---|
| 2669 | main ()
|
---|
| 2670 | {
|
---|
| 2671 | exit (42);
|
---|
| 2672 | ;
|
---|
| 2673 | return 0;
|
---|
| 2674 | }
|
---|
| 2675 | _ACEOF
|
---|
| 2676 | rm -f conftest.$ac_objext
|
---|
| 2677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2678 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2679 | ac_status=$?
|
---|
| 2680 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2681 | rm -f conftest.er1
|
---|
| 2682 | cat conftest.err >&5
|
---|
| 2683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2684 | (exit $ac_status); } &&
|
---|
| 2685 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2686 | || test ! -s conftest.err'
|
---|
| 2687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2688 | (eval $ac_try) 2>&5
|
---|
| 2689 | ac_status=$?
|
---|
| 2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2691 | (exit $ac_status); }; } &&
|
---|
| 2692 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2694 | (eval $ac_try) 2>&5
|
---|
| 2695 | ac_status=$?
|
---|
| 2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2697 | (exit $ac_status); }; }; then
|
---|
| 2698 | break
|
---|
| 2699 | else
|
---|
| 2700 | echo "$as_me: failed program was:" >&5
|
---|
| 2701 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2702 |
|
---|
| 2703 | fi
|
---|
| 2704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2705 | done
|
---|
| 2706 | rm -f conftest*
|
---|
| 2707 | if test -n "$ac_declaration"; then
|
---|
| 2708 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2709 | echo $ac_declaration >>confdefs.h
|
---|
| 2710 | echo '#endif' >>confdefs.h
|
---|
| 2711 | fi
|
---|
| 2712 |
|
---|
| 2713 | ac_ext=c
|
---|
| 2714 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2715 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2716 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2717 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2718 |
|
---|
| 2719 | for ac_prog in gawk mawk nawk awk
|
---|
[3063] | 2720 | do
|
---|
[8756] | 2721 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2722 | set dummy $ac_prog; ac_word=$2
|
---|
[8756] | 2723 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2724 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2725 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 2726 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2727 | else
|
---|
| 2728 | if test -n "$AWK"; then
|
---|
| 2729 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2730 | else
|
---|
[8756] | 2731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2732 | for as_dir in $PATH
|
---|
| 2733 | do
|
---|
| 2734 | IFS=$as_save_IFS
|
---|
| 2735 | test -z "$as_dir" && as_dir=.
|
---|
| 2736 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2737 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2738 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 2739 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2740 | break 2
|
---|
| 2741 | fi
|
---|
| 2742 | done
|
---|
| 2743 | done
|
---|
| 2744 |
|
---|
[687] | 2745 | fi
|
---|
| 2746 | fi
|
---|
[8756] | 2747 | AWK=$ac_cv_prog_AWK
|
---|
[687] | 2748 | if test -n "$AWK"; then
|
---|
[8756] | 2749 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 2750 | echo "${ECHO_T}$AWK" >&6
|
---|
[687] | 2751 | else
|
---|
[8756] | 2752 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2753 | echo "${ECHO_T}no" >&6
|
---|
[687] | 2754 | fi
|
---|
| 2755 |
|
---|
[8756] | 2756 | test -n "$AWK" && break
|
---|
[687] | 2757 | done
|
---|
| 2758 |
|
---|
| 2759 | for ac_prog in 'bison -y' byacc
|
---|
| 2760 | do
|
---|
[8756] | 2761 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2762 | set dummy $ac_prog; ac_word=$2
|
---|
[8756] | 2763 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2764 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2765 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 2766 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2767 | else
|
---|
| 2768 | if test -n "$YACC"; then
|
---|
| 2769 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 2770 | else
|
---|
[8756] | 2771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2772 | for as_dir in $PATH
|
---|
| 2773 | do
|
---|
| 2774 | IFS=$as_save_IFS
|
---|
| 2775 | test -z "$as_dir" && as_dir=.
|
---|
| 2776 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2777 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2778 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 2779 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2780 | break 2
|
---|
| 2781 | fi
|
---|
| 2782 | done
|
---|
| 2783 | done
|
---|
| 2784 |
|
---|
[687] | 2785 | fi
|
---|
| 2786 | fi
|
---|
[8756] | 2787 | YACC=$ac_cv_prog_YACC
|
---|
[687] | 2788 | if test -n "$YACC"; then
|
---|
[8756] | 2789 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 2790 | echo "${ECHO_T}$YACC" >&6
|
---|
[687] | 2791 | else
|
---|
[8756] | 2792 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2793 | echo "${ECHO_T}no" >&6
|
---|
[687] | 2794 | fi
|
---|
| 2795 |
|
---|
[8756] | 2796 | test -n "$YACC" && break
|
---|
[687] | 2797 | done
|
---|
| 2798 | test -n "$YACC" || YACC="yacc"
|
---|
| 2799 |
|
---|
[703] | 2800 | ac_aux_dir=
|
---|
| 2801 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2802 | if test -f $ac_dir/install-sh; then
|
---|
| 2803 | ac_aux_dir=$ac_dir
|
---|
| 2804 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2805 | break
|
---|
| 2806 | elif test -f $ac_dir/install.sh; then
|
---|
| 2807 | ac_aux_dir=$ac_dir
|
---|
| 2808 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2809 | break
|
---|
[8756] | 2810 | elif test -f $ac_dir/shtool; then
|
---|
| 2811 | ac_aux_dir=$ac_dir
|
---|
| 2812 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2813 | break
|
---|
[703] | 2814 | fi
|
---|
| 2815 | done
|
---|
| 2816 | if test -z "$ac_aux_dir"; then
|
---|
[8756] | 2817 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
| 2818 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 2819 | { (exit 1); exit 1; }; }
|
---|
[703] | 2820 | fi
|
---|
[8756] | 2821 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2822 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2823 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[703] | 2824 |
|
---|
[8756] | 2825 | # Make sure we can run config.sub.
|
---|
| 2826 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
| 2827 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
| 2828 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
| 2829 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2830 |
|
---|
[8756] | 2831 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 2832 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
| 2833 | if test "${ac_cv_build+set}" = set; then
|
---|
| 2834 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2835 | else
|
---|
| 2836 | ac_cv_build_alias=$build_alias
|
---|
| 2837 | test -z "$ac_cv_build_alias" &&
|
---|
| 2838 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 2839 | test -z "$ac_cv_build_alias" &&
|
---|
| 2840 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 2841 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 2842 | { (exit 1); exit 1; }; }
|
---|
| 2843 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
| 2844 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 2845 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
| 2846 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2847 |
|
---|
| 2848 | fi
|
---|
[8756] | 2849 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 2850 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
| 2851 | build=$ac_cv_build
|
---|
| 2852 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2853 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2854 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[2279] | 2855 |
|
---|
| 2856 |
|
---|
[8756] | 2857 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 2858 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
| 2859 | if test "${ac_cv_host+set}" = set; then
|
---|
| 2860 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2861 | else
|
---|
| 2862 | ac_cv_host_alias=$host_alias
|
---|
| 2863 | test -z "$ac_cv_host_alias" &&
|
---|
| 2864 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 2865 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
| 2866 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
| 2867 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
| 2868 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2869 |
|
---|
[8756] | 2870 | fi
|
---|
| 2871 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 2872 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
| 2873 | host=$ac_cv_host
|
---|
| 2874 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2875 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2876 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 2877 |
|
---|
| 2878 |
|
---|
[8756] | 2879 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 2880 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
| 2881 | if test "${ac_cv_target+set}" = set; then
|
---|
| 2882 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2883 | else
|
---|
| 2884 | ac_cv_target_alias=$target_alias
|
---|
| 2885 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 2886 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 2887 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
| 2888 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
| 2889 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
| 2890 | { (exit 1); exit 1; }; }
|
---|
[8200] | 2891 |
|
---|
[8756] | 2892 | fi
|
---|
| 2893 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 2894 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
| 2895 | target=$ac_cv_target
|
---|
| 2896 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2897 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2898 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 2899 |
|
---|
| 2900 |
|
---|
[8756] | 2901 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 2902 | # will get canonicalized.
|
---|
| 2903 | test -n "$target_alias" &&
|
---|
[2279] | 2904 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 2905 | NONENONEs,x,x, &&
|
---|
| 2906 | program_prefix=${target_alias}-
|
---|
[703] | 2907 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2908 | # so one script is as good as another. But avoid the broken or
|
---|
| 2909 | # incompatible versions:
|
---|
| 2910 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2911 | # SunOS /usr/etc/install
|
---|
| 2912 | # IRIX /sbin/install
|
---|
| 2913 | # AIX /bin/install
|
---|
[8756] | 2914 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[703] | 2915 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2916 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2917 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[8756] | 2918 | # OS/2's system install, which has a completely different semantic
|
---|
[703] | 2919 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[8756] | 2920 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 2921 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[703] | 2922 | if test -z "$INSTALL"; then
|
---|
[8756] | 2923 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2924 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[703] | 2925 | else
|
---|
[8756] | 2926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2927 | for as_dir in $PATH
|
---|
| 2928 | do
|
---|
| 2929 | IFS=$as_save_IFS
|
---|
| 2930 | test -z "$as_dir" && as_dir=.
|
---|
| 2931 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 2932 | case $as_dir/ in
|
---|
| 2933 | ./ | .// | /cC/* | \
|
---|
| 2934 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 2935 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 2936 | /usr/ucb/* ) ;;
|
---|
| 2937 | *)
|
---|
| 2938 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 2939 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 2940 | # by default.
|
---|
| 2941 | for ac_prog in ginstall scoinst install; do
|
---|
| 2942 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2943 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[703] | 2944 | if test $ac_prog = install &&
|
---|
[8756] | 2945 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[703] | 2946 | # AIX install. It has an incompatible calling convention.
|
---|
| 2947 | :
|
---|
[8756] | 2948 | elif test $ac_prog = install &&
|
---|
| 2949 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 2950 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 2951 | :
|
---|
[703] | 2952 | else
|
---|
[8756] | 2953 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 2954 | break 3
|
---|
[703] | 2955 | fi
|
---|
| 2956 | fi
|
---|
| 2957 | done
|
---|
[8756] | 2958 | done
|
---|
| 2959 | ;;
|
---|
| 2960 | esac
|
---|
| 2961 | done
|
---|
[703] | 2962 |
|
---|
[8756] | 2963 |
|
---|
[703] | 2964 | fi
|
---|
| 2965 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8756] | 2966 | INSTALL=$ac_cv_path_install
|
---|
[703] | 2967 | else
|
---|
| 2968 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 2969 | # path for INSTALL within a source directory, because that will
|
---|
| 2970 | # break other packages using the cache if that directory is
|
---|
| 2971 | # removed, or if the path is relative.
|
---|
[8756] | 2972 | INSTALL=$ac_install_sh
|
---|
[703] | 2973 | fi
|
---|
| 2974 | fi
|
---|
[8756] | 2975 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 2976 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[703] | 2977 |
|
---|
| 2978 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 2979 | # It thinks the first close brace ends the variable substitution.
|
---|
| 2980 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 2981 |
|
---|
[8756] | 2982 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[703] | 2983 |
|
---|
| 2984 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 2985 |
|
---|
[8756] | 2986 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 2987 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
| 2988 | LN_S=$as_ln_s
|
---|
| 2989 | if test "$LN_S" = "ln -s"; then
|
---|
| 2990 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 2991 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 2992 | else
|
---|
[8756] | 2993 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 2994 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[562] | 2995 | fi
|
---|
| 2996 |
|
---|
[8756] | 2997 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 2998 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 2999 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
| 3000 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 3001 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3002 | else
|
---|
[8756] | 3003 | cat >conftest.make <<\_ACEOF
|
---|
[562] | 3004 | all:
|
---|
[8756] | 3005 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
| 3006 | _ACEOF
|
---|
[562] | 3007 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[8756] | 3008 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
[562] | 3009 | if test -n "$ac_maketemp"; then
|
---|
| 3010 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 3011 | else
|
---|
| 3012 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 3013 | fi
|
---|
[8756] | 3014 | rm -f conftest.make
|
---|
[562] | 3015 | fi
|
---|
| 3016 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
[8756] | 3017 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3018 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 3019 | SET_MAKE=
|
---|
| 3020 | else
|
---|
[8756] | 3021 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3022 | echo "${ECHO_T}no" >&6
|
---|
[562] | 3023 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3024 | fi
|
---|
| 3025 |
|
---|
[8756] | 3026 | if test -n "$ac_tool_prefix"; then
|
---|
| 3027 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3028 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
| 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_RANLIB+set}" = set; then
|
---|
| 3032 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3033 | else
|
---|
| 3034 | if test -n "$RANLIB"; then
|
---|
| 3035 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3036 | else
|
---|
[8756] | 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=.
|
---|
| 3042 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3043 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3044 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 3045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3046 | break 2
|
---|
| 3047 | fi
|
---|
| 3048 | done
|
---|
| 3049 | done
|
---|
| 3050 |
|
---|
[562] | 3051 | fi
|
---|
| 3052 | fi
|
---|
[8756] | 3053 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[562] | 3054 | if test -n "$RANLIB"; then
|
---|
[8756] | 3055 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3056 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[562] | 3057 | else
|
---|
[8756] | 3058 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3059 | echo "${ECHO_T}no" >&6
|
---|
[562] | 3060 | fi
|
---|
| 3061 |
|
---|
[8756] | 3062 | fi
|
---|
| 3063 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3064 | ac_ct_RANLIB=$RANLIB
|
---|
| 3065 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3066 | set dummy ranlib; ac_word=$2
|
---|
| 3067 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3069 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3070 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3071 | else
|
---|
| 3072 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3073 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3074 | else
|
---|
| 3075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3076 | for as_dir in $PATH
|
---|
| 3077 | do
|
---|
| 3078 | IFS=$as_save_IFS
|
---|
| 3079 | test -z "$as_dir" && as_dir=.
|
---|
| 3080 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3082 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 3083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3084 | break 2
|
---|
| 3085 | fi
|
---|
| 3086 | done
|
---|
| 3087 | done
|
---|
[562] | 3088 |
|
---|
[8756] | 3089 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
| 3090 | fi
|
---|
| 3091 | fi
|
---|
| 3092 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3093 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3094 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3095 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
| 3096 | else
|
---|
| 3097 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3098 | echo "${ECHO_T}no" >&6
|
---|
| 3099 | fi
|
---|
| 3100 |
|
---|
| 3101 | RANLIB=$ac_ct_RANLIB
|
---|
| 3102 | else
|
---|
| 3103 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3104 | fi
|
---|
| 3105 |
|
---|
| 3106 |
|
---|
[2173] | 3107 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3108 | if test $USE_CORBA = 1; then
|
---|
| 3109 |
|
---|
[2213] | 3110 | if test $MICO_DIR = "default"; then
|
---|
[2173] | 3111 | #do something
|
---|
| 3112 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3113 | else
|
---|
| 3114 | #build the micotest program
|
---|
| 3115 | MICO_INC= ""
|
---|
| 3116 | if test $MICO_DIR != yes; then
|
---|
| 3117 | MICO_INC="-I $MICO_DIR"
|
---|
| 3118 | fi
|
---|
| 3119 | fi
|
---|
| 3120 |
|
---|
| 3121 | #get MICO_VER value
|
---|
| 3122 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3123 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
[2214] | 3124 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
[2173] | 3125 | sh -c "rm micotest"
|
---|
| 3126 | sh -c "rm micotest.o"
|
---|
| 3127 |
|
---|
| 3128 | #do test of MICO_VER
|
---|
| 3129 | if test MICO_VER != 0; then
|
---|
[8756] | 3130 | cat >>confdefs.h <<\_ACEOF
|
---|
[2173] | 3131 | #define MICO_VER 1
|
---|
[8756] | 3132 | _ACEOF
|
---|
[2173] | 3133 |
|
---|
[8200] | 3134 |
|
---|
[2173] | 3135 | fi
|
---|
| 3136 | #end USE_CORBA test
|
---|
| 3137 | fi
|
---|
| 3138 |
|
---|
[8756] | 3139 |
|
---|
| 3140 | ac_ext=c
|
---|
| 3141 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3142 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3143 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3144 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3145 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3146 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[687] | 3147 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3148 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3149 | CPP=
|
---|
| 3150 | fi
|
---|
| 3151 | if test -z "$CPP"; then
|
---|
[8756] | 3152 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3153 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3154 | else
|
---|
[8756] | 3155 | # Double quotes because CPP needs to be expanded
|
---|
| 3156 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3157 | do
|
---|
| 3158 | ac_preproc_ok=false
|
---|
| 3159 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3160 | do
|
---|
| 3161 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3162 | # with a fresh cross-compiler works.
|
---|
| 3163 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3164 | # <limits.h> exists even on freestanding compilers.
|
---|
[687] | 3165 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8756] | 3166 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3167 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3168 | /* confdefs.h. */
|
---|
| 3169 | _ACEOF
|
---|
| 3170 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3171 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3172 | /* end confdefs.h. */
|
---|
| 3173 | #ifdef __STDC__
|
---|
| 3174 | # include <limits.h>
|
---|
| 3175 | #else
|
---|
| 3176 | # include <assert.h>
|
---|
| 3177 | #endif
|
---|
| 3178 | Syntax error
|
---|
| 3179 | _ACEOF
|
---|
| 3180 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3181 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3182 | ac_status=$?
|
---|
| 3183 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3184 | rm -f conftest.er1
|
---|
| 3185 | cat conftest.err >&5
|
---|
| 3186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3187 | (exit $ac_status); } >/dev/null; then
|
---|
| 3188 | if test -s conftest.err; then
|
---|
| 3189 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3190 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3191 | else
|
---|
| 3192 | ac_cpp_err=
|
---|
| 3193 | fi
|
---|
[687] | 3194 | else
|
---|
[8756] | 3195 | ac_cpp_err=yes
|
---|
| 3196 | fi
|
---|
| 3197 | if test -z "$ac_cpp_err"; then
|
---|
[8200] | 3198 | :
|
---|
[687] | 3199 | else
|
---|
[8756] | 3200 | echo "$as_me: failed program was:" >&5
|
---|
| 3201 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3202 |
|
---|
| 3203 | # Broken: fails on valid input.
|
---|
| 3204 | continue
|
---|
| 3205 | fi
|
---|
| 3206 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3207 |
|
---|
| 3208 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3209 | # can be detected and how.
|
---|
| 3210 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3211 | /* confdefs.h. */
|
---|
| 3212 | _ACEOF
|
---|
| 3213 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3214 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3215 | /* end confdefs.h. */
|
---|
| 3216 | #include <ac_nonexistent.h>
|
---|
| 3217 | _ACEOF
|
---|
| 3218 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3219 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3220 | ac_status=$?
|
---|
| 3221 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3222 | rm -f conftest.er1
|
---|
| 3223 | cat conftest.err >&5
|
---|
| 3224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3225 | (exit $ac_status); } >/dev/null; then
|
---|
| 3226 | if test -s conftest.err; then
|
---|
| 3227 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3228 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3229 | else
|
---|
| 3230 | ac_cpp_err=
|
---|
| 3231 | fi
|
---|
| 3232 | else
|
---|
| 3233 | ac_cpp_err=yes
|
---|
| 3234 | fi
|
---|
| 3235 | if test -z "$ac_cpp_err"; then
|
---|
| 3236 | # Broken: success on invalid input.
|
---|
| 3237 | continue
|
---|
| 3238 | else
|
---|
| 3239 | echo "$as_me: failed program was:" >&5
|
---|
| 3240 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3241 |
|
---|
| 3242 | # Passes both tests.
|
---|
| 3243 | ac_preproc_ok=:
|
---|
| 3244 | break
|
---|
| 3245 | fi
|
---|
| 3246 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3247 |
|
---|
| 3248 | done
|
---|
| 3249 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3250 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3251 | if $ac_preproc_ok; then
|
---|
| 3252 | break
|
---|
| 3253 | fi
|
---|
| 3254 |
|
---|
| 3255 | done
|
---|
| 3256 | ac_cv_prog_CPP=$CPP
|
---|
| 3257 |
|
---|
| 3258 | fi
|
---|
| 3259 | CPP=$ac_cv_prog_CPP
|
---|
| 3260 | else
|
---|
| 3261 | ac_cv_prog_CPP=$CPP
|
---|
| 3262 | fi
|
---|
| 3263 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3264 | echo "${ECHO_T}$CPP" >&6
|
---|
| 3265 | ac_preproc_ok=false
|
---|
| 3266 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3267 | do
|
---|
| 3268 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3269 | # with a fresh cross-compiler works.
|
---|
| 3270 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3271 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3272 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3273 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3274 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3275 | /* confdefs.h. */
|
---|
| 3276 | _ACEOF
|
---|
| 3277 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3278 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3279 | /* end confdefs.h. */
|
---|
| 3280 | #ifdef __STDC__
|
---|
| 3281 | # include <limits.h>
|
---|
| 3282 | #else
|
---|
| 3283 | # include <assert.h>
|
---|
| 3284 | #endif
|
---|
| 3285 | Syntax error
|
---|
| 3286 | _ACEOF
|
---|
| 3287 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3288 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3289 | ac_status=$?
|
---|
| 3290 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3291 | rm -f conftest.er1
|
---|
| 3292 | cat conftest.err >&5
|
---|
| 3293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3294 | (exit $ac_status); } >/dev/null; then
|
---|
| 3295 | if test -s conftest.err; then
|
---|
| 3296 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3297 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3298 | else
|
---|
| 3299 | ac_cpp_err=
|
---|
| 3300 | fi
|
---|
| 3301 | else
|
---|
| 3302 | ac_cpp_err=yes
|
---|
| 3303 | fi
|
---|
| 3304 | if test -z "$ac_cpp_err"; then
|
---|
[687] | 3305 | :
|
---|
| 3306 | else
|
---|
[8756] | 3307 | echo "$as_me: failed program was:" >&5
|
---|
| 3308 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3309 |
|
---|
| 3310 | # Broken: fails on valid input.
|
---|
| 3311 | continue
|
---|
[687] | 3312 | fi
|
---|
[8756] | 3313 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3314 |
|
---|
| 3315 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3316 | # can be detected and how.
|
---|
| 3317 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3318 | /* confdefs.h. */
|
---|
| 3319 | _ACEOF
|
---|
| 3320 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3321 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3322 | /* end confdefs.h. */
|
---|
| 3323 | #include <ac_nonexistent.h>
|
---|
| 3324 | _ACEOF
|
---|
| 3325 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3326 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3327 | ac_status=$?
|
---|
| 3328 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3329 | rm -f conftest.er1
|
---|
| 3330 | cat conftest.err >&5
|
---|
| 3331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3332 | (exit $ac_status); } >/dev/null; then
|
---|
| 3333 | if test -s conftest.err; then
|
---|
| 3334 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3335 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3336 | else
|
---|
| 3337 | ac_cpp_err=
|
---|
| 3338 | fi
|
---|
| 3339 | else
|
---|
| 3340 | ac_cpp_err=yes
|
---|
[687] | 3341 | fi
|
---|
[8756] | 3342 | if test -z "$ac_cpp_err"; then
|
---|
| 3343 | # Broken: success on invalid input.
|
---|
| 3344 | continue
|
---|
| 3345 | else
|
---|
| 3346 | echo "$as_me: failed program was:" >&5
|
---|
| 3347 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3348 |
|
---|
| 3349 | # Passes both tests.
|
---|
| 3350 | ac_preproc_ok=:
|
---|
| 3351 | break
|
---|
[687] | 3352 | fi
|
---|
[8756] | 3353 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3354 |
|
---|
| 3355 | done
|
---|
| 3356 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3357 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3358 | if $ac_preproc_ok; then
|
---|
| 3359 | :
|
---|
| 3360 | else
|
---|
| 3361 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3362 | See \`config.log' for more details." >&5
|
---|
| 3363 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3364 | See \`config.log' for more details." >&2;}
|
---|
| 3365 | { (exit 1); exit 1; }; }
|
---|
[8200] | 3366 | fi
|
---|
[8756] | 3367 |
|
---|
| 3368 | ac_ext=c
|
---|
| 3369 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3373 |
|
---|
| 3374 |
|
---|
| 3375 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3376 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3377 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 3378 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3379 | else
|
---|
[8756] | 3380 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3381 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3382 | else ac_cv_prog_egrep='egrep'
|
---|
| 3383 | fi
|
---|
[687] | 3384 | fi
|
---|
[8756] | 3385 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3386 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3387 | EGREP=$ac_cv_prog_egrep
|
---|
[687] | 3388 |
|
---|
[8756] | 3389 |
|
---|
| 3390 |
|
---|
| 3391 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 3392 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 3393 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3394 | /* confdefs.h. */
|
---|
| 3395 | _ACEOF
|
---|
| 3396 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3397 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3398 | /* end confdefs.h. */
|
---|
[687] | 3399 | #ifdef _AIX
|
---|
| 3400 | yes
|
---|
| 3401 | #endif
|
---|
| 3402 |
|
---|
[8756] | 3403 | _ACEOF
|
---|
[687] | 3404 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 3405 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 3406 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3407 | echo "${ECHO_T}yes" >&6
|
---|
| 3408 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3409 | #define _ALL_SOURCE 1
|
---|
[8756] | 3410 | _ACEOF
|
---|
[687] | 3411 |
|
---|
| 3412 | else
|
---|
[8756] | 3413 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3414 | echo "${ECHO_T}no" >&6
|
---|
[687] | 3415 | fi
|
---|
| 3416 | rm -f conftest*
|
---|
| 3417 |
|
---|
[8200] | 3418 |
|
---|
[8756] | 3419 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3420 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 3421 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3422 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3423 | else
|
---|
| 3424 | ac_func_search_save_LIBS=$LIBS
|
---|
| 3425 | ac_cv_search_strerror=no
|
---|
| 3426 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3427 | /* confdefs.h. */
|
---|
| 3428 | _ACEOF
|
---|
| 3429 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3430 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3431 | /* end confdefs.h. */
|
---|
[687] | 3432 |
|
---|
[8756] | 3433 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3434 | #ifdef __cplusplus
|
---|
| 3435 | extern "C"
|
---|
| 3436 | #endif
|
---|
| 3437 | /* We use char because int might match the return type of a gcc2
|
---|
| 3438 | builtin and then its argument prototype would still apply. */
|
---|
| 3439 | char strerror ();
|
---|
| 3440 | int
|
---|
| 3441 | main ()
|
---|
| 3442 | {
|
---|
| 3443 | strerror ();
|
---|
| 3444 | ;
|
---|
| 3445 | return 0;
|
---|
| 3446 | }
|
---|
| 3447 | _ACEOF
|
---|
| 3448 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3450 | (eval $ac_link) 2>conftest.er1
|
---|
| 3451 | ac_status=$?
|
---|
| 3452 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3453 | rm -f conftest.er1
|
---|
| 3454 | cat conftest.err >&5
|
---|
| 3455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3456 | (exit $ac_status); } &&
|
---|
| 3457 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3458 | || test ! -s conftest.err'
|
---|
| 3459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3460 | (eval $ac_try) 2>&5
|
---|
| 3461 | ac_status=$?
|
---|
| 3462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3463 | (exit $ac_status); }; } &&
|
---|
| 3464 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3466 | (eval $ac_try) 2>&5
|
---|
| 3467 | ac_status=$?
|
---|
| 3468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3469 | (exit $ac_status); }; }; then
|
---|
| 3470 | ac_cv_search_strerror="none required"
|
---|
[687] | 3471 | else
|
---|
[8756] | 3472 | echo "$as_me: failed program was:" >&5
|
---|
| 3473 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3474 |
|
---|
[687] | 3475 | fi
|
---|
[8756] | 3476 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3477 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3478 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3479 | for ac_lib in cposix; do
|
---|
| 3480 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3481 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3482 | /* confdefs.h. */
|
---|
| 3483 | _ACEOF
|
---|
| 3484 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3485 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3486 | /* end confdefs.h. */
|
---|
[687] | 3487 |
|
---|
[8756] | 3488 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3489 | #ifdef __cplusplus
|
---|
| 3490 | extern "C"
|
---|
| 3491 | #endif
|
---|
| 3492 | /* We use char because int might match the return type of a gcc2
|
---|
| 3493 | builtin and then its argument prototype would still apply. */
|
---|
| 3494 | char strerror ();
|
---|
| 3495 | int
|
---|
| 3496 | main ()
|
---|
| 3497 | {
|
---|
| 3498 | strerror ();
|
---|
| 3499 | ;
|
---|
| 3500 | return 0;
|
---|
| 3501 | }
|
---|
| 3502 | _ACEOF
|
---|
| 3503 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3505 | (eval $ac_link) 2>conftest.er1
|
---|
| 3506 | ac_status=$?
|
---|
| 3507 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3508 | rm -f conftest.er1
|
---|
| 3509 | cat conftest.err >&5
|
---|
| 3510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3511 | (exit $ac_status); } &&
|
---|
| 3512 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3513 | || test ! -s conftest.err'
|
---|
| 3514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3515 | (eval $ac_try) 2>&5
|
---|
| 3516 | ac_status=$?
|
---|
| 3517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3518 | (exit $ac_status); }; } &&
|
---|
| 3519 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3521 | (eval $ac_try) 2>&5
|
---|
| 3522 | ac_status=$?
|
---|
| 3523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3524 | (exit $ac_status); }; }; then
|
---|
| 3525 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3526 | break
|
---|
[687] | 3527 | else
|
---|
[8756] | 3528 | echo "$as_me: failed program was:" >&5
|
---|
| 3529 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3530 |
|
---|
| 3531 | fi
|
---|
| 3532 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3533 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3534 | done
|
---|
| 3535 | fi
|
---|
| 3536 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3537 | fi
|
---|
| 3538 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3539 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3540 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3541 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
| 3542 |
|
---|
| 3543 | fi
|
---|
| 3544 |
|
---|
| 3545 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3546 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 3547 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3548 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3549 | else
|
---|
[8756] | 3550 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3551 | /* confdefs.h. */
|
---|
| 3552 | _ACEOF
|
---|
| 3553 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3554 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3555 | /* end confdefs.h. */
|
---|
| 3556 | #include <stdlib.h>
|
---|
| 3557 | #include <stdarg.h>
|
---|
| 3558 | #include <string.h>
|
---|
| 3559 | #include <float.h>
|
---|
| 3560 |
|
---|
| 3561 | int
|
---|
| 3562 | main ()
|
---|
| 3563 | {
|
---|
| 3564 |
|
---|
| 3565 | ;
|
---|
| 3566 | return 0;
|
---|
| 3567 | }
|
---|
| 3568 | _ACEOF
|
---|
| 3569 | rm -f conftest.$ac_objext
|
---|
| 3570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3571 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3572 | ac_status=$?
|
---|
| 3573 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3574 | rm -f conftest.er1
|
---|
| 3575 | cat conftest.err >&5
|
---|
| 3576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3577 | (exit $ac_status); } &&
|
---|
| 3578 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3579 | || test ! -s conftest.err'
|
---|
| 3580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3581 | (eval $ac_try) 2>&5
|
---|
| 3582 | ac_status=$?
|
---|
| 3583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3584 | (exit $ac_status); }; } &&
|
---|
| 3585 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3587 | (eval $ac_try) 2>&5
|
---|
| 3588 | ac_status=$?
|
---|
| 3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3590 | (exit $ac_status); }; }; then
|
---|
| 3591 | ac_cv_header_stdc=yes
|
---|
| 3592 | else
|
---|
| 3593 | echo "$as_me: failed program was:" >&5
|
---|
| 3594 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3595 |
|
---|
| 3596 | ac_cv_header_stdc=no
|
---|
[687] | 3597 | fi
|
---|
[8756] | 3598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3599 |
|
---|
| 3600 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3601 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3602 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3603 | /* confdefs.h. */
|
---|
| 3604 | _ACEOF
|
---|
| 3605 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3606 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3607 | /* end confdefs.h. */
|
---|
| 3608 | #include <string.h>
|
---|
| 3609 |
|
---|
| 3610 | _ACEOF
|
---|
| 3611 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3612 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3613 | :
|
---|
| 3614 | else
|
---|
| 3615 | ac_cv_header_stdc=no
|
---|
| 3616 | fi
|
---|
[8200] | 3617 | rm -f conftest*
|
---|
[8756] | 3618 |
|
---|
[687] | 3619 | fi
|
---|
[8756] | 3620 |
|
---|
| 3621 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3622 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3623 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3624 | /* confdefs.h. */
|
---|
| 3625 | _ACEOF
|
---|
| 3626 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3627 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3628 | /* end confdefs.h. */
|
---|
| 3629 | #include <stdlib.h>
|
---|
| 3630 |
|
---|
| 3631 | _ACEOF
|
---|
| 3632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3633 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3634 | :
|
---|
| 3635 | else
|
---|
| 3636 | ac_cv_header_stdc=no
|
---|
| 3637 | fi
|
---|
| 3638 | rm -f conftest*
|
---|
| 3639 |
|
---|
| 3640 | fi
|
---|
| 3641 |
|
---|
| 3642 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3643 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3644 | if test "$cross_compiling" = yes; then
|
---|
| 3645 | :
|
---|
| 3646 | else
|
---|
| 3647 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3648 | /* confdefs.h. */
|
---|
| 3649 | _ACEOF
|
---|
| 3650 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3651 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3652 | /* end confdefs.h. */
|
---|
| 3653 | #include <ctype.h>
|
---|
| 3654 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3655 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3656 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3657 | #else
|
---|
| 3658 | # define ISLOWER(c) \
|
---|
| 3659 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3660 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3661 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3662 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3663 | #endif
|
---|
| 3664 |
|
---|
| 3665 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3666 | int
|
---|
| 3667 | main ()
|
---|
| 3668 | {
|
---|
| 3669 | int i;
|
---|
| 3670 | for (i = 0; i < 256; i++)
|
---|
| 3671 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3672 | || toupper (i) != TOUPPER (i))
|
---|
| 3673 | exit(2);
|
---|
| 3674 | exit (0);
|
---|
| 3675 | }
|
---|
| 3676 | _ACEOF
|
---|
| 3677 | rm -f conftest$ac_exeext
|
---|
| 3678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3679 | (eval $ac_link) 2>&5
|
---|
| 3680 | ac_status=$?
|
---|
| 3681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3682 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3684 | (eval $ac_try) 2>&5
|
---|
| 3685 | ac_status=$?
|
---|
| 3686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3687 | (exit $ac_status); }; }; then
|
---|
| 3688 | :
|
---|
| 3689 | else
|
---|
| 3690 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3691 | echo "$as_me: failed program was:" >&5
|
---|
| 3692 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3693 |
|
---|
| 3694 | ( exit $ac_status )
|
---|
| 3695 | ac_cv_header_stdc=no
|
---|
| 3696 | fi
|
---|
| 3697 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3698 | fi
|
---|
| 3699 | fi
|
---|
| 3700 | fi
|
---|
| 3701 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3702 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 3703 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3704 |
|
---|
| 3705 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3706 | #define STDC_HEADERS 1
|
---|
| 3707 | _ACEOF
|
---|
| 3708 |
|
---|
| 3709 | fi
|
---|
| 3710 |
|
---|
| 3711 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3712 |
|
---|
| 3713 |
|
---|
| 3714 |
|
---|
| 3715 |
|
---|
| 3716 |
|
---|
| 3717 |
|
---|
| 3718 |
|
---|
| 3719 |
|
---|
| 3720 |
|
---|
| 3721 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3722 | inttypes.h stdint.h unistd.h
|
---|
| 3723 | do
|
---|
| 3724 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3725 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 3728 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3729 | else
|
---|
| 3730 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3731 | /* confdefs.h. */
|
---|
| 3732 | _ACEOF
|
---|
| 3733 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3734 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3735 | /* end confdefs.h. */
|
---|
| 3736 | $ac_includes_default
|
---|
| 3737 |
|
---|
| 3738 | #include <$ac_header>
|
---|
| 3739 | _ACEOF
|
---|
| 3740 | rm -f conftest.$ac_objext
|
---|
| 3741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3742 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3743 | ac_status=$?
|
---|
| 3744 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3745 | rm -f conftest.er1
|
---|
| 3746 | cat conftest.err >&5
|
---|
| 3747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3748 | (exit $ac_status); } &&
|
---|
| 3749 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3750 | || test ! -s conftest.err'
|
---|
| 3751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3752 | (eval $ac_try) 2>&5
|
---|
| 3753 | ac_status=$?
|
---|
| 3754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3755 | (exit $ac_status); }; } &&
|
---|
| 3756 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3758 | (eval $ac_try) 2>&5
|
---|
| 3759 | ac_status=$?
|
---|
| 3760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3761 | (exit $ac_status); }; }; then
|
---|
| 3762 | eval "$as_ac_Header=yes"
|
---|
| 3763 | else
|
---|
| 3764 | echo "$as_me: failed program was:" >&5
|
---|
| 3765 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3766 |
|
---|
| 3767 | eval "$as_ac_Header=no"
|
---|
| 3768 | fi
|
---|
| 3769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3770 | fi
|
---|
| 3771 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3772 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 3773 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3774 | cat >>confdefs.h <<_ACEOF
|
---|
| 3775 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3776 | _ACEOF
|
---|
| 3777 |
|
---|
| 3778 | fi
|
---|
| 3779 |
|
---|
| 3780 | done
|
---|
| 3781 |
|
---|
| 3782 |
|
---|
| 3783 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3784 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3785 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3786 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3787 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3788 | fi
|
---|
| 3789 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3790 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
| 3791 | else
|
---|
| 3792 | # Is the header compilable?
|
---|
| 3793 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3794 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 3795 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3796 | /* confdefs.h. */
|
---|
| 3797 | _ACEOF
|
---|
| 3798 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3799 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3800 | /* end confdefs.h. */
|
---|
| 3801 | $ac_includes_default
|
---|
| 3802 | #include <minix/config.h>
|
---|
| 3803 | _ACEOF
|
---|
| 3804 | rm -f conftest.$ac_objext
|
---|
| 3805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3806 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3807 | ac_status=$?
|
---|
| 3808 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3809 | rm -f conftest.er1
|
---|
| 3810 | cat conftest.err >&5
|
---|
| 3811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3812 | (exit $ac_status); } &&
|
---|
| 3813 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3814 | || test ! -s conftest.err'
|
---|
| 3815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3816 | (eval $ac_try) 2>&5
|
---|
| 3817 | ac_status=$?
|
---|
| 3818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3819 | (exit $ac_status); }; } &&
|
---|
| 3820 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3822 | (eval $ac_try) 2>&5
|
---|
| 3823 | ac_status=$?
|
---|
| 3824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3825 | (exit $ac_status); }; }; then
|
---|
| 3826 | ac_header_compiler=yes
|
---|
| 3827 | else
|
---|
| 3828 | echo "$as_me: failed program was:" >&5
|
---|
| 3829 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3830 |
|
---|
| 3831 | ac_header_compiler=no
|
---|
| 3832 | fi
|
---|
| 3833 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3834 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3835 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 3836 |
|
---|
| 3837 | # Is the header present?
|
---|
| 3838 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3839 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 3840 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3841 | /* confdefs.h. */
|
---|
| 3842 | _ACEOF
|
---|
| 3843 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3844 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3845 | /* end confdefs.h. */
|
---|
| 3846 | #include <minix/config.h>
|
---|
| 3847 | _ACEOF
|
---|
| 3848 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3849 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3850 | ac_status=$?
|
---|
| 3851 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3852 | rm -f conftest.er1
|
---|
| 3853 | cat conftest.err >&5
|
---|
| 3854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3855 | (exit $ac_status); } >/dev/null; then
|
---|
| 3856 | if test -s conftest.err; then
|
---|
| 3857 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3858 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3859 | else
|
---|
| 3860 | ac_cpp_err=
|
---|
| 3861 | fi
|
---|
| 3862 | else
|
---|
| 3863 | ac_cpp_err=yes
|
---|
| 3864 | fi
|
---|
| 3865 | if test -z "$ac_cpp_err"; then
|
---|
| 3866 | ac_header_preproc=yes
|
---|
| 3867 | else
|
---|
| 3868 | echo "$as_me: failed program was:" >&5
|
---|
| 3869 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3870 |
|
---|
| 3871 | ac_header_preproc=no
|
---|
| 3872 | fi
|
---|
| 3873 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3874 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 3875 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 3876 |
|
---|
| 3877 | # So? What about this header?
|
---|
| 3878 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 3879 | yes:no: )
|
---|
| 3880 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 3881 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 3882 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 3883 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 3884 | ac_header_preproc=yes
|
---|
| 3885 | ;;
|
---|
| 3886 | no:yes:* )
|
---|
| 3887 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 3888 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 3889 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 3890 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 3891 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 3892 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 3893 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 3894 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 3895 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 3896 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 3897 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 3898 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 3899 | (
|
---|
| 3900 | cat <<\_ASBOX
|
---|
| 3901 | ## ------------------------------------------ ##
|
---|
| 3902 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 3903 | ## ------------------------------------------ ##
|
---|
| 3904 | _ASBOX
|
---|
| 3905 | ) |
|
---|
| 3906 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 3907 | ;;
|
---|
| 3908 | esac
|
---|
| 3909 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3910 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3911 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3912 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3913 | else
|
---|
| 3914 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 3915 | fi
|
---|
| 3916 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3917 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
| 3918 |
|
---|
| 3919 | fi
|
---|
| 3920 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
[687] | 3921 | MINIX=yes
|
---|
| 3922 | else
|
---|
[8756] | 3923 | MINIX=
|
---|
[687] | 3924 | fi
|
---|
| 3925 |
|
---|
[8756] | 3926 |
|
---|
[687] | 3927 | if test "$MINIX" = yes; then
|
---|
[8756] | 3928 |
|
---|
| 3929 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3930 | #define _POSIX_SOURCE 1
|
---|
[8756] | 3931 | _ACEOF
|
---|
[687] | 3932 |
|
---|
[8756] | 3933 |
|
---|
| 3934 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3935 | #define _POSIX_1_SOURCE 2
|
---|
[8756] | 3936 | _ACEOF
|
---|
[687] | 3937 |
|
---|
[8756] | 3938 |
|
---|
| 3939 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3940 | #define _MINIX 1
|
---|
[8756] | 3941 | _ACEOF
|
---|
[687] | 3942 |
|
---|
| 3943 | fi
|
---|
| 3944 |
|
---|
[8756] | 3945 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 3946 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 3947 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 3948 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 3949 | else
|
---|
| 3950 | ac_cv_prog_cc_stdc=no
|
---|
| 3951 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 3952 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 3953 | # breaks some systems' header files.
|
---|
| 3954 | # AIX -qlanglvl=ansi
|
---|
| 3955 | # Ultrix and OSF/1 -std1
|
---|
| 3956 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 3957 | # SVR4 -Xc
|
---|
| 3958 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 3959 | do
|
---|
| 3960 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[8756] | 3961 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3962 | /* confdefs.h. */
|
---|
| 3963 | _ACEOF
|
---|
| 3964 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3965 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3966 | /* end confdefs.h. */
|
---|
[700] | 3967 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 3968 | choke me
|
---|
[8756] | 3969 | #endif
|
---|
[700] | 3970 |
|
---|
[8756] | 3971 | int
|
---|
| 3972 | main ()
|
---|
| 3973 | {
|
---|
[700] | 3974 | int test (int i, double x);
|
---|
| 3975 | struct s1 {int (*f) (int a);};
|
---|
| 3976 | struct s2 {int (*f) (double a);};
|
---|
[8756] | 3977 | ;
|
---|
| 3978 | return 0;
|
---|
| 3979 | }
|
---|
| 3980 | _ACEOF
|
---|
| 3981 | rm -f conftest.$ac_objext
|
---|
| 3982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3983 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3984 | ac_status=$?
|
---|
| 3985 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3986 | rm -f conftest.er1
|
---|
| 3987 | cat conftest.err >&5
|
---|
| 3988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3989 | (exit $ac_status); } &&
|
---|
| 3990 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3991 | || test ! -s conftest.err'
|
---|
| 3992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3993 | (eval $ac_try) 2>&5
|
---|
| 3994 | ac_status=$?
|
---|
| 3995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3996 | (exit $ac_status); }; } &&
|
---|
| 3997 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3999 | (eval $ac_try) 2>&5
|
---|
| 4000 | ac_status=$?
|
---|
| 4001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4002 | (exit $ac_status); }; }; then
|
---|
[700] | 4003 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 4004 | else
|
---|
[8756] | 4005 | echo "$as_me: failed program was:" >&5
|
---|
| 4006 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4007 |
|
---|
[700] | 4008 | fi
|
---|
[8756] | 4009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[700] | 4010 | done
|
---|
| 4011 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4012 |
|
---|
| 4013 | fi
|
---|
| 4014 |
|
---|
[8756] | 4015 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4016 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[700] | 4017 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4018 | x|xno) ;;
|
---|
| 4019 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4020 | esac
|
---|
| 4021 |
|
---|
[8200] | 4022 |
|
---|
[8756] | 4023 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 4024 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[700] | 4025 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[8756] | 4026 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4027 | echo "${ECHO_T}yes" >&6
|
---|
| 4028 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 4029 | #define PROTOTYPES 1
|
---|
[8756] | 4030 | _ACEOF
|
---|
[700] | 4031 |
|
---|
| 4032 | U= ANSI2KNR=
|
---|
| 4033 | else
|
---|
[8756] | 4034 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4035 | echo "${ECHO_T}no" >&6
|
---|
[700] | 4036 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4037 | fi
|
---|
| 4038 |
|
---|
[8756] | 4039 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4040 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 4041 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 4042 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4043 | else
|
---|
[8756] | 4044 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4045 | /* confdefs.h. */
|
---|
| 4046 | _ACEOF
|
---|
| 4047 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4048 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4049 | /* end confdefs.h. */
|
---|
[8200] | 4050 |
|
---|
[8756] | 4051 | int
|
---|
| 4052 | main ()
|
---|
| 4053 | {
|
---|
| 4054 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4055 | #ifndef __cplusplus
|
---|
| 4056 | /* Ultrix mips cc rejects this. */
|
---|
| 4057 | typedef int charset[2];
|
---|
| 4058 | const charset x;
|
---|
| 4059 | /* SunOS 4.1.1 cc rejects this. */
|
---|
| 4060 | char const *const *ccp;
|
---|
| 4061 | char **p;
|
---|
| 4062 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4063 | struct point {int x, y;};
|
---|
| 4064 | static struct point const zero = {0,0};
|
---|
| 4065 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4066 | It does not let you subtract one const X* pointer from another in
|
---|
| 4067 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4068 | expression */
|
---|
| 4069 | const char *g = "string";
|
---|
| 4070 | ccp = &g + (g ? g-g : 0);
|
---|
| 4071 | /* HPUX 7.0 cc rejects these. */
|
---|
| 4072 | ++ccp;
|
---|
| 4073 | p = (char**) ccp;
|
---|
| 4074 | ccp = (char const *const *) p;
|
---|
| 4075 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4076 | char *t;
|
---|
| 4077 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
[8200] | 4078 |
|
---|
[8756] | 4079 | *t++ = 0;
|
---|
| 4080 | }
|
---|
| 4081 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4082 | int x[] = {25, 17};
|
---|
| 4083 | const int *foo = &x[0];
|
---|
| 4084 | ++foo;
|
---|
| 4085 | }
|
---|
| 4086 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4087 | typedef const int *iptr;
|
---|
| 4088 | iptr p = 0;
|
---|
| 4089 | ++p;
|
---|
| 4090 | }
|
---|
| 4091 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4092 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4093 | struct s { int j; const int *ap[3]; };
|
---|
| 4094 | struct s *b; b->j = 5;
|
---|
| 4095 | }
|
---|
| 4096 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4097 | const int foo = 10;
|
---|
| 4098 | }
|
---|
| 4099 | #endif
|
---|
[8200] | 4100 |
|
---|
[8756] | 4101 | ;
|
---|
| 4102 | return 0;
|
---|
[3631] | 4103 | }
|
---|
[8756] | 4104 | _ACEOF
|
---|
| 4105 | rm -f conftest.$ac_objext
|
---|
| 4106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4107 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4108 | ac_status=$?
|
---|
| 4109 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4110 | rm -f conftest.er1
|
---|
| 4111 | cat conftest.err >&5
|
---|
| 4112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4113 | (exit $ac_status); } &&
|
---|
| 4114 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4115 | || test ! -s conftest.err'
|
---|
| 4116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4117 | (eval $ac_try) 2>&5
|
---|
| 4118 | ac_status=$?
|
---|
| 4119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4120 | (exit $ac_status); }; } &&
|
---|
| 4121 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4123 | (eval $ac_try) 2>&5
|
---|
| 4124 | ac_status=$?
|
---|
| 4125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4126 | (exit $ac_status); }; }; then
|
---|
[687] | 4127 | ac_cv_c_const=yes
|
---|
| 4128 | else
|
---|
[8756] | 4129 | echo "$as_me: failed program was:" >&5
|
---|
| 4130 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4131 |
|
---|
| 4132 | ac_cv_c_const=no
|
---|
[687] | 4133 | fi
|
---|
[8756] | 4134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4135 | fi
|
---|
[8756] | 4136 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 4137 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
[3631] | 4138 | if test $ac_cv_c_const = no; then
|
---|
[687] | 4139 |
|
---|
[8756] | 4140 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4141 | #define const
|
---|
| 4142 | _ACEOF
|
---|
| 4143 |
|
---|
[687] | 4144 | fi
|
---|
| 4145 |
|
---|
[8756] | 4146 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 4147 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 4148 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4149 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4150 | else
|
---|
[8756] | 4151 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4152 | /* confdefs.h. */
|
---|
| 4153 | _ACEOF
|
---|
| 4154 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4155 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4156 | /* end confdefs.h. */
|
---|
| 4157 | $ac_includes_default
|
---|
| 4158 | int
|
---|
| 4159 | main ()
|
---|
| 4160 | {
|
---|
| 4161 | if ((off_t *) 0)
|
---|
| 4162 | return 0;
|
---|
| 4163 | if (sizeof (off_t))
|
---|
| 4164 | return 0;
|
---|
| 4165 | ;
|
---|
| 4166 | return 0;
|
---|
| 4167 | }
|
---|
| 4168 | _ACEOF
|
---|
| 4169 | rm -f conftest.$ac_objext
|
---|
| 4170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4171 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4172 | ac_status=$?
|
---|
| 4173 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4174 | rm -f conftest.er1
|
---|
| 4175 | cat conftest.err >&5
|
---|
| 4176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4177 | (exit $ac_status); } &&
|
---|
| 4178 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4179 | || test ! -s conftest.err'
|
---|
| 4180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4181 | (eval $ac_try) 2>&5
|
---|
| 4182 | ac_status=$?
|
---|
| 4183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4184 | (exit $ac_status); }; } &&
|
---|
| 4185 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4187 | (eval $ac_try) 2>&5
|
---|
| 4188 | ac_status=$?
|
---|
| 4189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4190 | (exit $ac_status); }; }; then
|
---|
| 4191 | ac_cv_type_off_t=yes
|
---|
[687] | 4192 | else
|
---|
[8756] | 4193 | echo "$as_me: failed program was:" >&5
|
---|
| 4194 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[687] | 4195 |
|
---|
[8756] | 4196 | ac_cv_type_off_t=no
|
---|
[687] | 4197 | fi
|
---|
[8756] | 4198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4199 | fi
|
---|
[8756] | 4200 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 4201 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4202 | if test $ac_cv_type_off_t = yes; then
|
---|
[687] | 4203 | :
|
---|
| 4204 | else
|
---|
| 4205 |
|
---|
[8756] | 4206 | cat >>confdefs.h <<_ACEOF
|
---|
| 4207 | #define off_t long
|
---|
| 4208 | _ACEOF
|
---|
[687] | 4209 |
|
---|
| 4210 | fi
|
---|
[8200] | 4211 |
|
---|
[8756] | 4212 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 4213 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4214 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4215 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4216 | else
|
---|
[8756] | 4217 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4218 | /* confdefs.h. */
|
---|
| 4219 | _ACEOF
|
---|
| 4220 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4221 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4222 | /* end confdefs.h. */
|
---|
| 4223 | $ac_includes_default
|
---|
| 4224 | int
|
---|
| 4225 | main ()
|
---|
| 4226 | {
|
---|
| 4227 | if ((size_t *) 0)
|
---|
| 4228 | return 0;
|
---|
| 4229 | if (sizeof (size_t))
|
---|
| 4230 | return 0;
|
---|
| 4231 | ;
|
---|
| 4232 | return 0;
|
---|
| 4233 | }
|
---|
| 4234 | _ACEOF
|
---|
| 4235 | rm -f conftest.$ac_objext
|
---|
| 4236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4237 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4238 | ac_status=$?
|
---|
| 4239 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4240 | rm -f conftest.er1
|
---|
| 4241 | cat conftest.err >&5
|
---|
| 4242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4243 | (exit $ac_status); } &&
|
---|
| 4244 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4245 | || test ! -s conftest.err'
|
---|
| 4246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4247 | (eval $ac_try) 2>&5
|
---|
| 4248 | ac_status=$?
|
---|
| 4249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4250 | (exit $ac_status); }; } &&
|
---|
| 4251 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4253 | (eval $ac_try) 2>&5
|
---|
| 4254 | ac_status=$?
|
---|
| 4255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4256 | (exit $ac_status); }; }; then
|
---|
| 4257 | ac_cv_type_size_t=yes
|
---|
[687] | 4258 | else
|
---|
[8756] | 4259 | echo "$as_me: failed program was:" >&5
|
---|
| 4260 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4261 |
|
---|
[8756] | 4262 | ac_cv_type_size_t=no
|
---|
[3631] | 4263 | fi
|
---|
[8756] | 4264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4265 | fi
|
---|
[8756] | 4266 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 4267 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4268 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4269 | :
|
---|
[687] | 4270 | else
|
---|
[8200] | 4271 |
|
---|
[8756] | 4272 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 4273 | #define size_t unsigned
|
---|
[8756] | 4274 | _ACEOF
|
---|
[687] | 4275 |
|
---|
| 4276 | fi
|
---|
| 4277 |
|
---|
[8756] | 4278 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4279 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4280 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4281 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4282 | else
|
---|
[8756] | 4283 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4284 | /* confdefs.h. */
|
---|
| 4285 | _ACEOF
|
---|
| 4286 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4287 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4288 | /* end confdefs.h. */
|
---|
[687] | 4289 | #include <sys/types.h>
|
---|
| 4290 | #include <sys/time.h>
|
---|
| 4291 | #include <time.h>
|
---|
[8756] | 4292 |
|
---|
| 4293 | int
|
---|
| 4294 | main ()
|
---|
| 4295 | {
|
---|
| 4296 | if ((struct tm *) 0)
|
---|
| 4297 | return 0;
|
---|
| 4298 | ;
|
---|
| 4299 | return 0;
|
---|
| 4300 | }
|
---|
| 4301 | _ACEOF
|
---|
| 4302 | rm -f conftest.$ac_objext
|
---|
| 4303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4304 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4305 | ac_status=$?
|
---|
| 4306 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4307 | rm -f conftest.er1
|
---|
| 4308 | cat conftest.err >&5
|
---|
| 4309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4310 | (exit $ac_status); } &&
|
---|
| 4311 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4312 | || test ! -s conftest.err'
|
---|
| 4313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4314 | (eval $ac_try) 2>&5
|
---|
| 4315 | ac_status=$?
|
---|
| 4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4317 | (exit $ac_status); }; } &&
|
---|
| 4318 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4320 | (eval $ac_try) 2>&5
|
---|
| 4321 | ac_status=$?
|
---|
| 4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4323 | (exit $ac_status); }; }; then
|
---|
[687] | 4324 | ac_cv_header_time=yes
|
---|
| 4325 | else
|
---|
[8756] | 4326 | echo "$as_me: failed program was:" >&5
|
---|
| 4327 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4328 |
|
---|
| 4329 | ac_cv_header_time=no
|
---|
[687] | 4330 | fi
|
---|
[8756] | 4331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4332 | fi
|
---|
[8756] | 4333 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 4334 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
| 4335 | if test $ac_cv_header_time = yes; then
|
---|
[8200] | 4336 |
|
---|
[8756] | 4337 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4338 | #define TIME_WITH_SYS_TIME 1
|
---|
[8756] | 4339 | _ACEOF
|
---|
[687] | 4340 |
|
---|
| 4341 | fi
|
---|
| 4342 |
|
---|
[8756] | 4343 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 4344 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 4345 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4346 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4347 | else
|
---|
[8756] | 4348 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4349 | /* confdefs.h. */
|
---|
| 4350 | _ACEOF
|
---|
| 4351 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4352 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4353 | /* end confdefs.h. */
|
---|
[687] | 4354 | #include <sys/types.h>
|
---|
| 4355 | #include <time.h>
|
---|
[8756] | 4356 |
|
---|
| 4357 | int
|
---|
| 4358 | main ()
|
---|
| 4359 | {
|
---|
[687] | 4360 | struct tm *tp; tp->tm_sec;
|
---|
[8756] | 4361 | ;
|
---|
| 4362 | return 0;
|
---|
| 4363 | }
|
---|
| 4364 | _ACEOF
|
---|
| 4365 | rm -f conftest.$ac_objext
|
---|
| 4366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4367 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4368 | ac_status=$?
|
---|
| 4369 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4370 | rm -f conftest.er1
|
---|
| 4371 | cat conftest.err >&5
|
---|
| 4372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4373 | (exit $ac_status); } &&
|
---|
| 4374 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4375 | || test ! -s conftest.err'
|
---|
| 4376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4377 | (eval $ac_try) 2>&5
|
---|
| 4378 | ac_status=$?
|
---|
| 4379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4380 | (exit $ac_status); }; } &&
|
---|
| 4381 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4383 | (eval $ac_try) 2>&5
|
---|
| 4384 | ac_status=$?
|
---|
| 4385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4386 | (exit $ac_status); }; }; then
|
---|
[687] | 4387 | ac_cv_struct_tm=time.h
|
---|
| 4388 | else
|
---|
[8756] | 4389 | echo "$as_me: failed program was:" >&5
|
---|
| 4390 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4391 |
|
---|
| 4392 | ac_cv_struct_tm=sys/time.h
|
---|
[687] | 4393 | fi
|
---|
[8756] | 4394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4395 | fi
|
---|
[8756] | 4396 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 4397 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
| 4398 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8200] | 4399 |
|
---|
[8756] | 4400 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4401 | #define TM_IN_SYS_TIME 1
|
---|
[8756] | 4402 | _ACEOF
|
---|
[687] | 4403 |
|
---|
| 4404 | fi
|
---|
| 4405 |
|
---|
[8200] | 4406 |
|
---|
[687] | 4407 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[8756] | 4408 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4409 | /* confdefs.h. */
|
---|
| 4410 | _ACEOF
|
---|
| 4411 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4412 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4413 | /* end confdefs.h. */
|
---|
[687] | 4414 | #include <stdio.h>
|
---|
| 4415 |
|
---|
[8756] | 4416 | int
|
---|
| 4417 | main ()
|
---|
| 4418 | {
|
---|
| 4419 | FILE *rubbish = popen("yes", "r");
|
---|
| 4420 | ;
|
---|
| 4421 | return 0;
|
---|
| 4422 | }
|
---|
| 4423 | _ACEOF
|
---|
| 4424 | rm -f conftest.$ac_objext
|
---|
| 4425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4426 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4427 | ac_status=$?
|
---|
| 4428 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4429 | rm -f conftest.er1
|
---|
| 4430 | cat conftest.err >&5
|
---|
| 4431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4432 | (exit $ac_status); } &&
|
---|
| 4433 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4434 | || test ! -s conftest.err'
|
---|
| 4435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4436 | (eval $ac_try) 2>&5
|
---|
| 4437 | ac_status=$?
|
---|
| 4438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4439 | (exit $ac_status); }; } &&
|
---|
| 4440 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4442 | (eval $ac_try) 2>&5
|
---|
| 4443 | ac_status=$?
|
---|
| 4444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4445 | (exit $ac_status); }; }; then
|
---|
[687] | 4446 | :
|
---|
| 4447 | else
|
---|
[8756] | 4448 | echo "$as_me: failed program was:" >&5
|
---|
| 4449 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4450 |
|
---|
| 4451 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[687] | 4452 | fi
|
---|
[8756] | 4453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4454 | fi
|
---|
| 4455 |
|
---|
[8200] | 4456 |
|
---|
[8756] | 4457 |
|
---|
| 4458 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 4459 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 4460 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4461 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4462 | else
|
---|
[8756] | 4463 | ac_check_lib_save_LIBS=$LIBS
|
---|
[562] | 4464 | LIBS="-lg $LIBS"
|
---|
[8756] | 4465 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4466 | /* confdefs.h. */
|
---|
| 4467 | _ACEOF
|
---|
| 4468 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4469 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4470 | /* end confdefs.h. */
|
---|
[562] | 4471 |
|
---|
[8756] | 4472 |
|
---|
| 4473 | int
|
---|
| 4474 | main ()
|
---|
| 4475 | {
|
---|
| 4476 | main ();
|
---|
| 4477 | ;
|
---|
| 4478 | return 0;
|
---|
| 4479 | }
|
---|
| 4480 | _ACEOF
|
---|
| 4481 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4483 | (eval $ac_link) 2>conftest.er1
|
---|
| 4484 | ac_status=$?
|
---|
| 4485 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4486 | rm -f conftest.er1
|
---|
| 4487 | cat conftest.err >&5
|
---|
| 4488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4489 | (exit $ac_status); } &&
|
---|
| 4490 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4491 | || test ! -s conftest.err'
|
---|
| 4492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4493 | (eval $ac_try) 2>&5
|
---|
| 4494 | ac_status=$?
|
---|
| 4495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4496 | (exit $ac_status); }; } &&
|
---|
| 4497 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4499 | (eval $ac_try) 2>&5
|
---|
| 4500 | ac_status=$?
|
---|
| 4501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4502 | (exit $ac_status); }; }; then
|
---|
| 4503 | ac_cv_lib_g_main=yes
|
---|
[562] | 4504 | else
|
---|
[8756] | 4505 | echo "$as_me: failed program was:" >&5
|
---|
| 4506 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4507 |
|
---|
[8756] | 4508 | ac_cv_lib_g_main=no
|
---|
[562] | 4509 | fi
|
---|
[8756] | 4510 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4511 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4512 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4513 | fi
|
---|
| 4514 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 4515 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 4516 | if test $ac_cv_lib_g_main = yes; then
|
---|
| 4517 | cat >>confdefs.h <<_ACEOF
|
---|
| 4518 | #define HAVE_LIBG 1
|
---|
| 4519 | _ACEOF
|
---|
[562] | 4520 |
|
---|
| 4521 | LIBS="-lg $LIBS"
|
---|
| 4522 |
|
---|
| 4523 | fi
|
---|
[8756] | 4524 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
[562] | 4525 |
|
---|
| 4526 |
|
---|
[8756] | 4527 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 4528 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 4529 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4530 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4531 | else
|
---|
[8756] | 4532 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4533 | LIBS="-lm $LIBS"
|
---|
| 4534 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4535 | /* confdefs.h. */
|
---|
| 4536 | _ACEOF
|
---|
| 4537 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4538 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4539 | /* end confdefs.h. */
|
---|
[8200] | 4540 |
|
---|
[562] | 4541 |
|
---|
[8756] | 4542 | int
|
---|
| 4543 | main ()
|
---|
| 4544 | {
|
---|
| 4545 | main ();
|
---|
| 4546 | ;
|
---|
| 4547 | return 0;
|
---|
| 4548 | }
|
---|
| 4549 | _ACEOF
|
---|
| 4550 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4552 | (eval $ac_link) 2>conftest.er1
|
---|
| 4553 | ac_status=$?
|
---|
| 4554 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4555 | rm -f conftest.er1
|
---|
| 4556 | cat conftest.err >&5
|
---|
| 4557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4558 | (exit $ac_status); } &&
|
---|
| 4559 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4560 | || test ! -s conftest.err'
|
---|
| 4561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4562 | (eval $ac_try) 2>&5
|
---|
| 4563 | ac_status=$?
|
---|
| 4564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4565 | (exit $ac_status); }; } &&
|
---|
| 4566 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4568 | (eval $ac_try) 2>&5
|
---|
| 4569 | ac_status=$?
|
---|
| 4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4571 | (exit $ac_status); }; }; then
|
---|
| 4572 | ac_cv_lib_m_main=yes
|
---|
[8200] | 4573 | else
|
---|
[8756] | 4574 | echo "$as_me: failed program was:" >&5
|
---|
| 4575 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[562] | 4576 |
|
---|
[8756] | 4577 | ac_cv_lib_m_main=no
|
---|
[562] | 4578 | fi
|
---|
[8756] | 4579 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4580 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4581 | LIBS=$ac_check_lib_save_LIBS
|
---|
[562] | 4582 | fi
|
---|
[8756] | 4583 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 4584 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 4585 | if test $ac_cv_lib_m_main = yes; then
|
---|
| 4586 | cat >>confdefs.h <<_ACEOF
|
---|
| 4587 | #define HAVE_LIBM 1
|
---|
| 4588 | _ACEOF
|
---|
[562] | 4589 |
|
---|
| 4590 | LIBS="-lm $LIBS"
|
---|
| 4591 |
|
---|
| 4592 | fi
|
---|
[8756] | 4593 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
[562] | 4594 |
|
---|
[8756] | 4595 |
|
---|
| 4596 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 4597 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 4598 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4599 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4600 | else
|
---|
[8756] | 4601 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4602 | LIBS="-lcrypt $LIBS"
|
---|
| 4603 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4604 | /* confdefs.h. */
|
---|
| 4605 | _ACEOF
|
---|
| 4606 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4607 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4608 | /* end confdefs.h. */
|
---|
[562] | 4609 |
|
---|
[8756] | 4610 |
|
---|
| 4611 | int
|
---|
| 4612 | main ()
|
---|
| 4613 | {
|
---|
| 4614 | main ();
|
---|
| 4615 | ;
|
---|
| 4616 | return 0;
|
---|
| 4617 | }
|
---|
| 4618 | _ACEOF
|
---|
| 4619 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4621 | (eval $ac_link) 2>conftest.er1
|
---|
| 4622 | ac_status=$?
|
---|
| 4623 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4624 | rm -f conftest.er1
|
---|
| 4625 | cat conftest.err >&5
|
---|
| 4626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4627 | (exit $ac_status); } &&
|
---|
| 4628 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4629 | || test ! -s conftest.err'
|
---|
| 4630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4631 | (eval $ac_try) 2>&5
|
---|
| 4632 | ac_status=$?
|
---|
| 4633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4634 | (exit $ac_status); }; } &&
|
---|
| 4635 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4637 | (eval $ac_try) 2>&5
|
---|
| 4638 | ac_status=$?
|
---|
| 4639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4640 | (exit $ac_status); }; }; then
|
---|
| 4641 | ac_cv_lib_crypt_main=yes
|
---|
[562] | 4642 | else
|
---|
[8756] | 4643 | echo "$as_me: failed program was:" >&5
|
---|
| 4644 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4645 |
|
---|
[8756] | 4646 | ac_cv_lib_crypt_main=no
|
---|
[562] | 4647 | fi
|
---|
[8756] | 4648 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4649 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4650 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4651 | fi
|
---|
| 4652 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 4653 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 4654 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
| 4655 | cat >>confdefs.h <<_ACEOF
|
---|
| 4656 | #define HAVE_LIBCRYPT 1
|
---|
| 4657 | _ACEOF
|
---|
[562] | 4658 |
|
---|
[8756] | 4659 | LIBS="-lcrypt $LIBS"
|
---|
[562] | 4660 |
|
---|
| 4661 | fi
|
---|
[8756] | 4662 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
[562] | 4663 |
|
---|
[12922] | 4664 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
[562] | 4665 |
|
---|
[12922] | 4666 | echo "$as_me:$LINENO: checking for main in -lICONV" >&5
|
---|
| 4667 | echo $ECHO_N "checking for main in -lICONV... $ECHO_C" >&6
|
---|
| 4668 | if test "${ac_cv_lib_ICONV_main+set}" = set; then
|
---|
| 4669 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4670 | else
|
---|
| 4671 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4672 | LIBS="-lICONV $LIBS"
|
---|
| 4673 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4674 | /* confdefs.h. */
|
---|
| 4675 | _ACEOF
|
---|
| 4676 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4677 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4678 | /* end confdefs.h. */
|
---|
[8200] | 4679 |
|
---|
[986] | 4680 |
|
---|
[12922] | 4681 | int
|
---|
| 4682 | main ()
|
---|
| 4683 | {
|
---|
| 4684 | main ();
|
---|
| 4685 | ;
|
---|
| 4686 | return 0;
|
---|
| 4687 | }
|
---|
| 4688 | _ACEOF
|
---|
| 4689 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4691 | (eval $ac_link) 2>conftest.er1
|
---|
| 4692 | ac_status=$?
|
---|
| 4693 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4694 | rm -f conftest.er1
|
---|
| 4695 | cat conftest.err >&5
|
---|
| 4696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4697 | (exit $ac_status); } &&
|
---|
| 4698 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4699 | || test ! -s conftest.err'
|
---|
| 4700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4701 | (eval $ac_try) 2>&5
|
---|
| 4702 | ac_status=$?
|
---|
| 4703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4704 | (exit $ac_status); }; } &&
|
---|
| 4705 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4707 | (eval $ac_try) 2>&5
|
---|
| 4708 | ac_status=$?
|
---|
| 4709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4710 | (exit $ac_status); }; }; then
|
---|
| 4711 | ac_cv_lib_ICONV_main=yes
|
---|
| 4712 | else
|
---|
| 4713 | echo "$as_me: failed program was:" >&5
|
---|
| 4714 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[986] | 4715 |
|
---|
[12922] | 4716 | ac_cv_lib_ICONV_main=no
|
---|
| 4717 | fi
|
---|
| 4718 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4719 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4720 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4721 | fi
|
---|
| 4722 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICONV_main" >&5
|
---|
| 4723 | echo "${ECHO_T}$ac_cv_lib_ICONV_main" >&6
|
---|
| 4724 | if test $ac_cv_lib_ICONV_main = yes; then
|
---|
| 4725 | cat >>confdefs.h <<_ACEOF
|
---|
| 4726 | #define HAVE_LIBICONV 1
|
---|
| 4727 | _ACEOF
|
---|
[986] | 4728 |
|
---|
[12922] | 4729 | LIBS="-lICONV $LIBS"
|
---|
[8200] | 4730 |
|
---|
[12922] | 4731 | fi
|
---|
| 4732 | ac_cv_lib_ICONV=ac_cv_lib_ICONV_main
|
---|
[8200] | 4733 |
|
---|
[12922] | 4734 | fi
|
---|
| 4735 |
|
---|
| 4736 |
|
---|
| 4737 |
|
---|
| 4738 |
|
---|
| 4739 |
|
---|
| 4740 |
|
---|
[687] | 4741 | ac_header_dirent=no
|
---|
[8756] | 4742 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
| 4743 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4744 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 4745 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
| 4746 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 4747 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4748 | else
|
---|
[8756] | 4749 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4750 | /* confdefs.h. */
|
---|
| 4751 | _ACEOF
|
---|
| 4752 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4753 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4754 | /* end confdefs.h. */
|
---|
[687] | 4755 | #include <sys/types.h>
|
---|
| 4756 | #include <$ac_hdr>
|
---|
[8756] | 4757 |
|
---|
| 4758 | int
|
---|
| 4759 | main ()
|
---|
| 4760 | {
|
---|
| 4761 | if ((DIR *) 0)
|
---|
| 4762 | return 0;
|
---|
| 4763 | ;
|
---|
| 4764 | return 0;
|
---|
| 4765 | }
|
---|
| 4766 | _ACEOF
|
---|
| 4767 | rm -f conftest.$ac_objext
|
---|
| 4768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4769 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4770 | ac_status=$?
|
---|
| 4771 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4772 | rm -f conftest.er1
|
---|
| 4773 | cat conftest.err >&5
|
---|
| 4774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4775 | (exit $ac_status); } &&
|
---|
| 4776 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4777 | || test ! -s conftest.err'
|
---|
| 4778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4779 | (eval $ac_try) 2>&5
|
---|
| 4780 | ac_status=$?
|
---|
| 4781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4782 | (exit $ac_status); }; } &&
|
---|
| 4783 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4785 | (eval $ac_try) 2>&5
|
---|
| 4786 | ac_status=$?
|
---|
| 4787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4788 | (exit $ac_status); }; }; then
|
---|
| 4789 | eval "$as_ac_Header=yes"
|
---|
[562] | 4790 | else
|
---|
[8756] | 4791 | echo "$as_me: failed program was:" >&5
|
---|
| 4792 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4793 |
|
---|
| 4794 | eval "$as_ac_Header=no"
|
---|
[687] | 4795 | fi
|
---|
[8756] | 4796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4797 | fi
|
---|
[8756] | 4798 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4799 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4800 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4801 | cat >>confdefs.h <<_ACEOF
|
---|
| 4802 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4803 | _ACEOF
|
---|
| 4804 |
|
---|
| 4805 | ac_header_dirent=$ac_hdr; break
|
---|
[687] | 4806 | fi
|
---|
[8756] | 4807 |
|
---|
[687] | 4808 | done
|
---|
| 4809 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4810 | if test $ac_header_dirent = dirent.h; then
|
---|
[8756] | 4811 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4812 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4813 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4814 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4815 | else
|
---|
[8756] | 4816 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4817 | ac_cv_search_opendir=no
|
---|
| 4818 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4819 | /* confdefs.h. */
|
---|
| 4820 | _ACEOF
|
---|
| 4821 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4822 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4823 | /* end confdefs.h. */
|
---|
| 4824 |
|
---|
[687] | 4825 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 4826 | #ifdef __cplusplus
|
---|
| 4827 | extern "C"
|
---|
| 4828 | #endif
|
---|
[687] | 4829 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 4830 | builtin and then its argument prototype would still apply. */
|
---|
| 4831 | char opendir ();
|
---|
| 4832 | int
|
---|
| 4833 | main ()
|
---|
| 4834 | {
|
---|
| 4835 | opendir ();
|
---|
| 4836 | ;
|
---|
| 4837 | return 0;
|
---|
| 4838 | }
|
---|
| 4839 | _ACEOF
|
---|
| 4840 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4842 | (eval $ac_link) 2>conftest.er1
|
---|
| 4843 | ac_status=$?
|
---|
| 4844 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4845 | rm -f conftest.er1
|
---|
| 4846 | cat conftest.err >&5
|
---|
| 4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4848 | (exit $ac_status); } &&
|
---|
| 4849 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4850 | || test ! -s conftest.err'
|
---|
| 4851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4852 | (eval $ac_try) 2>&5
|
---|
| 4853 | ac_status=$?
|
---|
| 4854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4855 | (exit $ac_status); }; } &&
|
---|
| 4856 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4858 | (eval $ac_try) 2>&5
|
---|
| 4859 | ac_status=$?
|
---|
| 4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4861 | (exit $ac_status); }; }; then
|
---|
| 4862 | ac_cv_search_opendir="none required"
|
---|
| 4863 | else
|
---|
| 4864 | echo "$as_me: failed program was:" >&5
|
---|
| 4865 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4866 |
|
---|
[687] | 4867 | fi
|
---|
[8756] | 4868 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4869 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4870 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4871 | for ac_lib in dir; do
|
---|
| 4872 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4873 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4874 | /* confdefs.h. */
|
---|
| 4875 | _ACEOF
|
---|
| 4876 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4877 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4878 | /* end confdefs.h. */
|
---|
[8200] | 4879 |
|
---|
[8756] | 4880 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4881 | #ifdef __cplusplus
|
---|
| 4882 | extern "C"
|
---|
| 4883 | #endif
|
---|
| 4884 | /* We use char because int might match the return type of a gcc2
|
---|
| 4885 | builtin and then its argument prototype would still apply. */
|
---|
| 4886 | char opendir ();
|
---|
| 4887 | int
|
---|
| 4888 | main ()
|
---|
| 4889 | {
|
---|
| 4890 | opendir ();
|
---|
| 4891 | ;
|
---|
| 4892 | return 0;
|
---|
| 4893 | }
|
---|
| 4894 | _ACEOF
|
---|
| 4895 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4897 | (eval $ac_link) 2>conftest.er1
|
---|
| 4898 | ac_status=$?
|
---|
| 4899 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4900 | rm -f conftest.er1
|
---|
| 4901 | cat conftest.err >&5
|
---|
| 4902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4903 | (exit $ac_status); } &&
|
---|
| 4904 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4905 | || test ! -s conftest.err'
|
---|
| 4906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4907 | (eval $ac_try) 2>&5
|
---|
| 4908 | ac_status=$?
|
---|
| 4909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4910 | (exit $ac_status); }; } &&
|
---|
| 4911 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4913 | (eval $ac_try) 2>&5
|
---|
| 4914 | ac_status=$?
|
---|
| 4915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4916 | (exit $ac_status); }; }; then
|
---|
| 4917 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4918 | break
|
---|
[8200] | 4919 | else
|
---|
[8756] | 4920 | echo "$as_me: failed program was:" >&5
|
---|
| 4921 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4922 |
|
---|
[687] | 4923 | fi
|
---|
[8756] | 4924 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4925 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4926 | done
|
---|
| 4927 | fi
|
---|
| 4928 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4929 | fi
|
---|
| 4930 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4931 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4932 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4933 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[687] | 4934 |
|
---|
[8756] | 4935 | fi
|
---|
| 4936 |
|
---|
[687] | 4937 | else
|
---|
[8756] | 4938 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4939 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4940 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4941 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4942 | else
|
---|
[8756] | 4943 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4944 | ac_cv_search_opendir=no
|
---|
| 4945 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4946 | /* confdefs.h. */
|
---|
| 4947 | _ACEOF
|
---|
| 4948 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4949 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4950 | /* end confdefs.h. */
|
---|
| 4951 |
|
---|
[687] | 4952 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 4953 | #ifdef __cplusplus
|
---|
| 4954 | extern "C"
|
---|
| 4955 | #endif
|
---|
[687] | 4956 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 4957 | builtin and then its argument prototype would still apply. */
|
---|
| 4958 | char opendir ();
|
---|
| 4959 | int
|
---|
| 4960 | main ()
|
---|
| 4961 | {
|
---|
| 4962 | opendir ();
|
---|
| 4963 | ;
|
---|
| 4964 | return 0;
|
---|
| 4965 | }
|
---|
| 4966 | _ACEOF
|
---|
| 4967 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4969 | (eval $ac_link) 2>conftest.er1
|
---|
| 4970 | ac_status=$?
|
---|
| 4971 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4972 | rm -f conftest.er1
|
---|
| 4973 | cat conftest.err >&5
|
---|
| 4974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4975 | (exit $ac_status); } &&
|
---|
| 4976 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4977 | || test ! -s conftest.err'
|
---|
| 4978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4979 | (eval $ac_try) 2>&5
|
---|
| 4980 | ac_status=$?
|
---|
| 4981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4982 | (exit $ac_status); }; } &&
|
---|
| 4983 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4985 | (eval $ac_try) 2>&5
|
---|
| 4986 | ac_status=$?
|
---|
| 4987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4988 | (exit $ac_status); }; }; then
|
---|
| 4989 | ac_cv_search_opendir="none required"
|
---|
| 4990 | else
|
---|
| 4991 | echo "$as_me: failed program was:" >&5
|
---|
| 4992 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4993 |
|
---|
[562] | 4994 | fi
|
---|
[8756] | 4995 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4996 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4997 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4998 | for ac_lib in x; do
|
---|
| 4999 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5000 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5001 | /* confdefs.h. */
|
---|
| 5002 | _ACEOF
|
---|
| 5003 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5004 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5005 | /* end confdefs.h. */
|
---|
[8200] | 5006 |
|
---|
[8756] | 5007 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5008 | #ifdef __cplusplus
|
---|
| 5009 | extern "C"
|
---|
| 5010 | #endif
|
---|
| 5011 | /* We use char because int might match the return type of a gcc2
|
---|
| 5012 | builtin and then its argument prototype would still apply. */
|
---|
| 5013 | char opendir ();
|
---|
| 5014 | int
|
---|
| 5015 | main ()
|
---|
| 5016 | {
|
---|
| 5017 | opendir ();
|
---|
| 5018 | ;
|
---|
| 5019 | return 0;
|
---|
| 5020 | }
|
---|
| 5021 | _ACEOF
|
---|
| 5022 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5024 | (eval $ac_link) 2>conftest.er1
|
---|
| 5025 | ac_status=$?
|
---|
| 5026 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5027 | rm -f conftest.er1
|
---|
| 5028 | cat conftest.err >&5
|
---|
| 5029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5030 | (exit $ac_status); } &&
|
---|
| 5031 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5032 | || test ! -s conftest.err'
|
---|
| 5033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5034 | (eval $ac_try) 2>&5
|
---|
| 5035 | ac_status=$?
|
---|
| 5036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5037 | (exit $ac_status); }; } &&
|
---|
| 5038 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5040 | (eval $ac_try) 2>&5
|
---|
| 5041 | ac_status=$?
|
---|
| 5042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5043 | (exit $ac_status); }; }; then
|
---|
| 5044 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5045 | break
|
---|
[8200] | 5046 | else
|
---|
[8756] | 5047 | echo "$as_me: failed program was:" >&5
|
---|
| 5048 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5049 |
|
---|
[562] | 5050 | fi
|
---|
[8756] | 5051 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5052 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5053 | done
|
---|
| 5054 | fi
|
---|
| 5055 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5056 | fi
|
---|
| 5057 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5058 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5059 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5060 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[562] | 5061 |
|
---|
[687] | 5062 | fi
|
---|
| 5063 |
|
---|
[8756] | 5064 | fi
|
---|
| 5065 |
|
---|
| 5066 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 5067 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 5068 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 5069 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5070 | else
|
---|
[8756] | 5071 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5072 | /* confdefs.h. */
|
---|
| 5073 | _ACEOF
|
---|
| 5074 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5075 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5076 | /* end confdefs.h. */
|
---|
[562] | 5077 | #include <stdlib.h>
|
---|
| 5078 | #include <stdarg.h>
|
---|
| 5079 | #include <string.h>
|
---|
| 5080 | #include <float.h>
|
---|
[8756] | 5081 |
|
---|
| 5082 | int
|
---|
| 5083 | main ()
|
---|
| 5084 | {
|
---|
| 5085 |
|
---|
| 5086 | ;
|
---|
| 5087 | return 0;
|
---|
| 5088 | }
|
---|
| 5089 | _ACEOF
|
---|
| 5090 | rm -f conftest.$ac_objext
|
---|
| 5091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5092 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5093 | ac_status=$?
|
---|
| 5094 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5095 | rm -f conftest.er1
|
---|
| 5096 | cat conftest.err >&5
|
---|
| 5097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5098 | (exit $ac_status); } &&
|
---|
| 5099 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5100 | || test ! -s conftest.err'
|
---|
| 5101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5102 | (eval $ac_try) 2>&5
|
---|
| 5103 | ac_status=$?
|
---|
| 5104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5105 | (exit $ac_status); }; } &&
|
---|
| 5106 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5108 | (eval $ac_try) 2>&5
|
---|
| 5109 | ac_status=$?
|
---|
| 5110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5111 | (exit $ac_status); }; }; then
|
---|
[562] | 5112 | ac_cv_header_stdc=yes
|
---|
| 5113 | else
|
---|
[8756] | 5114 | echo "$as_me: failed program was:" >&5
|
---|
| 5115 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5116 |
|
---|
| 5117 | ac_cv_header_stdc=no
|
---|
[562] | 5118 | fi
|
---|
[8756] | 5119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5120 |
|
---|
| 5121 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5122 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[8756] | 5123 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5124 | /* confdefs.h. */
|
---|
| 5125 | _ACEOF
|
---|
| 5126 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5127 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5128 | /* end confdefs.h. */
|
---|
[562] | 5129 | #include <string.h>
|
---|
[8756] | 5130 |
|
---|
| 5131 | _ACEOF
|
---|
[562] | 5132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5133 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
[562] | 5134 | :
|
---|
| 5135 | else
|
---|
| 5136 | ac_cv_header_stdc=no
|
---|
| 5137 | fi
|
---|
| 5138 | rm -f conftest*
|
---|
| 5139 |
|
---|
| 5140 | fi
|
---|
| 5141 |
|
---|
| 5142 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5143 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[8756] | 5144 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5145 | /* confdefs.h. */
|
---|
| 5146 | _ACEOF
|
---|
| 5147 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5148 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5149 | /* end confdefs.h. */
|
---|
[562] | 5150 | #include <stdlib.h>
|
---|
[8756] | 5151 |
|
---|
| 5152 | _ACEOF
|
---|
[562] | 5153 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5154 | $EGREP "free" >/dev/null 2>&1; then
|
---|
[562] | 5155 | :
|
---|
| 5156 | else
|
---|
| 5157 | ac_cv_header_stdc=no
|
---|
| 5158 | fi
|
---|
| 5159 | rm -f conftest*
|
---|
| 5160 |
|
---|
| 5161 | fi
|
---|
| 5162 |
|
---|
| 5163 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5164 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[8756] | 5165 | if test "$cross_compiling" = yes; then
|
---|
[562] | 5166 | :
|
---|
| 5167 | else
|
---|
[8756] | 5168 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5169 | /* confdefs.h. */
|
---|
| 5170 | _ACEOF
|
---|
| 5171 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5172 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5173 | /* end confdefs.h. */
|
---|
[562] | 5174 | #include <ctype.h>
|
---|
[8756] | 5175 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5176 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5177 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5178 | #else
|
---|
| 5179 | # define ISLOWER(c) \
|
---|
| 5180 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5181 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5182 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5183 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5184 | #endif
|
---|
| 5185 |
|
---|
[8200] | 5186 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8756] | 5187 | int
|
---|
| 5188 | main ()
|
---|
| 5189 | {
|
---|
| 5190 | int i;
|
---|
| 5191 | for (i = 0; i < 256; i++)
|
---|
| 5192 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5193 | || toupper (i) != TOUPPER (i))
|
---|
| 5194 | exit(2);
|
---|
| 5195 | exit (0);
|
---|
| 5196 | }
|
---|
| 5197 | _ACEOF
|
---|
| 5198 | rm -f conftest$ac_exeext
|
---|
| 5199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5200 | (eval $ac_link) 2>&5
|
---|
| 5201 | ac_status=$?
|
---|
| 5202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5203 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5205 | (eval $ac_try) 2>&5
|
---|
| 5206 | ac_status=$?
|
---|
| 5207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5208 | (exit $ac_status); }; }; then
|
---|
[562] | 5209 | :
|
---|
| 5210 | else
|
---|
[8756] | 5211 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5212 | echo "$as_me: failed program was:" >&5
|
---|
| 5213 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5214 |
|
---|
| 5215 | ( exit $ac_status )
|
---|
| 5216 | ac_cv_header_stdc=no
|
---|
[562] | 5217 | fi
|
---|
[8756] | 5218 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5219 | fi
|
---|
| 5220 | fi
|
---|
| 5221 | fi
|
---|
[8756] | 5222 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5223 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 5224 | if test $ac_cv_header_stdc = yes; then
|
---|
[8200] | 5225 |
|
---|
[8756] | 5226 | cat >>confdefs.h <<\_ACEOF
|
---|
[562] | 5227 | #define STDC_HEADERS 1
|
---|
[8756] | 5228 | _ACEOF
|
---|
[562] | 5229 |
|
---|
| 5230 | fi
|
---|
| 5231 |
|
---|
[8756] | 5232 |
|
---|
| 5233 |
|
---|
| 5234 |
|
---|
| 5235 |
|
---|
| 5236 |
|
---|
| 5237 |
|
---|
| 5238 |
|
---|
| 5239 |
|
---|
[10181] | 5240 |
|
---|
| 5241 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
[562] | 5242 | do
|
---|
[8756] | 5243 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5244 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5245 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5246 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5248 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5249 | fi
|
---|
| 5250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5251 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[562] | 5252 | else
|
---|
[8756] | 5253 | # Is the header compilable?
|
---|
| 5254 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5255 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5256 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5257 | /* confdefs.h. */
|
---|
| 5258 | _ACEOF
|
---|
| 5259 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5260 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5261 | /* end confdefs.h. */
|
---|
| 5262 | $ac_includes_default
|
---|
| 5263 | #include <$ac_header>
|
---|
| 5264 | _ACEOF
|
---|
| 5265 | rm -f conftest.$ac_objext
|
---|
| 5266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5267 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5268 | ac_status=$?
|
---|
| 5269 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5270 | rm -f conftest.er1
|
---|
| 5271 | cat conftest.err >&5
|
---|
| 5272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5273 | (exit $ac_status); } &&
|
---|
| 5274 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5275 | || test ! -s conftest.err'
|
---|
| 5276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5277 | (eval $ac_try) 2>&5
|
---|
| 5278 | ac_status=$?
|
---|
| 5279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5280 | (exit $ac_status); }; } &&
|
---|
| 5281 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5283 | (eval $ac_try) 2>&5
|
---|
| 5284 | ac_status=$?
|
---|
| 5285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5286 | (exit $ac_status); }; }; then
|
---|
| 5287 | ac_header_compiler=yes
|
---|
[562] | 5288 | else
|
---|
[8756] | 5289 | echo "$as_me: failed program was:" >&5
|
---|
| 5290 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5291 |
|
---|
| 5292 | ac_header_compiler=no
|
---|
[562] | 5293 | fi
|
---|
[8756] | 5294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5295 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5296 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5297 |
|
---|
| 5298 | # Is the header present?
|
---|
| 5299 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5300 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5301 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5302 | /* confdefs.h. */
|
---|
| 5303 | _ACEOF
|
---|
| 5304 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5305 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5306 | /* end confdefs.h. */
|
---|
| 5307 | #include <$ac_header>
|
---|
| 5308 | _ACEOF
|
---|
| 5309 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 5310 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5311 | ac_status=$?
|
---|
| 5312 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5313 | rm -f conftest.er1
|
---|
| 5314 | cat conftest.err >&5
|
---|
| 5315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5316 | (exit $ac_status); } >/dev/null; then
|
---|
| 5317 | if test -s conftest.err; then
|
---|
| 5318 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 5319 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 5320 | else
|
---|
| 5321 | ac_cpp_err=
|
---|
| 5322 | fi
|
---|
| 5323 | else
|
---|
| 5324 | ac_cpp_err=yes
|
---|
[562] | 5325 | fi
|
---|
[8756] | 5326 | if test -z "$ac_cpp_err"; then
|
---|
| 5327 | ac_header_preproc=yes
|
---|
[8200] | 5328 | else
|
---|
[8756] | 5329 | echo "$as_me: failed program was:" >&5
|
---|
| 5330 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5331 |
|
---|
| 5332 | ac_header_preproc=no
|
---|
[562] | 5333 | fi
|
---|
[8756] | 5334 | rm -f conftest.err conftest.$ac_ext
|
---|
| 5335 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5336 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5337 |
|
---|
| 5338 | # So? What about this header?
|
---|
| 5339 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5340 | yes:no: )
|
---|
| 5341 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5342 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5343 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5344 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5345 | ac_header_preproc=yes
|
---|
| 5346 | ;;
|
---|
| 5347 | no:yes:* )
|
---|
| 5348 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5349 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5350 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5351 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5352 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5353 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5354 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5355 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5356 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5357 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5358 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5359 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 5360 | (
|
---|
| 5361 | cat <<\_ASBOX
|
---|
| 5362 | ## ------------------------------------------ ##
|
---|
| 5363 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5364 | ## ------------------------------------------ ##
|
---|
| 5365 | _ASBOX
|
---|
| 5366 | ) |
|
---|
| 5367 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 5368 | ;;
|
---|
| 5369 | esac
|
---|
| 5370 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5373 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5374 | else
|
---|
| 5375 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 5376 | fi
|
---|
| 5377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5378 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 5379 |
|
---|
| 5380 | fi
|
---|
| 5381 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5382 | cat >>confdefs.h <<_ACEOF
|
---|
| 5383 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5384 | _ACEOF
|
---|
| 5385 |
|
---|
| 5386 | fi
|
---|
| 5387 |
|
---|
[562] | 5388 | done
|
---|
| 5389 |
|
---|
[8756] | 5390 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5391 | /* confdefs.h. */
|
---|
| 5392 | _ACEOF
|
---|
| 5393 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5394 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5395 | /* end confdefs.h. */
|
---|
[687] | 5396 | #include <stdio.h>
|
---|
[8756] | 5397 |
|
---|
| 5398 | _ACEOF
|
---|
[687] | 5399 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5400 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5401 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5402 | #define HAVE_FREAD_DECL 1
|
---|
[8756] | 5403 | _ACEOF
|
---|
[562] | 5404 |
|
---|
[687] | 5405 | fi
|
---|
| 5406 | rm -f conftest*
|
---|
| 5407 |
|
---|
[8756] | 5408 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5409 | /* confdefs.h. */
|
---|
| 5410 | _ACEOF
|
---|
| 5411 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5412 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5413 | /* end confdefs.h. */
|
---|
[687] | 5414 | #include <stdio.h>
|
---|
[8756] | 5415 |
|
---|
| 5416 | _ACEOF
|
---|
[687] | 5417 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5418 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5419 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5420 | #define HAVE_FGETC_DECL 1
|
---|
[8756] | 5421 | _ACEOF
|
---|
[687] | 5422 |
|
---|
| 5423 | fi
|
---|
| 5424 | rm -f conftest*
|
---|
| 5425 |
|
---|
[8756] | 5426 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5427 | /* confdefs.h. */
|
---|
| 5428 | _ACEOF
|
---|
| 5429 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5430 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5431 | /* end confdefs.h. */
|
---|
[687] | 5432 | #include <sys/procfs.h>
|
---|
[8756] | 5433 |
|
---|
| 5434 | _ACEOF
|
---|
[687] | 5435 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5436 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5437 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5438 | #define HAVE_PR_BRKSIZE 1
|
---|
[8756] | 5439 | _ACEOF
|
---|
[687] | 5440 |
|
---|
| 5441 | fi
|
---|
| 5442 | rm -f conftest*
|
---|
| 5443 |
|
---|
[8200] | 5444 |
|
---|
[687] | 5445 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5446 | # for constant arguments. Useless!
|
---|
[8756] | 5447 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 5448 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 5449 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5450 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5451 | else
|
---|
[8756] | 5452 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5453 | /* confdefs.h. */
|
---|
| 5454 | _ACEOF
|
---|
| 5455 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5456 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5457 | /* end confdefs.h. */
|
---|
[687] | 5458 | #include <alloca.h>
|
---|
[8756] | 5459 | int
|
---|
| 5460 | main ()
|
---|
| 5461 | {
|
---|
| 5462 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5463 | ;
|
---|
| 5464 | return 0;
|
---|
| 5465 | }
|
---|
| 5466 | _ACEOF
|
---|
| 5467 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5469 | (eval $ac_link) 2>conftest.er1
|
---|
| 5470 | ac_status=$?
|
---|
| 5471 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5472 | rm -f conftest.er1
|
---|
| 5473 | cat conftest.err >&5
|
---|
| 5474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5475 | (exit $ac_status); } &&
|
---|
| 5476 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5477 | || test ! -s conftest.err'
|
---|
| 5478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5479 | (eval $ac_try) 2>&5
|
---|
| 5480 | ac_status=$?
|
---|
| 5481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5482 | (exit $ac_status); }; } &&
|
---|
| 5483 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5485 | (eval $ac_try) 2>&5
|
---|
| 5486 | ac_status=$?
|
---|
| 5487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5488 | (exit $ac_status); }; }; then
|
---|
| 5489 | ac_cv_working_alloca_h=yes
|
---|
[562] | 5490 | else
|
---|
[8756] | 5491 | echo "$as_me: failed program was:" >&5
|
---|
| 5492 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5493 |
|
---|
| 5494 | ac_cv_working_alloca_h=no
|
---|
[562] | 5495 | fi
|
---|
[8756] | 5496 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5497 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5498 | fi
|
---|
[8756] | 5499 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5500 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
| 5501 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[562] | 5502 |
|
---|
[8756] | 5503 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5504 | #define HAVE_ALLOCA_H 1
|
---|
[8756] | 5505 | _ACEOF
|
---|
[562] | 5506 |
|
---|
| 5507 | fi
|
---|
| 5508 |
|
---|
[8756] | 5509 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 5510 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 5511 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5512 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5513 | else
|
---|
[8756] | 5514 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5515 | /* confdefs.h. */
|
---|
| 5516 | _ACEOF
|
---|
| 5517 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5518 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5519 | /* end confdefs.h. */
|
---|
[687] | 5520 | #ifdef __GNUC__
|
---|
| 5521 | # define alloca __builtin_alloca
|
---|
| 5522 | #else
|
---|
| 5523 | # ifdef _MSC_VER
|
---|
| 5524 | # include <malloc.h>
|
---|
| 5525 | # define alloca _alloca
|
---|
| 5526 | # else
|
---|
| 5527 | # if HAVE_ALLOCA_H
|
---|
| 5528 | # include <alloca.h>
|
---|
| 5529 | # else
|
---|
| 5530 | # ifdef _AIX
|
---|
| 5531 | #pragma alloca
|
---|
| 5532 | # else
|
---|
| 5533 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5534 | char *alloca ();
|
---|
| 5535 | # endif
|
---|
| 5536 | # endif
|
---|
| 5537 | # endif
|
---|
| 5538 | # endif
|
---|
| 5539 | #endif
|
---|
| 5540 |
|
---|
[8756] | 5541 | int
|
---|
| 5542 | main ()
|
---|
| 5543 | {
|
---|
| 5544 | char *p = (char *) alloca (1);
|
---|
| 5545 | ;
|
---|
| 5546 | return 0;
|
---|
| 5547 | }
|
---|
| 5548 | _ACEOF
|
---|
| 5549 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5551 | (eval $ac_link) 2>conftest.er1
|
---|
| 5552 | ac_status=$?
|
---|
| 5553 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5554 | rm -f conftest.er1
|
---|
| 5555 | cat conftest.err >&5
|
---|
| 5556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5557 | (exit $ac_status); } &&
|
---|
| 5558 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5559 | || test ! -s conftest.err'
|
---|
| 5560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5561 | (eval $ac_try) 2>&5
|
---|
| 5562 | ac_status=$?
|
---|
| 5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5564 | (exit $ac_status); }; } &&
|
---|
| 5565 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5567 | (eval $ac_try) 2>&5
|
---|
| 5568 | ac_status=$?
|
---|
| 5569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5570 | (exit $ac_status); }; }; then
|
---|
[687] | 5571 | ac_cv_func_alloca_works=yes
|
---|
[562] | 5572 | else
|
---|
[8756] | 5573 | echo "$as_me: failed program was:" >&5
|
---|
| 5574 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5575 |
|
---|
| 5576 | ac_cv_func_alloca_works=no
|
---|
[562] | 5577 | fi
|
---|
[8756] | 5578 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5579 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5580 | fi
|
---|
[8756] | 5581 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5582 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[562] | 5583 |
|
---|
[687] | 5584 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8756] | 5585 |
|
---|
| 5586 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5587 | #define HAVE_ALLOCA 1
|
---|
[8756] | 5588 | _ACEOF
|
---|
[562] | 5589 |
|
---|
[8756] | 5590 | else
|
---|
| 5591 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5592 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5593 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5594 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8200] | 5595 |
|
---|
[8756] | 5596 | ALLOCA=alloca.$ac_objext
|
---|
| 5597 |
|
---|
| 5598 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5599 | #define C_ALLOCA 1
|
---|
[8756] | 5600 | _ACEOF
|
---|
[562] | 5601 |
|
---|
[8200] | 5602 |
|
---|
[8756] | 5603 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5604 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 5605 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5606 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5607 | else
|
---|
[8756] | 5608 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5609 | /* confdefs.h. */
|
---|
| 5610 | _ACEOF
|
---|
| 5611 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5612 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5613 | /* end confdefs.h. */
|
---|
[687] | 5614 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
| 5615 | webecray
|
---|
| 5616 | #else
|
---|
| 5617 | wenotbecray
|
---|
| 5618 | #endif
|
---|
[562] | 5619 |
|
---|
[8756] | 5620 | _ACEOF
|
---|
[687] | 5621 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5622 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[687] | 5623 | ac_cv_os_cray=yes
|
---|
| 5624 | else
|
---|
| 5625 | ac_cv_os_cray=no
|
---|
| 5626 | fi
|
---|
| 5627 | rm -f conftest*
|
---|
[562] | 5628 |
|
---|
[687] | 5629 | fi
|
---|
[8756] | 5630 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 5631 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[687] | 5632 | if test $ac_cv_os_cray = yes; then
|
---|
[8756] | 5633 | for ac_func in _getb67 GETB67 getb67; do
|
---|
| 5634 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5635 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5636 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5637 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 5638 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5639 | else
|
---|
[8756] | 5640 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5641 | /* confdefs.h. */
|
---|
| 5642 | _ACEOF
|
---|
| 5643 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5644 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5645 | /* end confdefs.h. */
|
---|
| 5646 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5647 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5648 | #define $ac_func innocuous_$ac_func
|
---|
| 5649 |
|
---|
[687] | 5650 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5651 | which can conflict with char $ac_func (); below.
|
---|
| 5652 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5653 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5654 |
|
---|
| 5655 | #ifdef __STDC__
|
---|
| 5656 | # include <limits.h>
|
---|
| 5657 | #else
|
---|
| 5658 | # include <assert.h>
|
---|
| 5659 | #endif
|
---|
| 5660 |
|
---|
| 5661 | #undef $ac_func
|
---|
| 5662 |
|
---|
[687] | 5663 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5664 | #ifdef __cplusplus
|
---|
| 5665 | extern "C"
|
---|
| 5666 | {
|
---|
| 5667 | #endif
|
---|
[687] | 5668 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 5669 | builtin and then its argument prototype would still apply. */
|
---|
| 5670 | char $ac_func ();
|
---|
[687] | 5671 | /* The GNU C library defines this for functions which it implements
|
---|
| 5672 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5673 | something starting with __ and the normal name is an alias. */
|
---|
| 5674 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5675 | choke me
|
---|
| 5676 | #else
|
---|
[8756] | 5677 | char (*f) () = $ac_func;
|
---|
[687] | 5678 | #endif
|
---|
[8756] | 5679 | #ifdef __cplusplus
|
---|
| 5680 | }
|
---|
| 5681 | #endif
|
---|
[687] | 5682 |
|
---|
[8756] | 5683 | int
|
---|
| 5684 | main ()
|
---|
| 5685 | {
|
---|
| 5686 | return f != $ac_func;
|
---|
| 5687 | ;
|
---|
| 5688 | return 0;
|
---|
| 5689 | }
|
---|
| 5690 | _ACEOF
|
---|
| 5691 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5693 | (eval $ac_link) 2>conftest.er1
|
---|
| 5694 | ac_status=$?
|
---|
| 5695 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5696 | rm -f conftest.er1
|
---|
| 5697 | cat conftest.err >&5
|
---|
| 5698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5699 | (exit $ac_status); } &&
|
---|
| 5700 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5701 | || test ! -s conftest.err'
|
---|
| 5702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5703 | (eval $ac_try) 2>&5
|
---|
| 5704 | ac_status=$?
|
---|
| 5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5706 | (exit $ac_status); }; } &&
|
---|
| 5707 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5709 | (eval $ac_try) 2>&5
|
---|
| 5710 | ac_status=$?
|
---|
| 5711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5712 | (exit $ac_status); }; }; then
|
---|
| 5713 | eval "$as_ac_var=yes"
|
---|
[562] | 5714 | else
|
---|
[8756] | 5715 | echo "$as_me: failed program was:" >&5
|
---|
| 5716 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5717 |
|
---|
| 5718 | eval "$as_ac_var=no"
|
---|
[562] | 5719 | fi
|
---|
[8756] | 5720 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5721 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 5722 | fi
|
---|
[8756] | 5723 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5724 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5725 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[562] | 5726 |
|
---|
[8756] | 5727 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5728 | #define CRAY_STACKSEG_END $ac_func
|
---|
[8756] | 5729 | _ACEOF
|
---|
[562] | 5730 |
|
---|
[8756] | 5731 | break
|
---|
[687] | 5732 | fi
|
---|
[562] | 5733 |
|
---|
[8756] | 5734 | done
|
---|
[687] | 5735 | fi
|
---|
| 5736 |
|
---|
[8756] | 5737 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 5738 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 5739 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5740 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5741 | else
|
---|
| 5742 | if test "$cross_compiling" = yes; then
|
---|
| 5743 | ac_cv_c_stack_direction=0
|
---|
| 5744 | else
|
---|
[8756] | 5745 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5746 | /* confdefs.h. */
|
---|
| 5747 | _ACEOF
|
---|
| 5748 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5749 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5750 | /* end confdefs.h. */
|
---|
| 5751 | int
|
---|
[687] | 5752 | find_stack_direction ()
|
---|
| 5753 | {
|
---|
| 5754 | static char *addr = 0;
|
---|
| 5755 | auto char dummy;
|
---|
| 5756 | if (addr == 0)
|
---|
| 5757 | {
|
---|
| 5758 | addr = &dummy;
|
---|
| 5759 | return find_stack_direction ();
|
---|
| 5760 | }
|
---|
| 5761 | else
|
---|
| 5762 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5763 | }
|
---|
[8756] | 5764 |
|
---|
| 5765 | int
|
---|
[687] | 5766 | main ()
|
---|
| 5767 | {
|
---|
[8756] | 5768 | exit (find_stack_direction () < 0);
|
---|
[687] | 5769 | }
|
---|
[8756] | 5770 | _ACEOF
|
---|
| 5771 | rm -f conftest$ac_exeext
|
---|
| 5772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5773 | (eval $ac_link) 2>&5
|
---|
| 5774 | ac_status=$?
|
---|
| 5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5776 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5778 | (eval $ac_try) 2>&5
|
---|
| 5779 | ac_status=$?
|
---|
| 5780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5781 | (exit $ac_status); }; }; then
|
---|
[687] | 5782 | ac_cv_c_stack_direction=1
|
---|
[562] | 5783 | else
|
---|
[8756] | 5784 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5785 | echo "$as_me: failed program was:" >&5
|
---|
| 5786 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5787 |
|
---|
| 5788 | ( exit $ac_status )
|
---|
| 5789 | ac_cv_c_stack_direction=-1
|
---|
[562] | 5790 | fi
|
---|
[8756] | 5791 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5792 | fi
|
---|
| 5793 | fi
|
---|
[8756] | 5794 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5795 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[687] | 5796 |
|
---|
[8756] | 5797 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5798 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[8756] | 5799 | _ACEOF
|
---|
[687] | 5800 |
|
---|
[8756] | 5801 |
|
---|
[687] | 5802 | fi
|
---|
| 5803 |
|
---|
[8756] | 5804 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
| 5805 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 5806 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 5807 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5808 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5809 | else
|
---|
| 5810 | ac_pattern="Autoconf.*'x'"
|
---|
[8756] | 5811 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5812 | /* confdefs.h. */
|
---|
| 5813 | _ACEOF
|
---|
| 5814 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5815 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5816 | /* end confdefs.h. */
|
---|
[687] | 5817 | #include <sgtty.h>
|
---|
| 5818 | Autoconf TIOCGETP
|
---|
[8756] | 5819 | _ACEOF
|
---|
[687] | 5820 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5821 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 5822 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5823 | else
|
---|
| 5824 | ac_cv_prog_gcc_traditional=no
|
---|
| 5825 | fi
|
---|
[562] | 5826 | rm -f conftest*
|
---|
[687] | 5827 |
|
---|
[8200] | 5828 |
|
---|
[687] | 5829 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[8756] | 5830 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5831 | /* confdefs.h. */
|
---|
| 5832 | _ACEOF
|
---|
| 5833 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5834 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5835 | /* end confdefs.h. */
|
---|
[687] | 5836 | #include <termio.h>
|
---|
| 5837 | Autoconf TCGETA
|
---|
[8756] | 5838 | _ACEOF
|
---|
[687] | 5839 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5840 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 5841 | ac_cv_prog_gcc_traditional=yes
|
---|
[562] | 5842 | fi
|
---|
[687] | 5843 | rm -f conftest*
|
---|
[562] | 5844 |
|
---|
[687] | 5845 | fi
|
---|
| 5846 | fi
|
---|
[8756] | 5847 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 5848 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[687] | 5849 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5850 | CC="$CC -traditional"
|
---|
| 5851 | fi
|
---|
| 5852 | fi
|
---|
| 5853 |
|
---|
[8756] | 5854 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 5855 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 5856 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5857 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5858 | else
|
---|
[8756] | 5859 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5860 | /* confdefs.h. */
|
---|
| 5861 | _ACEOF
|
---|
| 5862 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5863 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5864 | /* end confdefs.h. */
|
---|
[687] | 5865 | #include <sys/types.h>
|
---|
| 5866 | #include <signal.h>
|
---|
| 5867 | #ifdef signal
|
---|
[8756] | 5868 | # undef signal
|
---|
[687] | 5869 | #endif
|
---|
| 5870 | #ifdef __cplusplus
|
---|
| 5871 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5872 | #else
|
---|
| 5873 | void (*signal ()) ();
|
---|
| 5874 | #endif
|
---|
[562] | 5875 |
|
---|
[8756] | 5876 | int
|
---|
| 5877 | main ()
|
---|
| 5878 | {
|
---|
[687] | 5879 | int i;
|
---|
[8756] | 5880 | ;
|
---|
| 5881 | return 0;
|
---|
| 5882 | }
|
---|
| 5883 | _ACEOF
|
---|
| 5884 | rm -f conftest.$ac_objext
|
---|
| 5885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5886 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5887 | ac_status=$?
|
---|
| 5888 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5889 | rm -f conftest.er1
|
---|
| 5890 | cat conftest.err >&5
|
---|
| 5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5892 | (exit $ac_status); } &&
|
---|
| 5893 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5894 | || test ! -s conftest.err'
|
---|
| 5895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5896 | (eval $ac_try) 2>&5
|
---|
| 5897 | ac_status=$?
|
---|
| 5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5899 | (exit $ac_status); }; } &&
|
---|
| 5900 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5902 | (eval $ac_try) 2>&5
|
---|
| 5903 | ac_status=$?
|
---|
| 5904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5905 | (exit $ac_status); }; }; then
|
---|
[687] | 5906 | ac_cv_type_signal=void
|
---|
[562] | 5907 | else
|
---|
[8756] | 5908 | echo "$as_me: failed program was:" >&5
|
---|
| 5909 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5910 |
|
---|
| 5911 | ac_cv_type_signal=int
|
---|
[562] | 5912 | fi
|
---|
[8756] | 5913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5914 | fi
|
---|
[8756] | 5915 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 5916 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[562] | 5917 |
|
---|
[8756] | 5918 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5919 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[8756] | 5920 | _ACEOF
|
---|
[562] | 5921 |
|
---|
[8200] | 5922 |
|
---|
[8756] | 5923 |
|
---|
| 5924 | for ac_func in vprintf
|
---|
| 5925 | do
|
---|
| 5926 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5927 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5928 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5929 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 5930 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5931 | else
|
---|
[8756] | 5932 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5933 | /* confdefs.h. */
|
---|
| 5934 | _ACEOF
|
---|
| 5935 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5936 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5937 | /* end confdefs.h. */
|
---|
| 5938 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5939 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5940 | #define $ac_func innocuous_$ac_func
|
---|
| 5941 |
|
---|
[562] | 5942 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5943 | which can conflict with char $ac_func (); below.
|
---|
| 5944 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5945 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5946 |
|
---|
| 5947 | #ifdef __STDC__
|
---|
| 5948 | # include <limits.h>
|
---|
| 5949 | #else
|
---|
| 5950 | # include <assert.h>
|
---|
| 5951 | #endif
|
---|
| 5952 |
|
---|
| 5953 | #undef $ac_func
|
---|
| 5954 |
|
---|
[562] | 5955 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5956 | #ifdef __cplusplus
|
---|
| 5957 | extern "C"
|
---|
| 5958 | {
|
---|
| 5959 | #endif
|
---|
[562] | 5960 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 5961 | builtin and then its argument prototype would still apply. */
|
---|
| 5962 | char $ac_func ();
|
---|
[562] | 5963 | /* The GNU C library defines this for functions which it implements
|
---|
| 5964 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5965 | something starting with __ and the normal name is an alias. */
|
---|
[8756] | 5966 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[562] | 5967 | choke me
|
---|
| 5968 | #else
|
---|
[8756] | 5969 | char (*f) () = $ac_func;
|
---|
[562] | 5970 | #endif
|
---|
[8756] | 5971 | #ifdef __cplusplus
|
---|
| 5972 | }
|
---|
| 5973 | #endif
|
---|
[562] | 5974 |
|
---|
[8756] | 5975 | int
|
---|
| 5976 | main ()
|
---|
| 5977 | {
|
---|
| 5978 | return f != $ac_func;
|
---|
| 5979 | ;
|
---|
| 5980 | return 0;
|
---|
| 5981 | }
|
---|
| 5982 | _ACEOF
|
---|
| 5983 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5985 | (eval $ac_link) 2>conftest.er1
|
---|
| 5986 | ac_status=$?
|
---|
| 5987 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5988 | rm -f conftest.er1
|
---|
| 5989 | cat conftest.err >&5
|
---|
| 5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5991 | (exit $ac_status); } &&
|
---|
| 5992 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5993 | || test ! -s conftest.err'
|
---|
| 5994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5995 | (eval $ac_try) 2>&5
|
---|
| 5996 | ac_status=$?
|
---|
| 5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5998 | (exit $ac_status); }; } &&
|
---|
| 5999 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6001 | (eval $ac_try) 2>&5
|
---|
| 6002 | ac_status=$?
|
---|
| 6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6004 | (exit $ac_status); }; }; then
|
---|
| 6005 | eval "$as_ac_var=yes"
|
---|
[562] | 6006 | else
|
---|
[8756] | 6007 | echo "$as_me: failed program was:" >&5
|
---|
| 6008 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6009 |
|
---|
| 6010 | eval "$as_ac_var=no"
|
---|
[562] | 6011 | fi
|
---|
[8756] | 6012 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6013 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 6014 | fi
|
---|
[8756] | 6015 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6016 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6017 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6018 | cat >>confdefs.h <<_ACEOF
|
---|
| 6019 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6020 | _ACEOF
|
---|
[8200] | 6021 |
|
---|
[8756] | 6022 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 6023 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 6024 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 6025 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 6026 | else
|
---|
[8756] | 6027 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6028 | /* confdefs.h. */
|
---|
| 6029 | _ACEOF
|
---|
| 6030 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6031 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6032 | /* end confdefs.h. */
|
---|
| 6033 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 6034 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6035 | #define _doprnt innocuous__doprnt
|
---|
[8200] | 6036 |
|
---|
[562] | 6037 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6038 | which can conflict with char _doprnt (); below.
|
---|
| 6039 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6040 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6041 |
|
---|
| 6042 | #ifdef __STDC__
|
---|
| 6043 | # include <limits.h>
|
---|
| 6044 | #else
|
---|
| 6045 | # include <assert.h>
|
---|
| 6046 | #endif
|
---|
| 6047 |
|
---|
| 6048 | #undef _doprnt
|
---|
| 6049 |
|
---|
[562] | 6050 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6051 | #ifdef __cplusplus
|
---|
| 6052 | extern "C"
|
---|
| 6053 | {
|
---|
| 6054 | #endif
|
---|
[562] | 6055 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6056 | builtin and then its argument prototype would still apply. */
|
---|
| 6057 | char _doprnt ();
|
---|
[562] | 6058 | /* The GNU C library defines this for functions which it implements
|
---|
| 6059 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6060 | something starting with __ and the normal name is an alias. */
|
---|
| 6061 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 6062 | choke me
|
---|
| 6063 | #else
|
---|
[8756] | 6064 | char (*f) () = _doprnt;
|
---|
[562] | 6065 | #endif
|
---|
[8756] | 6066 | #ifdef __cplusplus
|
---|
| 6067 | }
|
---|
| 6068 | #endif
|
---|
[562] | 6069 |
|
---|
[8756] | 6070 | int
|
---|
| 6071 | main ()
|
---|
| 6072 | {
|
---|
| 6073 | return f != _doprnt;
|
---|
| 6074 | ;
|
---|
| 6075 | return 0;
|
---|
| 6076 | }
|
---|
| 6077 | _ACEOF
|
---|
| 6078 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6080 | (eval $ac_link) 2>conftest.er1
|
---|
| 6081 | ac_status=$?
|
---|
| 6082 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6083 | rm -f conftest.er1
|
---|
| 6084 | cat conftest.err >&5
|
---|
| 6085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6086 | (exit $ac_status); } &&
|
---|
| 6087 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6088 | || test ! -s conftest.err'
|
---|
| 6089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6090 | (eval $ac_try) 2>&5
|
---|
| 6091 | ac_status=$?
|
---|
| 6092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6093 | (exit $ac_status); }; } &&
|
---|
| 6094 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6096 | (eval $ac_try) 2>&5
|
---|
| 6097 | ac_status=$?
|
---|
| 6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6099 | (exit $ac_status); }; }; then
|
---|
| 6100 | ac_cv_func__doprnt=yes
|
---|
[562] | 6101 | else
|
---|
[8756] | 6102 | echo "$as_me: failed program was:" >&5
|
---|
| 6103 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6104 |
|
---|
| 6105 | ac_cv_func__doprnt=no
|
---|
[562] | 6106 | fi
|
---|
[8756] | 6107 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6108 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 6109 | fi
|
---|
[8756] | 6110 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6111 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 6112 | if test $ac_cv_func__doprnt = yes; then
|
---|
[562] | 6113 |
|
---|
[8756] | 6114 | cat >>confdefs.h <<\_ACEOF
|
---|
[562] | 6115 | #define HAVE_DOPRNT 1
|
---|
[8756] | 6116 | _ACEOF
|
---|
[562] | 6117 |
|
---|
| 6118 | fi
|
---|
| 6119 |
|
---|
| 6120 | fi
|
---|
[8756] | 6121 | done
|
---|
[562] | 6122 |
|
---|
[8756] | 6123 |
|
---|
| 6124 |
|
---|
| 6125 |
|
---|
| 6126 |
|
---|
| 6127 |
|
---|
| 6128 |
|
---|
| 6129 |
|
---|
| 6130 |
|
---|
| 6131 |
|
---|
| 6132 |
|
---|
| 6133 |
|
---|
[788] | 6134 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[687] | 6135 | do
|
---|
[8756] | 6136 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6137 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6138 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6139 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6140 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6141 | else
|
---|
[8756] | 6142 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6143 | /* confdefs.h. */
|
---|
| 6144 | _ACEOF
|
---|
| 6145 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6146 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6147 | /* end confdefs.h. */
|
---|
| 6148 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6149 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6150 | #define $ac_func innocuous_$ac_func
|
---|
| 6151 |
|
---|
[687] | 6152 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6153 | which can conflict with char $ac_func (); below.
|
---|
| 6154 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6155 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6156 |
|
---|
| 6157 | #ifdef __STDC__
|
---|
| 6158 | # include <limits.h>
|
---|
| 6159 | #else
|
---|
| 6160 | # include <assert.h>
|
---|
| 6161 | #endif
|
---|
| 6162 |
|
---|
| 6163 | #undef $ac_func
|
---|
| 6164 |
|
---|
[687] | 6165 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6166 | #ifdef __cplusplus
|
---|
| 6167 | extern "C"
|
---|
| 6168 | {
|
---|
| 6169 | #endif
|
---|
[687] | 6170 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6171 | builtin and then its argument prototype would still apply. */
|
---|
| 6172 | char $ac_func ();
|
---|
[687] | 6173 | /* The GNU C library defines this for functions which it implements
|
---|
| 6174 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6175 | something starting with __ and the normal name is an alias. */
|
---|
| 6176 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6177 | choke me
|
---|
| 6178 | #else
|
---|
[8756] | 6179 | char (*f) () = $ac_func;
|
---|
[687] | 6180 | #endif
|
---|
[8756] | 6181 | #ifdef __cplusplus
|
---|
| 6182 | }
|
---|
| 6183 | #endif
|
---|
[687] | 6184 |
|
---|
[8756] | 6185 | int
|
---|
| 6186 | main ()
|
---|
| 6187 | {
|
---|
| 6188 | return f != $ac_func;
|
---|
| 6189 | ;
|
---|
| 6190 | return 0;
|
---|
| 6191 | }
|
---|
| 6192 | _ACEOF
|
---|
| 6193 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6195 | (eval $ac_link) 2>conftest.er1
|
---|
| 6196 | ac_status=$?
|
---|
| 6197 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6198 | rm -f conftest.er1
|
---|
| 6199 | cat conftest.err >&5
|
---|
| 6200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6201 | (exit $ac_status); } &&
|
---|
| 6202 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6203 | || test ! -s conftest.err'
|
---|
| 6204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6205 | (eval $ac_try) 2>&5
|
---|
| 6206 | ac_status=$?
|
---|
| 6207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6208 | (exit $ac_status); }; } &&
|
---|
| 6209 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6211 | (eval $ac_try) 2>&5
|
---|
| 6212 | ac_status=$?
|
---|
| 6213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6214 | (exit $ac_status); }; }; then
|
---|
| 6215 | eval "$as_ac_var=yes"
|
---|
[687] | 6216 | else
|
---|
[8756] | 6217 | echo "$as_me: failed program was:" >&5
|
---|
| 6218 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6219 |
|
---|
| 6220 | eval "$as_ac_var=no"
|
---|
[687] | 6221 | fi
|
---|
[8756] | 6222 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6223 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6224 | fi
|
---|
[8756] | 6225 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6226 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6227 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6228 | cat >>confdefs.h <<_ACEOF
|
---|
| 6229 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6230 | _ACEOF
|
---|
[8200] | 6231 |
|
---|
[687] | 6232 | fi
|
---|
| 6233 | done
|
---|
| 6234 |
|
---|
[8756] | 6235 |
|
---|
| 6236 |
|
---|
| 6237 |
|
---|
[687] | 6238 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6239 | do
|
---|
[8756] | 6240 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6241 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6242 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6243 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6244 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6245 | else
|
---|
[8756] | 6246 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6247 | /* confdefs.h. */
|
---|
| 6248 | _ACEOF
|
---|
| 6249 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6250 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6251 | /* end confdefs.h. */
|
---|
| 6252 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6253 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6254 | #define $ac_func innocuous_$ac_func
|
---|
| 6255 |
|
---|
[687] | 6256 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6257 | which can conflict with char $ac_func (); below.
|
---|
| 6258 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6259 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6260 |
|
---|
| 6261 | #ifdef __STDC__
|
---|
| 6262 | # include <limits.h>
|
---|
| 6263 | #else
|
---|
| 6264 | # include <assert.h>
|
---|
| 6265 | #endif
|
---|
| 6266 |
|
---|
| 6267 | #undef $ac_func
|
---|
| 6268 |
|
---|
[687] | 6269 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6270 | #ifdef __cplusplus
|
---|
| 6271 | extern "C"
|
---|
| 6272 | {
|
---|
| 6273 | #endif
|
---|
[687] | 6274 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6275 | builtin and then its argument prototype would still apply. */
|
---|
| 6276 | char $ac_func ();
|
---|
[687] | 6277 | /* The GNU C library defines this for functions which it implements
|
---|
| 6278 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6279 | something starting with __ and the normal name is an alias. */
|
---|
| 6280 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6281 | choke me
|
---|
| 6282 | #else
|
---|
[8756] | 6283 | char (*f) () = $ac_func;
|
---|
[687] | 6284 | #endif
|
---|
[8756] | 6285 | #ifdef __cplusplus
|
---|
| 6286 | }
|
---|
| 6287 | #endif
|
---|
[687] | 6288 |
|
---|
[8756] | 6289 | int
|
---|
| 6290 | main ()
|
---|
| 6291 | {
|
---|
| 6292 | return f != $ac_func;
|
---|
| 6293 | ;
|
---|
| 6294 | return 0;
|
---|
| 6295 | }
|
---|
| 6296 | _ACEOF
|
---|
| 6297 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6299 | (eval $ac_link) 2>conftest.er1
|
---|
| 6300 | ac_status=$?
|
---|
| 6301 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6302 | rm -f conftest.er1
|
---|
| 6303 | cat conftest.err >&5
|
---|
| 6304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6305 | (exit $ac_status); } &&
|
---|
| 6306 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6307 | || test ! -s conftest.err'
|
---|
| 6308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6309 | (eval $ac_try) 2>&5
|
---|
| 6310 | ac_status=$?
|
---|
| 6311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6312 | (exit $ac_status); }; } &&
|
---|
| 6313 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6315 | (eval $ac_try) 2>&5
|
---|
| 6316 | ac_status=$?
|
---|
| 6317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6318 | (exit $ac_status); }; }; then
|
---|
| 6319 | eval "$as_ac_var=yes"
|
---|
[687] | 6320 | else
|
---|
[8756] | 6321 | echo "$as_me: failed program was:" >&5
|
---|
| 6322 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6323 |
|
---|
| 6324 | eval "$as_ac_var=no"
|
---|
[687] | 6325 | fi
|
---|
[8756] | 6326 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6327 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6328 | fi
|
---|
[8756] | 6329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6330 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6331 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6332 | cat >>confdefs.h <<_ACEOF
|
---|
| 6333 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6334 | _ACEOF
|
---|
[8200] | 6335 |
|
---|
[687] | 6336 | else
|
---|
[8756] | 6337 | case $LIBOBJS in
|
---|
| 6338 | "$ac_func.$ac_objext" | \
|
---|
| 6339 | *" $ac_func.$ac_objext" | \
|
---|
| 6340 | "$ac_func.$ac_objext "* | \
|
---|
| 6341 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6342 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
| 6343 | esac
|
---|
| 6344 |
|
---|
[687] | 6345 | fi
|
---|
| 6346 | done
|
---|
| 6347 |
|
---|
[8200] | 6348 |
|
---|
| 6349 |
|
---|
[8756] | 6350 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 6351 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 6352 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6353 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3705] | 6354 | else
|
---|
[8756] | 6355 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6356 | /* confdefs.h. */
|
---|
| 6357 | _ACEOF
|
---|
| 6358 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6359 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6360 | /* end confdefs.h. */
|
---|
| 6361 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6362 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6363 | #define textdomain innocuous_textdomain
|
---|
| 6364 |
|
---|
[3705] | 6365 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6366 | which can conflict with char textdomain (); below.
|
---|
| 6367 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6368 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6369 |
|
---|
| 6370 | #ifdef __STDC__
|
---|
| 6371 | # include <limits.h>
|
---|
| 6372 | #else
|
---|
| 6373 | # include <assert.h>
|
---|
| 6374 | #endif
|
---|
| 6375 |
|
---|
| 6376 | #undef textdomain
|
---|
| 6377 |
|
---|
[3705] | 6378 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6379 | #ifdef __cplusplus
|
---|
| 6380 | extern "C"
|
---|
| 6381 | {
|
---|
| 6382 | #endif
|
---|
[3705] | 6383 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6384 | builtin and then its argument prototype would still apply. */
|
---|
| 6385 | char textdomain ();
|
---|
[3705] | 6386 | /* The GNU C library defines this for functions which it implements
|
---|
| 6387 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6388 | something starting with __ and the normal name is an alias. */
|
---|
[8202] | 6389 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
[3705] | 6390 | choke me
|
---|
| 6391 | #else
|
---|
[8756] | 6392 | char (*f) () = textdomain;
|
---|
[3705] | 6393 | #endif
|
---|
[8756] | 6394 | #ifdef __cplusplus
|
---|
| 6395 | }
|
---|
| 6396 | #endif
|
---|
[3705] | 6397 |
|
---|
[8756] | 6398 | int
|
---|
| 6399 | main ()
|
---|
| 6400 | {
|
---|
| 6401 | return f != textdomain;
|
---|
| 6402 | ;
|
---|
| 6403 | return 0;
|
---|
| 6404 | }
|
---|
| 6405 | _ACEOF
|
---|
| 6406 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6408 | (eval $ac_link) 2>conftest.er1
|
---|
| 6409 | ac_status=$?
|
---|
| 6410 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6411 | rm -f conftest.er1
|
---|
| 6412 | cat conftest.err >&5
|
---|
| 6413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6414 | (exit $ac_status); } &&
|
---|
| 6415 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6416 | || test ! -s conftest.err'
|
---|
| 6417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6418 | (eval $ac_try) 2>&5
|
---|
| 6419 | ac_status=$?
|
---|
| 6420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6421 | (exit $ac_status); }; } &&
|
---|
| 6422 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6424 | (eval $ac_try) 2>&5
|
---|
| 6425 | ac_status=$?
|
---|
| 6426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6427 | (exit $ac_status); }; }; then
|
---|
| 6428 | ac_cv_func_textdomain=yes
|
---|
[3705] | 6429 | else
|
---|
[8756] | 6430 | echo "$as_me: failed program was:" >&5
|
---|
| 6431 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6432 |
|
---|
| 6433 | ac_cv_func_textdomain=no
|
---|
[3705] | 6434 | fi
|
---|
[8756] | 6435 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6436 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3705] | 6437 | fi
|
---|
[8756] | 6438 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 6439 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 6440 | if test $ac_cv_func_textdomain = yes; then
|
---|
| 6441 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6442 | #define ENABLE_NLS 1
|
---|
| 6443 | _ACEOF
|
---|
[8200] | 6444 |
|
---|
[3705] | 6445 | fi
|
---|
| 6446 |
|
---|
[8200] | 6447 |
|
---|
[687] | 6448 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6449 | # ---------------------------------------------------------------------------
|
---|
[8756] | 6450 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 6451 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[687] | 6452 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[8756] | 6453 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6454 | echo "${ECHO_T}yes" >&6
|
---|
| 6455 | case $LIBOBJS in
|
---|
| 6456 | "gmalloc.$ac_objext" | \
|
---|
| 6457 | *" gmalloc.$ac_objext" | \
|
---|
| 6458 | "gmalloc.$ac_objext "* | \
|
---|
| 6459 | *" gmalloc.$ac_objext "* ) ;;
|
---|
| 6460 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
| 6461 | esac
|
---|
| 6462 |
|
---|
| 6463 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 6464 | #define HAVE_VALLOC 1
|
---|
[8756] | 6465 | _ACEOF
|
---|
[687] | 6466 |
|
---|
| 6467 | else
|
---|
[8756] | 6468 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6469 | echo "${ECHO_T}no" >&6
|
---|
| 6470 |
|
---|
| 6471 | for ac_func in valloc
|
---|
[687] | 6472 | do
|
---|
[8756] | 6473 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6474 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6475 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6476 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6477 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6478 | else
|
---|
[8756] | 6479 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6480 | /* confdefs.h. */
|
---|
| 6481 | _ACEOF
|
---|
| 6482 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6483 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6484 | /* end confdefs.h. */
|
---|
| 6485 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6486 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6487 | #define $ac_func innocuous_$ac_func
|
---|
| 6488 |
|
---|
[687] | 6489 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6490 | which can conflict with char $ac_func (); below.
|
---|
| 6491 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6492 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6493 |
|
---|
| 6494 | #ifdef __STDC__
|
---|
| 6495 | # include <limits.h>
|
---|
| 6496 | #else
|
---|
| 6497 | # include <assert.h>
|
---|
| 6498 | #endif
|
---|
| 6499 |
|
---|
| 6500 | #undef $ac_func
|
---|
| 6501 |
|
---|
[687] | 6502 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6503 | #ifdef __cplusplus
|
---|
| 6504 | extern "C"
|
---|
| 6505 | {
|
---|
| 6506 | #endif
|
---|
[687] | 6507 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6508 | builtin and then its argument prototype would still apply. */
|
---|
| 6509 | char $ac_func ();
|
---|
[687] | 6510 | /* The GNU C library defines this for functions which it implements
|
---|
| 6511 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6512 | something starting with __ and the normal name is an alias. */
|
---|
| 6513 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6514 | choke me
|
---|
| 6515 | #else
|
---|
[8756] | 6516 | char (*f) () = $ac_func;
|
---|
[687] | 6517 | #endif
|
---|
[8756] | 6518 | #ifdef __cplusplus
|
---|
| 6519 | }
|
---|
| 6520 | #endif
|
---|
[687] | 6521 |
|
---|
[8756] | 6522 | int
|
---|
| 6523 | main ()
|
---|
| 6524 | {
|
---|
| 6525 | return f != $ac_func;
|
---|
| 6526 | ;
|
---|
| 6527 | return 0;
|
---|
| 6528 | }
|
---|
| 6529 | _ACEOF
|
---|
| 6530 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6532 | (eval $ac_link) 2>conftest.er1
|
---|
| 6533 | ac_status=$?
|
---|
| 6534 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6535 | rm -f conftest.er1
|
---|
| 6536 | cat conftest.err >&5
|
---|
| 6537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6538 | (exit $ac_status); } &&
|
---|
| 6539 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6540 | || test ! -s conftest.err'
|
---|
| 6541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6542 | (eval $ac_try) 2>&5
|
---|
| 6543 | ac_status=$?
|
---|
| 6544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6545 | (exit $ac_status); }; } &&
|
---|
| 6546 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6548 | (eval $ac_try) 2>&5
|
---|
| 6549 | ac_status=$?
|
---|
| 6550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6551 | (exit $ac_status); }; }; then
|
---|
| 6552 | eval "$as_ac_var=yes"
|
---|
[687] | 6553 | else
|
---|
[8756] | 6554 | echo "$as_me: failed program was:" >&5
|
---|
| 6555 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6556 |
|
---|
| 6557 | eval "$as_ac_var=no"
|
---|
[687] | 6558 | fi
|
---|
[8756] | 6559 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6560 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6561 | fi
|
---|
[8756] | 6562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6563 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6564 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6565 | cat >>confdefs.h <<_ACEOF
|
---|
| 6566 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6567 | _ACEOF
|
---|
[8200] | 6568 |
|
---|
[687] | 6569 | fi
|
---|
| 6570 | done
|
---|
| 6571 |
|
---|
| 6572 | fi
|
---|
| 6573 |
|
---|
[8200] | 6574 | # we cannot generate static libraries under Darwin
|
---|
[8756] | 6575 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 6576 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
[8200] | 6577 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[8756] | 6578 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6579 | echo "${ECHO_T}yes" >&6
|
---|
[8200] | 6580 | STATIC=""
|
---|
| 6581 | else
|
---|
[8756] | 6582 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6583 | echo "${ECHO_T}no" >&6
|
---|
[8200] | 6584 | STATIC="-static "
|
---|
| 6585 | fi
|
---|
[3631] | 6586 |
|
---|
[8200] | 6587 |
|
---|
[8756] | 6588 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 6589 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
| 6590 |
|
---|
[700] | 6591 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 6592 | if test "${with_dmalloc+set}" = set; then
|
---|
| 6593 | withval="$with_dmalloc"
|
---|
| 6594 | if test "$withval" = yes; then
|
---|
[8756] | 6595 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6596 | echo "${ECHO_T}yes" >&6
|
---|
| 6597 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 6598 | #define WITH_DMALLOC 1
|
---|
[8756] | 6599 | _ACEOF
|
---|
[687] | 6600 |
|
---|
[700] | 6601 | LIBS="$LIBS -ldmalloc"
|
---|
| 6602 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6603 | else
|
---|
[8756] | 6604 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6605 | echo "${ECHO_T}no" >&6
|
---|
[700] | 6606 | fi
|
---|
| 6607 | else
|
---|
[8756] | 6608 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6609 | echo "${ECHO_T}no" >&6
|
---|
| 6610 | fi;
|
---|
[700] | 6611 |
|
---|
[8756] | 6612 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 6613 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[700] | 6614 |
|
---|
| 6615 | # Check whether --with-regex or --without-regex was given.
|
---|
| 6616 | if test "${with_regex+set}" = set; then
|
---|
| 6617 | withval="$with_regex"
|
---|
| 6618 | if test "$withval" = yes; then
|
---|
| 6619 | ac_with_regex=1
|
---|
[8756] | 6620 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 6621 | echo "${ECHO_T}regex" >&6
|
---|
| 6622 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 6623 | #define WITH_REGEX 1
|
---|
[8756] | 6624 | _ACEOF
|
---|
[700] | 6625 |
|
---|
[8756] | 6626 | case $LIBOBJS in
|
---|
| 6627 | "regex.$ac_objext" | \
|
---|
| 6628 | *" regex.$ac_objext" | \
|
---|
| 6629 | "regex.$ac_objext "* | \
|
---|
| 6630 | *" regex.$ac_objext "* ) ;;
|
---|
| 6631 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 6632 | esac
|
---|
| 6633 |
|
---|
[700] | 6634 | fi
|
---|
[8756] | 6635 | fi;
|
---|
[700] | 6636 | if test -z "$ac_with_regex"; then
|
---|
[8756] | 6637 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 6638 | echo "${ECHO_T}rx" >&6
|
---|
| 6639 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 6640 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 6641 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6642 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 6643 | else
|
---|
[8756] | 6644 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6645 | /* confdefs.h. */
|
---|
| 6646 | _ACEOF
|
---|
| 6647 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6648 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6649 | /* end confdefs.h. */
|
---|
| 6650 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6651 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6652 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6653 |
|
---|
[700] | 6654 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6655 | which can conflict with char re_rx_search (); below.
|
---|
| 6656 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6657 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6658 |
|
---|
| 6659 | #ifdef __STDC__
|
---|
| 6660 | # include <limits.h>
|
---|
| 6661 | #else
|
---|
| 6662 | # include <assert.h>
|
---|
| 6663 | #endif
|
---|
| 6664 |
|
---|
| 6665 | #undef re_rx_search
|
---|
| 6666 |
|
---|
[700] | 6667 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6668 | #ifdef __cplusplus
|
---|
| 6669 | extern "C"
|
---|
| 6670 | {
|
---|
| 6671 | #endif
|
---|
[700] | 6672 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6673 | builtin and then its argument prototype would still apply. */
|
---|
| 6674 | char re_rx_search ();
|
---|
[700] | 6675 | /* The GNU C library defines this for functions which it implements
|
---|
| 6676 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6677 | something starting with __ and the normal name is an alias. */
|
---|
| 6678 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 6679 | choke me
|
---|
| 6680 | #else
|
---|
[8756] | 6681 | char (*f) () = re_rx_search;
|
---|
[700] | 6682 | #endif
|
---|
[8756] | 6683 | #ifdef __cplusplus
|
---|
| 6684 | }
|
---|
| 6685 | #endif
|
---|
[700] | 6686 |
|
---|
[8756] | 6687 | int
|
---|
| 6688 | main ()
|
---|
| 6689 | {
|
---|
| 6690 | return f != re_rx_search;
|
---|
| 6691 | ;
|
---|
| 6692 | return 0;
|
---|
| 6693 | }
|
---|
| 6694 | _ACEOF
|
---|
| 6695 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6697 | (eval $ac_link) 2>conftest.er1
|
---|
| 6698 | ac_status=$?
|
---|
| 6699 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6700 | rm -f conftest.er1
|
---|
| 6701 | cat conftest.err >&5
|
---|
| 6702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6703 | (exit $ac_status); } &&
|
---|
| 6704 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6705 | || test ! -s conftest.err'
|
---|
| 6706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6707 | (eval $ac_try) 2>&5
|
---|
| 6708 | ac_status=$?
|
---|
| 6709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6710 | (exit $ac_status); }; } &&
|
---|
| 6711 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6713 | (eval $ac_try) 2>&5
|
---|
| 6714 | ac_status=$?
|
---|
| 6715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6716 | (exit $ac_status); }; }; then
|
---|
| 6717 | ac_cv_func_re_rx_search=yes
|
---|
[700] | 6718 | else
|
---|
[8756] | 6719 | echo "$as_me: failed program was:" >&5
|
---|
| 6720 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6721 |
|
---|
| 6722 | ac_cv_func_re_rx_search=no
|
---|
[700] | 6723 | fi
|
---|
[8756] | 6724 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6725 | conftest$ac_exeext conftest.$ac_ext
|
---|
[700] | 6726 | fi
|
---|
[8756] | 6727 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 6728 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 6729 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
[700] | 6730 | :
|
---|
| 6731 | else
|
---|
[8756] | 6732 | case $LIBOBJS in
|
---|
| 6733 | "rx.$ac_objext" | \
|
---|
| 6734 | *" rx.$ac_objext" | \
|
---|
| 6735 | "rx.$ac_objext "* | \
|
---|
| 6736 | *" rx.$ac_objext "* ) ;;
|
---|
| 6737 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
| 6738 | esac
|
---|
| 6739 |
|
---|
[700] | 6740 | fi
|
---|
| 6741 |
|
---|
| 6742 | fi
|
---|
| 6743 |
|
---|
[8200] | 6744 |
|
---|
[687] | 6745 | # ---------------------------------------------------------------------------
|
---|
| 6746 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[8756] | 6747 | case $LIBOBJS in
|
---|
| 6748 | "xmalloc.$ac_objext" | \
|
---|
| 6749 | *" xmalloc.$ac_objext" | \
|
---|
| 6750 | "xmalloc.$ac_objext "* | \
|
---|
| 6751 | *" xmalloc.$ac_objext "* ) ;;
|
---|
| 6752 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
| 6753 | esac
|
---|
| 6754 |
|
---|
| 6755 | case $LIBOBJS in
|
---|
| 6756 | "error.$ac_objext" | \
|
---|
| 6757 | *" error.$ac_objext" | \
|
---|
| 6758 | "error.$ac_objext "* | \
|
---|
| 6759 | *" error.$ac_objext "* ) ;;
|
---|
| 6760 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 6761 | esac
|
---|
| 6762 |
|
---|
[687] | 6763 | fi
|
---|
| 6764 |
|
---|
[8200] | 6765 |
|
---|
[687] | 6766 | # ---------------------------------------------------------------------------
|
---|
| 6767 |
|
---|
[8756] | 6768 | ac_ext=cc
|
---|
[687] | 6769 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 6770 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 6771 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 6772 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[687] | 6773 |
|
---|
[8200] | 6774 |
|
---|
| 6775 |
|
---|
[8756] | 6776 | echo "$as_me:$LINENO: checking that the GDBM library is available" >&5
|
---|
| 6777 | echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6
|
---|
[2471] | 6778 | if test ! -z "$gdbmdir" ; then
|
---|
[2279] | 6779 | # look in given directory for header file
|
---|
[2884] | 6780 | if test -r $gdbmdir/include/gdbm.h ; then
|
---|
[2279] | 6781 | GDBM_INCLUDE="-I$gdbmdir/include" ;
|
---|
[2884] | 6782 | elif test -r $gdbmdir/gdbm.h ; then
|
---|
[2279] | 6783 | GDBM_INCLUDE="-I$gdbmdir" ;
|
---|
| 6784 | fi
|
---|
| 6785 |
|
---|
| 6786 | # look in given directory for library
|
---|
[2884] | 6787 | if test -r $gdbmdir/libgdbm.a ; then
|
---|
[2279] | 6788 | GDBM_LIBPATH="-L$gdbmdir" ;
|
---|
[2884] | 6789 | elif test -r $gdbmdir/lib/libgdbm.a ; then
|
---|
[2279] | 6790 | GDBM_LIBPATH="-L$gdbmdir/lib" ;
|
---|
[2884] | 6791 | elif test -r $gdbmdir/.libs/libgdbm.a ; then
|
---|
[2279] | 6792 | GDBM_LIBPATH="-L$gdbmdir/.libs" ;
|
---|
| 6793 | fi
|
---|
| 6794 |
|
---|
[2471] | 6795 | if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
|
---|
[8756] | 6796 | echo "$as_me:$LINENO: result: $gdbmdir" >&5
|
---|
| 6797 | echo "${ECHO_T}$gdbmdir" >&6 ;
|
---|
[2279] | 6798 | else
|
---|
[8756] | 6799 | echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
|
---|
| 6800 | echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;
|
---|
| 6801 | echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&5
|
---|
| 6802 | echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6
|
---|
[2279] | 6803 | fi
|
---|
| 6804 | fi
|
---|
| 6805 |
|
---|
[2603] | 6806 | # look in default path and in /usr/local
|
---|
[2471] | 6807 | if test -z "$GDBM_INCLUDE" ; then
|
---|
[8756] | 6808 | # try in system directory
|
---|
| 6809 |
|
---|
| 6810 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6811 | /* confdefs.h. */
|
---|
| 6812 | _ACEOF
|
---|
| 6813 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6814 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6815 | /* end confdefs.h. */
|
---|
[687] | 6816 | #include <gdbm.h>
|
---|
| 6817 |
|
---|
[8756] | 6818 | int
|
---|
| 6819 | main ()
|
---|
| 6820 | {
|
---|
[687] | 6821 |
|
---|
[8756] | 6822 | ;
|
---|
| 6823 | return 0;
|
---|
| 6824 | }
|
---|
| 6825 | _ACEOF
|
---|
| 6826 | rm -f conftest.$ac_objext
|
---|
| 6827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6828 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6829 | ac_status=$?
|
---|
| 6830 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6831 | rm -f conftest.er1
|
---|
| 6832 | cat conftest.err >&5
|
---|
| 6833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6834 | (exit $ac_status); } &&
|
---|
| 6835 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6836 | || test ! -s conftest.err'
|
---|
| 6837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6838 | (eval $ac_try) 2>&5
|
---|
| 6839 | ac_status=$?
|
---|
| 6840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6841 | (exit $ac_status); }; } &&
|
---|
| 6842 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6844 | (eval $ac_try) 2>&5
|
---|
| 6845 | ac_status=$?
|
---|
| 6846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6847 | (exit $ac_status); }; }; then
|
---|
[687] | 6848 | success=yes
|
---|
| 6849 | else
|
---|
[8756] | 6850 | echo "$as_me: failed program was:" >&5
|
---|
| 6851 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6852 |
|
---|
| 6853 | success=no
|
---|
| 6854 |
|
---|
[687] | 6855 | fi
|
---|
[8756] | 6856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[2603] | 6857 |
|
---|
| 6858 | if test $success = "no"; then
|
---|
| 6859 | # last chance - look in /usr/local (eg FreeBSD)
|
---|
| 6860 | GDBM_LIBPATH=-L/usr/local/lib
|
---|
| 6861 | GDBM_INCLUDE=-I/usr/local/include
|
---|
| 6862 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
| 6863 | ac_save_LIBS="$LIBS"
|
---|
| 6864 | CXXFLAGS="$CXXFLAGS -I/usr/local/include"
|
---|
| 6865 | LIBS="$LIBS -L/usr/local/lib -lgdbm"
|
---|
[8756] | 6866 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6867 | /* confdefs.h. */
|
---|
| 6868 | _ACEOF
|
---|
| 6869 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6870 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6871 | /* end confdefs.h. */
|
---|
[2603] | 6872 | #include <gdbm.h>
|
---|
| 6873 | #include <stdio.h>
|
---|
[8756] | 6874 |
|
---|
| 6875 | int
|
---|
| 6876 | main ()
|
---|
| 6877 | {
|
---|
[2603] | 6878 | printf("%s",gdbm_version);
|
---|
[8756] | 6879 | ;
|
---|
| 6880 | return 0;
|
---|
| 6881 | }
|
---|
| 6882 | _ACEOF
|
---|
| 6883 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6885 | (eval $ac_link) 2>conftest.er1
|
---|
| 6886 | ac_status=$?
|
---|
| 6887 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6888 | rm -f conftest.er1
|
---|
| 6889 | cat conftest.err >&5
|
---|
| 6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6891 | (exit $ac_status); } &&
|
---|
| 6892 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6893 | || test ! -s conftest.err'
|
---|
| 6894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6895 | (eval $ac_try) 2>&5
|
---|
| 6896 | ac_status=$?
|
---|
| 6897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6898 | (exit $ac_status); }; } &&
|
---|
| 6899 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6901 | (eval $ac_try) 2>&5
|
---|
| 6902 | ac_status=$?
|
---|
| 6903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6904 | (exit $ac_status); }; }; then
|
---|
[2603] | 6905 | success=/usr/local
|
---|
| 6906 | else
|
---|
[8756] | 6907 | echo "$as_me: failed program was:" >&5
|
---|
| 6908 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6909 |
|
---|
| 6910 | success=no
|
---|
| 6911 |
|
---|
[2603] | 6912 | fi
|
---|
[8756] | 6913 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6914 | conftest$ac_exeext conftest.$ac_ext
|
---|
[2603] | 6915 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 6916 | LIBS=$ac_save_LIBS
|
---|
| 6917 | fi
|
---|
| 6918 |
|
---|
[8756] | 6919 | echo "$as_me:$LINENO: result: $success" >&5
|
---|
| 6920 | echo "${ECHO_T}$success" >&6
|
---|
[2279] | 6921 | if test $success = "no"; then
|
---|
[8756] | 6922 | { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&5
|
---|
| 6923 | echo "$as_me: error: GDBM Library not available - cannot install" >&2;}
|
---|
| 6924 | { (exit 1); exit 1; }; }
|
---|
[2279] | 6925 | fi
|
---|
[687] | 6926 | fi
|
---|
[8756] | 6927 | cat >>confdefs.h <<\_ACEOF
|
---|
[2603] | 6928 | #define HAVE_LIBGDBM 1
|
---|
[8756] | 6929 | _ACEOF
|
---|
[687] | 6930 |
|
---|
[8200] | 6931 |
|
---|
| 6932 |
|
---|
| 6933 |
|
---|
| 6934 |
|
---|
[8756] | 6935 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
| 6936 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
[687] | 6937 | success="no"
|
---|
| 6938 | pl_path="$PATH"
|
---|
| 6939 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 6940 | for pl_dir in $pl_path; do
|
---|
| 6941 | test -z "$pl_dir" && pl_dir=.
|
---|
| 6942 | if test -x $pl_dir/perl; then
|
---|
| 6943 | success="yes"
|
---|
| 6944 | break
|
---|
| 6945 | fi
|
---|
| 6946 | done
|
---|
| 6947 | IFS="$pl_save_ifs"
|
---|
| 6948 |
|
---|
| 6949 | if test $success = "yes"; then
|
---|
| 6950 | try=`perl configtest.pl` || try="0"
|
---|
| 6951 | try=`expr $try \> 5.000`
|
---|
| 6952 | if test $try = "1"; then
|
---|
[8756] | 6953 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 6954 | echo "${ECHO_T}\"yes\"" >&6
|
---|
[687] | 6955 | else
|
---|
| 6956 | success="no"
|
---|
| 6957 | fi
|
---|
| 6958 | fi
|
---|
| 6959 |
|
---|
| 6960 | if test $success = "no"; then
|
---|
[8756] | 6961 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 6962 | echo "${ECHO_T}\"no\"" >&6
|
---|
| 6963 | { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
|
---|
| 6964 | echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
|
---|
| 6965 | { (exit 1); exit 1; }; }
|
---|
[687] | 6966 | fi
|
---|
| 6967 |
|
---|
| 6968 | success=no
|
---|
[8756] | 6969 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 6970 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
[687] | 6971 |
|
---|
[8756] | 6972 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6973 | /* confdefs.h. */
|
---|
| 6974 | _ACEOF
|
---|
| 6975 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6976 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6977 | /* end confdefs.h. */
|
---|
[687] | 6978 | #include <vector>
|
---|
| 6979 |
|
---|
[8756] | 6980 | int
|
---|
| 6981 | main ()
|
---|
| 6982 | {
|
---|
[687] | 6983 |
|
---|
[8756] | 6984 | ;
|
---|
| 6985 | return 0;
|
---|
| 6986 | }
|
---|
| 6987 | _ACEOF
|
---|
| 6988 | rm -f conftest.$ac_objext
|
---|
| 6989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6990 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6991 | ac_status=$?
|
---|
| 6992 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6993 | rm -f conftest.er1
|
---|
| 6994 | cat conftest.err >&5
|
---|
| 6995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6996 | (exit $ac_status); } &&
|
---|
| 6997 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6998 | || test ! -s conftest.err'
|
---|
| 6999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7000 | (eval $ac_try) 2>&5
|
---|
| 7001 | ac_status=$?
|
---|
| 7002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7003 | (exit $ac_status); }; } &&
|
---|
| 7004 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7006 | (eval $ac_try) 2>&5
|
---|
| 7007 | ac_status=$?
|
---|
| 7008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7009 | (exit $ac_status); }; }; then
|
---|
[687] | 7010 | success=yes
|
---|
| 7011 | else
|
---|
[8756] | 7012 | echo "$as_me: failed program was:" >&5
|
---|
| 7013 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7014 |
|
---|
[687] | 7015 | fi
|
---|
[8756] | 7016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7017 |
|
---|
| 7018 | if test $success = "no"; then
|
---|
[8756] | 7019 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7020 | /* confdefs.h. */
|
---|
| 7021 | _ACEOF
|
---|
| 7022 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7023 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7024 | /* end confdefs.h. */
|
---|
[687] | 7025 | #include <vector.h>
|
---|
| 7026 |
|
---|
[8756] | 7027 | int
|
---|
| 7028 | main ()
|
---|
| 7029 | {
|
---|
[687] | 7030 |
|
---|
[8756] | 7031 | ;
|
---|
| 7032 | return 0;
|
---|
| 7033 | }
|
---|
| 7034 | _ACEOF
|
---|
| 7035 | rm -f conftest.$ac_objext
|
---|
| 7036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7037 | (eval $ac_compile) 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_cxx_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_objext'
|
---|
| 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
|
---|
[687] | 7057 | success="yes"
|
---|
| 7058 | else
|
---|
[8756] | 7059 | echo "$as_me: failed program was:" >&5
|
---|
| 7060 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7061 |
|
---|
[687] | 7062 | fi
|
---|
[8756] | 7063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7064 | fi
|
---|
| 7065 |
|
---|
| 7066 | if test $success = "no"; then
|
---|
[8756] | 7067 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7068 | /* confdefs.h. */
|
---|
| 7069 | _ACEOF
|
---|
| 7070 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7071 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7072 | /* end confdefs.h. */
|
---|
[687] | 7073 | #include <ospace\\std\\vector>
|
---|
| 7074 |
|
---|
[8756] | 7075 | int
|
---|
| 7076 | main ()
|
---|
| 7077 | {
|
---|
[687] | 7078 |
|
---|
[8756] | 7079 | ;
|
---|
| 7080 | return 0;
|
---|
| 7081 | }
|
---|
| 7082 | _ACEOF
|
---|
| 7083 | rm -f conftest.$ac_objext
|
---|
| 7084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7085 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7086 | ac_status=$?
|
---|
| 7087 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7088 | rm -f conftest.er1
|
---|
| 7089 | cat conftest.err >&5
|
---|
| 7090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7091 | (exit $ac_status); } &&
|
---|
| 7092 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7093 | || test ! -s conftest.err'
|
---|
| 7094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7095 | (eval $ac_try) 2>&5
|
---|
| 7096 | ac_status=$?
|
---|
| 7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7098 | (exit $ac_status); }; } &&
|
---|
| 7099 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7101 | (eval $ac_try) 2>&5
|
---|
| 7102 | ac_status=$?
|
---|
| 7103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7104 | (exit $ac_status); }; }; then
|
---|
[687] | 7105 | success="yes"
|
---|
| 7106 | else
|
---|
[8756] | 7107 | echo "$as_me: failed program was:" >&5
|
---|
| 7108 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7109 |
|
---|
[687] | 7110 | fi
|
---|
[8756] | 7111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7112 | fi
|
---|
| 7113 |
|
---|
| 7114 | if test $success = yes; then
|
---|
[8756] | 7115 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 7116 | echo "${ECHO_T}\"no\"" >&6
|
---|
[687] | 7117 | else
|
---|
[8756] | 7118 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 7119 | echo "${ECHO_T}\"yes\"" >&6
|
---|
| 7120 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 7121 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 7122 | { (exit 1); exit 1; }; }
|
---|
[687] | 7123 | fi
|
---|
| 7124 |
|
---|
[2950] | 7125 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
[2951] | 7126 | # check for running bash under cygwin
|
---|
| 7127 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 7128 | then
|
---|
| 7129 | gsdlos=windows
|
---|
| 7130 | fi
|
---|
[687] | 7131 |
|
---|
[8200] | 7132 |
|
---|
[10856] | 7133 | # check for endianness
|
---|
| 7134 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7135 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
| 7136 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7137 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7138 | else
|
---|
| 7139 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7140 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7141 | /* confdefs.h. */
|
---|
| 7142 | _ACEOF
|
---|
| 7143 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7144 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7145 | /* end confdefs.h. */
|
---|
| 7146 | #include <sys/types.h>
|
---|
| 7147 | #include <sys/param.h>
|
---|
| 7148 |
|
---|
| 7149 | int
|
---|
| 7150 | main ()
|
---|
| 7151 | {
|
---|
| 7152 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
| 7153 | bogus endian macros
|
---|
| 7154 | #endif
|
---|
| 7155 |
|
---|
| 7156 | ;
|
---|
| 7157 | return 0;
|
---|
| 7158 | }
|
---|
| 7159 | _ACEOF
|
---|
| 7160 | rm -f conftest.$ac_objext
|
---|
| 7161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7162 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7163 | ac_status=$?
|
---|
| 7164 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7165 | rm -f conftest.er1
|
---|
| 7166 | cat conftest.err >&5
|
---|
| 7167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7168 | (exit $ac_status); } &&
|
---|
| 7169 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7170 | || test ! -s conftest.err'
|
---|
| 7171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7172 | (eval $ac_try) 2>&5
|
---|
| 7173 | ac_status=$?
|
---|
| 7174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7175 | (exit $ac_status); }; } &&
|
---|
| 7176 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7178 | (eval $ac_try) 2>&5
|
---|
| 7179 | ac_status=$?
|
---|
| 7180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7181 | (exit $ac_status); }; }; then
|
---|
| 7182 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 7183 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7184 | /* confdefs.h. */
|
---|
| 7185 | _ACEOF
|
---|
| 7186 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7187 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7188 | /* end confdefs.h. */
|
---|
| 7189 | #include <sys/types.h>
|
---|
| 7190 | #include <sys/param.h>
|
---|
| 7191 |
|
---|
| 7192 | int
|
---|
| 7193 | main ()
|
---|
| 7194 | {
|
---|
| 7195 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 7196 | not big endian
|
---|
| 7197 | #endif
|
---|
| 7198 |
|
---|
| 7199 | ;
|
---|
| 7200 | return 0;
|
---|
| 7201 | }
|
---|
| 7202 | _ACEOF
|
---|
| 7203 | rm -f conftest.$ac_objext
|
---|
| 7204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7205 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7206 | ac_status=$?
|
---|
| 7207 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7208 | rm -f conftest.er1
|
---|
| 7209 | cat conftest.err >&5
|
---|
| 7210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7211 | (exit $ac_status); } &&
|
---|
| 7212 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7213 | || test ! -s conftest.err'
|
---|
| 7214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7215 | (eval $ac_try) 2>&5
|
---|
| 7216 | ac_status=$?
|
---|
| 7217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7218 | (exit $ac_status); }; } &&
|
---|
| 7219 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7221 | (eval $ac_try) 2>&5
|
---|
| 7222 | ac_status=$?
|
---|
| 7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7224 | (exit $ac_status); }; }; then
|
---|
| 7225 | ac_cv_c_bigendian=yes
|
---|
| 7226 | else
|
---|
| 7227 | echo "$as_me: failed program was:" >&5
|
---|
| 7228 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7229 |
|
---|
| 7230 | ac_cv_c_bigendian=no
|
---|
| 7231 | fi
|
---|
| 7232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7233 | else
|
---|
| 7234 | echo "$as_me: failed program was:" >&5
|
---|
| 7235 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7236 |
|
---|
| 7237 | # It does not; compile a test program.
|
---|
| 7238 | if test "$cross_compiling" = yes; then
|
---|
| 7239 | # try to guess the endianness by grepping values into an object file
|
---|
| 7240 | ac_cv_c_bigendian=unknown
|
---|
| 7241 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7242 | /* confdefs.h. */
|
---|
| 7243 | _ACEOF
|
---|
| 7244 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7245 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7246 | /* end confdefs.h. */
|
---|
| 7247 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7248 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 7249 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 7250 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7251 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 7252 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 7253 | int
|
---|
| 7254 | main ()
|
---|
| 7255 | {
|
---|
| 7256 | _ascii (); _ebcdic ();
|
---|
| 7257 | ;
|
---|
| 7258 | return 0;
|
---|
| 7259 | }
|
---|
| 7260 | _ACEOF
|
---|
| 7261 | rm -f conftest.$ac_objext
|
---|
| 7262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7263 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7264 | ac_status=$?
|
---|
| 7265 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7266 | rm -f conftest.er1
|
---|
| 7267 | cat conftest.err >&5
|
---|
| 7268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7269 | (exit $ac_status); } &&
|
---|
| 7270 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7271 | || test ! -s conftest.err'
|
---|
| 7272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7273 | (eval $ac_try) 2>&5
|
---|
| 7274 | ac_status=$?
|
---|
| 7275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7276 | (exit $ac_status); }; } &&
|
---|
| 7277 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7279 | (eval $ac_try) 2>&5
|
---|
| 7280 | ac_status=$?
|
---|
| 7281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7282 | (exit $ac_status); }; }; then
|
---|
| 7283 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 7284 | ac_cv_c_bigendian=yes
|
---|
| 7285 | fi
|
---|
| 7286 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7287 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7288 | ac_cv_c_bigendian=no
|
---|
| 7289 | else
|
---|
| 7290 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7291 | ac_cv_c_bigendian=unknown
|
---|
| 7292 | fi
|
---|
| 7293 | fi
|
---|
| 7294 | else
|
---|
| 7295 | echo "$as_me: failed program was:" >&5
|
---|
| 7296 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7297 |
|
---|
| 7298 | fi
|
---|
| 7299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7300 | else
|
---|
| 7301 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7302 | /* confdefs.h. */
|
---|
| 7303 | _ACEOF
|
---|
| 7304 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7305 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7306 | /* end confdefs.h. */
|
---|
| 7307 | int
|
---|
| 7308 | main ()
|
---|
| 7309 | {
|
---|
| 7310 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7311 | union
|
---|
| 7312 | {
|
---|
| 7313 | long l;
|
---|
| 7314 | char c[sizeof (long)];
|
---|
| 7315 | } u;
|
---|
| 7316 | u.l = 1;
|
---|
| 7317 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
| 7318 | }
|
---|
| 7319 | _ACEOF
|
---|
| 7320 | rm -f conftest$ac_exeext
|
---|
| 7321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7322 | (eval $ac_link) 2>&5
|
---|
| 7323 | ac_status=$?
|
---|
| 7324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7325 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 7326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7327 | (eval $ac_try) 2>&5
|
---|
| 7328 | ac_status=$?
|
---|
| 7329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7330 | (exit $ac_status); }; }; then
|
---|
| 7331 | ac_cv_c_bigendian=no
|
---|
| 7332 | else
|
---|
| 7333 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7334 | echo "$as_me: failed program was:" >&5
|
---|
| 7335 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7336 |
|
---|
| 7337 | ( exit $ac_status )
|
---|
| 7338 | ac_cv_c_bigendian=yes
|
---|
| 7339 | fi
|
---|
| 7340 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 7341 | fi
|
---|
| 7342 | fi
|
---|
| 7343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7344 | fi
|
---|
| 7345 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7346 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
| 7347 | case $ac_cv_c_bigendian in
|
---|
| 7348 | yes)
|
---|
| 7349 |
|
---|
| 7350 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7351 | #define WORDS_BIGENDIAN 1
|
---|
| 7352 | _ACEOF
|
---|
| 7353 | ;;
|
---|
| 7354 | no)
|
---|
| 7355 | ;;
|
---|
| 7356 | *)
|
---|
| 7357 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7358 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7359 | echo "$as_me: error: unknown endianness
|
---|
| 7360 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7361 | { (exit 1); exit 1; }; } ;;
|
---|
| 7362 | esac
|
---|
| 7363 |
|
---|
[687] | 7364 | # ---------------------------------------------------------------------------
|
---|
| 7365 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[8756] | 7366 | case $LIBOBJS in
|
---|
| 7367 | "xmalloc.o.$ac_objext" | \
|
---|
| 7368 | *" xmalloc.o.$ac_objext" | \
|
---|
| 7369 | "xmalloc.o.$ac_objext "* | \
|
---|
| 7370 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
| 7371 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
| 7372 | esac
|
---|
| 7373 |
|
---|
| 7374 | case $LIBOBJS in
|
---|
| 7375 | "error.$ac_objext" | \
|
---|
| 7376 | *" error.$ac_objext" | \
|
---|
| 7377 | "error.$ac_objext "* | \
|
---|
| 7378 | *" error.$ac_objext "* ) ;;
|
---|
| 7379 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 7380 | esac
|
---|
| 7381 |
|
---|
[687] | 7382 | fi
|
---|
| 7383 |
|
---|
[3063] | 7384 | # ---------------------------------------------------------------------------
|
---|
[687] | 7385 |
|
---|
[3063] | 7386 | moduleDirs=""
|
---|
| 7387 | MODULEDIRS=""
|
---|
| 7388 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7389 | if test -d "$x"; then
|
---|
| 7390 | d="$x/Makefile.in"
|
---|
| 7391 | if test -e "$d"; then
|
---|
| 7392 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7393 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7394 | fi
|
---|
| 7395 | fi
|
---|
| 7396 | done
|
---|
| 7397 | echo "Making$moduleDirs in modules directory"
|
---|
| 7398 |
|
---|
[8200] | 7399 |
|
---|
[687] | 7400 | # ---------------------------------------------------------------------------
|
---|
[1675] | 7401 |
|
---|
| 7402 |
|
---|
[8756] | 7403 | subdirs="$subdirs packages"
|
---|
| 7404 |
|
---|
| 7405 |
|
---|
[3063] | 7406 | # the list of folders in the src folder
|
---|
| 7407 | srclist="src/mgpp/lib/Makefile src/mgpp/text/Makefile src/mgpp/Makefile \
|
---|
| 7408 | src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile \
|
---|
[8200] | 7409 | src/oaiservr/Makefile src/db2txt/Makefile src/getpw/Makefile src/phind/generate/Makefile"
|
---|
[3063] | 7410 |
|
---|
[8756] | 7411 | ac_config_files="$ac_config_files packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile packages/mg/src/scripts/Makefile packages/mg/lib/Makefile lib/Makefile Makefile $srclist $moduleDirs"
|
---|
| 7412 | cat >confcache <<\_ACEOF
|
---|
[562] | 7413 | # This file is a shell script that caches the results of configure
|
---|
| 7414 | # tests run on this system so they can be shared between configure
|
---|
[8756] | 7415 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7416 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7417 | # want to keep, you may remove or edit it.
|
---|
[562] | 7418 | #
|
---|
[8756] | 7419 | # config.status only pays attention to the cache file if you give it
|
---|
| 7420 | # the --recheck option to rerun configure.
|
---|
[562] | 7421 | #
|
---|
[8756] | 7422 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7423 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7424 | # following values.
|
---|
| 7425 |
|
---|
| 7426 | _ACEOF
|
---|
| 7427 |
|
---|
[562] | 7428 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7429 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 7430 | # So, don't put newlines in cache variables' values.
|
---|
| 7431 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7432 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[8756] | 7433 | {
|
---|
| 7434 | (set) 2>&1 |
|
---|
| 7435 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7436 | *ac_space=\ *)
|
---|
| 7437 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7438 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7439 | sed -n \
|
---|
| 7440 | "s/'/'\\\\''/g;
|
---|
| 7441 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
| 7442 | ;;
|
---|
| 7443 | *)
|
---|
| 7444 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 7445 | sed -n \
|
---|
| 7446 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
| 7447 | ;;
|
---|
| 7448 | esac;
|
---|
| 7449 | } |
|
---|
| 7450 | sed '
|
---|
| 7451 | t clear
|
---|
| 7452 | : clear
|
---|
| 7453 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7454 | t end
|
---|
| 7455 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7456 | : end' >>confcache
|
---|
| 7457 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
[562] | 7458 | if test -w $cache_file; then
|
---|
[8756] | 7459 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
| 7460 | cat confcache >$cache_file
|
---|
[562] | 7461 | else
|
---|
| 7462 | echo "not updating unwritable cache $cache_file"
|
---|
| 7463 | fi
|
---|
| 7464 | fi
|
---|
| 7465 | rm -f confcache
|
---|
| 7466 |
|
---|
| 7467 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7468 | # Let make expand exec_prefix.
|
---|
| 7469 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7470 |
|
---|
[8756] | 7471 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7472 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7473 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7474 | # (actually we leave an empty line to preserve line numbers).
|
---|
[562] | 7475 | if test "x$srcdir" = x.; then
|
---|
[8756] | 7476 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7477 | s/:*\$(srcdir):*/:/;
|
---|
| 7478 | s/:*\${srcdir}:*/:/;
|
---|
| 7479 | s/:*@srcdir@:*/:/;
|
---|
| 7480 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
| 7481 | s/:*$//;
|
---|
| 7482 | s/^[^=]*=[ ]*$//;
|
---|
| 7483 | }'
|
---|
[562] | 7484 | fi
|
---|
| 7485 |
|
---|
[687] | 7486 | DEFS=-DHAVE_CONFIG_H
|
---|
[562] | 7487 |
|
---|
[8756] | 7488 | ac_libobjs=
|
---|
| 7489 | ac_ltlibobjs=
|
---|
| 7490 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7491 | # 1. Remove the extension, and $U if already installed.
|
---|
| 7492 | ac_i=`echo "$ac_i" |
|
---|
| 7493 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7494 | # 2. Add them.
|
---|
| 7495 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7496 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
| 7497 | done
|
---|
| 7498 | LIBOBJS=$ac_libobjs
|
---|
| 7499 |
|
---|
| 7500 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7501 |
|
---|
| 7502 |
|
---|
| 7503 |
|
---|
[562] | 7504 | : ${CONFIG_STATUS=./config.status}
|
---|
[8756] | 7505 | ac_clean_files_save=$ac_clean_files
|
---|
| 7506 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
| 7507 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 7508 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7509 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7510 | #! $SHELL
|
---|
| 7511 | # Generated by $as_me.
|
---|
[562] | 7512 | # Run this file to recreate the current configuration.
|
---|
| 7513 | # Compiler output produced by configure, useful for debugging
|
---|
[8756] | 7514 | # configure, is in config.log if it exists.
|
---|
[562] | 7515 |
|
---|
[8756] | 7516 | debug=false
|
---|
| 7517 | ac_cs_recheck=false
|
---|
| 7518 | ac_cs_silent=false
|
---|
| 7519 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7520 | _ACEOF
|
---|
| 7521 |
|
---|
| 7522 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7523 | ## --------------------- ##
|
---|
| 7524 | ## M4sh Initialization. ##
|
---|
| 7525 | ## --------------------- ##
|
---|
| 7526 |
|
---|
| 7527 | # Be Bourne compatible
|
---|
| 7528 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7529 | emulate sh
|
---|
| 7530 | NULLCMD=:
|
---|
| 7531 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7532 | # is contrary to our usage. Disable this feature.
|
---|
| 7533 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 7534 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7535 | set -o posix
|
---|
| 7536 | fi
|
---|
| 7537 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 7538 |
|
---|
| 7539 | # Support unset when possible.
|
---|
| 7540 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7541 | as_unset=unset
|
---|
| 7542 | else
|
---|
| 7543 | as_unset=false
|
---|
| 7544 | fi
|
---|
| 7545 |
|
---|
| 7546 |
|
---|
| 7547 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 7548 | $as_unset ENV MAIL MAILPATH
|
---|
| 7549 | PS1='$ '
|
---|
| 7550 | PS2='> '
|
---|
| 7551 | PS4='+ '
|
---|
| 7552 |
|
---|
| 7553 | # NLS nuisances.
|
---|
| 7554 | for as_var in \
|
---|
| 7555 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7556 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7557 | LC_TELEPHONE LC_TIME
|
---|
[562] | 7558 | do
|
---|
[8756] | 7559 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7560 | eval $as_var=C; export $as_var
|
---|
| 7561 | else
|
---|
| 7562 | $as_unset $as_var
|
---|
| 7563 | fi
|
---|
[562] | 7564 | done
|
---|
| 7565 |
|
---|
[8756] | 7566 | # Required to use basename.
|
---|
| 7567 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7568 | as_expr=expr
|
---|
| 7569 | else
|
---|
| 7570 | as_expr=false
|
---|
| 7571 | fi
|
---|
[562] | 7572 |
|
---|
[8756] | 7573 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 7574 | as_basename=basename
|
---|
| 7575 | else
|
---|
| 7576 | as_basename=false
|
---|
| 7577 | fi
|
---|
[562] | 7578 |
|
---|
| 7579 |
|
---|
[8756] | 7580 | # Name of the executable.
|
---|
| 7581 | as_me=`$as_basename "$0" ||
|
---|
| 7582 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7583 | X"$0" : 'X\(//\)$' \| \
|
---|
| 7584 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7585 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7586 | echo X/"$0" |
|
---|
| 7587 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7588 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7589 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7590 | s/.*/./; q'`
|
---|
[3631] | 7591 |
|
---|
| 7592 |
|
---|
[8756] | 7593 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 7594 | # Avoid depending upon Character Ranges.
|
---|
| 7595 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7596 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7597 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7598 | as_cr_digits='0123456789'
|
---|
| 7599 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 7600 |
|
---|
| 7601 | # The user is always right.
|
---|
| 7602 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7603 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7604 | echo "exit 0" >>conf$$.sh
|
---|
| 7605 | chmod +x conf$$.sh
|
---|
| 7606 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7607 | PATH_SEPARATOR=';'
|
---|
[8200] | 7608 | else
|
---|
[8756] | 7609 | PATH_SEPARATOR=:
|
---|
[8200] | 7610 | fi
|
---|
[8756] | 7611 | rm -f conf$$.sh
|
---|
| 7612 | fi
|
---|
| 7613 |
|
---|
| 7614 |
|
---|
| 7615 | as_lineno_1=$LINENO
|
---|
| 7616 | as_lineno_2=$LINENO
|
---|
| 7617 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7618 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7619 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7620 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7621 | # relative or not.
|
---|
| 7622 | case $0 in
|
---|
| 7623 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7624 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7625 | for as_dir in $PATH
|
---|
| 7626 | do
|
---|
| 7627 | IFS=$as_save_IFS
|
---|
| 7628 | test -z "$as_dir" && as_dir=.
|
---|
| 7629 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7630 | done
|
---|
| 7631 |
|
---|
| 7632 | ;;
|
---|
| 7633 | esac
|
---|
| 7634 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7635 | # in which case we are not to be found in the path.
|
---|
| 7636 | if test "x$as_myself" = x; then
|
---|
| 7637 | as_myself=$0
|
---|
| 7638 | fi
|
---|
| 7639 | if test ! -f "$as_myself"; then
|
---|
| 7640 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 7641 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 7642 | { (exit 1); exit 1; }; }
|
---|
| 7643 | fi
|
---|
| 7644 | case $CONFIG_SHELL in
|
---|
| 7645 | '')
|
---|
| 7646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7647 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 7648 | do
|
---|
| 7649 | IFS=$as_save_IFS
|
---|
| 7650 | test -z "$as_dir" && as_dir=.
|
---|
| 7651 | for as_base in sh bash ksh sh5; do
|
---|
| 7652 | case $as_dir in
|
---|
| 7653 | /*)
|
---|
| 7654 | if ("$as_dir/$as_base" -c '
|
---|
| 7655 | as_lineno_1=$LINENO
|
---|
| 7656 | as_lineno_2=$LINENO
|
---|
| 7657 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7658 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7659 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 7660 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 7661 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 7662 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 7663 | export CONFIG_SHELL
|
---|
| 7664 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 7665 | fi;;
|
---|
| 7666 | esac
|
---|
| 7667 | done
|
---|
| 7668 | done
|
---|
| 7669 | ;;
|
---|
| 7670 | esac
|
---|
| 7671 |
|
---|
| 7672 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 7673 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 7674 | # line-number line before each line; the second 'sed' does the real
|
---|
| 7675 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 7676 | # with the numbered line, and appends trailing '-' during
|
---|
| 7677 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 7678 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 7679 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 7680 | sed '=' <$as_myself |
|
---|
| 7681 | sed '
|
---|
| 7682 | N
|
---|
| 7683 | s,$,-,
|
---|
| 7684 | : loop
|
---|
| 7685 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 7686 | t loop
|
---|
| 7687 | s,-$,,
|
---|
| 7688 | s,^['$as_cr_digits']*\n,,
|
---|
| 7689 | ' >$as_me.lineno &&
|
---|
| 7690 | chmod +x $as_me.lineno ||
|
---|
| 7691 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 7692 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 7693 | { (exit 1); exit 1; }; }
|
---|
| 7694 |
|
---|
| 7695 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 7696 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 7697 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 7698 | . ./$as_me.lineno
|
---|
| 7699 | # Exit status is that of the last command.
|
---|
| 7700 | exit
|
---|
| 7701 | }
|
---|
| 7702 |
|
---|
| 7703 |
|
---|
| 7704 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 7705 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 7706 | ' ECHO_T=' ' ;;
|
---|
| 7707 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 7708 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 7709 | esac
|
---|
| 7710 |
|
---|
| 7711 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7712 | as_expr=expr
|
---|
| 7713 | else
|
---|
| 7714 | as_expr=false
|
---|
| 7715 | fi
|
---|
| 7716 |
|
---|
| 7717 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7718 | echo >conf$$.file
|
---|
| 7719 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7720 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 7721 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 7722 | if test -f conf$$.exe; then
|
---|
| 7723 | # Don't use ln at all; we don't have any links
|
---|
| 7724 | as_ln_s='cp -p'
|
---|
[8200] | 7725 | else
|
---|
[8756] | 7726 | as_ln_s='ln -s'
|
---|
[562] | 7727 | fi
|
---|
[8756] | 7728 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7729 | as_ln_s=ln
|
---|
| 7730 | else
|
---|
| 7731 | as_ln_s='cp -p'
|
---|
| 7732 | fi
|
---|
| 7733 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7734 |
|
---|
| 7735 | if mkdir -p . 2>/dev/null; then
|
---|
| 7736 | as_mkdir_p=:
|
---|
| 7737 | else
|
---|
| 7738 | test -d ./-p && rmdir ./-p
|
---|
| 7739 | as_mkdir_p=false
|
---|
| 7740 | fi
|
---|
| 7741 |
|
---|
| 7742 | as_executable_p="test -f"
|
---|
| 7743 |
|
---|
| 7744 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7745 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7746 |
|
---|
| 7747 | # Sed expression to map a string onto a valid variable name.
|
---|
| 7748 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7749 |
|
---|
| 7750 |
|
---|
| 7751 | # IFS
|
---|
| 7752 | # We need space, tab and new line, in precisely that order.
|
---|
| 7753 | as_nl='
|
---|
| 7754 | '
|
---|
| 7755 | IFS=" $as_nl"
|
---|
| 7756 |
|
---|
| 7757 | # CDPATH.
|
---|
| 7758 | $as_unset CDPATH
|
---|
| 7759 |
|
---|
| 7760 | exec 6>&1
|
---|
| 7761 |
|
---|
| 7762 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
| 7763 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 7764 | # values after options handling. Logging --version etc. is OK.
|
---|
| 7765 | exec 5>>config.log
|
---|
| 7766 | {
|
---|
| 7767 | echo
|
---|
| 7768 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7769 | ## Running $as_me. ##
|
---|
| 7770 | _ASBOX
|
---|
| 7771 | } >&5
|
---|
| 7772 | cat >&5 <<_CSEOF
|
---|
| 7773 |
|
---|
| 7774 | This file was extended by $as_me, which was
|
---|
| 7775 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 7776 |
|
---|
| 7777 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 7778 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 7779 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 7780 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 7781 | $ $0 $@
|
---|
| 7782 |
|
---|
| 7783 | _CSEOF
|
---|
| 7784 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 7785 | echo >&5
|
---|
| 7786 | _ACEOF
|
---|
| 7787 |
|
---|
| 7788 | # Files that config.status was made for.
|
---|
| 7789 | if test -n "$ac_config_files"; then
|
---|
| 7790 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 7791 | fi
|
---|
| 7792 |
|
---|
| 7793 | if test -n "$ac_config_headers"; then
|
---|
| 7794 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 7795 | fi
|
---|
| 7796 |
|
---|
| 7797 | if test -n "$ac_config_links"; then
|
---|
| 7798 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 7799 | fi
|
---|
| 7800 |
|
---|
| 7801 | if test -n "$ac_config_commands"; then
|
---|
| 7802 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 7803 | fi
|
---|
| 7804 |
|
---|
| 7805 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7806 |
|
---|
| 7807 | ac_cs_usage="\
|
---|
| 7808 | \`$as_me' instantiates files from templates according to the
|
---|
| 7809 | current configuration.
|
---|
| 7810 |
|
---|
| 7811 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 7812 |
|
---|
| 7813 | -h, --help print this help, then exit
|
---|
| 7814 | -V, --version print version number, then exit
|
---|
| 7815 | -q, --quiet do not print progress messages
|
---|
| 7816 | -d, --debug don't remove temporary files
|
---|
| 7817 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 7818 | --file=FILE[:TEMPLATE]
|
---|
| 7819 | instantiate the configuration file FILE
|
---|
| 7820 | --header=FILE[:TEMPLATE]
|
---|
| 7821 | instantiate the configuration header FILE
|
---|
| 7822 |
|
---|
| 7823 | Configuration files:
|
---|
| 7824 | $config_files
|
---|
| 7825 |
|
---|
| 7826 | Configuration headers:
|
---|
| 7827 | $config_headers
|
---|
| 7828 |
|
---|
| 7829 | Report bugs to <[email protected]>."
|
---|
| 7830 | _ACEOF
|
---|
| 7831 |
|
---|
| 7832 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7833 | ac_cs_version="\\
|
---|
| 7834 | config.status
|
---|
| 7835 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
| 7836 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
| 7837 |
|
---|
| 7838 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
| 7839 | This config.status script is free software; the Free Software Foundation
|
---|
| 7840 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 7841 | srcdir=$srcdir
|
---|
| 7842 | INSTALL="$INSTALL"
|
---|
| 7843 | _ACEOF
|
---|
| 7844 |
|
---|
| 7845 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7846 | # If no file are specified by the user, then we need to provide default
|
---|
| 7847 | # value. By we need to know if files were specified by the user.
|
---|
| 7848 | ac_need_defaults=:
|
---|
| 7849 | while test $# != 0
|
---|
| 7850 | do
|
---|
| 7851 | case $1 in
|
---|
| 7852 | --*=*)
|
---|
| 7853 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 7854 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
| 7855 | ac_shift=:
|
---|
| 7856 | ;;
|
---|
| 7857 | -*)
|
---|
| 7858 | ac_option=$1
|
---|
| 7859 | ac_optarg=$2
|
---|
| 7860 | ac_shift=shift
|
---|
| 7861 | ;;
|
---|
| 7862 | *) # This is not an option, so the user has probably given explicit
|
---|
| 7863 | # arguments.
|
---|
| 7864 | ac_option=$1
|
---|
| 7865 | ac_need_defaults=false;;
|
---|
| 7866 | esac
|
---|
| 7867 |
|
---|
| 7868 | case $ac_option in
|
---|
| 7869 | # Handling of the options.
|
---|
| 7870 | _ACEOF
|
---|
| 7871 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7872 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 7873 | ac_cs_recheck=: ;;
|
---|
| 7874 | --version | --vers* | -V )
|
---|
| 7875 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 7876 | --he | --h)
|
---|
| 7877 | # Conflict between --help and --header
|
---|
| 7878 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
| 7879 | Try \`$0 --help' for more information." >&5
|
---|
| 7880 | echo "$as_me: error: ambiguous option: $1
|
---|
| 7881 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7882 | { (exit 1); exit 1; }; };;
|
---|
| 7883 | --help | --hel | -h )
|
---|
| 7884 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 7885 | --debug | --d* | -d )
|
---|
| 7886 | debug=: ;;
|
---|
| 7887 | --file | --fil | --fi | --f )
|
---|
| 7888 | $ac_shift
|
---|
| 7889 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
| 7890 | ac_need_defaults=false;;
|
---|
| 7891 | --header | --heade | --head | --hea )
|
---|
| 7892 | $ac_shift
|
---|
| 7893 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
| 7894 | ac_need_defaults=false;;
|
---|
| 7895 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 7896 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 7897 | ac_cs_silent=: ;;
|
---|
| 7898 |
|
---|
| 7899 | # This is an error.
|
---|
| 7900 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
| 7901 | Try \`$0 --help' for more information." >&5
|
---|
| 7902 | echo "$as_me: error: unrecognized option: $1
|
---|
| 7903 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7904 | { (exit 1); exit 1; }; } ;;
|
---|
| 7905 |
|
---|
| 7906 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
| 7907 |
|
---|
| 7908 | esac
|
---|
| 7909 | shift
|
---|
[8200] | 7910 | done
|
---|
[8756] | 7911 |
|
---|
| 7912 | ac_configure_extra_args=
|
---|
| 7913 |
|
---|
| 7914 | if $ac_cs_silent; then
|
---|
| 7915 | exec 6>/dev/null
|
---|
| 7916 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
[8200] | 7917 | fi
|
---|
[562] | 7918 |
|
---|
[8756] | 7919 | _ACEOF
|
---|
| 7920 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7921 | if \$ac_cs_recheck; then
|
---|
| 7922 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 7923 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 7924 | fi
|
---|
[8200] | 7925 |
|
---|
[8756] | 7926 | _ACEOF
|
---|
| 7927 |
|
---|
| 7928 |
|
---|
| 7929 |
|
---|
| 7930 |
|
---|
| 7931 |
|
---|
| 7932 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7933 | for ac_config_target in $ac_config_targets
|
---|
| 7934 | do
|
---|
| 7935 | case "$ac_config_target" in
|
---|
| 7936 | # Handling of arguments.
|
---|
| 7937 | "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
| 7938 | "packages/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/Makefile" ;;
|
---|
| 7939 | "packages/mg/src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/text/Makefile" ;;
|
---|
| 7940 | "packages/mg/src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/images/Makefile" ;;
|
---|
| 7941 | "packages/mg/src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/scripts/Makefile" ;;
|
---|
| 7942 | "packages/mg/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/lib/Makefile" ;;
|
---|
| 7943 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
| 7944 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7945 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 7946 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 7947 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 7948 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 7949 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 7950 | { (exit 1); exit 1; }; };;
|
---|
[562] | 7951 | esac
|
---|
[8756] | 7952 | done
|
---|
[562] | 7953 |
|
---|
[8756] | 7954 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7955 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7956 | # We use the long form for the default assignment because of an extremely
|
---|
| 7957 | # bizarre bug on SunOS 4.1.3.
|
---|
| 7958 | if $ac_need_defaults; then
|
---|
| 7959 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 7960 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 7961 | fi
|
---|
[8200] | 7962 |
|
---|
[8756] | 7963 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 7964 | # simply because there is no reason to put it here, and in addition,
|
---|
| 7965 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
| 7966 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
| 7967 | $debug ||
|
---|
| 7968 | {
|
---|
| 7969 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
| 7970 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
| 7971 | }
|
---|
| 7972 |
|
---|
| 7973 | # Create a (secure) tmp directory for tmp files.
|
---|
| 7974 |
|
---|
| 7975 | {
|
---|
| 7976 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
| 7977 | test -n "$tmp" && test -d "$tmp"
|
---|
| 7978 | } ||
|
---|
| 7979 | {
|
---|
| 7980 | tmp=./confstat$$-$RANDOM
|
---|
| 7981 | (umask 077 && mkdir $tmp)
|
---|
| 7982 | } ||
|
---|
| 7983 | {
|
---|
| 7984 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 7985 | { (exit 1); exit 1; }
|
---|
| 7986 | }
|
---|
| 7987 |
|
---|
| 7988 | _ACEOF
|
---|
| 7989 |
|
---|
| 7990 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7991 |
|
---|
| 7992 | #
|
---|
| 7993 | # CONFIG_FILES section.
|
---|
| 7994 | #
|
---|
| 7995 |
|
---|
| 7996 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 7997 | # This happens for instance when ./config.status config.h
|
---|
| 7998 | if test -n "\$CONFIG_FILES"; then
|
---|
| 7999 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 8000 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 8001 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 8002 | s,@SHELL@,$SHELL,;t t
|
---|
| 8003 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 8004 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 8005 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 8006 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 8007 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 8008 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
| 8009 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 8010 | s,@prefix@,$prefix,;t t
|
---|
| 8011 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 8012 | s,@bindir@,$bindir,;t t
|
---|
| 8013 | s,@sbindir@,$sbindir,;t t
|
---|
| 8014 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 8015 | s,@datadir@,$datadir,;t t
|
---|
| 8016 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 8017 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 8018 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 8019 | s,@libdir@,$libdir,;t t
|
---|
| 8020 | s,@includedir@,$includedir,;t t
|
---|
| 8021 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 8022 | s,@infodir@,$infodir,;t t
|
---|
| 8023 | s,@mandir@,$mandir,;t t
|
---|
| 8024 | s,@build_alias@,$build_alias,;t t
|
---|
| 8025 | s,@host_alias@,$host_alias,;t t
|
---|
| 8026 | s,@target_alias@,$target_alias,;t t
|
---|
| 8027 | s,@DEFS@,$DEFS,;t t
|
---|
| 8028 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 8029 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 8030 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 8031 | s,@LIBS@,$LIBS,;t t
|
---|
| 8032 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 8033 | s,@VERSION@,$VERSION,;t t
|
---|
| 8034 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
| 8035 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
| 8036 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
| 8037 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
| 8038 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
[12492] | 8039 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
[12922] | 8040 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
[8756] | 8041 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 8042 | s,@CC@,$CC,;t t
|
---|
| 8043 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 8044 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 8045 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 8046 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 8047 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 8048 | s,@CXX@,$CXX,;t t
|
---|
| 8049 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 8050 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 8051 | s,@AWK@,$AWK,;t t
|
---|
| 8052 | s,@YACC@,$YACC,;t t
|
---|
| 8053 | s,@build@,$build,;t t
|
---|
| 8054 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 8055 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 8056 | s,@build_os@,$build_os,;t t
|
---|
| 8057 | s,@host@,$host,;t t
|
---|
| 8058 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 8059 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 8060 | s,@host_os@,$host_os,;t t
|
---|
| 8061 | s,@target@,$target,;t t
|
---|
| 8062 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 8063 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 8064 | s,@target_os@,$target_os,;t t
|
---|
| 8065 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 8066 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 8067 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 8068 | s,@LN_S@,$LN_S,;t t
|
---|
| 8069 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 8070 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 8071 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 8072 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
| 8073 | s,@CPP@,$CPP,;t t
|
---|
| 8074 | s,@EGREP@,$EGREP,;t t
|
---|
| 8075 | s,@U@,$U,;t t
|
---|
| 8076 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 8077 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 8078 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
| 8079 | s,@STATIC@,$STATIC,;t t
|
---|
| 8080 | s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t
|
---|
| 8081 | s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t
|
---|
| 8082 | s,@gsdlos@,$gsdlos,;t t
|
---|
| 8083 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
| 8084 | s,@subdirs@,$subdirs,;t t
|
---|
| 8085 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
| 8086 | CEOF
|
---|
| 8087 |
|
---|
| 8088 | _ACEOF
|
---|
| 8089 |
|
---|
| 8090 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8091 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 8092 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 8093 | ac_max_sed_lines=48
|
---|
| 8094 | ac_sed_frag=1 # Number of current file.
|
---|
| 8095 | ac_beg=1 # First line for current file.
|
---|
| 8096 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 8097 | ac_more_lines=:
|
---|
| 8098 | ac_sed_cmds=
|
---|
| 8099 | while $ac_more_lines; do
|
---|
| 8100 | if test $ac_beg -gt 1; then
|
---|
| 8101 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 8102 | else
|
---|
| 8103 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 8104 | fi
|
---|
| 8105 | if test ! -s $tmp/subs.frag; then
|
---|
| 8106 | ac_more_lines=false
|
---|
| 8107 | else
|
---|
| 8108 | # The purpose of the label and of the branching condition is to
|
---|
| 8109 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 8110 | # is no need to browse any of the substitutions).
|
---|
| 8111 | # These are the two extra sed commands mentioned above.
|
---|
| 8112 | (echo ':t
|
---|
| 8113 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 8114 | if test -z "$ac_sed_cmds"; then
|
---|
| 8115 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8116 | else
|
---|
| 8117 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8118 | fi
|
---|
| 8119 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8120 | ac_beg=$ac_end
|
---|
| 8121 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8122 | fi
|
---|
| 8123 | done
|
---|
| 8124 | if test -z "$ac_sed_cmds"; then
|
---|
| 8125 | ac_sed_cmds=cat
|
---|
[562] | 8126 | fi
|
---|
[8756] | 8127 | fi # test -n "$CONFIG_FILES"
|
---|
[562] | 8128 |
|
---|
[8756] | 8129 | _ACEOF
|
---|
| 8130 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8131 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 8132 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 8133 | case $ac_file in
|
---|
| 8134 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8135 | cat >$tmp/stdin
|
---|
| 8136 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8137 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8138 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8139 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8140 | * ) ac_file_in=$ac_file.in ;;
|
---|
[562] | 8141 | esac
|
---|
| 8142 |
|
---|
[8756] | 8143 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
| 8144 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8145 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8146 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8147 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8148 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8149 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8150 | echo X"$ac_file" |
|
---|
| 8151 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8152 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8153 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8154 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8155 | s/.*/./; q'`
|
---|
| 8156 | { if $as_mkdir_p; then
|
---|
| 8157 | mkdir -p "$ac_dir"
|
---|
| 8158 | else
|
---|
| 8159 | as_dir="$ac_dir"
|
---|
| 8160 | as_dirs=
|
---|
| 8161 | while test ! -d "$as_dir"; do
|
---|
| 8162 | as_dirs="$as_dir $as_dirs"
|
---|
| 8163 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8164 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8165 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8166 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8167 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8168 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8169 | echo X"$as_dir" |
|
---|
| 8170 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8171 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8172 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8173 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8174 | s/.*/./; q'`
|
---|
| 8175 | done
|
---|
| 8176 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8177 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8178 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8179 | { (exit 1); exit 1; }; }; }
|
---|
[562] | 8180 |
|
---|
[8756] | 8181 | ac_builddir=.
|
---|
| 8182 |
|
---|
| 8183 | if test "$ac_dir" != .; then
|
---|
| 8184 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8185 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8186 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8187 | else
|
---|
| 8188 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8189 | fi
|
---|
| 8190 |
|
---|
| 8191 | case $srcdir in
|
---|
| 8192 | .) # No --srcdir option. We are building in place.
|
---|
| 8193 | ac_srcdir=.
|
---|
| 8194 | if test -z "$ac_top_builddir"; then
|
---|
| 8195 | ac_top_srcdir=.
|
---|
| 8196 | else
|
---|
| 8197 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8198 | fi ;;
|
---|
| 8199 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8200 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8201 | ac_top_srcdir=$srcdir ;;
|
---|
| 8202 | *) # Relative path.
|
---|
| 8203 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8204 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8205 | esac
|
---|
| 8206 |
|
---|
| 8207 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8208 | # the directories may not exist.
|
---|
| 8209 | case `pwd` in
|
---|
| 8210 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8211 | *)
|
---|
| 8212 | case "$ac_dir" in
|
---|
| 8213 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8214 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8215 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8216 | esac;;
|
---|
| 8217 | esac
|
---|
| 8218 | case $ac_abs_builddir in
|
---|
| 8219 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8220 | *)
|
---|
| 8221 | case ${ac_top_builddir}. in
|
---|
| 8222 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8223 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8224 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8225 | esac;;
|
---|
| 8226 | esac
|
---|
| 8227 | case $ac_abs_builddir in
|
---|
| 8228 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8229 | *)
|
---|
| 8230 | case $ac_srcdir in
|
---|
| 8231 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8232 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8233 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8234 | esac;;
|
---|
| 8235 | esac
|
---|
| 8236 | case $ac_abs_builddir in
|
---|
| 8237 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8238 | *)
|
---|
| 8239 | case $ac_top_srcdir in
|
---|
| 8240 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8241 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8242 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8243 | esac;;
|
---|
| 8244 | esac
|
---|
| 8245 |
|
---|
| 8246 |
|
---|
| 8247 | case $INSTALL in
|
---|
| 8248 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
| 8249 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[8200] | 8250 | esac
|
---|
[562] | 8251 |
|
---|
[8756] | 8252 | if test x"$ac_file" != x-; then
|
---|
| 8253 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8254 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8255 | rm -f "$ac_file"
|
---|
| 8256 | fi
|
---|
| 8257 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8258 | # use $as_me), people would be surprised to read:
|
---|
| 8259 | # /* config.h. Generated by config.status. */
|
---|
| 8260 | if test x"$ac_file" = x-; then
|
---|
| 8261 | configure_input=
|
---|
| 8262 | else
|
---|
| 8263 | configure_input="$ac_file. "
|
---|
| 8264 | fi
|
---|
| 8265 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8266 | sed 's,.*/,,'` by configure."
|
---|
[562] | 8267 |
|
---|
[8756] | 8268 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8269 | # src tree.
|
---|
| 8270 | ac_file_inputs=`IFS=:
|
---|
| 8271 | for f in $ac_file_in; do
|
---|
| 8272 | case $f in
|
---|
| 8273 | -) echo $tmp/stdin ;;
|
---|
| 8274 | [\\/$]*)
|
---|
| 8275 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8276 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8277 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8278 | { (exit 1); exit 1; }; }
|
---|
| 8279 | echo "$f";;
|
---|
| 8280 | *) # Relative
|
---|
| 8281 | if test -f "$f"; then
|
---|
| 8282 | # Build tree
|
---|
| 8283 | echo "$f"
|
---|
| 8284 | elif test -f "$srcdir/$f"; then
|
---|
| 8285 | # Source tree
|
---|
| 8286 | echo "$srcdir/$f"
|
---|
| 8287 | else
|
---|
| 8288 | # /dev/null tree
|
---|
| 8289 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8290 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8291 | { (exit 1); exit 1; }; }
|
---|
| 8292 | fi;;
|
---|
| 8293 | esac
|
---|
| 8294 | done` || { (exit 1); exit 1; }
|
---|
| 8295 | _ACEOF
|
---|
| 8296 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8297 | sed "$ac_vpsub
|
---|
| 8298 | $extrasub
|
---|
| 8299 | _ACEOF
|
---|
| 8300 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8301 | :t
|
---|
| 8302 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 8303 | s,@configure_input@,$configure_input,;t t
|
---|
| 8304 | s,@srcdir@,$ac_srcdir,;t t
|
---|
| 8305 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
| 8306 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
| 8307 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8308 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8309 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8310 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8311 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
| 8312 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8313 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8314 | rm -f $tmp/stdin
|
---|
| 8315 | if test x"$ac_file" != x-; then
|
---|
| 8316 | mv $tmp/out $ac_file
|
---|
| 8317 | else
|
---|
| 8318 | cat $tmp/out
|
---|
| 8319 | rm -f $tmp/out
|
---|
| 8320 | fi
|
---|
| 8321 |
|
---|
| 8322 | done
|
---|
| 8323 | _ACEOF
|
---|
| 8324 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8325 |
|
---|
| 8326 | #
|
---|
| 8327 | # CONFIG_HEADER section.
|
---|
| 8328 | #
|
---|
| 8329 |
|
---|
[687] | 8330 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8331 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8332 | #
|
---|
| 8333 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
[8756] | 8334 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8335 | ac_dB='[ ].*$,\1#\2'
|
---|
| 8336 | ac_dC=' '
|
---|
| 8337 | ac_dD=',;t'
|
---|
| 8338 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 8339 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 8340 | ac_uB='$,\1#\2define\3'
|
---|
[687] | 8341 | ac_uC=' '
|
---|
[8756] | 8342 | ac_uD=',;t'
|
---|
[687] | 8343 |
|
---|
[8756] | 8344 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
[687] | 8345 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8756] | 8346 | case $ac_file in
|
---|
| 8347 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8348 | cat >$tmp/stdin
|
---|
| 8349 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8350 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8351 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8352 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8353 | * ) ac_file_in=$ac_file.in ;;
|
---|
[687] | 8354 | esac
|
---|
[562] | 8355 |
|
---|
[8756] | 8356 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8357 | echo "$as_me: creating $ac_file" >&6;}
|
---|
[687] | 8358 |
|
---|
[8756] | 8359 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8360 | # src tree.
|
---|
| 8361 | ac_file_inputs=`IFS=:
|
---|
| 8362 | for f in $ac_file_in; do
|
---|
| 8363 | case $f in
|
---|
| 8364 | -) echo $tmp/stdin ;;
|
---|
| 8365 | [\\/$]*)
|
---|
| 8366 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8367 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8368 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8369 | { (exit 1); exit 1; }; }
|
---|
| 8370 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8371 | echo "$f";;
|
---|
| 8372 | *) # Relative
|
---|
| 8373 | if test -f "$f"; then
|
---|
| 8374 | # Build tree
|
---|
| 8375 | echo "$f"
|
---|
| 8376 | elif test -f "$srcdir/$f"; then
|
---|
| 8377 | # Source tree
|
---|
| 8378 | echo "$srcdir/$f"
|
---|
| 8379 | else
|
---|
| 8380 | # /dev/null tree
|
---|
| 8381 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8382 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8383 | { (exit 1); exit 1; }; }
|
---|
| 8384 | fi;;
|
---|
| 8385 | esac
|
---|
| 8386 | done` || { (exit 1); exit 1; }
|
---|
| 8387 | # Remove the trailing spaces.
|
---|
| 8388 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
[687] | 8389 |
|
---|
[8756] | 8390 | _ACEOF
|
---|
[687] | 8391 |
|
---|
[8756] | 8392 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8393 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8394 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8395 | # templates, and the second `#undef' templates.
|
---|
| 8396 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8397 | # config.status. Protect against being in an unquoted here document
|
---|
| 8398 | # in config.status.
|
---|
| 8399 | rm -f conftest.defines conftest.undefs
|
---|
| 8400 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8401 | # Putting comments in sed scripts is not portable.
|
---|
| 8402 | #
|
---|
| 8403 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8404 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8405 | # See the Autoconf documentation for `clear'.
|
---|
| 8406 | cat >confdef2sed.sed <<\_ACEOF
|
---|
| 8407 | s/[\\&,]/\\&/g
|
---|
| 8408 | s,[\\$`],\\&,g
|
---|
| 8409 | t clear
|
---|
| 8410 | : clear
|
---|
| 8411 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
| 8412 | t end
|
---|
| 8413 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
| 8414 | : end
|
---|
| 8415 | _ACEOF
|
---|
| 8416 | # If some macros were called several times there might be several times
|
---|
| 8417 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8418 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8419 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8420 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8421 | rm -f confdef2sed.sed
|
---|
[687] | 8422 |
|
---|
| 8423 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 8424 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8425 | # on some systems where configure will not decide to define it.
|
---|
[8756] | 8426 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8427 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8428 | _ACEOF
|
---|
[687] | 8429 |
|
---|
[8756] | 8430 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8431 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8432 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
| 8433 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
| 8434 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8435 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8436 | rm -f conftest.tail
|
---|
| 8437 | while grep . conftest.defines >/dev/null
|
---|
| 8438 | do
|
---|
| 8439 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8440 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8441 | # Speed up: don't consider the non `#define' lines.
|
---|
| 8442 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
| 8443 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8444 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8445 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8446 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 8447 | echo 'CEOF
|
---|
| 8448 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8449 | rm -f $tmp/in
|
---|
| 8450 | mv $tmp/out $tmp/in
|
---|
| 8451 | ' >>$CONFIG_STATUS
|
---|
| 8452 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 8453 | rm -f conftest.defines
|
---|
| 8454 | mv conftest.tail conftest.defines
|
---|
| 8455 | done
|
---|
| 8456 | rm -f conftest.defines
|
---|
| 8457 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
| 8458 | echo >>$CONFIG_STATUS
|
---|
[687] | 8459 |
|
---|
[8756] | 8460 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8461 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8462 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
[687] | 8463 | rm -f conftest.tail
|
---|
[8756] | 8464 | while grep . conftest.undefs >/dev/null
|
---|
[687] | 8465 | do
|
---|
[8756] | 8466 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8467 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8468 | # Speed up: don't consider the non `#undef'
|
---|
| 8469 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
| 8470 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8471 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8472 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8473 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
[687] | 8474 | echo 'CEOF
|
---|
[8756] | 8475 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8476 | rm -f $tmp/in
|
---|
| 8477 | mv $tmp/out $tmp/in
|
---|
| 8478 | ' >>$CONFIG_STATUS
|
---|
| 8479 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8480 | rm -f conftest.undefs
|
---|
| 8481 | mv conftest.tail conftest.undefs
|
---|
[687] | 8482 | done
|
---|
[8756] | 8483 | rm -f conftest.undefs
|
---|
[687] | 8484 |
|
---|
[8756] | 8485 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8486 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8487 | # use $as_me), people would be surprised to read:
|
---|
| 8488 | # /* config.h. Generated by config.status. */
|
---|
| 8489 | if test x"$ac_file" = x-; then
|
---|
| 8490 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
[687] | 8491 | else
|
---|
[8756] | 8492 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
| 8493 | fi
|
---|
| 8494 | cat $tmp/in >>$tmp/config.h
|
---|
| 8495 | rm -f $tmp/in
|
---|
| 8496 | if test x"$ac_file" != x-; then
|
---|
| 8497 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 8498 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 8499 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8500 | else
|
---|
| 8501 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8502 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8503 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8504 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8505 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8506 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8507 | echo X"$ac_file" |
|
---|
| 8508 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8509 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8510 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8511 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8512 | s/.*/./; q'`
|
---|
| 8513 | { if $as_mkdir_p; then
|
---|
| 8514 | mkdir -p "$ac_dir"
|
---|
| 8515 | else
|
---|
| 8516 | as_dir="$ac_dir"
|
---|
| 8517 | as_dirs=
|
---|
| 8518 | while test ! -d "$as_dir"; do
|
---|
| 8519 | as_dirs="$as_dir $as_dirs"
|
---|
| 8520 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8521 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8522 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8523 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8524 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8525 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8526 | echo X"$as_dir" |
|
---|
| 8527 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8528 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8529 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8530 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8531 | s/.*/./; q'`
|
---|
| 8532 | done
|
---|
| 8533 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8534 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8535 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8536 | { (exit 1); exit 1; }; }; }
|
---|
| 8537 |
|
---|
| 8538 | rm -f $ac_file
|
---|
| 8539 | mv $tmp/config.h $ac_file
|
---|
[687] | 8540 | fi
|
---|
[8756] | 8541 | else
|
---|
| 8542 | cat $tmp/config.h
|
---|
| 8543 | rm -f $tmp/config.h
|
---|
[687] | 8544 | fi
|
---|
[8756] | 8545 | done
|
---|
| 8546 | _ACEOF
|
---|
[8200] | 8547 |
|
---|
[8756] | 8548 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[687] | 8549 |
|
---|
[8756] | 8550 | { (exit 0); exit 0; }
|
---|
| 8551 | _ACEOF
|
---|
[562] | 8552 | chmod +x $CONFIG_STATUS
|
---|
[8756] | 8553 | ac_clean_files=$ac_clean_files_save
|
---|
[562] | 8554 |
|
---|
[8756] | 8555 |
|
---|
| 8556 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8557 | # config.status does its own redirection, appending to config.log.
|
---|
| 8558 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8559 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8560 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8561 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8562 | # appended to by config.status. When coming back to configure, we
|
---|
| 8563 | # need to make the FD available again.
|
---|
| 8564 | if test "$no_create" != yes; then
|
---|
| 8565 | ac_cs_success=:
|
---|
| 8566 | ac_config_status_args=
|
---|
| 8567 | test "$silent" = yes &&
|
---|
| 8568 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 8569 | exec 5>/dev/null
|
---|
| 8570 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 8571 | exec 5>>config.log
|
---|
| 8572 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8573 | # would make configure fail if this is the last instruction.
|
---|
| 8574 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 8575 | fi
|
---|
| 8576 |
|
---|
| 8577 | #
|
---|
| 8578 | # CONFIG_SUBDIRS section.
|
---|
| 8579 | #
|
---|
[1675] | 8580 | if test "$no_recursion" != yes; then
|
---|
[562] | 8581 |
|
---|
[1675] | 8582 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
| 8583 | ac_sub_configure_args=
|
---|
| 8584 | ac_prev=
|
---|
| 8585 | for ac_arg in $ac_configure_args; do
|
---|
| 8586 | if test -n "$ac_prev"; then
|
---|
| 8587 | ac_prev=
|
---|
| 8588 | continue
|
---|
| 8589 | fi
|
---|
[8756] | 8590 | case $ac_arg in
|
---|
[1675] | 8591 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 8592 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 8593 | ac_prev=cache_file ;;
|
---|
| 8594 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
[8756] | 8595 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 8596 | | --c=*)
|
---|
[1675] | 8597 | ;;
|
---|
[8756] | 8598 | --config-cache | -C)
|
---|
| 8599 | ;;
|
---|
[1675] | 8600 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 8601 | ac_prev=srcdir ;;
|
---|
| 8602 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 8603 | ;;
|
---|
[8756] | 8604 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 8605 | ac_prev=prefix ;;
|
---|
| 8606 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 8607 | ;;
|
---|
[1675] | 8608 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
| 8609 | esac
|
---|
| 8610 | done
|
---|
[562] | 8611 |
|
---|
[8756] | 8612 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 8613 | # in subdir configurations.
|
---|
| 8614 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
[1570] | 8615 |
|
---|
[8756] | 8616 | ac_popdir=`pwd`
|
---|
| 8617 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 8618 |
|
---|
[1675] | 8619 | # Do not complain, so a configure script can configure whichever
|
---|
| 8620 | # parts of a large source tree are present.
|
---|
[8756] | 8621 | test -d $srcdir/$ac_dir || continue
|
---|
[1675] | 8622 |
|
---|
[8756] | 8623 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 8624 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 8625 | { if $as_mkdir_p; then
|
---|
| 8626 | mkdir -p "$ac_dir"
|
---|
| 8627 | else
|
---|
| 8628 | as_dir="$ac_dir"
|
---|
| 8629 | as_dirs=
|
---|
| 8630 | while test ! -d "$as_dir"; do
|
---|
| 8631 | as_dirs="$as_dir $as_dirs"
|
---|
| 8632 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8633 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8634 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8635 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8636 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8637 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8638 | echo X"$as_dir" |
|
---|
| 8639 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8640 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8641 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8642 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8643 | s/.*/./; q'`
|
---|
| 8644 | done
|
---|
| 8645 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8646 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8647 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8648 | { (exit 1); exit 1; }; }; }
|
---|
[8200] | 8649 |
|
---|
[8756] | 8650 | ac_builddir=.
|
---|
[1675] | 8651 |
|
---|
[8756] | 8652 | if test "$ac_dir" != .; then
|
---|
| 8653 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8654 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8655 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8656 | else
|
---|
| 8657 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8658 | fi
|
---|
[1675] | 8659 |
|
---|
[8756] | 8660 | case $srcdir in
|
---|
| 8661 | .) # No --srcdir option. We are building in place.
|
---|
| 8662 | ac_srcdir=.
|
---|
| 8663 | if test -z "$ac_top_builddir"; then
|
---|
| 8664 | ac_top_srcdir=.
|
---|
| 8665 | else
|
---|
| 8666 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8667 | fi ;;
|
---|
| 8668 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8669 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8670 | ac_top_srcdir=$srcdir ;;
|
---|
| 8671 | *) # Relative path.
|
---|
| 8672 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8673 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8674 | esac
|
---|
[1675] | 8675 |
|
---|
[8756] | 8676 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8677 | # the directories may not exist.
|
---|
| 8678 | case `pwd` in
|
---|
| 8679 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8680 | *)
|
---|
| 8681 | case "$ac_dir" in
|
---|
| 8682 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8683 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8684 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8685 | esac;;
|
---|
| 8686 | esac
|
---|
| 8687 | case $ac_abs_builddir in
|
---|
| 8688 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8689 | *)
|
---|
| 8690 | case ${ac_top_builddir}. in
|
---|
| 8691 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8692 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8693 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8694 | esac;;
|
---|
| 8695 | esac
|
---|
| 8696 | case $ac_abs_builddir in
|
---|
| 8697 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8698 | *)
|
---|
| 8699 | case $ac_srcdir in
|
---|
| 8700 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8701 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8702 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8703 | esac;;
|
---|
| 8704 | esac
|
---|
| 8705 | case $ac_abs_builddir in
|
---|
| 8706 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8707 | *)
|
---|
| 8708 | case $ac_top_srcdir in
|
---|
| 8709 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8710 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8711 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8712 | esac;;
|
---|
| 8713 | esac
|
---|
[1675] | 8714 |
|
---|
[8756] | 8715 |
|
---|
| 8716 | cd $ac_dir
|
---|
| 8717 |
|
---|
[1675] | 8718 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[8756] | 8719 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 8720 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 8721 | elif test -f $ac_srcdir/configure; then
|
---|
| 8722 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 8723 | elif test -f $ac_srcdir/configure.in; then
|
---|
[1675] | 8724 | ac_sub_configure=$ac_configure
|
---|
| 8725 | else
|
---|
[8756] | 8726 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 8727 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
[1675] | 8728 | ac_sub_configure=
|
---|
| 8729 | fi
|
---|
| 8730 |
|
---|
| 8731 | # The recursion is here.
|
---|
| 8732 | if test -n "$ac_sub_configure"; then
|
---|
| 8733 | # Make the cache file name correct relative to the subdirectory.
|
---|
[8756] | 8734 | case $cache_file in
|
---|
| 8735 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[1675] | 8736 | *) # Relative path.
|
---|
[8756] | 8737 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
[1675] | 8738 | esac
|
---|
| 8739 |
|
---|
[8756] | 8740 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 8741 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[1675] | 8742 | # The eval makes quoting arguments work.
|
---|
[8756] | 8743 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
| 8744 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
| 8745 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 8746 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 8747 | { (exit 1); exit 1; }; }
|
---|
[1675] | 8748 | fi
|
---|
| 8749 |
|
---|
| 8750 | cd $ac_popdir
|
---|
| 8751 | done
|
---|
| 8752 | fi
|
---|
| 8753 |
|
---|
[8200] | 8754 |
|
---|
| 8755 |
|
---|