[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"
|
---|
[12492] | 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 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
|
---|
[8756] | 860 |
|
---|
| 861 | Optional Packages:
|
---|
| 862 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 863 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 864 | --with-micodir Use installed MICO directory
|
---|
| 865 | --with-gdbm=dir Use local gdbm library and headers
|
---|
| 866 | --with-dmalloc use dmalloc, as in
|
---|
| 867 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 868 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 869 |
|
---|
| 870 | Some influential environment variables:
|
---|
| 871 | CC C compiler command
|
---|
| 872 | CFLAGS C compiler flags
|
---|
| 873 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 874 | nonstandard directory <lib dir>
|
---|
| 875 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 876 | headers in a nonstandard directory <include dir>
|
---|
| 877 | CXX C++ compiler command
|
---|
| 878 | CXXFLAGS C++ compiler flags
|
---|
| 879 | CPP C preprocessor
|
---|
| 880 |
|
---|
| 881 | Use these variables to override the choices made by `configure' or to help
|
---|
| 882 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 883 |
|
---|
| 884 | _ACEOF
|
---|
| 885 | fi
|
---|
| 886 |
|
---|
| 887 | if test "$ac_init_help" = "recursive"; then
|
---|
| 888 | # If there are subdirs, report their specific --help.
|
---|
| 889 | ac_popdir=`pwd`
|
---|
| 890 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 891 | test -d $ac_dir || continue
|
---|
| 892 | ac_builddir=.
|
---|
| 893 |
|
---|
| 894 | if test "$ac_dir" != .; then
|
---|
| 895 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 896 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 897 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 898 | else
|
---|
| 899 | ac_dir_suffix= ac_top_builddir=
|
---|
| 900 | fi
|
---|
| 901 |
|
---|
| 902 | case $srcdir in
|
---|
| 903 | .) # No --srcdir option. We are building in place.
|
---|
| 904 | ac_srcdir=.
|
---|
| 905 | if test -z "$ac_top_builddir"; then
|
---|
| 906 | ac_top_srcdir=.
|
---|
| 907 | else
|
---|
| 908 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 909 | fi ;;
|
---|
| 910 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 911 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 912 | ac_top_srcdir=$srcdir ;;
|
---|
| 913 | *) # Relative path.
|
---|
| 914 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 915 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 916 | esac
|
---|
| 917 |
|
---|
| 918 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 919 | # the directories may not exist.
|
---|
| 920 | case `pwd` in
|
---|
| 921 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 922 | *)
|
---|
| 923 | case "$ac_dir" in
|
---|
| 924 | .) ac_abs_builddir=`pwd`;;
|
---|
| 925 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 926 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 927 | esac;;
|
---|
| 928 | esac
|
---|
| 929 | case $ac_abs_builddir in
|
---|
| 930 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 931 | *)
|
---|
| 932 | case ${ac_top_builddir}. in
|
---|
| 933 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 934 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 935 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 936 | esac;;
|
---|
| 937 | esac
|
---|
| 938 | case $ac_abs_builddir in
|
---|
| 939 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 940 | *)
|
---|
| 941 | case $ac_srcdir in
|
---|
| 942 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 943 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 944 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 945 | esac;;
|
---|
| 946 | esac
|
---|
| 947 | case $ac_abs_builddir in
|
---|
| 948 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 949 | *)
|
---|
| 950 | case $ac_top_srcdir in
|
---|
| 951 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 952 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 953 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 954 | esac;;
|
---|
| 955 | esac
|
---|
| 956 |
|
---|
| 957 | cd $ac_dir
|
---|
| 958 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
| 959 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 960 | echo
|
---|
| 961 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 962 | elif test -f $ac_srcdir/configure; then
|
---|
| 963 | echo
|
---|
| 964 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 965 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 966 | test -f $ac_srcdir/configure.in; then
|
---|
| 967 | echo
|
---|
| 968 | $ac_configure --help
|
---|
| 969 | else
|
---|
| 970 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 971 | fi
|
---|
| 972 | cd $ac_popdir
|
---|
| 973 | done
|
---|
| 974 | fi
|
---|
| 975 |
|
---|
| 976 | test -n "$ac_init_help" && exit 0
|
---|
| 977 | if $ac_init_version; then
|
---|
| 978 | cat <<\_ACEOF
|
---|
| 979 |
|
---|
| 980 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
| 981 | This configure script is free software; the Free Software Foundation
|
---|
| 982 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 983 | _ACEOF
|
---|
| 984 | exit 0
|
---|
| 985 | fi
|
---|
| 986 | exec 5>config.log
|
---|
| 987 | cat >&5 <<_ACEOF
|
---|
| 988 | This file contains any messages produced by compilers while
|
---|
| 989 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 990 |
|
---|
| 991 | It was created by $as_me, which was
|
---|
| 992 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 993 |
|
---|
| 994 | $ $0 $@
|
---|
| 995 |
|
---|
| 996 | _ACEOF
|
---|
| 997 | {
|
---|
| 998 | cat <<_ASUNAME
|
---|
| 999 | ## --------- ##
|
---|
| 1000 | ## Platform. ##
|
---|
| 1001 | ## --------- ##
|
---|
| 1002 |
|
---|
| 1003 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1004 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1005 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1006 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1007 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1008 |
|
---|
| 1009 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1010 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1011 |
|
---|
| 1012 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1013 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1014 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 1015 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
| 1016 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1017 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1018 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1019 |
|
---|
| 1020 | _ASUNAME
|
---|
| 1021 |
|
---|
| 1022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1023 | for as_dir in $PATH
|
---|
| 1024 | do
|
---|
| 1025 | IFS=$as_save_IFS
|
---|
| 1026 | test -z "$as_dir" && as_dir=.
|
---|
| 1027 | echo "PATH: $as_dir"
|
---|
| 1028 | done
|
---|
| 1029 |
|
---|
| 1030 | } >&5
|
---|
| 1031 |
|
---|
| 1032 | cat >&5 <<_ACEOF
|
---|
| 1033 |
|
---|
| 1034 |
|
---|
| 1035 | ## ----------- ##
|
---|
| 1036 | ## Core tests. ##
|
---|
| 1037 | ## ----------- ##
|
---|
| 1038 |
|
---|
| 1039 | _ACEOF
|
---|
| 1040 |
|
---|
| 1041 |
|
---|
| 1042 | # Keep a trace of the command line.
|
---|
| 1043 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1044 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1045 | # Also quote any args containing shell meta-characters.
|
---|
| 1046 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1047 | ac_configure_args=
|
---|
| 1048 | ac_configure_args0=
|
---|
| 1049 | ac_configure_args1=
|
---|
| 1050 | ac_sep=
|
---|
| 1051 | ac_must_keep_next=false
|
---|
| 1052 | for ac_pass in 1 2
|
---|
| 1053 | do
|
---|
| 1054 | for ac_arg
|
---|
| 1055 | do
|
---|
| 1056 | case $ac_arg in
|
---|
| 1057 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1058 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1059 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1060 | continue ;;
|
---|
| 1061 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1062 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1063 | esac
|
---|
| 1064 | case $ac_pass in
|
---|
| 1065 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1066 | 2)
|
---|
| 1067 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1068 | if test $ac_must_keep_next = true; then
|
---|
| 1069 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1070 | else
|
---|
| 1071 | case $ac_arg in
|
---|
| 1072 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1073 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1074 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1075 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1076 | case "$ac_configure_args0 " in
|
---|
| 1077 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1078 | esac
|
---|
| 1079 | ;;
|
---|
| 1080 | -* ) ac_must_keep_next=true ;;
|
---|
| 1081 | esac
|
---|
| 1082 | fi
|
---|
| 1083 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1084 | # Get rid of the leading space.
|
---|
| 1085 | ac_sep=" "
|
---|
| 1086 | ;;
|
---|
| 1087 | esac
|
---|
| 1088 | done
|
---|
| 1089 | done
|
---|
| 1090 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1091 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
| 1092 |
|
---|
| 1093 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1094 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1095 | # would cause problems or look ugly.
|
---|
| 1096 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1097 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
| 1098 | trap 'exit_status=$?
|
---|
| 1099 | # Save into config.log some information that might help in debugging.
|
---|
| 1100 | {
|
---|
| 1101 | echo
|
---|
| 1102 |
|
---|
| 1103 | cat <<\_ASBOX
|
---|
| 1104 | ## ---------------- ##
|
---|
| 1105 | ## Cache variables. ##
|
---|
| 1106 | ## ---------------- ##
|
---|
| 1107 | _ASBOX
|
---|
| 1108 | echo
|
---|
| 1109 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 1110 | {
|
---|
| 1111 | (set) 2>&1 |
|
---|
| 1112 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1113 | *ac_space=\ *)
|
---|
| 1114 | sed -n \
|
---|
| 1115 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1116 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
| 1117 | ;;
|
---|
| 1118 | *)
|
---|
| 1119 | sed -n \
|
---|
| 1120 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
| 1121 | ;;
|
---|
| 1122 | esac;
|
---|
| 1123 | }
|
---|
| 1124 | echo
|
---|
| 1125 |
|
---|
| 1126 | cat <<\_ASBOX
|
---|
| 1127 | ## ----------------- ##
|
---|
| 1128 | ## Output variables. ##
|
---|
| 1129 | ## ----------------- ##
|
---|
| 1130 | _ASBOX
|
---|
| 1131 | echo
|
---|
| 1132 | for ac_var in $ac_subst_vars
|
---|
| 1133 | do
|
---|
| 1134 | eval ac_val=$`echo $ac_var`
|
---|
| 1135 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1136 | done | sort
|
---|
| 1137 | echo
|
---|
| 1138 |
|
---|
| 1139 | if test -n "$ac_subst_files"; then
|
---|
| 1140 | cat <<\_ASBOX
|
---|
| 1141 | ## ------------- ##
|
---|
| 1142 | ## Output files. ##
|
---|
| 1143 | ## ------------- ##
|
---|
| 1144 | _ASBOX
|
---|
| 1145 | echo
|
---|
| 1146 | for ac_var in $ac_subst_files
|
---|
| 1147 | do
|
---|
| 1148 | eval ac_val=$`echo $ac_var`
|
---|
| 1149 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1150 | done | sort
|
---|
| 1151 | echo
|
---|
| 1152 | fi
|
---|
| 1153 |
|
---|
| 1154 | if test -s confdefs.h; then
|
---|
| 1155 | cat <<\_ASBOX
|
---|
| 1156 | ## ----------- ##
|
---|
| 1157 | ## confdefs.h. ##
|
---|
| 1158 | ## ----------- ##
|
---|
| 1159 | _ASBOX
|
---|
| 1160 | echo
|
---|
| 1161 | sed "/^$/d" confdefs.h | sort
|
---|
| 1162 | echo
|
---|
| 1163 | fi
|
---|
| 1164 | test "$ac_signal" != 0 &&
|
---|
| 1165 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1166 | echo "$as_me: exit $exit_status"
|
---|
| 1167 | } >&5
|
---|
| 1168 | rm -f core *.core &&
|
---|
| 1169 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
| 1170 | exit $exit_status
|
---|
| 1171 | ' 0
|
---|
| 1172 | for ac_signal in 1 2 13 15; do
|
---|
| 1173 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
| 1174 | done
|
---|
| 1175 | ac_signal=0
|
---|
| 1176 |
|
---|
| 1177 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 1178 | rm -rf conftest* confdefs.h
|
---|
| 1179 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1180 | echo >confdefs.h
|
---|
| 1181 |
|
---|
| 1182 | # Predefined preprocessor variables.
|
---|
| 1183 |
|
---|
| 1184 | cat >>confdefs.h <<_ACEOF
|
---|
| 1185 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1186 | _ACEOF
|
---|
| 1187 |
|
---|
| 1188 |
|
---|
| 1189 | cat >>confdefs.h <<_ACEOF
|
---|
| 1190 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1191 | _ACEOF
|
---|
| 1192 |
|
---|
| 1193 |
|
---|
| 1194 | cat >>confdefs.h <<_ACEOF
|
---|
| 1195 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1196 | _ACEOF
|
---|
| 1197 |
|
---|
| 1198 |
|
---|
| 1199 | cat >>confdefs.h <<_ACEOF
|
---|
| 1200 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1201 | _ACEOF
|
---|
| 1202 |
|
---|
| 1203 |
|
---|
| 1204 | cat >>confdefs.h <<_ACEOF
|
---|
| 1205 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1206 | _ACEOF
|
---|
| 1207 |
|
---|
| 1208 |
|
---|
| 1209 | # Let the site file select an alternate cache file if it wants to.
|
---|
[562] | 1210 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1211 | if test -z "$CONFIG_SITE"; then
|
---|
| 1212 | if test "x$prefix" != xNONE; then
|
---|
| 1213 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1214 | else
|
---|
| 1215 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1216 | fi
|
---|
| 1217 | fi
|
---|
| 1218 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1219 | if test -r "$ac_site_file"; then
|
---|
[8756] | 1220 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1221 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
| 1222 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[562] | 1223 | . "$ac_site_file"
|
---|
| 1224 | fi
|
---|
| 1225 | done
|
---|
| 1226 |
|
---|
| 1227 | if test -r "$cache_file"; then
|
---|
[8756] | 1228 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1229 | # files actually), so we avoid doing that.
|
---|
| 1230 | if test -f "$cache_file"; then
|
---|
| 1231 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1232 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1233 | case $cache_file in
|
---|
| 1234 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1235 | *) . ./$cache_file;;
|
---|
| 1236 | esac
|
---|
| 1237 | fi
|
---|
[562] | 1238 | else
|
---|
[8756] | 1239 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1240 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1241 | >$cache_file
|
---|
[562] | 1242 | fi
|
---|
| 1243 |
|
---|
[8756] | 1244 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1245 | # value.
|
---|
| 1246 | ac_cache_corrupted=false
|
---|
| 1247 | for ac_var in `(set) 2>&1 |
|
---|
| 1248 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
| 1249 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1250 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 1251 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1252 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
| 1253 | case $ac_old_set,$ac_new_set in
|
---|
| 1254 | set,)
|
---|
| 1255 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1256 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1257 | ac_cache_corrupted=: ;;
|
---|
| 1258 | ,set)
|
---|
| 1259 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1260 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1261 | ac_cache_corrupted=: ;;
|
---|
| 1262 | ,);;
|
---|
| 1263 | *)
|
---|
| 1264 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
| 1265 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1266 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1267 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1268 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1269 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1270 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1271 | ac_cache_corrupted=:
|
---|
| 1272 | fi;;
|
---|
| 1273 | esac
|
---|
| 1274 | # Pass precious variables to config.status.
|
---|
| 1275 | if test "$ac_new_set" = set; then
|
---|
| 1276 | case $ac_new_val in
|
---|
| 1277 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1278 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1279 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1280 | esac
|
---|
| 1281 | case " $ac_configure_args " in
|
---|
| 1282 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1283 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1284 | esac
|
---|
| 1285 | fi
|
---|
| 1286 | done
|
---|
| 1287 | if $ac_cache_corrupted; then
|
---|
| 1288 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1289 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1290 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1291 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1292 | { (exit 1); exit 1; }; }
|
---|
| 1293 | fi
|
---|
| 1294 |
|
---|
[562] | 1295 | ac_ext=c
|
---|
| 1296 | ac_cpp='$CPP $CPPFLAGS'
|
---|
[8756] | 1297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[562] | 1300 |
|
---|
| 1301 |
|
---|
| 1302 |
|
---|
[8200] | 1303 |
|
---|
| 1304 |
|
---|
[8756] | 1305 |
|
---|
| 1306 |
|
---|
| 1307 |
|
---|
| 1308 |
|
---|
| 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 |
|
---|
| 1314 |
|
---|
| 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 |
|
---|
| 1319 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1320 |
|
---|
| 1321 |
|
---|
[562] | 1322 | PACKAGE=gsdl
|
---|
[681] | 1323 | VERSION=2.1
|
---|
[8756] | 1324 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1325 | #define PACKAGE "$PACKAGE"
|
---|
[8756] | 1326 | _ACEOF
|
---|
[562] | 1327 |
|
---|
[8756] | 1328 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1329 | #define VERSION "$VERSION"
|
---|
[8756] | 1330 | _ACEOF
|
---|
[562] | 1331 |
|
---|
[8200] | 1332 |
|
---|
| 1333 |
|
---|
| 1334 |
|
---|
[567] | 1335 | USE_FASTCGI=0
|
---|
| 1336 | if test USE_FASTCGI = 1; then
|
---|
[8756] | 1337 | cat >>confdefs.h <<\_ACEOF
|
---|
[567] | 1338 | #define USE_FASTCGI 1
|
---|
[8756] | 1339 | _ACEOF
|
---|
[567] | 1340 |
|
---|
[8200] | 1341 |
|
---|
[3631] | 1342 | fi
|
---|
[567] | 1343 |
|
---|
[3631] | 1344 | if test USE_LANGACTION = 1; then
|
---|
[8756] | 1345 | cat >>confdefs.h <<\_ACEOF
|
---|
[3631] | 1346 | #define USE_LANGACTION 1
|
---|
[8756] | 1347 | _ACEOF
|
---|
[3631] | 1348 |
|
---|
[8200] | 1349 |
|
---|
[567] | 1350 | fi
|
---|
| 1351 |
|
---|
[1860] | 1352 | # Check whether --enable-corba or --disable-corba was given.
|
---|
| 1353 | if test "${enable_corba+set}" = set; then
|
---|
| 1354 | enableval="$enable_corba"
|
---|
[2471] | 1355 | USE_CORBA=1
|
---|
[1860] | 1356 | else
|
---|
[2471] | 1357 | USE_CORBA=0
|
---|
[8756] | 1358 | fi;
|
---|
| 1359 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1360 | #define USE_CORBA $USE_CORBA
|
---|
[8756] | 1361 | _ACEOF
|
---|
[1860] | 1362 |
|
---|
[8200] | 1363 |
|
---|
| 1364 |
|
---|
[8756] | 1365 |
|
---|
[1860] | 1366 | # Check whether --with-micodir or --without-micodir was given.
|
---|
| 1367 | if test "${with_micodir+set}" = set; then
|
---|
| 1368 | withval="$with_micodir"
|
---|
[2471] | 1369 | MICO_DIR=$enableval
|
---|
[1860] | 1370 | else
|
---|
[2471] | 1371 | MICO_DIR="default"
|
---|
[8756] | 1372 | fi;
|
---|
| 1373 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1374 | #define MICO_DIR "$MICO_DIR"
|
---|
[8756] | 1375 | _ACEOF
|
---|
[1860] | 1376 |
|
---|
[8200] | 1377 |
|
---|
| 1378 |
|
---|
[1938] | 1379 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
| 1380 | if test "${enable_z3950+set}" = set; then
|
---|
| 1381 | enableval="$enable_z3950"
|
---|
| 1382 | USE_Z3950=1
|
---|
| 1383 | else
|
---|
| 1384 | USE_Z3950=0
|
---|
[8756] | 1385 | fi;
|
---|
[2297] | 1386 | if test USE_Z3950 = 1; then
|
---|
[8756] | 1387 | cat >>confdefs.h <<\_ACEOF
|
---|
[2297] | 1388 | #define USE_Z3950 $USE_Z3950
|
---|
[8756] | 1389 | _ACEOF
|
---|
[1938] | 1390 |
|
---|
[8200] | 1391 |
|
---|
[2297] | 1392 | fi
|
---|
[1938] | 1393 |
|
---|
[12492] | 1394 | # Check whether --enable-yaz or --disable-yaz was given.
|
---|
| 1395 | if test "${enable_yaz+set}" = set; then
|
---|
| 1396 | enableval="$enable_yaz"
|
---|
| 1397 | USE_YAZ=0
|
---|
| 1398 | else
|
---|
| 1399 | USE_YAZ=1
|
---|
| 1400 | fi;
|
---|
| 1401 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1402 | #define USE_YAZ $USE_YAZ
|
---|
| 1403 | _ACEOF
|
---|
[8756] | 1404 |
|
---|
[12492] | 1405 |
|
---|
| 1406 |
|
---|
| 1407 |
|
---|
[2279] | 1408 | # Check whether --with-gdbm or --without-gdbm was given.
|
---|
| 1409 | if test "${with_gdbm+set}" = set; then
|
---|
| 1410 | withval="$with_gdbm"
|
---|
| 1411 | gdbmdir=$withval
|
---|
[8756] | 1412 | fi;
|
---|
[2279] | 1413 |
|
---|
[11489] | 1414 | LDFLAGS=
|
---|
[1722] | 1415 | if test -z "$CFLAGS"; then
|
---|
[794] | 1416 | CFLAGS=-O2
|
---|
[1722] | 1417 | fi
|
---|
[576] | 1418 |
|
---|
| 1419 |
|
---|
[8756] | 1420 | ac_ext=c
|
---|
| 1421 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1425 | if test -n "$ac_tool_prefix"; then
|
---|
| 1426 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1427 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
| 1428 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1430 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1431 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1432 | else
|
---|
| 1433 | if test -n "$CC"; then
|
---|
| 1434 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1435 | else
|
---|
| 1436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1437 | for as_dir in $PATH
|
---|
| 1438 | do
|
---|
| 1439 | IFS=$as_save_IFS
|
---|
| 1440 | test -z "$as_dir" && as_dir=.
|
---|
| 1441 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1442 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1443 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 1444 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1445 | break 2
|
---|
| 1446 | fi
|
---|
| 1447 | done
|
---|
| 1448 | done
|
---|
| 1449 |
|
---|
| 1450 | fi
|
---|
| 1451 | fi
|
---|
| 1452 | CC=$ac_cv_prog_CC
|
---|
| 1453 | if test -n "$CC"; then
|
---|
| 1454 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1455 | echo "${ECHO_T}$CC" >&6
|
---|
| 1456 | else
|
---|
| 1457 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1458 | echo "${ECHO_T}no" >&6
|
---|
| 1459 | fi
|
---|
| 1460 |
|
---|
| 1461 | fi
|
---|
| 1462 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1463 | ac_ct_CC=$CC
|
---|
| 1464 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[562] | 1465 | set dummy gcc; ac_word=$2
|
---|
[8756] | 1466 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1468 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1469 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1470 | else
|
---|
[8756] | 1471 | if test -n "$ac_ct_CC"; then
|
---|
| 1472 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1473 | else
|
---|
| 1474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1475 | for as_dir in $PATH
|
---|
| 1476 | do
|
---|
| 1477 | IFS=$as_save_IFS
|
---|
| 1478 | test -z "$as_dir" && as_dir=.
|
---|
| 1479 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1480 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1481 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 1482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1483 | break 2
|
---|
| 1484 | fi
|
---|
| 1485 | done
|
---|
| 1486 | done
|
---|
| 1487 |
|
---|
| 1488 | fi
|
---|
| 1489 | fi
|
---|
| 1490 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1491 | if test -n "$ac_ct_CC"; then
|
---|
| 1492 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1493 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1494 | else
|
---|
| 1495 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1496 | echo "${ECHO_T}no" >&6
|
---|
| 1497 | fi
|
---|
| 1498 |
|
---|
| 1499 | CC=$ac_ct_CC
|
---|
| 1500 | else
|
---|
| 1501 | CC="$ac_cv_prog_CC"
|
---|
| 1502 | fi
|
---|
| 1503 |
|
---|
| 1504 | if test -z "$CC"; then
|
---|
| 1505 | if test -n "$ac_tool_prefix"; then
|
---|
| 1506 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 1507 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
| 1508 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1510 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1511 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1512 | else
|
---|
[562] | 1513 | if test -n "$CC"; then
|
---|
| 1514 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1515 | else
|
---|
[8756] | 1516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1517 | for as_dir in $PATH
|
---|
| 1518 | do
|
---|
| 1519 | IFS=$as_save_IFS
|
---|
| 1520 | test -z "$as_dir" && as_dir=.
|
---|
| 1521 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1522 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1523 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 1524 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1525 | break 2
|
---|
| 1526 | fi
|
---|
| 1527 | done
|
---|
| 1528 | done
|
---|
| 1529 |
|
---|
[562] | 1530 | fi
|
---|
| 1531 | fi
|
---|
[8756] | 1532 | CC=$ac_cv_prog_CC
|
---|
[562] | 1533 | if test -n "$CC"; then
|
---|
[8756] | 1534 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1535 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1536 | else
|
---|
[8756] | 1537 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1538 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1539 | fi
|
---|
| 1540 |
|
---|
[8756] | 1541 | fi
|
---|
| 1542 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1543 | ac_ct_CC=$CC
|
---|
| 1544 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1545 | set dummy cc; ac_word=$2
|
---|
| 1546 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1548 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1549 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1550 | else
|
---|
| 1551 | if test -n "$ac_ct_CC"; then
|
---|
| 1552 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1553 | else
|
---|
| 1554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1555 | for as_dir in $PATH
|
---|
| 1556 | do
|
---|
| 1557 | IFS=$as_save_IFS
|
---|
| 1558 | test -z "$as_dir" && as_dir=.
|
---|
| 1559 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1561 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 1562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1563 | break 2
|
---|
| 1564 | fi
|
---|
| 1565 | done
|
---|
| 1566 | done
|
---|
| 1567 |
|
---|
| 1568 | fi
|
---|
| 1569 | fi
|
---|
| 1570 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1571 | if test -n "$ac_ct_CC"; then
|
---|
| 1572 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1573 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1574 | else
|
---|
| 1575 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1576 | echo "${ECHO_T}no" >&6
|
---|
| 1577 | fi
|
---|
| 1578 |
|
---|
| 1579 | CC=$ac_ct_CC
|
---|
| 1580 | else
|
---|
| 1581 | CC="$ac_cv_prog_CC"
|
---|
| 1582 | fi
|
---|
| 1583 |
|
---|
| 1584 | fi
|
---|
[562] | 1585 | if test -z "$CC"; then
|
---|
| 1586 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1587 | set dummy cc; ac_word=$2
|
---|
[8756] | 1588 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1589 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1590 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1591 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1592 | else
|
---|
| 1593 | if test -n "$CC"; then
|
---|
| 1594 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1595 | else
|
---|
| 1596 | ac_prog_rejected=no
|
---|
[8756] | 1597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1598 | for as_dir in $PATH
|
---|
| 1599 | do
|
---|
| 1600 | IFS=$as_save_IFS
|
---|
| 1601 | test -z "$as_dir" && as_dir=.
|
---|
| 1602 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1603 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1604 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 1605 | ac_prog_rejected=yes
|
---|
| 1606 | continue
|
---|
| 1607 | fi
|
---|
| 1608 | ac_cv_prog_CC="cc"
|
---|
| 1609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1610 | break 2
|
---|
| 1611 | fi
|
---|
| 1612 | done
|
---|
| 1613 | done
|
---|
| 1614 |
|
---|
[562] | 1615 | if test $ac_prog_rejected = yes; then
|
---|
| 1616 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 1617 | set dummy $ac_cv_prog_CC
|
---|
| 1618 | shift
|
---|
[8756] | 1619 | if test $# != 0; then
|
---|
[562] | 1620 | # We chose a different compiler from the bogus one.
|
---|
| 1621 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 1622 | # first if we set CC to just the basename; use the full file name.
|
---|
| 1623 | shift
|
---|
[8756] | 1624 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[562] | 1625 | fi
|
---|
| 1626 | fi
|
---|
| 1627 | fi
|
---|
| 1628 | fi
|
---|
[8756] | 1629 | CC=$ac_cv_prog_CC
|
---|
[562] | 1630 | if test -n "$CC"; then
|
---|
[8756] | 1631 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1632 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1633 | else
|
---|
[8756] | 1634 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1635 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1636 | fi
|
---|
| 1637 |
|
---|
[8756] | 1638 | fi
|
---|
| 1639 | if test -z "$CC"; then
|
---|
| 1640 | if test -n "$ac_tool_prefix"; then
|
---|
| 1641 | for ac_prog in cl
|
---|
| 1642 | do
|
---|
| 1643 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1644 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 1645 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1646 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1647 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1648 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1649 | else
|
---|
| 1650 | if test -n "$CC"; then
|
---|
| 1651 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1652 | else
|
---|
[8756] | 1653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1654 | for as_dir in $PATH
|
---|
| 1655 | do
|
---|
| 1656 | IFS=$as_save_IFS
|
---|
| 1657 | test -z "$as_dir" && as_dir=.
|
---|
| 1658 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1659 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1660 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 1661 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1662 | break 2
|
---|
| 1663 | fi
|
---|
| 1664 | done
|
---|
| 1665 | done
|
---|
| 1666 |
|
---|
[562] | 1667 | fi
|
---|
| 1668 | fi
|
---|
[8756] | 1669 | CC=$ac_cv_prog_CC
|
---|
[562] | 1670 | if test -n "$CC"; then
|
---|
[8756] | 1671 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1672 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1673 | else
|
---|
[8756] | 1674 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1675 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1676 | fi
|
---|
[8756] | 1677 |
|
---|
| 1678 | test -n "$CC" && break
|
---|
| 1679 | done
|
---|
| 1680 | fi
|
---|
| 1681 | if test -z "$CC"; then
|
---|
| 1682 | ac_ct_CC=$CC
|
---|
| 1683 | for ac_prog in cl
|
---|
| 1684 | do
|
---|
| 1685 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1686 | set dummy $ac_prog; ac_word=$2
|
---|
| 1687 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1688 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1689 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1690 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1691 | else
|
---|
| 1692 | if test -n "$ac_ct_CC"; then
|
---|
| 1693 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1694 | else
|
---|
| 1695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1696 | for as_dir in $PATH
|
---|
| 1697 | do
|
---|
| 1698 | IFS=$as_save_IFS
|
---|
| 1699 | test -z "$as_dir" && as_dir=.
|
---|
| 1700 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1701 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1702 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 1703 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1704 | break 2
|
---|
[8200] | 1705 | fi
|
---|
[8756] | 1706 | done
|
---|
| 1707 | done
|
---|
| 1708 |
|
---|
[562] | 1709 | fi
|
---|
[8756] | 1710 | fi
|
---|
| 1711 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1712 | if test -n "$ac_ct_CC"; then
|
---|
| 1713 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1714 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1715 | else
|
---|
| 1716 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1717 | echo "${ECHO_T}no" >&6
|
---|
| 1718 | fi
|
---|
[562] | 1719 |
|
---|
[8756] | 1720 | test -n "$ac_ct_CC" && break
|
---|
| 1721 | done
|
---|
[562] | 1722 |
|
---|
[8756] | 1723 | CC=$ac_ct_CC
|
---|
| 1724 | fi
|
---|
[562] | 1725 |
|
---|
[8756] | 1726 | fi
|
---|
[562] | 1727 |
|
---|
| 1728 |
|
---|
[8756] | 1729 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 1730 | See \`config.log' for more details." >&5
|
---|
| 1731 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 1732 | See \`config.log' for more details." >&2;}
|
---|
| 1733 | { (exit 1); exit 1; }; }
|
---|
| 1734 |
|
---|
| 1735 | # Provide some information about the compiler.
|
---|
| 1736 | echo "$as_me:$LINENO:" \
|
---|
| 1737 | "checking for C compiler version" >&5
|
---|
| 1738 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1739 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1740 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 1741 | ac_status=$?
|
---|
| 1742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1743 | (exit $ac_status); }
|
---|
| 1744 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1745 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1746 | ac_status=$?
|
---|
| 1747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1748 | (exit $ac_status); }
|
---|
| 1749 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1750 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1751 | ac_status=$?
|
---|
| 1752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1753 | (exit $ac_status); }
|
---|
| 1754 |
|
---|
| 1755 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1756 | /* confdefs.h. */
|
---|
| 1757 | _ACEOF
|
---|
| 1758 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1759 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1760 | /* end confdefs.h. */
|
---|
| 1761 |
|
---|
| 1762 | int
|
---|
| 1763 | main ()
|
---|
| 1764 | {
|
---|
| 1765 |
|
---|
| 1766 | ;
|
---|
| 1767 | return 0;
|
---|
| 1768 | }
|
---|
| 1769 | _ACEOF
|
---|
| 1770 | ac_clean_files_save=$ac_clean_files
|
---|
| 1771 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
| 1772 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 1773 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 1774 | # of exeext.
|
---|
| 1775 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 1776 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
| 1777 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
| 1778 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
| 1779 | (eval $ac_link_default) 2>&5
|
---|
| 1780 | ac_status=$?
|
---|
| 1781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1782 | (exit $ac_status); }; then
|
---|
| 1783 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1784 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1785 | # resort.
|
---|
| 1786 |
|
---|
| 1787 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1788 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1789 | ac_cv_exeext=
|
---|
| 1790 | # b.out is created by i960 compilers.
|
---|
| 1791 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
| 1792 | do
|
---|
| 1793 | test -f "$ac_file" || continue
|
---|
| 1794 | case $ac_file in
|
---|
| 1795 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
| 1796 | ;;
|
---|
| 1797 | conftest.$ac_ext )
|
---|
| 1798 | # This is the source file.
|
---|
| 1799 | ;;
|
---|
| 1800 | [ab].out )
|
---|
| 1801 | # We found the default executable, but exeext='' is most
|
---|
| 1802 | # certainly right.
|
---|
| 1803 | break;;
|
---|
| 1804 | *.* )
|
---|
| 1805 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1806 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1807 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1808 | # maintain Libtool? --akim.
|
---|
| 1809 | export ac_cv_exeext
|
---|
| 1810 | break;;
|
---|
| 1811 | * )
|
---|
| 1812 | break;;
|
---|
| 1813 | esac
|
---|
| 1814 | done
|
---|
| 1815 | else
|
---|
| 1816 | echo "$as_me: failed program was:" >&5
|
---|
| 1817 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1818 |
|
---|
| 1819 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 1820 | See \`config.log' for more details." >&5
|
---|
| 1821 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 1822 | See \`config.log' for more details." >&2;}
|
---|
| 1823 | { (exit 77); exit 77; }; }
|
---|
| 1824 | fi
|
---|
| 1825 |
|
---|
| 1826 | ac_exeext=$ac_cv_exeext
|
---|
| 1827 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 1828 | echo "${ECHO_T}$ac_file" >&6
|
---|
| 1829 |
|
---|
| 1830 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1831 | # the compiler is broken, or we cross compile.
|
---|
| 1832 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 1833 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
| 1834 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1835 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1836 | if test "$cross_compiling" != yes; then
|
---|
| 1837 | if { ac_try='./$ac_file'
|
---|
| 1838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1839 | (eval $ac_try) 2>&5
|
---|
| 1840 | ac_status=$?
|
---|
| 1841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1842 | (exit $ac_status); }; }; then
|
---|
| 1843 | cross_compiling=no
|
---|
[562] | 1844 | else
|
---|
[8756] | 1845 | if test "$cross_compiling" = maybe; then
|
---|
| 1846 | cross_compiling=yes
|
---|
| 1847 | else
|
---|
| 1848 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 1849 | If you meant to cross compile, use \`--host'.
|
---|
| 1850 | See \`config.log' for more details." >&5
|
---|
| 1851 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 1852 | If you meant to cross compile, use \`--host'.
|
---|
| 1853 | See \`config.log' for more details." >&2;}
|
---|
| 1854 | { (exit 1); exit 1; }; }
|
---|
| 1855 | fi
|
---|
[562] | 1856 | fi
|
---|
| 1857 | fi
|
---|
[8756] | 1858 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 1859 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 1860 |
|
---|
[8756] | 1861 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
| 1862 | ac_clean_files=$ac_clean_files_save
|
---|
| 1863 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1864 | # the compiler is broken, or we cross compile.
|
---|
| 1865 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 1866 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
| 1867 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 1868 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 1869 |
|
---|
| 1870 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1871 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 1873 | (eval $ac_link) 2>&5
|
---|
| 1874 | ac_status=$?
|
---|
| 1875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1876 | (exit $ac_status); }; then
|
---|
| 1877 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1878 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1879 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1880 | # `rm'.
|
---|
| 1881 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1882 | test -f "$ac_file" || continue
|
---|
| 1883 | case $ac_file in
|
---|
| 1884 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
| 1885 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1886 | export ac_cv_exeext
|
---|
| 1887 | break;;
|
---|
| 1888 | * ) break;;
|
---|
| 1889 | esac
|
---|
| 1890 | done
|
---|
| 1891 | else
|
---|
| 1892 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1893 | See \`config.log' for more details." >&5
|
---|
| 1894 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1895 | See \`config.log' for more details." >&2;}
|
---|
| 1896 | { (exit 1); exit 1; }; }
|
---|
[562] | 1897 | fi
|
---|
| 1898 |
|
---|
[8756] | 1899 | rm -f conftest$ac_cv_exeext
|
---|
| 1900 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 1901 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 1902 |
|
---|
| 1903 | rm -f conftest.$ac_ext
|
---|
| 1904 | EXEEXT=$ac_cv_exeext
|
---|
| 1905 | ac_exeext=$EXEEXT
|
---|
| 1906 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 1907 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
| 1908 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 1909 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1910 | else
|
---|
[8756] | 1911 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1912 | /* confdefs.h. */
|
---|
| 1913 | _ACEOF
|
---|
| 1914 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1915 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1916 | /* end confdefs.h. */
|
---|
| 1917 |
|
---|
| 1918 | int
|
---|
| 1919 | main ()
|
---|
| 1920 | {
|
---|
| 1921 |
|
---|
| 1922 | ;
|
---|
| 1923 | return 0;
|
---|
| 1924 | }
|
---|
| 1925 | _ACEOF
|
---|
| 1926 | rm -f conftest.o conftest.obj
|
---|
| 1927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1928 | (eval $ac_compile) 2>&5
|
---|
| 1929 | ac_status=$?
|
---|
| 1930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1931 | (exit $ac_status); }; then
|
---|
| 1932 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
| 1933 | case $ac_file in
|
---|
| 1934 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
| 1935 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 1936 | break;;
|
---|
| 1937 | esac
|
---|
| 1938 | done
|
---|
[562] | 1939 | else
|
---|
[8756] | 1940 | echo "$as_me: failed program was:" >&5
|
---|
| 1941 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1942 |
|
---|
| 1943 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 1944 | See \`config.log' for more details." >&5
|
---|
| 1945 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 1946 | See \`config.log' for more details." >&2;}
|
---|
| 1947 | { (exit 1); exit 1; }; }
|
---|
[562] | 1948 | fi
|
---|
[8756] | 1949 |
|
---|
| 1950 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[562] | 1951 | fi
|
---|
[8756] | 1952 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 1953 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
| 1954 | OBJEXT=$ac_cv_objext
|
---|
| 1955 | ac_objext=$OBJEXT
|
---|
| 1956 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 1957 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 1958 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 1959 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1960 | else
|
---|
| 1961 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1962 | /* confdefs.h. */
|
---|
| 1963 | _ACEOF
|
---|
| 1964 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1965 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1966 | /* end confdefs.h. */
|
---|
[562] | 1967 |
|
---|
[8756] | 1968 | int
|
---|
| 1969 | main ()
|
---|
| 1970 | {
|
---|
| 1971 | #ifndef __GNUC__
|
---|
| 1972 | choke me
|
---|
| 1973 | #endif
|
---|
[562] | 1974 |
|
---|
[8756] | 1975 | ;
|
---|
| 1976 | return 0;
|
---|
| 1977 | }
|
---|
| 1978 | _ACEOF
|
---|
| 1979 | rm -f conftest.$ac_objext
|
---|
| 1980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1981 | (eval $ac_compile) 2>conftest.er1
|
---|
| 1982 | ac_status=$?
|
---|
| 1983 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1984 | rm -f conftest.er1
|
---|
| 1985 | cat conftest.err >&5
|
---|
| 1986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1987 | (exit $ac_status); } &&
|
---|
| 1988 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 1989 | || test ! -s conftest.err'
|
---|
| 1990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1991 | (eval $ac_try) 2>&5
|
---|
| 1992 | ac_status=$?
|
---|
| 1993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1994 | (exit $ac_status); }; } &&
|
---|
| 1995 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1997 | (eval $ac_try) 2>&5
|
---|
| 1998 | ac_status=$?
|
---|
| 1999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2000 | (exit $ac_status); }; }; then
|
---|
| 2001 | ac_compiler_gnu=yes
|
---|
[562] | 2002 | else
|
---|
[8756] | 2003 | echo "$as_me: failed program was:" >&5
|
---|
| 2004 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2005 |
|
---|
| 2006 | ac_compiler_gnu=no
|
---|
[562] | 2007 | fi
|
---|
[8756] | 2008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2009 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
[562] | 2010 |
|
---|
[8756] | 2011 | fi
|
---|
| 2012 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2013 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2014 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2015 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2016 | ac_save_CFLAGS=$CFLAGS
|
---|
| 2017 | CFLAGS="-g"
|
---|
| 2018 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2019 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2020 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2021 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2022 | else
|
---|
[8756] | 2023 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2024 | /* confdefs.h. */
|
---|
| 2025 | _ACEOF
|
---|
| 2026 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2027 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2028 | /* end confdefs.h. */
|
---|
| 2029 |
|
---|
| 2030 | int
|
---|
| 2031 | main ()
|
---|
| 2032 | {
|
---|
| 2033 |
|
---|
| 2034 | ;
|
---|
| 2035 | return 0;
|
---|
| 2036 | }
|
---|
| 2037 | _ACEOF
|
---|
| 2038 | rm -f conftest.$ac_objext
|
---|
| 2039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2040 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2041 | ac_status=$?
|
---|
| 2042 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2043 | rm -f conftest.er1
|
---|
| 2044 | cat conftest.err >&5
|
---|
| 2045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2046 | (exit $ac_status); } &&
|
---|
| 2047 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2048 | || test ! -s conftest.err'
|
---|
| 2049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2050 | (eval $ac_try) 2>&5
|
---|
| 2051 | ac_status=$?
|
---|
| 2052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2053 | (exit $ac_status); }; } &&
|
---|
| 2054 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2056 | (eval $ac_try) 2>&5
|
---|
| 2057 | ac_status=$?
|
---|
| 2058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2059 | (exit $ac_status); }; }; then
|
---|
[562] | 2060 | ac_cv_prog_cc_g=yes
|
---|
| 2061 | else
|
---|
[8756] | 2062 | echo "$as_me: failed program was:" >&5
|
---|
| 2063 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2064 |
|
---|
[8756] | 2065 | ac_cv_prog_cc_g=no
|
---|
[562] | 2066 | fi
|
---|
[8756] | 2067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2068 | fi
|
---|
| 2069 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2070 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[562] | 2071 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8756] | 2072 | CFLAGS=$ac_save_CFLAGS
|
---|
[562] | 2073 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2074 | if test "$GCC" = yes; then
|
---|
| 2075 | CFLAGS="-g -O2"
|
---|
| 2076 | else
|
---|
| 2077 | CFLAGS="-g"
|
---|
| 2078 | fi
|
---|
| 2079 | else
|
---|
| 2080 | if test "$GCC" = yes; then
|
---|
| 2081 | CFLAGS="-O2"
|
---|
| 2082 | else
|
---|
| 2083 | CFLAGS=
|
---|
| 2084 | fi
|
---|
| 2085 | fi
|
---|
[8756] | 2086 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2087 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2088 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2089 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2090 | else
|
---|
| 2091 | ac_cv_prog_cc_stdc=no
|
---|
| 2092 | ac_save_CC=$CC
|
---|
| 2093 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2094 | /* confdefs.h. */
|
---|
| 2095 | _ACEOF
|
---|
| 2096 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2097 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2098 | /* end confdefs.h. */
|
---|
| 2099 | #include <stdarg.h>
|
---|
| 2100 | #include <stdio.h>
|
---|
| 2101 | #include <sys/types.h>
|
---|
| 2102 | #include <sys/stat.h>
|
---|
| 2103 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2104 | struct buf { int x; };
|
---|
| 2105 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2106 | static char *e (p, i)
|
---|
| 2107 | char **p;
|
---|
| 2108 | int i;
|
---|
| 2109 | {
|
---|
| 2110 | return p[i];
|
---|
| 2111 | }
|
---|
| 2112 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2113 | {
|
---|
| 2114 | char *s;
|
---|
| 2115 | va_list v;
|
---|
| 2116 | va_start (v,p);
|
---|
| 2117 | s = g (p, va_arg (v,int));
|
---|
| 2118 | va_end (v);
|
---|
| 2119 | return s;
|
---|
| 2120 | }
|
---|
[8200] | 2121 |
|
---|
[8756] | 2122 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2123 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2124 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 2125 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
| 2126 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2127 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 2128 | that's true only with -std1. */
|
---|
| 2129 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2130 |
|
---|
| 2131 | int test (int i, double x);
|
---|
| 2132 | struct s1 {int (*f) (int a);};
|
---|
| 2133 | struct s2 {int (*f) (double a);};
|
---|
| 2134 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2135 | int argc;
|
---|
| 2136 | char **argv;
|
---|
| 2137 | int
|
---|
| 2138 | main ()
|
---|
| 2139 | {
|
---|
| 2140 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2141 | ;
|
---|
| 2142 | return 0;
|
---|
| 2143 | }
|
---|
| 2144 | _ACEOF
|
---|
| 2145 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2146 | # breaks some systems' header files.
|
---|
| 2147 | # AIX -qlanglvl=ansi
|
---|
| 2148 | # Ultrix and OSF/1 -std1
|
---|
| 2149 | # HP-UX 10.20 and later -Ae
|
---|
| 2150 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2151 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2152 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[562] | 2153 | do
|
---|
[8756] | 2154 | CC="$ac_save_CC $ac_arg"
|
---|
| 2155 | rm -f conftest.$ac_objext
|
---|
| 2156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2157 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2158 | ac_status=$?
|
---|
| 2159 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2160 | rm -f conftest.er1
|
---|
| 2161 | cat conftest.err >&5
|
---|
| 2162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2163 | (exit $ac_status); } &&
|
---|
| 2164 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2165 | || test ! -s conftest.err'
|
---|
| 2166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2167 | (eval $ac_try) 2>&5
|
---|
| 2168 | ac_status=$?
|
---|
| 2169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2170 | (exit $ac_status); }; } &&
|
---|
| 2171 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2173 | (eval $ac_try) 2>&5
|
---|
| 2174 | ac_status=$?
|
---|
| 2175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2176 | (exit $ac_status); }; }; then
|
---|
| 2177 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2178 | break
|
---|
[562] | 2179 | else
|
---|
[8756] | 2180 | echo "$as_me: failed program was:" >&5
|
---|
| 2181 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2182 |
|
---|
[562] | 2183 | fi
|
---|
[8756] | 2184 | rm -f conftest.err conftest.$ac_objext
|
---|
| 2185 | done
|
---|
| 2186 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
| 2187 | CC=$ac_save_CC
|
---|
| 2188 |
|
---|
[562] | 2189 | fi
|
---|
[8756] | 2190 |
|
---|
| 2191 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2192 | x|xno)
|
---|
| 2193 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2194 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
| 2195 | *)
|
---|
| 2196 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2197 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2198 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 2199 | esac
|
---|
| 2200 |
|
---|
| 2201 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2202 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2203 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2204 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2205 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2206 | #ifndef __cplusplus
|
---|
| 2207 | choke me
|
---|
| 2208 | #endif
|
---|
| 2209 | _ACEOF
|
---|
| 2210 | rm -f conftest.$ac_objext
|
---|
| 2211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2212 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2213 | ac_status=$?
|
---|
| 2214 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2215 | rm -f conftest.er1
|
---|
| 2216 | cat conftest.err >&5
|
---|
| 2217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2218 | (exit $ac_status); } &&
|
---|
| 2219 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2220 | || test ! -s conftest.err'
|
---|
| 2221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2222 | (eval $ac_try) 2>&5
|
---|
| 2223 | ac_status=$?
|
---|
| 2224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2225 | (exit $ac_status); }; } &&
|
---|
| 2226 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2228 | (eval $ac_try) 2>&5
|
---|
| 2229 | ac_status=$?
|
---|
| 2230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2231 | (exit $ac_status); }; }; then
|
---|
| 2232 | for ac_declaration in \
|
---|
| 2233 | '' \
|
---|
| 2234 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2235 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2236 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2237 | 'extern "C" void exit (int);' \
|
---|
| 2238 | 'void exit (int);'
|
---|
| 2239 | do
|
---|
| 2240 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2241 | /* confdefs.h. */
|
---|
| 2242 | _ACEOF
|
---|
| 2243 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2244 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2245 | /* end confdefs.h. */
|
---|
| 2246 | $ac_declaration
|
---|
| 2247 | #include <stdlib.h>
|
---|
| 2248 | int
|
---|
| 2249 | main ()
|
---|
| 2250 | {
|
---|
| 2251 | exit (42);
|
---|
| 2252 | ;
|
---|
| 2253 | return 0;
|
---|
| 2254 | }
|
---|
| 2255 | _ACEOF
|
---|
| 2256 | rm -f conftest.$ac_objext
|
---|
| 2257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2258 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2259 | ac_status=$?
|
---|
| 2260 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2261 | rm -f conftest.er1
|
---|
| 2262 | cat conftest.err >&5
|
---|
| 2263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2264 | (exit $ac_status); } &&
|
---|
| 2265 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2266 | || test ! -s conftest.err'
|
---|
| 2267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2268 | (eval $ac_try) 2>&5
|
---|
| 2269 | ac_status=$?
|
---|
| 2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2271 | (exit $ac_status); }; } &&
|
---|
| 2272 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2274 | (eval $ac_try) 2>&5
|
---|
| 2275 | ac_status=$?
|
---|
| 2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2277 | (exit $ac_status); }; }; then
|
---|
| 2278 | :
|
---|
[562] | 2279 | else
|
---|
[8756] | 2280 | echo "$as_me: failed program was:" >&5
|
---|
| 2281 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2282 |
|
---|
| 2283 | continue
|
---|
[562] | 2284 | fi
|
---|
[8756] | 2285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2286 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2287 | /* confdefs.h. */
|
---|
| 2288 | _ACEOF
|
---|
| 2289 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2290 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2291 | /* end confdefs.h. */
|
---|
| 2292 | $ac_declaration
|
---|
| 2293 | int
|
---|
| 2294 | main ()
|
---|
| 2295 | {
|
---|
| 2296 | exit (42);
|
---|
| 2297 | ;
|
---|
| 2298 | return 0;
|
---|
| 2299 | }
|
---|
| 2300 | _ACEOF
|
---|
| 2301 | rm -f conftest.$ac_objext
|
---|
| 2302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2303 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2304 | ac_status=$?
|
---|
| 2305 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2306 | rm -f conftest.er1
|
---|
| 2307 | cat conftest.err >&5
|
---|
| 2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2309 | (exit $ac_status); } &&
|
---|
| 2310 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2311 | || test ! -s conftest.err'
|
---|
| 2312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2313 | (eval $ac_try) 2>&5
|
---|
| 2314 | ac_status=$?
|
---|
| 2315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2316 | (exit $ac_status); }; } &&
|
---|
| 2317 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2319 | (eval $ac_try) 2>&5
|
---|
| 2320 | ac_status=$?
|
---|
| 2321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2322 | (exit $ac_status); }; }; then
|
---|
| 2323 | break
|
---|
| 2324 | else
|
---|
| 2325 | echo "$as_me: failed program was:" >&5
|
---|
| 2326 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[562] | 2327 |
|
---|
[8756] | 2328 | fi
|
---|
| 2329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 2330 | done
|
---|
[8756] | 2331 | rm -f conftest*
|
---|
| 2332 | if test -n "$ac_declaration"; then
|
---|
| 2333 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2334 | echo $ac_declaration >>confdefs.h
|
---|
| 2335 | echo '#endif' >>confdefs.h
|
---|
| 2336 | fi
|
---|
[562] | 2337 |
|
---|
[8756] | 2338 | else
|
---|
| 2339 | echo "$as_me: failed program was:" >&5
|
---|
| 2340 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2341 |
|
---|
[8756] | 2342 | fi
|
---|
| 2343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2344 | ac_ext=c
|
---|
| 2345 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[8200] | 2349 |
|
---|
[8756] | 2350 | ac_ext=cc
|
---|
[8200] | 2351 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 2352 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2353 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2354 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 2355 | if test -n "$ac_tool_prefix"; then
|
---|
| 2356 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
| 2357 | do
|
---|
| 2358 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2359 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 2360 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2362 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2363 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2364 | else
|
---|
| 2365 | if test -n "$CXX"; then
|
---|
| 2366 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2367 | else
|
---|
| 2368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2369 | for as_dir in $PATH
|
---|
| 2370 | do
|
---|
| 2371 | IFS=$as_save_IFS
|
---|
| 2372 | test -z "$as_dir" && as_dir=.
|
---|
| 2373 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2374 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2375 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 2376 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2377 | break 2
|
---|
| 2378 | fi
|
---|
| 2379 | done
|
---|
| 2380 | done
|
---|
[8200] | 2381 |
|
---|
[8756] | 2382 | fi
|
---|
| 2383 | fi
|
---|
| 2384 | CXX=$ac_cv_prog_CXX
|
---|
| 2385 | if test -n "$CXX"; then
|
---|
| 2386 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 2387 | echo "${ECHO_T}$CXX" >&6
|
---|
| 2388 | else
|
---|
| 2389 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2390 | echo "${ECHO_T}no" >&6
|
---|
| 2391 | fi
|
---|
[8200] | 2392 |
|
---|
[8756] | 2393 | test -n "$CXX" && break
|
---|
| 2394 | done
|
---|
| 2395 | fi
|
---|
| 2396 | if test -z "$CXX"; then
|
---|
| 2397 | ac_ct_CXX=$CXX
|
---|
| 2398 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
| 2399 | do
|
---|
| 2400 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2401 | set dummy $ac_prog; ac_word=$2
|
---|
| 2402 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2403 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2404 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2405 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2406 | else
|
---|
| 2407 | if test -n "$ac_ct_CXX"; then
|
---|
| 2408 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2409 | else
|
---|
| 2410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2411 | for as_dir in $PATH
|
---|
| 2412 | do
|
---|
| 2413 | IFS=$as_save_IFS
|
---|
| 2414 | test -z "$as_dir" && as_dir=.
|
---|
| 2415 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2416 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2417 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 2418 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2419 | break 2
|
---|
| 2420 | fi
|
---|
| 2421 | done
|
---|
| 2422 | done
|
---|
[8200] | 2423 |
|
---|
[8756] | 2424 | fi
|
---|
| 2425 | fi
|
---|
| 2426 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2427 | if test -n "$ac_ct_CXX"; then
|
---|
| 2428 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 2429 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[3631] | 2430 | else
|
---|
[8756] | 2431 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2432 | echo "${ECHO_T}no" >&6
|
---|
[3631] | 2433 | fi
|
---|
[562] | 2434 |
|
---|
[8756] | 2435 | test -n "$ac_ct_CXX" && break
|
---|
| 2436 | done
|
---|
| 2437 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
| 2438 |
|
---|
| 2439 | CXX=$ac_ct_CXX
|
---|
[3631] | 2440 | fi
|
---|
[562] | 2441 |
|
---|
[8756] | 2442 |
|
---|
| 2443 | # Provide some information about the compiler.
|
---|
| 2444 | echo "$as_me:$LINENO:" \
|
---|
| 2445 | "checking for C++ compiler version" >&5
|
---|
| 2446 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2447 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2448 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 2449 | ac_status=$?
|
---|
| 2450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2451 | (exit $ac_status); }
|
---|
| 2452 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2453 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2454 | ac_status=$?
|
---|
| 2455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2456 | (exit $ac_status); }
|
---|
| 2457 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2458 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2459 | ac_status=$?
|
---|
| 2460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2461 | (exit $ac_status); }
|
---|
| 2462 |
|
---|
| 2463 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 2464 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 2465 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 2466 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3631] | 2467 | else
|
---|
[8756] | 2468 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2469 | /* confdefs.h. */
|
---|
| 2470 | _ACEOF
|
---|
| 2471 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2472 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2473 | /* end confdefs.h. */
|
---|
| 2474 |
|
---|
| 2475 | int
|
---|
| 2476 | main ()
|
---|
| 2477 | {
|
---|
| 2478 | #ifndef __GNUC__
|
---|
| 2479 | choke me
|
---|
[3631] | 2480 | #endif
|
---|
[8756] | 2481 |
|
---|
| 2482 | ;
|
---|
| 2483 | return 0;
|
---|
| 2484 | }
|
---|
| 2485 | _ACEOF
|
---|
| 2486 | rm -f conftest.$ac_objext
|
---|
| 2487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2488 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2489 | ac_status=$?
|
---|
| 2490 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2491 | rm -f conftest.er1
|
---|
| 2492 | cat conftest.err >&5
|
---|
| 2493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2494 | (exit $ac_status); } &&
|
---|
| 2495 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2496 | || test ! -s conftest.err'
|
---|
| 2497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2498 | (eval $ac_try) 2>&5
|
---|
| 2499 | ac_status=$?
|
---|
| 2500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2501 | (exit $ac_status); }; } &&
|
---|
| 2502 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2504 | (eval $ac_try) 2>&5
|
---|
| 2505 | ac_status=$?
|
---|
| 2506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2507 | (exit $ac_status); }; }; then
|
---|
| 2508 | ac_compiler_gnu=yes
|
---|
[8200] | 2509 | else
|
---|
[8756] | 2510 | echo "$as_me: failed program was:" >&5
|
---|
| 2511 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2512 |
|
---|
| 2513 | ac_compiler_gnu=no
|
---|
[8200] | 2514 | fi
|
---|
[8756] | 2515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2516 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2517 |
|
---|
[8200] | 2518 | fi
|
---|
[8756] | 2519 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 2520 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 2521 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2522 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2523 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
| 2524 | CXXFLAGS="-g"
|
---|
| 2525 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 2526 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 2527 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 2528 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2529 | else
|
---|
| 2530 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2531 | /* confdefs.h. */
|
---|
| 2532 | _ACEOF
|
---|
| 2533 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2534 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2535 | /* end confdefs.h. */
|
---|
[3631] | 2536 |
|
---|
[8756] | 2537 | int
|
---|
| 2538 | main ()
|
---|
| 2539 | {
|
---|
[8200] | 2540 |
|
---|
[8756] | 2541 | ;
|
---|
| 2542 | return 0;
|
---|
| 2543 | }
|
---|
| 2544 | _ACEOF
|
---|
| 2545 | rm -f conftest.$ac_objext
|
---|
| 2546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2547 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2548 | ac_status=$?
|
---|
| 2549 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2550 | rm -f conftest.er1
|
---|
| 2551 | cat conftest.err >&5
|
---|
| 2552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2553 | (exit $ac_status); } &&
|
---|
| 2554 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2555 | || test ! -s conftest.err'
|
---|
| 2556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2557 | (eval $ac_try) 2>&5
|
---|
| 2558 | ac_status=$?
|
---|
| 2559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2560 | (exit $ac_status); }; } &&
|
---|
| 2561 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2563 | (eval $ac_try) 2>&5
|
---|
| 2564 | ac_status=$?
|
---|
| 2565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2566 | (exit $ac_status); }; }; then
|
---|
[562] | 2567 | ac_cv_prog_cxx_g=yes
|
---|
| 2568 | else
|
---|
[8756] | 2569 | echo "$as_me: failed program was:" >&5
|
---|
| 2570 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2571 |
|
---|
[8756] | 2572 | ac_cv_prog_cxx_g=no
|
---|
[562] | 2573 | fi
|
---|
[8756] | 2574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2575 | fi
|
---|
| 2576 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 2577 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
[562] | 2578 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
[8756] | 2579 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
[562] | 2580 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2581 | if test "$GXX" = yes; then
|
---|
| 2582 | CXXFLAGS="-g -O2"
|
---|
| 2583 | else
|
---|
| 2584 | CXXFLAGS="-g"
|
---|
| 2585 | fi
|
---|
| 2586 | else
|
---|
| 2587 | if test "$GXX" = yes; then
|
---|
| 2588 | CXXFLAGS="-O2"
|
---|
| 2589 | else
|
---|
| 2590 | CXXFLAGS=
|
---|
| 2591 | fi
|
---|
| 2592 | fi
|
---|
[8756] | 2593 | for ac_declaration in \
|
---|
| 2594 | '' \
|
---|
| 2595 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2596 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2597 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2598 | 'extern "C" void exit (int);' \
|
---|
| 2599 | 'void exit (int);'
|
---|
| 2600 | do
|
---|
| 2601 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2602 | /* confdefs.h. */
|
---|
| 2603 | _ACEOF
|
---|
| 2604 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2605 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2606 | /* end confdefs.h. */
|
---|
| 2607 | $ac_declaration
|
---|
| 2608 | #include <stdlib.h>
|
---|
| 2609 | int
|
---|
| 2610 | main ()
|
---|
| 2611 | {
|
---|
| 2612 | exit (42);
|
---|
| 2613 | ;
|
---|
| 2614 | return 0;
|
---|
| 2615 | }
|
---|
| 2616 | _ACEOF
|
---|
| 2617 | rm -f conftest.$ac_objext
|
---|
| 2618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2619 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2620 | ac_status=$?
|
---|
| 2621 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2622 | rm -f conftest.er1
|
---|
| 2623 | cat conftest.err >&5
|
---|
| 2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2625 | (exit $ac_status); } &&
|
---|
| 2626 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2627 | || test ! -s conftest.err'
|
---|
| 2628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2629 | (eval $ac_try) 2>&5
|
---|
| 2630 | ac_status=$?
|
---|
| 2631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2632 | (exit $ac_status); }; } &&
|
---|
| 2633 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2635 | (eval $ac_try) 2>&5
|
---|
| 2636 | ac_status=$?
|
---|
| 2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2638 | (exit $ac_status); }; }; then
|
---|
| 2639 | :
|
---|
| 2640 | else
|
---|
| 2641 | echo "$as_me: failed program was:" >&5
|
---|
| 2642 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[3063] | 2643 |
|
---|
[8756] | 2644 | continue
|
---|
| 2645 | fi
|
---|
| 2646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2647 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2648 | /* confdefs.h. */
|
---|
| 2649 | _ACEOF
|
---|
| 2650 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2651 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2652 | /* end confdefs.h. */
|
---|
| 2653 | $ac_declaration
|
---|
| 2654 | int
|
---|
| 2655 | main ()
|
---|
| 2656 | {
|
---|
| 2657 | exit (42);
|
---|
| 2658 | ;
|
---|
| 2659 | return 0;
|
---|
| 2660 | }
|
---|
| 2661 | _ACEOF
|
---|
| 2662 | rm -f conftest.$ac_objext
|
---|
| 2663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2664 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2665 | ac_status=$?
|
---|
| 2666 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2667 | rm -f conftest.er1
|
---|
| 2668 | cat conftest.err >&5
|
---|
| 2669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2670 | (exit $ac_status); } &&
|
---|
| 2671 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2672 | || test ! -s conftest.err'
|
---|
| 2673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2674 | (eval $ac_try) 2>&5
|
---|
| 2675 | ac_status=$?
|
---|
| 2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2677 | (exit $ac_status); }; } &&
|
---|
| 2678 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2680 | (eval $ac_try) 2>&5
|
---|
| 2681 | ac_status=$?
|
---|
| 2682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2683 | (exit $ac_status); }; }; then
|
---|
| 2684 | break
|
---|
| 2685 | else
|
---|
| 2686 | echo "$as_me: failed program was:" >&5
|
---|
| 2687 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2688 |
|
---|
| 2689 | fi
|
---|
| 2690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2691 | done
|
---|
| 2692 | rm -f conftest*
|
---|
| 2693 | if test -n "$ac_declaration"; then
|
---|
| 2694 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2695 | echo $ac_declaration >>confdefs.h
|
---|
| 2696 | echo '#endif' >>confdefs.h
|
---|
| 2697 | fi
|
---|
| 2698 |
|
---|
| 2699 | ac_ext=c
|
---|
| 2700 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2701 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2702 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2703 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2704 |
|
---|
| 2705 | for ac_prog in gawk mawk nawk awk
|
---|
[3063] | 2706 | do
|
---|
[8756] | 2707 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2708 | set dummy $ac_prog; ac_word=$2
|
---|
[8756] | 2709 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2711 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 2712 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2713 | else
|
---|
| 2714 | if test -n "$AWK"; then
|
---|
| 2715 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2716 | else
|
---|
[8756] | 2717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2718 | for as_dir in $PATH
|
---|
| 2719 | do
|
---|
| 2720 | IFS=$as_save_IFS
|
---|
| 2721 | test -z "$as_dir" && as_dir=.
|
---|
| 2722 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2723 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2724 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 2725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2726 | break 2
|
---|
| 2727 | fi
|
---|
| 2728 | done
|
---|
| 2729 | done
|
---|
| 2730 |
|
---|
[687] | 2731 | fi
|
---|
| 2732 | fi
|
---|
[8756] | 2733 | AWK=$ac_cv_prog_AWK
|
---|
[687] | 2734 | if test -n "$AWK"; then
|
---|
[8756] | 2735 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 2736 | echo "${ECHO_T}$AWK" >&6
|
---|
[687] | 2737 | else
|
---|
[8756] | 2738 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2739 | echo "${ECHO_T}no" >&6
|
---|
[687] | 2740 | fi
|
---|
| 2741 |
|
---|
[8756] | 2742 | test -n "$AWK" && break
|
---|
[687] | 2743 | done
|
---|
| 2744 |
|
---|
| 2745 | for ac_prog in 'bison -y' byacc
|
---|
| 2746 | do
|
---|
[8756] | 2747 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2748 | set dummy $ac_prog; ac_word=$2
|
---|
[8756] | 2749 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2751 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 2752 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2753 | else
|
---|
| 2754 | if test -n "$YACC"; then
|
---|
| 2755 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 2756 | else
|
---|
[8756] | 2757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2758 | for as_dir in $PATH
|
---|
| 2759 | do
|
---|
| 2760 | IFS=$as_save_IFS
|
---|
| 2761 | test -z "$as_dir" && as_dir=.
|
---|
| 2762 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2763 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2764 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 2765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2766 | break 2
|
---|
| 2767 | fi
|
---|
| 2768 | done
|
---|
| 2769 | done
|
---|
| 2770 |
|
---|
[687] | 2771 | fi
|
---|
| 2772 | fi
|
---|
[8756] | 2773 | YACC=$ac_cv_prog_YACC
|
---|
[687] | 2774 | if test -n "$YACC"; then
|
---|
[8756] | 2775 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 2776 | echo "${ECHO_T}$YACC" >&6
|
---|
[687] | 2777 | else
|
---|
[8756] | 2778 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2779 | echo "${ECHO_T}no" >&6
|
---|
[687] | 2780 | fi
|
---|
| 2781 |
|
---|
[8756] | 2782 | test -n "$YACC" && break
|
---|
[687] | 2783 | done
|
---|
| 2784 | test -n "$YACC" || YACC="yacc"
|
---|
| 2785 |
|
---|
[703] | 2786 | ac_aux_dir=
|
---|
| 2787 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2788 | if test -f $ac_dir/install-sh; then
|
---|
| 2789 | ac_aux_dir=$ac_dir
|
---|
| 2790 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2791 | break
|
---|
| 2792 | elif test -f $ac_dir/install.sh; then
|
---|
| 2793 | ac_aux_dir=$ac_dir
|
---|
| 2794 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2795 | break
|
---|
[8756] | 2796 | elif test -f $ac_dir/shtool; then
|
---|
| 2797 | ac_aux_dir=$ac_dir
|
---|
| 2798 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2799 | break
|
---|
[703] | 2800 | fi
|
---|
| 2801 | done
|
---|
| 2802 | if test -z "$ac_aux_dir"; then
|
---|
[8756] | 2803 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
| 2804 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 2805 | { (exit 1); exit 1; }; }
|
---|
[703] | 2806 | fi
|
---|
[8756] | 2807 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2808 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2809 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[703] | 2810 |
|
---|
[8756] | 2811 | # Make sure we can run config.sub.
|
---|
| 2812 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
| 2813 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
| 2814 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
| 2815 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2816 |
|
---|
[8756] | 2817 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 2818 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
| 2819 | if test "${ac_cv_build+set}" = set; then
|
---|
| 2820 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2821 | else
|
---|
| 2822 | ac_cv_build_alias=$build_alias
|
---|
| 2823 | test -z "$ac_cv_build_alias" &&
|
---|
| 2824 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 2825 | test -z "$ac_cv_build_alias" &&
|
---|
| 2826 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 2827 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 2828 | { (exit 1); exit 1; }; }
|
---|
| 2829 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
| 2830 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 2831 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
| 2832 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2833 |
|
---|
| 2834 | fi
|
---|
[8756] | 2835 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 2836 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
| 2837 | build=$ac_cv_build
|
---|
| 2838 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2839 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2840 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[2279] | 2841 |
|
---|
| 2842 |
|
---|
[8756] | 2843 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 2844 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
| 2845 | if test "${ac_cv_host+set}" = set; then
|
---|
| 2846 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2847 | else
|
---|
| 2848 | ac_cv_host_alias=$host_alias
|
---|
| 2849 | test -z "$ac_cv_host_alias" &&
|
---|
| 2850 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 2851 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
| 2852 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
| 2853 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
| 2854 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2855 |
|
---|
[8756] | 2856 | fi
|
---|
| 2857 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 2858 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
| 2859 | host=$ac_cv_host
|
---|
| 2860 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2861 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2862 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 2863 |
|
---|
| 2864 |
|
---|
[8756] | 2865 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 2866 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
| 2867 | if test "${ac_cv_target+set}" = set; then
|
---|
| 2868 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2869 | else
|
---|
| 2870 | ac_cv_target_alias=$target_alias
|
---|
| 2871 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 2872 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 2873 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
| 2874 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
| 2875 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
| 2876 | { (exit 1); exit 1; }; }
|
---|
[8200] | 2877 |
|
---|
[8756] | 2878 | fi
|
---|
| 2879 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 2880 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
| 2881 | target=$ac_cv_target
|
---|
| 2882 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2883 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2884 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 2885 |
|
---|
| 2886 |
|
---|
[8756] | 2887 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 2888 | # will get canonicalized.
|
---|
| 2889 | test -n "$target_alias" &&
|
---|
[2279] | 2890 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 2891 | NONENONEs,x,x, &&
|
---|
| 2892 | program_prefix=${target_alias}-
|
---|
[703] | 2893 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2894 | # so one script is as good as another. But avoid the broken or
|
---|
| 2895 | # incompatible versions:
|
---|
| 2896 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2897 | # SunOS /usr/etc/install
|
---|
| 2898 | # IRIX /sbin/install
|
---|
| 2899 | # AIX /bin/install
|
---|
[8756] | 2900 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[703] | 2901 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2902 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2903 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[8756] | 2904 | # OS/2's system install, which has a completely different semantic
|
---|
[703] | 2905 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[8756] | 2906 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 2907 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[703] | 2908 | if test -z "$INSTALL"; then
|
---|
[8756] | 2909 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2910 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[703] | 2911 | else
|
---|
[8756] | 2912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2913 | for as_dir in $PATH
|
---|
| 2914 | do
|
---|
| 2915 | IFS=$as_save_IFS
|
---|
| 2916 | test -z "$as_dir" && as_dir=.
|
---|
| 2917 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 2918 | case $as_dir/ in
|
---|
| 2919 | ./ | .// | /cC/* | \
|
---|
| 2920 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 2921 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 2922 | /usr/ucb/* ) ;;
|
---|
| 2923 | *)
|
---|
| 2924 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 2925 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 2926 | # by default.
|
---|
| 2927 | for ac_prog in ginstall scoinst install; do
|
---|
| 2928 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2929 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[703] | 2930 | if test $ac_prog = install &&
|
---|
[8756] | 2931 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[703] | 2932 | # AIX install. It has an incompatible calling convention.
|
---|
| 2933 | :
|
---|
[8756] | 2934 | elif test $ac_prog = install &&
|
---|
| 2935 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 2936 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 2937 | :
|
---|
[703] | 2938 | else
|
---|
[8756] | 2939 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 2940 | break 3
|
---|
[703] | 2941 | fi
|
---|
| 2942 | fi
|
---|
| 2943 | done
|
---|
[8756] | 2944 | done
|
---|
| 2945 | ;;
|
---|
| 2946 | esac
|
---|
| 2947 | done
|
---|
[703] | 2948 |
|
---|
[8756] | 2949 |
|
---|
[703] | 2950 | fi
|
---|
| 2951 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8756] | 2952 | INSTALL=$ac_cv_path_install
|
---|
[703] | 2953 | else
|
---|
| 2954 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 2955 | # path for INSTALL within a source directory, because that will
|
---|
| 2956 | # break other packages using the cache if that directory is
|
---|
| 2957 | # removed, or if the path is relative.
|
---|
[8756] | 2958 | INSTALL=$ac_install_sh
|
---|
[703] | 2959 | fi
|
---|
| 2960 | fi
|
---|
[8756] | 2961 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 2962 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[703] | 2963 |
|
---|
| 2964 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 2965 | # It thinks the first close brace ends the variable substitution.
|
---|
| 2966 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 2967 |
|
---|
[8756] | 2968 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[703] | 2969 |
|
---|
| 2970 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 2971 |
|
---|
[8756] | 2972 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 2973 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
| 2974 | LN_S=$as_ln_s
|
---|
| 2975 | if test "$LN_S" = "ln -s"; then
|
---|
| 2976 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 2977 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 2978 | else
|
---|
[8756] | 2979 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 2980 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[562] | 2981 | fi
|
---|
| 2982 |
|
---|
[8756] | 2983 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 2984 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 2985 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
| 2986 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 2987 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2988 | else
|
---|
[8756] | 2989 | cat >conftest.make <<\_ACEOF
|
---|
[562] | 2990 | all:
|
---|
[8756] | 2991 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
| 2992 | _ACEOF
|
---|
[562] | 2993 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[8756] | 2994 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
[562] | 2995 | if test -n "$ac_maketemp"; then
|
---|
| 2996 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 2997 | else
|
---|
| 2998 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 2999 | fi
|
---|
[8756] | 3000 | rm -f conftest.make
|
---|
[562] | 3001 | fi
|
---|
| 3002 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
[8756] | 3003 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3004 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 3005 | SET_MAKE=
|
---|
| 3006 | else
|
---|
[8756] | 3007 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3008 | echo "${ECHO_T}no" >&6
|
---|
[562] | 3009 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3010 | fi
|
---|
| 3011 |
|
---|
[8756] | 3012 | if test -n "$ac_tool_prefix"; then
|
---|
| 3013 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3014 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
| 3015 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3017 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 3018 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3019 | else
|
---|
| 3020 | if test -n "$RANLIB"; then
|
---|
| 3021 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3022 | else
|
---|
[8756] | 3023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3024 | for as_dir in $PATH
|
---|
| 3025 | do
|
---|
| 3026 | IFS=$as_save_IFS
|
---|
| 3027 | test -z "$as_dir" && as_dir=.
|
---|
| 3028 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3029 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3030 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 3031 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3032 | break 2
|
---|
| 3033 | fi
|
---|
| 3034 | done
|
---|
| 3035 | done
|
---|
| 3036 |
|
---|
[562] | 3037 | fi
|
---|
| 3038 | fi
|
---|
[8756] | 3039 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[562] | 3040 | if test -n "$RANLIB"; then
|
---|
[8756] | 3041 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3042 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[562] | 3043 | else
|
---|
[8756] | 3044 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3045 | echo "${ECHO_T}no" >&6
|
---|
[562] | 3046 | fi
|
---|
| 3047 |
|
---|
[8756] | 3048 | fi
|
---|
| 3049 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3050 | ac_ct_RANLIB=$RANLIB
|
---|
| 3051 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3052 | set dummy ranlib; ac_word=$2
|
---|
| 3053 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3055 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3056 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3057 | else
|
---|
| 3058 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3059 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3060 | else
|
---|
| 3061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3062 | for as_dir in $PATH
|
---|
| 3063 | do
|
---|
| 3064 | IFS=$as_save_IFS
|
---|
| 3065 | test -z "$as_dir" && as_dir=.
|
---|
| 3066 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3067 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3068 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 3069 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3070 | break 2
|
---|
| 3071 | fi
|
---|
| 3072 | done
|
---|
| 3073 | done
|
---|
[562] | 3074 |
|
---|
[8756] | 3075 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
| 3076 | fi
|
---|
| 3077 | fi
|
---|
| 3078 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3079 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3080 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3081 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
| 3082 | else
|
---|
| 3083 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3084 | echo "${ECHO_T}no" >&6
|
---|
| 3085 | fi
|
---|
| 3086 |
|
---|
| 3087 | RANLIB=$ac_ct_RANLIB
|
---|
| 3088 | else
|
---|
| 3089 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3090 | fi
|
---|
| 3091 |
|
---|
| 3092 |
|
---|
[2173] | 3093 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3094 | if test $USE_CORBA = 1; then
|
---|
| 3095 |
|
---|
[2213] | 3096 | if test $MICO_DIR = "default"; then
|
---|
[2173] | 3097 | #do something
|
---|
| 3098 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3099 | else
|
---|
| 3100 | #build the micotest program
|
---|
| 3101 | MICO_INC= ""
|
---|
| 3102 | if test $MICO_DIR != yes; then
|
---|
| 3103 | MICO_INC="-I $MICO_DIR"
|
---|
| 3104 | fi
|
---|
| 3105 | fi
|
---|
| 3106 |
|
---|
| 3107 | #get MICO_VER value
|
---|
| 3108 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3109 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
[2214] | 3110 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
[2173] | 3111 | sh -c "rm micotest"
|
---|
| 3112 | sh -c "rm micotest.o"
|
---|
| 3113 |
|
---|
| 3114 | #do test of MICO_VER
|
---|
| 3115 | if test MICO_VER != 0; then
|
---|
[8756] | 3116 | cat >>confdefs.h <<\_ACEOF
|
---|
[2173] | 3117 | #define MICO_VER 1
|
---|
[8756] | 3118 | _ACEOF
|
---|
[2173] | 3119 |
|
---|
[8200] | 3120 |
|
---|
[2173] | 3121 | fi
|
---|
| 3122 | #end USE_CORBA test
|
---|
| 3123 | fi
|
---|
| 3124 |
|
---|
[8756] | 3125 |
|
---|
| 3126 | ac_ext=c
|
---|
| 3127 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3128 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3129 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3130 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3131 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3132 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[687] | 3133 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3134 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3135 | CPP=
|
---|
| 3136 | fi
|
---|
| 3137 | if test -z "$CPP"; then
|
---|
[8756] | 3138 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3139 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3140 | else
|
---|
[8756] | 3141 | # Double quotes because CPP needs to be expanded
|
---|
| 3142 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3143 | do
|
---|
| 3144 | ac_preproc_ok=false
|
---|
| 3145 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3146 | do
|
---|
| 3147 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3148 | # with a fresh cross-compiler works.
|
---|
| 3149 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3150 | # <limits.h> exists even on freestanding compilers.
|
---|
[687] | 3151 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8756] | 3152 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3153 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3154 | /* confdefs.h. */
|
---|
| 3155 | _ACEOF
|
---|
| 3156 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3157 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3158 | /* end confdefs.h. */
|
---|
| 3159 | #ifdef __STDC__
|
---|
| 3160 | # include <limits.h>
|
---|
| 3161 | #else
|
---|
| 3162 | # include <assert.h>
|
---|
| 3163 | #endif
|
---|
| 3164 | Syntax error
|
---|
| 3165 | _ACEOF
|
---|
| 3166 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3167 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3168 | ac_status=$?
|
---|
| 3169 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3170 | rm -f conftest.er1
|
---|
| 3171 | cat conftest.err >&5
|
---|
| 3172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3173 | (exit $ac_status); } >/dev/null; then
|
---|
| 3174 | if test -s conftest.err; then
|
---|
| 3175 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3176 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3177 | else
|
---|
| 3178 | ac_cpp_err=
|
---|
| 3179 | fi
|
---|
[687] | 3180 | else
|
---|
[8756] | 3181 | ac_cpp_err=yes
|
---|
| 3182 | fi
|
---|
| 3183 | if test -z "$ac_cpp_err"; then
|
---|
[8200] | 3184 | :
|
---|
[687] | 3185 | else
|
---|
[8756] | 3186 | echo "$as_me: failed program was:" >&5
|
---|
| 3187 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3188 |
|
---|
| 3189 | # Broken: fails on valid input.
|
---|
| 3190 | continue
|
---|
| 3191 | fi
|
---|
| 3192 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3193 |
|
---|
| 3194 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3195 | # can be detected and how.
|
---|
| 3196 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3197 | /* confdefs.h. */
|
---|
| 3198 | _ACEOF
|
---|
| 3199 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3200 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3201 | /* end confdefs.h. */
|
---|
| 3202 | #include <ac_nonexistent.h>
|
---|
| 3203 | _ACEOF
|
---|
| 3204 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3205 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3206 | ac_status=$?
|
---|
| 3207 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3208 | rm -f conftest.er1
|
---|
| 3209 | cat conftest.err >&5
|
---|
| 3210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3211 | (exit $ac_status); } >/dev/null; then
|
---|
| 3212 | if test -s conftest.err; then
|
---|
| 3213 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3214 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3215 | else
|
---|
| 3216 | ac_cpp_err=
|
---|
| 3217 | fi
|
---|
| 3218 | else
|
---|
| 3219 | ac_cpp_err=yes
|
---|
| 3220 | fi
|
---|
| 3221 | if test -z "$ac_cpp_err"; then
|
---|
| 3222 | # Broken: success on invalid input.
|
---|
| 3223 | continue
|
---|
| 3224 | else
|
---|
| 3225 | echo "$as_me: failed program was:" >&5
|
---|
| 3226 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3227 |
|
---|
| 3228 | # Passes both tests.
|
---|
| 3229 | ac_preproc_ok=:
|
---|
| 3230 | break
|
---|
| 3231 | fi
|
---|
| 3232 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3233 |
|
---|
| 3234 | done
|
---|
| 3235 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3236 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3237 | if $ac_preproc_ok; then
|
---|
| 3238 | break
|
---|
| 3239 | fi
|
---|
| 3240 |
|
---|
| 3241 | done
|
---|
| 3242 | ac_cv_prog_CPP=$CPP
|
---|
| 3243 |
|
---|
| 3244 | fi
|
---|
| 3245 | CPP=$ac_cv_prog_CPP
|
---|
| 3246 | else
|
---|
| 3247 | ac_cv_prog_CPP=$CPP
|
---|
| 3248 | fi
|
---|
| 3249 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3250 | echo "${ECHO_T}$CPP" >&6
|
---|
| 3251 | ac_preproc_ok=false
|
---|
| 3252 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3253 | do
|
---|
| 3254 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3255 | # with a fresh cross-compiler works.
|
---|
| 3256 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3257 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3258 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3259 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3260 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3261 | /* confdefs.h. */
|
---|
| 3262 | _ACEOF
|
---|
| 3263 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3264 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3265 | /* end confdefs.h. */
|
---|
| 3266 | #ifdef __STDC__
|
---|
| 3267 | # include <limits.h>
|
---|
| 3268 | #else
|
---|
| 3269 | # include <assert.h>
|
---|
| 3270 | #endif
|
---|
| 3271 | Syntax error
|
---|
| 3272 | _ACEOF
|
---|
| 3273 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3274 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3275 | ac_status=$?
|
---|
| 3276 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3277 | rm -f conftest.er1
|
---|
| 3278 | cat conftest.err >&5
|
---|
| 3279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3280 | (exit $ac_status); } >/dev/null; then
|
---|
| 3281 | if test -s conftest.err; then
|
---|
| 3282 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3283 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3284 | else
|
---|
| 3285 | ac_cpp_err=
|
---|
| 3286 | fi
|
---|
| 3287 | else
|
---|
| 3288 | ac_cpp_err=yes
|
---|
| 3289 | fi
|
---|
| 3290 | if test -z "$ac_cpp_err"; then
|
---|
[687] | 3291 | :
|
---|
| 3292 | else
|
---|
[8756] | 3293 | echo "$as_me: failed program was:" >&5
|
---|
| 3294 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3295 |
|
---|
| 3296 | # Broken: fails on valid input.
|
---|
| 3297 | continue
|
---|
[687] | 3298 | fi
|
---|
[8756] | 3299 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3300 |
|
---|
| 3301 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3302 | # can be detected and how.
|
---|
| 3303 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3304 | /* confdefs.h. */
|
---|
| 3305 | _ACEOF
|
---|
| 3306 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3307 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3308 | /* end confdefs.h. */
|
---|
| 3309 | #include <ac_nonexistent.h>
|
---|
| 3310 | _ACEOF
|
---|
| 3311 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3312 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3313 | ac_status=$?
|
---|
| 3314 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3315 | rm -f conftest.er1
|
---|
| 3316 | cat conftest.err >&5
|
---|
| 3317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3318 | (exit $ac_status); } >/dev/null; then
|
---|
| 3319 | if test -s conftest.err; then
|
---|
| 3320 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3321 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3322 | else
|
---|
| 3323 | ac_cpp_err=
|
---|
| 3324 | fi
|
---|
| 3325 | else
|
---|
| 3326 | ac_cpp_err=yes
|
---|
[687] | 3327 | fi
|
---|
[8756] | 3328 | if test -z "$ac_cpp_err"; then
|
---|
| 3329 | # Broken: success on invalid input.
|
---|
| 3330 | continue
|
---|
| 3331 | else
|
---|
| 3332 | echo "$as_me: failed program was:" >&5
|
---|
| 3333 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3334 |
|
---|
| 3335 | # Passes both tests.
|
---|
| 3336 | ac_preproc_ok=:
|
---|
| 3337 | break
|
---|
[687] | 3338 | fi
|
---|
[8756] | 3339 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3340 |
|
---|
| 3341 | done
|
---|
| 3342 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3343 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3344 | if $ac_preproc_ok; then
|
---|
| 3345 | :
|
---|
| 3346 | else
|
---|
| 3347 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3348 | See \`config.log' for more details." >&5
|
---|
| 3349 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3350 | See \`config.log' for more details." >&2;}
|
---|
| 3351 | { (exit 1); exit 1; }; }
|
---|
[8200] | 3352 | fi
|
---|
[8756] | 3353 |
|
---|
| 3354 | ac_ext=c
|
---|
| 3355 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3359 |
|
---|
| 3360 |
|
---|
| 3361 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3362 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3363 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 3364 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3365 | else
|
---|
[8756] | 3366 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3367 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3368 | else ac_cv_prog_egrep='egrep'
|
---|
| 3369 | fi
|
---|
[687] | 3370 | fi
|
---|
[8756] | 3371 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3372 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3373 | EGREP=$ac_cv_prog_egrep
|
---|
[687] | 3374 |
|
---|
[8756] | 3375 |
|
---|
| 3376 |
|
---|
| 3377 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 3378 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 3379 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3380 | /* confdefs.h. */
|
---|
| 3381 | _ACEOF
|
---|
| 3382 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3383 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3384 | /* end confdefs.h. */
|
---|
[687] | 3385 | #ifdef _AIX
|
---|
| 3386 | yes
|
---|
| 3387 | #endif
|
---|
| 3388 |
|
---|
[8756] | 3389 | _ACEOF
|
---|
[687] | 3390 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 3391 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 3392 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3393 | echo "${ECHO_T}yes" >&6
|
---|
| 3394 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3395 | #define _ALL_SOURCE 1
|
---|
[8756] | 3396 | _ACEOF
|
---|
[687] | 3397 |
|
---|
| 3398 | else
|
---|
[8756] | 3399 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3400 | echo "${ECHO_T}no" >&6
|
---|
[687] | 3401 | fi
|
---|
| 3402 | rm -f conftest*
|
---|
| 3403 |
|
---|
[8200] | 3404 |
|
---|
[8756] | 3405 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3406 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 3407 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3408 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3409 | else
|
---|
| 3410 | ac_func_search_save_LIBS=$LIBS
|
---|
| 3411 | ac_cv_search_strerror=no
|
---|
| 3412 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3413 | /* confdefs.h. */
|
---|
| 3414 | _ACEOF
|
---|
| 3415 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3416 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3417 | /* end confdefs.h. */
|
---|
[687] | 3418 |
|
---|
[8756] | 3419 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3420 | #ifdef __cplusplus
|
---|
| 3421 | extern "C"
|
---|
| 3422 | #endif
|
---|
| 3423 | /* We use char because int might match the return type of a gcc2
|
---|
| 3424 | builtin and then its argument prototype would still apply. */
|
---|
| 3425 | char strerror ();
|
---|
| 3426 | int
|
---|
| 3427 | main ()
|
---|
| 3428 | {
|
---|
| 3429 | strerror ();
|
---|
| 3430 | ;
|
---|
| 3431 | return 0;
|
---|
| 3432 | }
|
---|
| 3433 | _ACEOF
|
---|
| 3434 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3436 | (eval $ac_link) 2>conftest.er1
|
---|
| 3437 | ac_status=$?
|
---|
| 3438 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3439 | rm -f conftest.er1
|
---|
| 3440 | cat conftest.err >&5
|
---|
| 3441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3442 | (exit $ac_status); } &&
|
---|
| 3443 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3444 | || test ! -s conftest.err'
|
---|
| 3445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3446 | (eval $ac_try) 2>&5
|
---|
| 3447 | ac_status=$?
|
---|
| 3448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3449 | (exit $ac_status); }; } &&
|
---|
| 3450 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3452 | (eval $ac_try) 2>&5
|
---|
| 3453 | ac_status=$?
|
---|
| 3454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3455 | (exit $ac_status); }; }; then
|
---|
| 3456 | ac_cv_search_strerror="none required"
|
---|
[687] | 3457 | else
|
---|
[8756] | 3458 | echo "$as_me: failed program was:" >&5
|
---|
| 3459 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3460 |
|
---|
[687] | 3461 | fi
|
---|
[8756] | 3462 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3463 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3464 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3465 | for ac_lib in cposix; do
|
---|
| 3466 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3467 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3468 | /* confdefs.h. */
|
---|
| 3469 | _ACEOF
|
---|
| 3470 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3471 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3472 | /* end confdefs.h. */
|
---|
[687] | 3473 |
|
---|
[8756] | 3474 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3475 | #ifdef __cplusplus
|
---|
| 3476 | extern "C"
|
---|
| 3477 | #endif
|
---|
| 3478 | /* We use char because int might match the return type of a gcc2
|
---|
| 3479 | builtin and then its argument prototype would still apply. */
|
---|
| 3480 | char strerror ();
|
---|
| 3481 | int
|
---|
| 3482 | main ()
|
---|
| 3483 | {
|
---|
| 3484 | strerror ();
|
---|
| 3485 | ;
|
---|
| 3486 | return 0;
|
---|
| 3487 | }
|
---|
| 3488 | _ACEOF
|
---|
| 3489 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3491 | (eval $ac_link) 2>conftest.er1
|
---|
| 3492 | ac_status=$?
|
---|
| 3493 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3494 | rm -f conftest.er1
|
---|
| 3495 | cat conftest.err >&5
|
---|
| 3496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3497 | (exit $ac_status); } &&
|
---|
| 3498 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3499 | || test ! -s conftest.err'
|
---|
| 3500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3501 | (eval $ac_try) 2>&5
|
---|
| 3502 | ac_status=$?
|
---|
| 3503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3504 | (exit $ac_status); }; } &&
|
---|
| 3505 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3507 | (eval $ac_try) 2>&5
|
---|
| 3508 | ac_status=$?
|
---|
| 3509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3510 | (exit $ac_status); }; }; then
|
---|
| 3511 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3512 | break
|
---|
[687] | 3513 | else
|
---|
[8756] | 3514 | echo "$as_me: failed program was:" >&5
|
---|
| 3515 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3516 |
|
---|
| 3517 | fi
|
---|
| 3518 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3519 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3520 | done
|
---|
| 3521 | fi
|
---|
| 3522 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3523 | fi
|
---|
| 3524 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3525 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3526 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3527 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
| 3528 |
|
---|
| 3529 | fi
|
---|
| 3530 |
|
---|
| 3531 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3532 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 3533 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3534 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3535 | else
|
---|
[8756] | 3536 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3537 | /* confdefs.h. */
|
---|
| 3538 | _ACEOF
|
---|
| 3539 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3540 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3541 | /* end confdefs.h. */
|
---|
| 3542 | #include <stdlib.h>
|
---|
| 3543 | #include <stdarg.h>
|
---|
| 3544 | #include <string.h>
|
---|
| 3545 | #include <float.h>
|
---|
| 3546 |
|
---|
| 3547 | int
|
---|
| 3548 | main ()
|
---|
| 3549 | {
|
---|
| 3550 |
|
---|
| 3551 | ;
|
---|
| 3552 | return 0;
|
---|
| 3553 | }
|
---|
| 3554 | _ACEOF
|
---|
| 3555 | rm -f conftest.$ac_objext
|
---|
| 3556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3557 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3558 | ac_status=$?
|
---|
| 3559 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3560 | rm -f conftest.er1
|
---|
| 3561 | cat conftest.err >&5
|
---|
| 3562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3563 | (exit $ac_status); } &&
|
---|
| 3564 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3565 | || test ! -s conftest.err'
|
---|
| 3566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3567 | (eval $ac_try) 2>&5
|
---|
| 3568 | ac_status=$?
|
---|
| 3569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3570 | (exit $ac_status); }; } &&
|
---|
| 3571 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3573 | (eval $ac_try) 2>&5
|
---|
| 3574 | ac_status=$?
|
---|
| 3575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3576 | (exit $ac_status); }; }; then
|
---|
| 3577 | ac_cv_header_stdc=yes
|
---|
| 3578 | else
|
---|
| 3579 | echo "$as_me: failed program was:" >&5
|
---|
| 3580 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3581 |
|
---|
| 3582 | ac_cv_header_stdc=no
|
---|
[687] | 3583 | fi
|
---|
[8756] | 3584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3585 |
|
---|
| 3586 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3587 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3588 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3589 | /* confdefs.h. */
|
---|
| 3590 | _ACEOF
|
---|
| 3591 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3592 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3593 | /* end confdefs.h. */
|
---|
| 3594 | #include <string.h>
|
---|
| 3595 |
|
---|
| 3596 | _ACEOF
|
---|
| 3597 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3598 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3599 | :
|
---|
| 3600 | else
|
---|
| 3601 | ac_cv_header_stdc=no
|
---|
| 3602 | fi
|
---|
[8200] | 3603 | rm -f conftest*
|
---|
[8756] | 3604 |
|
---|
[687] | 3605 | fi
|
---|
[8756] | 3606 |
|
---|
| 3607 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3608 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3609 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3610 | /* confdefs.h. */
|
---|
| 3611 | _ACEOF
|
---|
| 3612 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3613 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3614 | /* end confdefs.h. */
|
---|
| 3615 | #include <stdlib.h>
|
---|
| 3616 |
|
---|
| 3617 | _ACEOF
|
---|
| 3618 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3619 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3620 | :
|
---|
| 3621 | else
|
---|
| 3622 | ac_cv_header_stdc=no
|
---|
| 3623 | fi
|
---|
| 3624 | rm -f conftest*
|
---|
| 3625 |
|
---|
| 3626 | fi
|
---|
| 3627 |
|
---|
| 3628 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3629 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3630 | if test "$cross_compiling" = yes; then
|
---|
| 3631 | :
|
---|
| 3632 | else
|
---|
| 3633 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3634 | /* confdefs.h. */
|
---|
| 3635 | _ACEOF
|
---|
| 3636 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3637 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3638 | /* end confdefs.h. */
|
---|
| 3639 | #include <ctype.h>
|
---|
| 3640 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3641 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3642 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3643 | #else
|
---|
| 3644 | # define ISLOWER(c) \
|
---|
| 3645 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3646 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3647 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3648 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3649 | #endif
|
---|
| 3650 |
|
---|
| 3651 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3652 | int
|
---|
| 3653 | main ()
|
---|
| 3654 | {
|
---|
| 3655 | int i;
|
---|
| 3656 | for (i = 0; i < 256; i++)
|
---|
| 3657 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3658 | || toupper (i) != TOUPPER (i))
|
---|
| 3659 | exit(2);
|
---|
| 3660 | exit (0);
|
---|
| 3661 | }
|
---|
| 3662 | _ACEOF
|
---|
| 3663 | rm -f conftest$ac_exeext
|
---|
| 3664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3665 | (eval $ac_link) 2>&5
|
---|
| 3666 | ac_status=$?
|
---|
| 3667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3668 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3670 | (eval $ac_try) 2>&5
|
---|
| 3671 | ac_status=$?
|
---|
| 3672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3673 | (exit $ac_status); }; }; then
|
---|
| 3674 | :
|
---|
| 3675 | else
|
---|
| 3676 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3677 | echo "$as_me: failed program was:" >&5
|
---|
| 3678 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3679 |
|
---|
| 3680 | ( exit $ac_status )
|
---|
| 3681 | ac_cv_header_stdc=no
|
---|
| 3682 | fi
|
---|
| 3683 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3684 | fi
|
---|
| 3685 | fi
|
---|
| 3686 | fi
|
---|
| 3687 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3688 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 3689 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3690 |
|
---|
| 3691 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3692 | #define STDC_HEADERS 1
|
---|
| 3693 | _ACEOF
|
---|
| 3694 |
|
---|
| 3695 | fi
|
---|
| 3696 |
|
---|
| 3697 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3698 |
|
---|
| 3699 |
|
---|
| 3700 |
|
---|
| 3701 |
|
---|
| 3702 |
|
---|
| 3703 |
|
---|
| 3704 |
|
---|
| 3705 |
|
---|
| 3706 |
|
---|
| 3707 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3708 | inttypes.h stdint.h unistd.h
|
---|
| 3709 | do
|
---|
| 3710 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3711 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3712 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3713 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 3714 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3715 | else
|
---|
| 3716 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3717 | /* confdefs.h. */
|
---|
| 3718 | _ACEOF
|
---|
| 3719 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3720 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3721 | /* end confdefs.h. */
|
---|
| 3722 | $ac_includes_default
|
---|
| 3723 |
|
---|
| 3724 | #include <$ac_header>
|
---|
| 3725 | _ACEOF
|
---|
| 3726 | rm -f conftest.$ac_objext
|
---|
| 3727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3728 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3729 | ac_status=$?
|
---|
| 3730 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3731 | rm -f conftest.er1
|
---|
| 3732 | cat conftest.err >&5
|
---|
| 3733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3734 | (exit $ac_status); } &&
|
---|
| 3735 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3736 | || test ! -s conftest.err'
|
---|
| 3737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3738 | (eval $ac_try) 2>&5
|
---|
| 3739 | ac_status=$?
|
---|
| 3740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3741 | (exit $ac_status); }; } &&
|
---|
| 3742 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3744 | (eval $ac_try) 2>&5
|
---|
| 3745 | ac_status=$?
|
---|
| 3746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3747 | (exit $ac_status); }; }; then
|
---|
| 3748 | eval "$as_ac_Header=yes"
|
---|
| 3749 | else
|
---|
| 3750 | echo "$as_me: failed program was:" >&5
|
---|
| 3751 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3752 |
|
---|
| 3753 | eval "$as_ac_Header=no"
|
---|
| 3754 | fi
|
---|
| 3755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3756 | fi
|
---|
| 3757 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3758 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 3759 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3760 | cat >>confdefs.h <<_ACEOF
|
---|
| 3761 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3762 | _ACEOF
|
---|
| 3763 |
|
---|
| 3764 | fi
|
---|
| 3765 |
|
---|
| 3766 | done
|
---|
| 3767 |
|
---|
| 3768 |
|
---|
| 3769 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3770 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3771 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3772 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3773 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3774 | fi
|
---|
| 3775 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3776 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
| 3777 | else
|
---|
| 3778 | # Is the header compilable?
|
---|
| 3779 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3780 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 3781 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3782 | /* confdefs.h. */
|
---|
| 3783 | _ACEOF
|
---|
| 3784 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3785 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3786 | /* end confdefs.h. */
|
---|
| 3787 | $ac_includes_default
|
---|
| 3788 | #include <minix/config.h>
|
---|
| 3789 | _ACEOF
|
---|
| 3790 | rm -f conftest.$ac_objext
|
---|
| 3791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3792 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3793 | ac_status=$?
|
---|
| 3794 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3795 | rm -f conftest.er1
|
---|
| 3796 | cat conftest.err >&5
|
---|
| 3797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3798 | (exit $ac_status); } &&
|
---|
| 3799 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3800 | || test ! -s conftest.err'
|
---|
| 3801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3802 | (eval $ac_try) 2>&5
|
---|
| 3803 | ac_status=$?
|
---|
| 3804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3805 | (exit $ac_status); }; } &&
|
---|
| 3806 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3808 | (eval $ac_try) 2>&5
|
---|
| 3809 | ac_status=$?
|
---|
| 3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3811 | (exit $ac_status); }; }; then
|
---|
| 3812 | ac_header_compiler=yes
|
---|
| 3813 | else
|
---|
| 3814 | echo "$as_me: failed program was:" >&5
|
---|
| 3815 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3816 |
|
---|
| 3817 | ac_header_compiler=no
|
---|
| 3818 | fi
|
---|
| 3819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3820 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3821 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 3822 |
|
---|
| 3823 | # Is the header present?
|
---|
| 3824 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3825 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 3826 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3827 | /* confdefs.h. */
|
---|
| 3828 | _ACEOF
|
---|
| 3829 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3830 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3831 | /* end confdefs.h. */
|
---|
| 3832 | #include <minix/config.h>
|
---|
| 3833 | _ACEOF
|
---|
| 3834 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3835 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3836 | ac_status=$?
|
---|
| 3837 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3838 | rm -f conftest.er1
|
---|
| 3839 | cat conftest.err >&5
|
---|
| 3840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3841 | (exit $ac_status); } >/dev/null; then
|
---|
| 3842 | if test -s conftest.err; then
|
---|
| 3843 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3844 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3845 | else
|
---|
| 3846 | ac_cpp_err=
|
---|
| 3847 | fi
|
---|
| 3848 | else
|
---|
| 3849 | ac_cpp_err=yes
|
---|
| 3850 | fi
|
---|
| 3851 | if test -z "$ac_cpp_err"; then
|
---|
| 3852 | ac_header_preproc=yes
|
---|
| 3853 | else
|
---|
| 3854 | echo "$as_me: failed program was:" >&5
|
---|
| 3855 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3856 |
|
---|
| 3857 | ac_header_preproc=no
|
---|
| 3858 | fi
|
---|
| 3859 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3860 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 3861 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 3862 |
|
---|
| 3863 | # So? What about this header?
|
---|
| 3864 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 3865 | yes:no: )
|
---|
| 3866 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 3867 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 3868 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 3869 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 3870 | ac_header_preproc=yes
|
---|
| 3871 | ;;
|
---|
| 3872 | no:yes:* )
|
---|
| 3873 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 3874 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 3875 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 3876 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 3877 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 3878 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 3879 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 3880 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 3881 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 3882 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 3883 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 3884 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 3885 | (
|
---|
| 3886 | cat <<\_ASBOX
|
---|
| 3887 | ## ------------------------------------------ ##
|
---|
| 3888 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 3889 | ## ------------------------------------------ ##
|
---|
| 3890 | _ASBOX
|
---|
| 3891 | ) |
|
---|
| 3892 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 3893 | ;;
|
---|
| 3894 | esac
|
---|
| 3895 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3896 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3897 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3898 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3899 | else
|
---|
| 3900 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 3901 | fi
|
---|
| 3902 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3903 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
| 3904 |
|
---|
| 3905 | fi
|
---|
| 3906 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
[687] | 3907 | MINIX=yes
|
---|
| 3908 | else
|
---|
[8756] | 3909 | MINIX=
|
---|
[687] | 3910 | fi
|
---|
| 3911 |
|
---|
[8756] | 3912 |
|
---|
[687] | 3913 | if test "$MINIX" = yes; then
|
---|
[8756] | 3914 |
|
---|
| 3915 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3916 | #define _POSIX_SOURCE 1
|
---|
[8756] | 3917 | _ACEOF
|
---|
[687] | 3918 |
|
---|
[8756] | 3919 |
|
---|
| 3920 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3921 | #define _POSIX_1_SOURCE 2
|
---|
[8756] | 3922 | _ACEOF
|
---|
[687] | 3923 |
|
---|
[8756] | 3924 |
|
---|
| 3925 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3926 | #define _MINIX 1
|
---|
[8756] | 3927 | _ACEOF
|
---|
[687] | 3928 |
|
---|
| 3929 | fi
|
---|
| 3930 |
|
---|
[8756] | 3931 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 3932 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 3933 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 3934 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 3935 | else
|
---|
| 3936 | ac_cv_prog_cc_stdc=no
|
---|
| 3937 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 3938 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 3939 | # breaks some systems' header files.
|
---|
| 3940 | # AIX -qlanglvl=ansi
|
---|
| 3941 | # Ultrix and OSF/1 -std1
|
---|
| 3942 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 3943 | # SVR4 -Xc
|
---|
| 3944 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 3945 | do
|
---|
| 3946 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[8756] | 3947 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3948 | /* confdefs.h. */
|
---|
| 3949 | _ACEOF
|
---|
| 3950 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3951 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3952 | /* end confdefs.h. */
|
---|
[700] | 3953 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 3954 | choke me
|
---|
[8756] | 3955 | #endif
|
---|
[700] | 3956 |
|
---|
[8756] | 3957 | int
|
---|
| 3958 | main ()
|
---|
| 3959 | {
|
---|
[700] | 3960 | int test (int i, double x);
|
---|
| 3961 | struct s1 {int (*f) (int a);};
|
---|
| 3962 | struct s2 {int (*f) (double a);};
|
---|
[8756] | 3963 | ;
|
---|
| 3964 | return 0;
|
---|
| 3965 | }
|
---|
| 3966 | _ACEOF
|
---|
| 3967 | rm -f conftest.$ac_objext
|
---|
| 3968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3969 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3970 | ac_status=$?
|
---|
| 3971 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3972 | rm -f conftest.er1
|
---|
| 3973 | cat conftest.err >&5
|
---|
| 3974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3975 | (exit $ac_status); } &&
|
---|
| 3976 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3977 | || test ! -s conftest.err'
|
---|
| 3978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3979 | (eval $ac_try) 2>&5
|
---|
| 3980 | ac_status=$?
|
---|
| 3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3982 | (exit $ac_status); }; } &&
|
---|
| 3983 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3985 | (eval $ac_try) 2>&5
|
---|
| 3986 | ac_status=$?
|
---|
| 3987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3988 | (exit $ac_status); }; }; then
|
---|
[700] | 3989 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 3990 | else
|
---|
[8756] | 3991 | echo "$as_me: failed program was:" >&5
|
---|
| 3992 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3993 |
|
---|
[700] | 3994 | fi
|
---|
[8756] | 3995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[700] | 3996 | done
|
---|
| 3997 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 3998 |
|
---|
| 3999 | fi
|
---|
| 4000 |
|
---|
[8756] | 4001 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4002 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[700] | 4003 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4004 | x|xno) ;;
|
---|
| 4005 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4006 | esac
|
---|
| 4007 |
|
---|
[8200] | 4008 |
|
---|
[8756] | 4009 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 4010 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[700] | 4011 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[8756] | 4012 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4013 | echo "${ECHO_T}yes" >&6
|
---|
| 4014 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 4015 | #define PROTOTYPES 1
|
---|
[8756] | 4016 | _ACEOF
|
---|
[700] | 4017 |
|
---|
| 4018 | U= ANSI2KNR=
|
---|
| 4019 | else
|
---|
[8756] | 4020 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4021 | echo "${ECHO_T}no" >&6
|
---|
[700] | 4022 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4023 | fi
|
---|
| 4024 |
|
---|
[8756] | 4025 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4026 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 4027 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 4028 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4029 | else
|
---|
[8756] | 4030 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4031 | /* confdefs.h. */
|
---|
| 4032 | _ACEOF
|
---|
| 4033 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4034 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4035 | /* end confdefs.h. */
|
---|
[8200] | 4036 |
|
---|
[8756] | 4037 | int
|
---|
| 4038 | main ()
|
---|
| 4039 | {
|
---|
| 4040 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4041 | #ifndef __cplusplus
|
---|
| 4042 | /* Ultrix mips cc rejects this. */
|
---|
| 4043 | typedef int charset[2];
|
---|
| 4044 | const charset x;
|
---|
| 4045 | /* SunOS 4.1.1 cc rejects this. */
|
---|
| 4046 | char const *const *ccp;
|
---|
| 4047 | char **p;
|
---|
| 4048 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4049 | struct point {int x, y;};
|
---|
| 4050 | static struct point const zero = {0,0};
|
---|
| 4051 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4052 | It does not let you subtract one const X* pointer from another in
|
---|
| 4053 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4054 | expression */
|
---|
| 4055 | const char *g = "string";
|
---|
| 4056 | ccp = &g + (g ? g-g : 0);
|
---|
| 4057 | /* HPUX 7.0 cc rejects these. */
|
---|
| 4058 | ++ccp;
|
---|
| 4059 | p = (char**) ccp;
|
---|
| 4060 | ccp = (char const *const *) p;
|
---|
| 4061 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4062 | char *t;
|
---|
| 4063 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
[8200] | 4064 |
|
---|
[8756] | 4065 | *t++ = 0;
|
---|
| 4066 | }
|
---|
| 4067 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4068 | int x[] = {25, 17};
|
---|
| 4069 | const int *foo = &x[0];
|
---|
| 4070 | ++foo;
|
---|
| 4071 | }
|
---|
| 4072 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4073 | typedef const int *iptr;
|
---|
| 4074 | iptr p = 0;
|
---|
| 4075 | ++p;
|
---|
| 4076 | }
|
---|
| 4077 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4078 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4079 | struct s { int j; const int *ap[3]; };
|
---|
| 4080 | struct s *b; b->j = 5;
|
---|
| 4081 | }
|
---|
| 4082 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4083 | const int foo = 10;
|
---|
| 4084 | }
|
---|
| 4085 | #endif
|
---|
[8200] | 4086 |
|
---|
[8756] | 4087 | ;
|
---|
| 4088 | return 0;
|
---|
[3631] | 4089 | }
|
---|
[8756] | 4090 | _ACEOF
|
---|
| 4091 | rm -f conftest.$ac_objext
|
---|
| 4092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4093 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4094 | ac_status=$?
|
---|
| 4095 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4096 | rm -f conftest.er1
|
---|
| 4097 | cat conftest.err >&5
|
---|
| 4098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4099 | (exit $ac_status); } &&
|
---|
| 4100 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4101 | || test ! -s conftest.err'
|
---|
| 4102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4103 | (eval $ac_try) 2>&5
|
---|
| 4104 | ac_status=$?
|
---|
| 4105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4106 | (exit $ac_status); }; } &&
|
---|
| 4107 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4109 | (eval $ac_try) 2>&5
|
---|
| 4110 | ac_status=$?
|
---|
| 4111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4112 | (exit $ac_status); }; }; then
|
---|
[687] | 4113 | ac_cv_c_const=yes
|
---|
| 4114 | else
|
---|
[8756] | 4115 | echo "$as_me: failed program was:" >&5
|
---|
| 4116 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4117 |
|
---|
| 4118 | ac_cv_c_const=no
|
---|
[687] | 4119 | fi
|
---|
[8756] | 4120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4121 | fi
|
---|
[8756] | 4122 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 4123 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
[3631] | 4124 | if test $ac_cv_c_const = no; then
|
---|
[687] | 4125 |
|
---|
[8756] | 4126 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4127 | #define const
|
---|
| 4128 | _ACEOF
|
---|
| 4129 |
|
---|
[687] | 4130 | fi
|
---|
| 4131 |
|
---|
[8756] | 4132 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 4133 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 4134 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4135 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4136 | else
|
---|
[8756] | 4137 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4138 | /* confdefs.h. */
|
---|
| 4139 | _ACEOF
|
---|
| 4140 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4141 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4142 | /* end confdefs.h. */
|
---|
| 4143 | $ac_includes_default
|
---|
| 4144 | int
|
---|
| 4145 | main ()
|
---|
| 4146 | {
|
---|
| 4147 | if ((off_t *) 0)
|
---|
| 4148 | return 0;
|
---|
| 4149 | if (sizeof (off_t))
|
---|
| 4150 | return 0;
|
---|
| 4151 | ;
|
---|
| 4152 | return 0;
|
---|
| 4153 | }
|
---|
| 4154 | _ACEOF
|
---|
| 4155 | rm -f conftest.$ac_objext
|
---|
| 4156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4157 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4158 | ac_status=$?
|
---|
| 4159 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4160 | rm -f conftest.er1
|
---|
| 4161 | cat conftest.err >&5
|
---|
| 4162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4163 | (exit $ac_status); } &&
|
---|
| 4164 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4165 | || test ! -s conftest.err'
|
---|
| 4166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4167 | (eval $ac_try) 2>&5
|
---|
| 4168 | ac_status=$?
|
---|
| 4169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4170 | (exit $ac_status); }; } &&
|
---|
| 4171 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4173 | (eval $ac_try) 2>&5
|
---|
| 4174 | ac_status=$?
|
---|
| 4175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4176 | (exit $ac_status); }; }; then
|
---|
| 4177 | ac_cv_type_off_t=yes
|
---|
[687] | 4178 | else
|
---|
[8756] | 4179 | echo "$as_me: failed program was:" >&5
|
---|
| 4180 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[687] | 4181 |
|
---|
[8756] | 4182 | ac_cv_type_off_t=no
|
---|
[687] | 4183 | fi
|
---|
[8756] | 4184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4185 | fi
|
---|
[8756] | 4186 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 4187 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4188 | if test $ac_cv_type_off_t = yes; then
|
---|
[687] | 4189 | :
|
---|
| 4190 | else
|
---|
| 4191 |
|
---|
[8756] | 4192 | cat >>confdefs.h <<_ACEOF
|
---|
| 4193 | #define off_t long
|
---|
| 4194 | _ACEOF
|
---|
[687] | 4195 |
|
---|
| 4196 | fi
|
---|
[8200] | 4197 |
|
---|
[8756] | 4198 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 4199 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4200 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4201 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4202 | else
|
---|
[8756] | 4203 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4204 | /* confdefs.h. */
|
---|
| 4205 | _ACEOF
|
---|
| 4206 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4207 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4208 | /* end confdefs.h. */
|
---|
| 4209 | $ac_includes_default
|
---|
| 4210 | int
|
---|
| 4211 | main ()
|
---|
| 4212 | {
|
---|
| 4213 | if ((size_t *) 0)
|
---|
| 4214 | return 0;
|
---|
| 4215 | if (sizeof (size_t))
|
---|
| 4216 | return 0;
|
---|
| 4217 | ;
|
---|
| 4218 | return 0;
|
---|
| 4219 | }
|
---|
| 4220 | _ACEOF
|
---|
| 4221 | rm -f conftest.$ac_objext
|
---|
| 4222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4223 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4224 | ac_status=$?
|
---|
| 4225 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4226 | rm -f conftest.er1
|
---|
| 4227 | cat conftest.err >&5
|
---|
| 4228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4229 | (exit $ac_status); } &&
|
---|
| 4230 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4231 | || test ! -s conftest.err'
|
---|
| 4232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4233 | (eval $ac_try) 2>&5
|
---|
| 4234 | ac_status=$?
|
---|
| 4235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4236 | (exit $ac_status); }; } &&
|
---|
| 4237 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4239 | (eval $ac_try) 2>&5
|
---|
| 4240 | ac_status=$?
|
---|
| 4241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4242 | (exit $ac_status); }; }; then
|
---|
| 4243 | ac_cv_type_size_t=yes
|
---|
[687] | 4244 | else
|
---|
[8756] | 4245 | echo "$as_me: failed program was:" >&5
|
---|
| 4246 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4247 |
|
---|
[8756] | 4248 | ac_cv_type_size_t=no
|
---|
[3631] | 4249 | fi
|
---|
[8756] | 4250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4251 | fi
|
---|
[8756] | 4252 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 4253 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4254 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4255 | :
|
---|
[687] | 4256 | else
|
---|
[8200] | 4257 |
|
---|
[8756] | 4258 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 4259 | #define size_t unsigned
|
---|
[8756] | 4260 | _ACEOF
|
---|
[687] | 4261 |
|
---|
| 4262 | fi
|
---|
| 4263 |
|
---|
[8756] | 4264 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4265 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4266 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4267 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4268 | else
|
---|
[8756] | 4269 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4270 | /* confdefs.h. */
|
---|
| 4271 | _ACEOF
|
---|
| 4272 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4273 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4274 | /* end confdefs.h. */
|
---|
[687] | 4275 | #include <sys/types.h>
|
---|
| 4276 | #include <sys/time.h>
|
---|
| 4277 | #include <time.h>
|
---|
[8756] | 4278 |
|
---|
| 4279 | int
|
---|
| 4280 | main ()
|
---|
| 4281 | {
|
---|
| 4282 | if ((struct tm *) 0)
|
---|
| 4283 | return 0;
|
---|
| 4284 | ;
|
---|
| 4285 | return 0;
|
---|
| 4286 | }
|
---|
| 4287 | _ACEOF
|
---|
| 4288 | rm -f conftest.$ac_objext
|
---|
| 4289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4290 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4291 | ac_status=$?
|
---|
| 4292 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4293 | rm -f conftest.er1
|
---|
| 4294 | cat conftest.err >&5
|
---|
| 4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4296 | (exit $ac_status); } &&
|
---|
| 4297 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4298 | || test ! -s conftest.err'
|
---|
| 4299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4300 | (eval $ac_try) 2>&5
|
---|
| 4301 | ac_status=$?
|
---|
| 4302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4303 | (exit $ac_status); }; } &&
|
---|
| 4304 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4306 | (eval $ac_try) 2>&5
|
---|
| 4307 | ac_status=$?
|
---|
| 4308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4309 | (exit $ac_status); }; }; then
|
---|
[687] | 4310 | ac_cv_header_time=yes
|
---|
| 4311 | else
|
---|
[8756] | 4312 | echo "$as_me: failed program was:" >&5
|
---|
| 4313 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4314 |
|
---|
| 4315 | ac_cv_header_time=no
|
---|
[687] | 4316 | fi
|
---|
[8756] | 4317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4318 | fi
|
---|
[8756] | 4319 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 4320 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
| 4321 | if test $ac_cv_header_time = yes; then
|
---|
[8200] | 4322 |
|
---|
[8756] | 4323 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4324 | #define TIME_WITH_SYS_TIME 1
|
---|
[8756] | 4325 | _ACEOF
|
---|
[687] | 4326 |
|
---|
| 4327 | fi
|
---|
| 4328 |
|
---|
[8756] | 4329 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 4330 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 4331 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4332 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4333 | else
|
---|
[8756] | 4334 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4335 | /* confdefs.h. */
|
---|
| 4336 | _ACEOF
|
---|
| 4337 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4338 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4339 | /* end confdefs.h. */
|
---|
[687] | 4340 | #include <sys/types.h>
|
---|
| 4341 | #include <time.h>
|
---|
[8756] | 4342 |
|
---|
| 4343 | int
|
---|
| 4344 | main ()
|
---|
| 4345 | {
|
---|
[687] | 4346 | struct tm *tp; tp->tm_sec;
|
---|
[8756] | 4347 | ;
|
---|
| 4348 | return 0;
|
---|
| 4349 | }
|
---|
| 4350 | _ACEOF
|
---|
| 4351 | rm -f conftest.$ac_objext
|
---|
| 4352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4353 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4354 | ac_status=$?
|
---|
| 4355 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4356 | rm -f conftest.er1
|
---|
| 4357 | cat conftest.err >&5
|
---|
| 4358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4359 | (exit $ac_status); } &&
|
---|
| 4360 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4361 | || test ! -s conftest.err'
|
---|
| 4362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4363 | (eval $ac_try) 2>&5
|
---|
| 4364 | ac_status=$?
|
---|
| 4365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4366 | (exit $ac_status); }; } &&
|
---|
| 4367 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4369 | (eval $ac_try) 2>&5
|
---|
| 4370 | ac_status=$?
|
---|
| 4371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4372 | (exit $ac_status); }; }; then
|
---|
[687] | 4373 | ac_cv_struct_tm=time.h
|
---|
| 4374 | else
|
---|
[8756] | 4375 | echo "$as_me: failed program was:" >&5
|
---|
| 4376 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4377 |
|
---|
| 4378 | ac_cv_struct_tm=sys/time.h
|
---|
[687] | 4379 | fi
|
---|
[8756] | 4380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4381 | fi
|
---|
[8756] | 4382 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 4383 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
| 4384 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8200] | 4385 |
|
---|
[8756] | 4386 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4387 | #define TM_IN_SYS_TIME 1
|
---|
[8756] | 4388 | _ACEOF
|
---|
[687] | 4389 |
|
---|
| 4390 | fi
|
---|
| 4391 |
|
---|
[8200] | 4392 |
|
---|
[687] | 4393 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[8756] | 4394 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4395 | /* confdefs.h. */
|
---|
| 4396 | _ACEOF
|
---|
| 4397 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4398 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4399 | /* end confdefs.h. */
|
---|
[687] | 4400 | #include <stdio.h>
|
---|
| 4401 |
|
---|
[8756] | 4402 | int
|
---|
| 4403 | main ()
|
---|
| 4404 | {
|
---|
| 4405 | FILE *rubbish = popen("yes", "r");
|
---|
| 4406 | ;
|
---|
| 4407 | return 0;
|
---|
| 4408 | }
|
---|
| 4409 | _ACEOF
|
---|
| 4410 | rm -f conftest.$ac_objext
|
---|
| 4411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4412 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4413 | ac_status=$?
|
---|
| 4414 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4415 | rm -f conftest.er1
|
---|
| 4416 | cat conftest.err >&5
|
---|
| 4417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4418 | (exit $ac_status); } &&
|
---|
| 4419 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4420 | || test ! -s conftest.err'
|
---|
| 4421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4422 | (eval $ac_try) 2>&5
|
---|
| 4423 | ac_status=$?
|
---|
| 4424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4425 | (exit $ac_status); }; } &&
|
---|
| 4426 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4428 | (eval $ac_try) 2>&5
|
---|
| 4429 | ac_status=$?
|
---|
| 4430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4431 | (exit $ac_status); }; }; then
|
---|
[687] | 4432 | :
|
---|
| 4433 | else
|
---|
[8756] | 4434 | echo "$as_me: failed program was:" >&5
|
---|
| 4435 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4436 |
|
---|
| 4437 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[687] | 4438 | fi
|
---|
[8756] | 4439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4440 | fi
|
---|
| 4441 |
|
---|
[8200] | 4442 |
|
---|
[8756] | 4443 |
|
---|
| 4444 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 4445 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 4446 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4447 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4448 | else
|
---|
[8756] | 4449 | ac_check_lib_save_LIBS=$LIBS
|
---|
[562] | 4450 | LIBS="-lg $LIBS"
|
---|
[8756] | 4451 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4452 | /* confdefs.h. */
|
---|
| 4453 | _ACEOF
|
---|
| 4454 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4455 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4456 | /* end confdefs.h. */
|
---|
[562] | 4457 |
|
---|
[8756] | 4458 |
|
---|
| 4459 | int
|
---|
| 4460 | main ()
|
---|
| 4461 | {
|
---|
| 4462 | main ();
|
---|
| 4463 | ;
|
---|
| 4464 | return 0;
|
---|
| 4465 | }
|
---|
| 4466 | _ACEOF
|
---|
| 4467 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4469 | (eval $ac_link) 2>conftest.er1
|
---|
| 4470 | ac_status=$?
|
---|
| 4471 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4472 | rm -f conftest.er1
|
---|
| 4473 | cat conftest.err >&5
|
---|
| 4474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4475 | (exit $ac_status); } &&
|
---|
| 4476 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4477 | || test ! -s conftest.err'
|
---|
| 4478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4479 | (eval $ac_try) 2>&5
|
---|
| 4480 | ac_status=$?
|
---|
| 4481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4482 | (exit $ac_status); }; } &&
|
---|
| 4483 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4485 | (eval $ac_try) 2>&5
|
---|
| 4486 | ac_status=$?
|
---|
| 4487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4488 | (exit $ac_status); }; }; then
|
---|
| 4489 | ac_cv_lib_g_main=yes
|
---|
[562] | 4490 | else
|
---|
[8756] | 4491 | echo "$as_me: failed program was:" >&5
|
---|
| 4492 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4493 |
|
---|
[8756] | 4494 | ac_cv_lib_g_main=no
|
---|
[562] | 4495 | fi
|
---|
[8756] | 4496 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4497 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4498 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4499 | fi
|
---|
| 4500 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 4501 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 4502 | if test $ac_cv_lib_g_main = yes; then
|
---|
| 4503 | cat >>confdefs.h <<_ACEOF
|
---|
| 4504 | #define HAVE_LIBG 1
|
---|
| 4505 | _ACEOF
|
---|
[562] | 4506 |
|
---|
| 4507 | LIBS="-lg $LIBS"
|
---|
| 4508 |
|
---|
| 4509 | fi
|
---|
[8756] | 4510 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
[562] | 4511 |
|
---|
| 4512 |
|
---|
[8756] | 4513 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 4514 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 4515 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4516 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4517 | else
|
---|
[8756] | 4518 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4519 | LIBS="-lm $LIBS"
|
---|
| 4520 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4521 | /* confdefs.h. */
|
---|
| 4522 | _ACEOF
|
---|
| 4523 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4524 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4525 | /* end confdefs.h. */
|
---|
[8200] | 4526 |
|
---|
[562] | 4527 |
|
---|
[8756] | 4528 | int
|
---|
| 4529 | main ()
|
---|
| 4530 | {
|
---|
| 4531 | main ();
|
---|
| 4532 | ;
|
---|
| 4533 | return 0;
|
---|
| 4534 | }
|
---|
| 4535 | _ACEOF
|
---|
| 4536 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4538 | (eval $ac_link) 2>conftest.er1
|
---|
| 4539 | ac_status=$?
|
---|
| 4540 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4541 | rm -f conftest.er1
|
---|
| 4542 | cat conftest.err >&5
|
---|
| 4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4544 | (exit $ac_status); } &&
|
---|
| 4545 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4546 | || test ! -s conftest.err'
|
---|
| 4547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4548 | (eval $ac_try) 2>&5
|
---|
| 4549 | ac_status=$?
|
---|
| 4550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4551 | (exit $ac_status); }; } &&
|
---|
| 4552 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4554 | (eval $ac_try) 2>&5
|
---|
| 4555 | ac_status=$?
|
---|
| 4556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4557 | (exit $ac_status); }; }; then
|
---|
| 4558 | ac_cv_lib_m_main=yes
|
---|
[8200] | 4559 | else
|
---|
[8756] | 4560 | echo "$as_me: failed program was:" >&5
|
---|
| 4561 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[562] | 4562 |
|
---|
[8756] | 4563 | ac_cv_lib_m_main=no
|
---|
[562] | 4564 | fi
|
---|
[8756] | 4565 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4566 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4567 | LIBS=$ac_check_lib_save_LIBS
|
---|
[562] | 4568 | fi
|
---|
[8756] | 4569 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 4570 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 4571 | if test $ac_cv_lib_m_main = yes; then
|
---|
| 4572 | cat >>confdefs.h <<_ACEOF
|
---|
| 4573 | #define HAVE_LIBM 1
|
---|
| 4574 | _ACEOF
|
---|
[562] | 4575 |
|
---|
| 4576 | LIBS="-lm $LIBS"
|
---|
| 4577 |
|
---|
| 4578 | fi
|
---|
[8756] | 4579 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
[562] | 4580 |
|
---|
[8756] | 4581 |
|
---|
| 4582 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 4583 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 4584 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4585 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4586 | else
|
---|
[8756] | 4587 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4588 | LIBS="-lcrypt $LIBS"
|
---|
| 4589 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4590 | /* confdefs.h. */
|
---|
| 4591 | _ACEOF
|
---|
| 4592 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4593 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4594 | /* end confdefs.h. */
|
---|
[562] | 4595 |
|
---|
[8756] | 4596 |
|
---|
| 4597 | int
|
---|
| 4598 | main ()
|
---|
| 4599 | {
|
---|
| 4600 | main ();
|
---|
| 4601 | ;
|
---|
| 4602 | return 0;
|
---|
| 4603 | }
|
---|
| 4604 | _ACEOF
|
---|
| 4605 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4607 | (eval $ac_link) 2>conftest.er1
|
---|
| 4608 | ac_status=$?
|
---|
| 4609 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4610 | rm -f conftest.er1
|
---|
| 4611 | cat conftest.err >&5
|
---|
| 4612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4613 | (exit $ac_status); } &&
|
---|
| 4614 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4615 | || test ! -s conftest.err'
|
---|
| 4616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4617 | (eval $ac_try) 2>&5
|
---|
| 4618 | ac_status=$?
|
---|
| 4619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4620 | (exit $ac_status); }; } &&
|
---|
| 4621 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4623 | (eval $ac_try) 2>&5
|
---|
| 4624 | ac_status=$?
|
---|
| 4625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4626 | (exit $ac_status); }; }; then
|
---|
| 4627 | ac_cv_lib_crypt_main=yes
|
---|
[562] | 4628 | else
|
---|
[8756] | 4629 | echo "$as_me: failed program was:" >&5
|
---|
| 4630 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4631 |
|
---|
[8756] | 4632 | ac_cv_lib_crypt_main=no
|
---|
[562] | 4633 | fi
|
---|
[8756] | 4634 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4635 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4636 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4637 | fi
|
---|
| 4638 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 4639 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 4640 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
| 4641 | cat >>confdefs.h <<_ACEOF
|
---|
| 4642 | #define HAVE_LIBCRYPT 1
|
---|
| 4643 | _ACEOF
|
---|
[562] | 4644 |
|
---|
[8756] | 4645 | LIBS="-lcrypt $LIBS"
|
---|
[562] | 4646 |
|
---|
| 4647 | fi
|
---|
[8756] | 4648 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
[562] | 4649 |
|
---|
| 4650 |
|
---|
[8200] | 4651 |
|
---|
[986] | 4652 |
|
---|
| 4653 |
|
---|
| 4654 |
|
---|
[8200] | 4655 |
|
---|
| 4656 |
|
---|
[687] | 4657 | ac_header_dirent=no
|
---|
[8756] | 4658 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
| 4659 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4660 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 4661 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
| 4662 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 4663 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4664 | else
|
---|
[8756] | 4665 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4666 | /* confdefs.h. */
|
---|
| 4667 | _ACEOF
|
---|
| 4668 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4669 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4670 | /* end confdefs.h. */
|
---|
[687] | 4671 | #include <sys/types.h>
|
---|
| 4672 | #include <$ac_hdr>
|
---|
[8756] | 4673 |
|
---|
| 4674 | int
|
---|
| 4675 | main ()
|
---|
| 4676 | {
|
---|
| 4677 | if ((DIR *) 0)
|
---|
| 4678 | return 0;
|
---|
| 4679 | ;
|
---|
| 4680 | return 0;
|
---|
| 4681 | }
|
---|
| 4682 | _ACEOF
|
---|
| 4683 | rm -f conftest.$ac_objext
|
---|
| 4684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4685 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4686 | ac_status=$?
|
---|
| 4687 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4688 | rm -f conftest.er1
|
---|
| 4689 | cat conftest.err >&5
|
---|
| 4690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4691 | (exit $ac_status); } &&
|
---|
| 4692 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4693 | || test ! -s conftest.err'
|
---|
| 4694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4695 | (eval $ac_try) 2>&5
|
---|
| 4696 | ac_status=$?
|
---|
| 4697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4698 | (exit $ac_status); }; } &&
|
---|
| 4699 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 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); }; }; then
|
---|
| 4705 | eval "$as_ac_Header=yes"
|
---|
[562] | 4706 | else
|
---|
[8756] | 4707 | echo "$as_me: failed program was:" >&5
|
---|
| 4708 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4709 |
|
---|
| 4710 | eval "$as_ac_Header=no"
|
---|
[687] | 4711 | fi
|
---|
[8756] | 4712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4713 | fi
|
---|
[8756] | 4714 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4715 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4716 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4717 | cat >>confdefs.h <<_ACEOF
|
---|
| 4718 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4719 | _ACEOF
|
---|
| 4720 |
|
---|
| 4721 | ac_header_dirent=$ac_hdr; break
|
---|
[687] | 4722 | fi
|
---|
[8756] | 4723 |
|
---|
[687] | 4724 | done
|
---|
| 4725 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4726 | if test $ac_header_dirent = dirent.h; then
|
---|
[8756] | 4727 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4728 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4729 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4730 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4731 | else
|
---|
[8756] | 4732 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4733 | ac_cv_search_opendir=no
|
---|
| 4734 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4735 | /* confdefs.h. */
|
---|
| 4736 | _ACEOF
|
---|
| 4737 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4738 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4739 | /* end confdefs.h. */
|
---|
| 4740 |
|
---|
[687] | 4741 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 4742 | #ifdef __cplusplus
|
---|
| 4743 | extern "C"
|
---|
| 4744 | #endif
|
---|
[687] | 4745 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 4746 | builtin and then its argument prototype would still apply. */
|
---|
| 4747 | char opendir ();
|
---|
| 4748 | int
|
---|
| 4749 | main ()
|
---|
| 4750 | {
|
---|
| 4751 | opendir ();
|
---|
| 4752 | ;
|
---|
| 4753 | return 0;
|
---|
| 4754 | }
|
---|
| 4755 | _ACEOF
|
---|
| 4756 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4758 | (eval $ac_link) 2>conftest.er1
|
---|
| 4759 | ac_status=$?
|
---|
| 4760 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4761 | rm -f conftest.er1
|
---|
| 4762 | cat conftest.err >&5
|
---|
| 4763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4764 | (exit $ac_status); } &&
|
---|
| 4765 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4766 | || test ! -s conftest.err'
|
---|
| 4767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4768 | (eval $ac_try) 2>&5
|
---|
| 4769 | ac_status=$?
|
---|
| 4770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4771 | (exit $ac_status); }; } &&
|
---|
| 4772 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4774 | (eval $ac_try) 2>&5
|
---|
| 4775 | ac_status=$?
|
---|
| 4776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4777 | (exit $ac_status); }; }; then
|
---|
| 4778 | ac_cv_search_opendir="none required"
|
---|
| 4779 | else
|
---|
| 4780 | echo "$as_me: failed program was:" >&5
|
---|
| 4781 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4782 |
|
---|
[687] | 4783 | fi
|
---|
[8756] | 4784 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4785 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4786 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4787 | for ac_lib in dir; do
|
---|
| 4788 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4789 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4790 | /* confdefs.h. */
|
---|
| 4791 | _ACEOF
|
---|
| 4792 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4793 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4794 | /* end confdefs.h. */
|
---|
[8200] | 4795 |
|
---|
[8756] | 4796 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4797 | #ifdef __cplusplus
|
---|
| 4798 | extern "C"
|
---|
| 4799 | #endif
|
---|
| 4800 | /* We use char because int might match the return type of a gcc2
|
---|
| 4801 | builtin and then its argument prototype would still apply. */
|
---|
| 4802 | char opendir ();
|
---|
| 4803 | int
|
---|
| 4804 | main ()
|
---|
| 4805 | {
|
---|
| 4806 | opendir ();
|
---|
| 4807 | ;
|
---|
| 4808 | return 0;
|
---|
| 4809 | }
|
---|
| 4810 | _ACEOF
|
---|
| 4811 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4813 | (eval $ac_link) 2>conftest.er1
|
---|
| 4814 | ac_status=$?
|
---|
| 4815 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4816 | rm -f conftest.er1
|
---|
| 4817 | cat conftest.err >&5
|
---|
| 4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4819 | (exit $ac_status); } &&
|
---|
| 4820 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4821 | || test ! -s conftest.err'
|
---|
| 4822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4823 | (eval $ac_try) 2>&5
|
---|
| 4824 | ac_status=$?
|
---|
| 4825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4826 | (exit $ac_status); }; } &&
|
---|
| 4827 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4829 | (eval $ac_try) 2>&5
|
---|
| 4830 | ac_status=$?
|
---|
| 4831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4832 | (exit $ac_status); }; }; then
|
---|
| 4833 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4834 | break
|
---|
[8200] | 4835 | else
|
---|
[8756] | 4836 | echo "$as_me: failed program was:" >&5
|
---|
| 4837 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4838 |
|
---|
[687] | 4839 | fi
|
---|
[8756] | 4840 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4841 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4842 | done
|
---|
| 4843 | fi
|
---|
| 4844 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4845 | fi
|
---|
| 4846 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4847 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4848 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4849 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[687] | 4850 |
|
---|
[8756] | 4851 | fi
|
---|
| 4852 |
|
---|
[687] | 4853 | else
|
---|
[8756] | 4854 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4855 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4856 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4857 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4858 | else
|
---|
[8756] | 4859 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4860 | ac_cv_search_opendir=no
|
---|
| 4861 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4862 | /* confdefs.h. */
|
---|
| 4863 | _ACEOF
|
---|
| 4864 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4865 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4866 | /* end confdefs.h. */
|
---|
| 4867 |
|
---|
[687] | 4868 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 4869 | #ifdef __cplusplus
|
---|
| 4870 | extern "C"
|
---|
| 4871 | #endif
|
---|
[687] | 4872 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 4873 | builtin and then its argument prototype would still apply. */
|
---|
| 4874 | char opendir ();
|
---|
| 4875 | int
|
---|
| 4876 | main ()
|
---|
| 4877 | {
|
---|
| 4878 | opendir ();
|
---|
| 4879 | ;
|
---|
| 4880 | return 0;
|
---|
| 4881 | }
|
---|
| 4882 | _ACEOF
|
---|
| 4883 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4885 | (eval $ac_link) 2>conftest.er1
|
---|
| 4886 | ac_status=$?
|
---|
| 4887 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4888 | rm -f conftest.er1
|
---|
| 4889 | cat conftest.err >&5
|
---|
| 4890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4891 | (exit $ac_status); } &&
|
---|
| 4892 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4893 | || test ! -s conftest.err'
|
---|
| 4894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4895 | (eval $ac_try) 2>&5
|
---|
| 4896 | ac_status=$?
|
---|
| 4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4898 | (exit $ac_status); }; } &&
|
---|
| 4899 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4901 | (eval $ac_try) 2>&5
|
---|
| 4902 | ac_status=$?
|
---|
| 4903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4904 | (exit $ac_status); }; }; then
|
---|
| 4905 | ac_cv_search_opendir="none required"
|
---|
| 4906 | else
|
---|
| 4907 | echo "$as_me: failed program was:" >&5
|
---|
| 4908 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4909 |
|
---|
[562] | 4910 | fi
|
---|
[8756] | 4911 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4912 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4913 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4914 | for ac_lib in x; do
|
---|
| 4915 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4916 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4917 | /* confdefs.h. */
|
---|
| 4918 | _ACEOF
|
---|
| 4919 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4920 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4921 | /* end confdefs.h. */
|
---|
[8200] | 4922 |
|
---|
[8756] | 4923 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4924 | #ifdef __cplusplus
|
---|
| 4925 | extern "C"
|
---|
| 4926 | #endif
|
---|
| 4927 | /* We use char because int might match the return type of a gcc2
|
---|
| 4928 | builtin and then its argument prototype would still apply. */
|
---|
| 4929 | char opendir ();
|
---|
| 4930 | int
|
---|
| 4931 | main ()
|
---|
| 4932 | {
|
---|
| 4933 | opendir ();
|
---|
| 4934 | ;
|
---|
| 4935 | return 0;
|
---|
| 4936 | }
|
---|
| 4937 | _ACEOF
|
---|
| 4938 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4940 | (eval $ac_link) 2>conftest.er1
|
---|
| 4941 | ac_status=$?
|
---|
| 4942 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4943 | rm -f conftest.er1
|
---|
| 4944 | cat conftest.err >&5
|
---|
| 4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4946 | (exit $ac_status); } &&
|
---|
| 4947 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4948 | || test ! -s conftest.err'
|
---|
| 4949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4950 | (eval $ac_try) 2>&5
|
---|
| 4951 | ac_status=$?
|
---|
| 4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4953 | (exit $ac_status); }; } &&
|
---|
| 4954 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4956 | (eval $ac_try) 2>&5
|
---|
| 4957 | ac_status=$?
|
---|
| 4958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4959 | (exit $ac_status); }; }; then
|
---|
| 4960 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4961 | break
|
---|
[8200] | 4962 | else
|
---|
[8756] | 4963 | echo "$as_me: failed program was:" >&5
|
---|
| 4964 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4965 |
|
---|
[562] | 4966 | fi
|
---|
[8756] | 4967 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4968 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4969 | done
|
---|
| 4970 | fi
|
---|
| 4971 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4972 | fi
|
---|
| 4973 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4974 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4975 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4976 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[562] | 4977 |
|
---|
[687] | 4978 | fi
|
---|
| 4979 |
|
---|
[8756] | 4980 | fi
|
---|
| 4981 |
|
---|
| 4982 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 4983 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 4984 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 4985 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4986 | else
|
---|
[8756] | 4987 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4988 | /* confdefs.h. */
|
---|
| 4989 | _ACEOF
|
---|
| 4990 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4991 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4992 | /* end confdefs.h. */
|
---|
[562] | 4993 | #include <stdlib.h>
|
---|
| 4994 | #include <stdarg.h>
|
---|
| 4995 | #include <string.h>
|
---|
| 4996 | #include <float.h>
|
---|
[8756] | 4997 |
|
---|
| 4998 | int
|
---|
| 4999 | main ()
|
---|
| 5000 | {
|
---|
| 5001 |
|
---|
| 5002 | ;
|
---|
| 5003 | return 0;
|
---|
| 5004 | }
|
---|
| 5005 | _ACEOF
|
---|
| 5006 | rm -f conftest.$ac_objext
|
---|
| 5007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5008 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5009 | ac_status=$?
|
---|
| 5010 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5011 | rm -f conftest.er1
|
---|
| 5012 | cat conftest.err >&5
|
---|
| 5013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5014 | (exit $ac_status); } &&
|
---|
| 5015 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5016 | || test ! -s conftest.err'
|
---|
| 5017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5018 | (eval $ac_try) 2>&5
|
---|
| 5019 | ac_status=$?
|
---|
| 5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5021 | (exit $ac_status); }; } &&
|
---|
| 5022 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5024 | (eval $ac_try) 2>&5
|
---|
| 5025 | ac_status=$?
|
---|
| 5026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5027 | (exit $ac_status); }; }; then
|
---|
[562] | 5028 | ac_cv_header_stdc=yes
|
---|
| 5029 | else
|
---|
[8756] | 5030 | echo "$as_me: failed program was:" >&5
|
---|
| 5031 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5032 |
|
---|
| 5033 | ac_cv_header_stdc=no
|
---|
[562] | 5034 | fi
|
---|
[8756] | 5035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5036 |
|
---|
| 5037 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5038 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[8756] | 5039 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5040 | /* confdefs.h. */
|
---|
| 5041 | _ACEOF
|
---|
| 5042 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5043 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5044 | /* end confdefs.h. */
|
---|
[562] | 5045 | #include <string.h>
|
---|
[8756] | 5046 |
|
---|
| 5047 | _ACEOF
|
---|
[562] | 5048 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5049 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
[562] | 5050 | :
|
---|
| 5051 | else
|
---|
| 5052 | ac_cv_header_stdc=no
|
---|
| 5053 | fi
|
---|
| 5054 | rm -f conftest*
|
---|
| 5055 |
|
---|
| 5056 | fi
|
---|
| 5057 |
|
---|
| 5058 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5059 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[8756] | 5060 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5061 | /* confdefs.h. */
|
---|
| 5062 | _ACEOF
|
---|
| 5063 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5064 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5065 | /* end confdefs.h. */
|
---|
[562] | 5066 | #include <stdlib.h>
|
---|
[8756] | 5067 |
|
---|
| 5068 | _ACEOF
|
---|
[562] | 5069 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5070 | $EGREP "free" >/dev/null 2>&1; then
|
---|
[562] | 5071 | :
|
---|
| 5072 | else
|
---|
| 5073 | ac_cv_header_stdc=no
|
---|
| 5074 | fi
|
---|
| 5075 | rm -f conftest*
|
---|
| 5076 |
|
---|
| 5077 | fi
|
---|
| 5078 |
|
---|
| 5079 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5080 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[8756] | 5081 | if test "$cross_compiling" = yes; then
|
---|
[562] | 5082 | :
|
---|
| 5083 | else
|
---|
[8756] | 5084 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5085 | /* confdefs.h. */
|
---|
| 5086 | _ACEOF
|
---|
| 5087 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5088 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5089 | /* end confdefs.h. */
|
---|
[562] | 5090 | #include <ctype.h>
|
---|
[8756] | 5091 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5092 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5093 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5094 | #else
|
---|
| 5095 | # define ISLOWER(c) \
|
---|
| 5096 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5097 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5098 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5099 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5100 | #endif
|
---|
| 5101 |
|
---|
[8200] | 5102 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8756] | 5103 | int
|
---|
| 5104 | main ()
|
---|
| 5105 | {
|
---|
| 5106 | int i;
|
---|
| 5107 | for (i = 0; i < 256; i++)
|
---|
| 5108 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5109 | || toupper (i) != TOUPPER (i))
|
---|
| 5110 | exit(2);
|
---|
| 5111 | exit (0);
|
---|
| 5112 | }
|
---|
| 5113 | _ACEOF
|
---|
| 5114 | rm -f conftest$ac_exeext
|
---|
| 5115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5116 | (eval $ac_link) 2>&5
|
---|
| 5117 | ac_status=$?
|
---|
| 5118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5119 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5121 | (eval $ac_try) 2>&5
|
---|
| 5122 | ac_status=$?
|
---|
| 5123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5124 | (exit $ac_status); }; }; then
|
---|
[562] | 5125 | :
|
---|
| 5126 | else
|
---|
[8756] | 5127 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5128 | echo "$as_me: failed program was:" >&5
|
---|
| 5129 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5130 |
|
---|
| 5131 | ( exit $ac_status )
|
---|
| 5132 | ac_cv_header_stdc=no
|
---|
[562] | 5133 | fi
|
---|
[8756] | 5134 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5135 | fi
|
---|
| 5136 | fi
|
---|
| 5137 | fi
|
---|
[8756] | 5138 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5139 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 5140 | if test $ac_cv_header_stdc = yes; then
|
---|
[8200] | 5141 |
|
---|
[8756] | 5142 | cat >>confdefs.h <<\_ACEOF
|
---|
[562] | 5143 | #define STDC_HEADERS 1
|
---|
[8756] | 5144 | _ACEOF
|
---|
[562] | 5145 |
|
---|
| 5146 | fi
|
---|
| 5147 |
|
---|
[8756] | 5148 |
|
---|
| 5149 |
|
---|
| 5150 |
|
---|
| 5151 |
|
---|
| 5152 |
|
---|
| 5153 |
|
---|
| 5154 |
|
---|
| 5155 |
|
---|
[10181] | 5156 |
|
---|
| 5157 | 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] | 5158 | do
|
---|
[8756] | 5159 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5160 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5161 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5162 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5164 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5165 | fi
|
---|
| 5166 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5167 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[562] | 5168 | else
|
---|
[8756] | 5169 | # Is the header compilable?
|
---|
| 5170 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5171 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5172 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5173 | /* confdefs.h. */
|
---|
| 5174 | _ACEOF
|
---|
| 5175 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5176 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5177 | /* end confdefs.h. */
|
---|
| 5178 | $ac_includes_default
|
---|
| 5179 | #include <$ac_header>
|
---|
| 5180 | _ACEOF
|
---|
| 5181 | rm -f conftest.$ac_objext
|
---|
| 5182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5183 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5184 | ac_status=$?
|
---|
| 5185 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5186 | rm -f conftest.er1
|
---|
| 5187 | cat conftest.err >&5
|
---|
| 5188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5189 | (exit $ac_status); } &&
|
---|
| 5190 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5191 | || test ! -s conftest.err'
|
---|
| 5192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5193 | (eval $ac_try) 2>&5
|
---|
| 5194 | ac_status=$?
|
---|
| 5195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5196 | (exit $ac_status); }; } &&
|
---|
| 5197 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5199 | (eval $ac_try) 2>&5
|
---|
| 5200 | ac_status=$?
|
---|
| 5201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5202 | (exit $ac_status); }; }; then
|
---|
| 5203 | ac_header_compiler=yes
|
---|
[562] | 5204 | else
|
---|
[8756] | 5205 | echo "$as_me: failed program was:" >&5
|
---|
| 5206 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5207 |
|
---|
| 5208 | ac_header_compiler=no
|
---|
[562] | 5209 | fi
|
---|
[8756] | 5210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5211 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5212 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5213 |
|
---|
| 5214 | # Is the header present?
|
---|
| 5215 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5216 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5217 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5218 | /* confdefs.h. */
|
---|
| 5219 | _ACEOF
|
---|
| 5220 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5221 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5222 | /* end confdefs.h. */
|
---|
| 5223 | #include <$ac_header>
|
---|
| 5224 | _ACEOF
|
---|
| 5225 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 5226 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5227 | ac_status=$?
|
---|
| 5228 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5229 | rm -f conftest.er1
|
---|
| 5230 | cat conftest.err >&5
|
---|
| 5231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5232 | (exit $ac_status); } >/dev/null; then
|
---|
| 5233 | if test -s conftest.err; then
|
---|
| 5234 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 5235 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 5236 | else
|
---|
| 5237 | ac_cpp_err=
|
---|
| 5238 | fi
|
---|
| 5239 | else
|
---|
| 5240 | ac_cpp_err=yes
|
---|
[562] | 5241 | fi
|
---|
[8756] | 5242 | if test -z "$ac_cpp_err"; then
|
---|
| 5243 | ac_header_preproc=yes
|
---|
[8200] | 5244 | else
|
---|
[8756] | 5245 | echo "$as_me: failed program was:" >&5
|
---|
| 5246 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5247 |
|
---|
| 5248 | ac_header_preproc=no
|
---|
[562] | 5249 | fi
|
---|
[8756] | 5250 | rm -f conftest.err conftest.$ac_ext
|
---|
| 5251 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5252 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5253 |
|
---|
| 5254 | # So? What about this header?
|
---|
| 5255 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5256 | yes:no: )
|
---|
| 5257 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5258 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5259 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5260 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5261 | ac_header_preproc=yes
|
---|
| 5262 | ;;
|
---|
| 5263 | no:yes:* )
|
---|
| 5264 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5265 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5266 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5267 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5268 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5269 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5270 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5271 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5272 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5273 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5274 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5275 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 5276 | (
|
---|
| 5277 | cat <<\_ASBOX
|
---|
| 5278 | ## ------------------------------------------ ##
|
---|
| 5279 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5280 | ## ------------------------------------------ ##
|
---|
| 5281 | _ASBOX
|
---|
| 5282 | ) |
|
---|
| 5283 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 5284 | ;;
|
---|
| 5285 | esac
|
---|
| 5286 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5287 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5288 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5289 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5290 | else
|
---|
| 5291 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 5292 | fi
|
---|
| 5293 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5294 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 5295 |
|
---|
| 5296 | fi
|
---|
| 5297 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5298 | cat >>confdefs.h <<_ACEOF
|
---|
| 5299 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5300 | _ACEOF
|
---|
| 5301 |
|
---|
| 5302 | fi
|
---|
| 5303 |
|
---|
[562] | 5304 | done
|
---|
| 5305 |
|
---|
[8756] | 5306 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5307 | /* confdefs.h. */
|
---|
| 5308 | _ACEOF
|
---|
| 5309 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5310 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5311 | /* end confdefs.h. */
|
---|
[687] | 5312 | #include <stdio.h>
|
---|
[8756] | 5313 |
|
---|
| 5314 | _ACEOF
|
---|
[687] | 5315 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5316 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5317 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5318 | #define HAVE_FREAD_DECL 1
|
---|
[8756] | 5319 | _ACEOF
|
---|
[562] | 5320 |
|
---|
[687] | 5321 | fi
|
---|
| 5322 | rm -f conftest*
|
---|
| 5323 |
|
---|
[8756] | 5324 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5325 | /* confdefs.h. */
|
---|
| 5326 | _ACEOF
|
---|
| 5327 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5328 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5329 | /* end confdefs.h. */
|
---|
[687] | 5330 | #include <stdio.h>
|
---|
[8756] | 5331 |
|
---|
| 5332 | _ACEOF
|
---|
[687] | 5333 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5334 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5335 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5336 | #define HAVE_FGETC_DECL 1
|
---|
[8756] | 5337 | _ACEOF
|
---|
[687] | 5338 |
|
---|
| 5339 | fi
|
---|
| 5340 | rm -f conftest*
|
---|
| 5341 |
|
---|
[8756] | 5342 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5343 | /* confdefs.h. */
|
---|
| 5344 | _ACEOF
|
---|
| 5345 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5346 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5347 | /* end confdefs.h. */
|
---|
[687] | 5348 | #include <sys/procfs.h>
|
---|
[8756] | 5349 |
|
---|
| 5350 | _ACEOF
|
---|
[687] | 5351 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5352 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5353 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5354 | #define HAVE_PR_BRKSIZE 1
|
---|
[8756] | 5355 | _ACEOF
|
---|
[687] | 5356 |
|
---|
| 5357 | fi
|
---|
| 5358 | rm -f conftest*
|
---|
| 5359 |
|
---|
[8200] | 5360 |
|
---|
[687] | 5361 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5362 | # for constant arguments. Useless!
|
---|
[8756] | 5363 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 5364 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 5365 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5366 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5367 | else
|
---|
[8756] | 5368 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5369 | /* confdefs.h. */
|
---|
| 5370 | _ACEOF
|
---|
| 5371 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5372 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5373 | /* end confdefs.h. */
|
---|
[687] | 5374 | #include <alloca.h>
|
---|
[8756] | 5375 | int
|
---|
| 5376 | main ()
|
---|
| 5377 | {
|
---|
| 5378 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5379 | ;
|
---|
| 5380 | return 0;
|
---|
| 5381 | }
|
---|
| 5382 | _ACEOF
|
---|
| 5383 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5385 | (eval $ac_link) 2>conftest.er1
|
---|
| 5386 | ac_status=$?
|
---|
| 5387 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5388 | rm -f conftest.er1
|
---|
| 5389 | cat conftest.err >&5
|
---|
| 5390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5391 | (exit $ac_status); } &&
|
---|
| 5392 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5393 | || test ! -s conftest.err'
|
---|
| 5394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5395 | (eval $ac_try) 2>&5
|
---|
| 5396 | ac_status=$?
|
---|
| 5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5398 | (exit $ac_status); }; } &&
|
---|
| 5399 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5401 | (eval $ac_try) 2>&5
|
---|
| 5402 | ac_status=$?
|
---|
| 5403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5404 | (exit $ac_status); }; }; then
|
---|
| 5405 | ac_cv_working_alloca_h=yes
|
---|
[562] | 5406 | else
|
---|
[8756] | 5407 | echo "$as_me: failed program was:" >&5
|
---|
| 5408 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5409 |
|
---|
| 5410 | ac_cv_working_alloca_h=no
|
---|
[562] | 5411 | fi
|
---|
[8756] | 5412 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5413 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5414 | fi
|
---|
[8756] | 5415 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5416 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
| 5417 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[562] | 5418 |
|
---|
[8756] | 5419 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5420 | #define HAVE_ALLOCA_H 1
|
---|
[8756] | 5421 | _ACEOF
|
---|
[562] | 5422 |
|
---|
| 5423 | fi
|
---|
| 5424 |
|
---|
[8756] | 5425 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 5426 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 5427 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5428 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5429 | else
|
---|
[8756] | 5430 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5431 | /* confdefs.h. */
|
---|
| 5432 | _ACEOF
|
---|
| 5433 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5434 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5435 | /* end confdefs.h. */
|
---|
[687] | 5436 | #ifdef __GNUC__
|
---|
| 5437 | # define alloca __builtin_alloca
|
---|
| 5438 | #else
|
---|
| 5439 | # ifdef _MSC_VER
|
---|
| 5440 | # include <malloc.h>
|
---|
| 5441 | # define alloca _alloca
|
---|
| 5442 | # else
|
---|
| 5443 | # if HAVE_ALLOCA_H
|
---|
| 5444 | # include <alloca.h>
|
---|
| 5445 | # else
|
---|
| 5446 | # ifdef _AIX
|
---|
| 5447 | #pragma alloca
|
---|
| 5448 | # else
|
---|
| 5449 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5450 | char *alloca ();
|
---|
| 5451 | # endif
|
---|
| 5452 | # endif
|
---|
| 5453 | # endif
|
---|
| 5454 | # endif
|
---|
| 5455 | #endif
|
---|
| 5456 |
|
---|
[8756] | 5457 | int
|
---|
| 5458 | main ()
|
---|
| 5459 | {
|
---|
| 5460 | char *p = (char *) alloca (1);
|
---|
| 5461 | ;
|
---|
| 5462 | return 0;
|
---|
| 5463 | }
|
---|
| 5464 | _ACEOF
|
---|
| 5465 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5467 | (eval $ac_link) 2>conftest.er1
|
---|
| 5468 | ac_status=$?
|
---|
| 5469 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5470 | rm -f conftest.er1
|
---|
| 5471 | cat conftest.err >&5
|
---|
| 5472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5473 | (exit $ac_status); } &&
|
---|
| 5474 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5475 | || test ! -s conftest.err'
|
---|
| 5476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5477 | (eval $ac_try) 2>&5
|
---|
| 5478 | ac_status=$?
|
---|
| 5479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5480 | (exit $ac_status); }; } &&
|
---|
| 5481 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5483 | (eval $ac_try) 2>&5
|
---|
| 5484 | ac_status=$?
|
---|
| 5485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5486 | (exit $ac_status); }; }; then
|
---|
[687] | 5487 | ac_cv_func_alloca_works=yes
|
---|
[562] | 5488 | else
|
---|
[8756] | 5489 | echo "$as_me: failed program was:" >&5
|
---|
| 5490 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5491 |
|
---|
| 5492 | ac_cv_func_alloca_works=no
|
---|
[562] | 5493 | fi
|
---|
[8756] | 5494 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5495 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5496 | fi
|
---|
[8756] | 5497 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5498 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[562] | 5499 |
|
---|
[687] | 5500 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8756] | 5501 |
|
---|
| 5502 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5503 | #define HAVE_ALLOCA 1
|
---|
[8756] | 5504 | _ACEOF
|
---|
[562] | 5505 |
|
---|
[8756] | 5506 | else
|
---|
| 5507 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5508 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5509 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5510 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8200] | 5511 |
|
---|
[8756] | 5512 | ALLOCA=alloca.$ac_objext
|
---|
| 5513 |
|
---|
| 5514 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5515 | #define C_ALLOCA 1
|
---|
[8756] | 5516 | _ACEOF
|
---|
[562] | 5517 |
|
---|
[8200] | 5518 |
|
---|
[8756] | 5519 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5520 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 5521 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5522 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5523 | else
|
---|
[8756] | 5524 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5525 | /* confdefs.h. */
|
---|
| 5526 | _ACEOF
|
---|
| 5527 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5528 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5529 | /* end confdefs.h. */
|
---|
[687] | 5530 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
| 5531 | webecray
|
---|
| 5532 | #else
|
---|
| 5533 | wenotbecray
|
---|
| 5534 | #endif
|
---|
[562] | 5535 |
|
---|
[8756] | 5536 | _ACEOF
|
---|
[687] | 5537 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5538 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[687] | 5539 | ac_cv_os_cray=yes
|
---|
| 5540 | else
|
---|
| 5541 | ac_cv_os_cray=no
|
---|
| 5542 | fi
|
---|
| 5543 | rm -f conftest*
|
---|
[562] | 5544 |
|
---|
[687] | 5545 | fi
|
---|
[8756] | 5546 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 5547 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[687] | 5548 | if test $ac_cv_os_cray = yes; then
|
---|
[8756] | 5549 | for ac_func in _getb67 GETB67 getb67; do
|
---|
| 5550 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5551 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5552 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5553 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 5554 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5555 | else
|
---|
[8756] | 5556 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5557 | /* confdefs.h. */
|
---|
| 5558 | _ACEOF
|
---|
| 5559 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5560 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5561 | /* end confdefs.h. */
|
---|
| 5562 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5563 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5564 | #define $ac_func innocuous_$ac_func
|
---|
| 5565 |
|
---|
[687] | 5566 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5567 | which can conflict with char $ac_func (); below.
|
---|
| 5568 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5569 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5570 |
|
---|
| 5571 | #ifdef __STDC__
|
---|
| 5572 | # include <limits.h>
|
---|
| 5573 | #else
|
---|
| 5574 | # include <assert.h>
|
---|
| 5575 | #endif
|
---|
| 5576 |
|
---|
| 5577 | #undef $ac_func
|
---|
| 5578 |
|
---|
[687] | 5579 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5580 | #ifdef __cplusplus
|
---|
| 5581 | extern "C"
|
---|
| 5582 | {
|
---|
| 5583 | #endif
|
---|
[687] | 5584 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 5585 | builtin and then its argument prototype would still apply. */
|
---|
| 5586 | char $ac_func ();
|
---|
[687] | 5587 | /* The GNU C library defines this for functions which it implements
|
---|
| 5588 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5589 | something starting with __ and the normal name is an alias. */
|
---|
| 5590 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5591 | choke me
|
---|
| 5592 | #else
|
---|
[8756] | 5593 | char (*f) () = $ac_func;
|
---|
[687] | 5594 | #endif
|
---|
[8756] | 5595 | #ifdef __cplusplus
|
---|
| 5596 | }
|
---|
| 5597 | #endif
|
---|
[687] | 5598 |
|
---|
[8756] | 5599 | int
|
---|
| 5600 | main ()
|
---|
| 5601 | {
|
---|
| 5602 | return f != $ac_func;
|
---|
| 5603 | ;
|
---|
| 5604 | return 0;
|
---|
| 5605 | }
|
---|
| 5606 | _ACEOF
|
---|
| 5607 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5609 | (eval $ac_link) 2>conftest.er1
|
---|
| 5610 | ac_status=$?
|
---|
| 5611 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5612 | rm -f conftest.er1
|
---|
| 5613 | cat conftest.err >&5
|
---|
| 5614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5615 | (exit $ac_status); } &&
|
---|
| 5616 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5617 | || test ! -s conftest.err'
|
---|
| 5618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5619 | (eval $ac_try) 2>&5
|
---|
| 5620 | ac_status=$?
|
---|
| 5621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5622 | (exit $ac_status); }; } &&
|
---|
| 5623 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5625 | (eval $ac_try) 2>&5
|
---|
| 5626 | ac_status=$?
|
---|
| 5627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5628 | (exit $ac_status); }; }; then
|
---|
| 5629 | eval "$as_ac_var=yes"
|
---|
[562] | 5630 | else
|
---|
[8756] | 5631 | echo "$as_me: failed program was:" >&5
|
---|
| 5632 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5633 |
|
---|
| 5634 | eval "$as_ac_var=no"
|
---|
[562] | 5635 | fi
|
---|
[8756] | 5636 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5637 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 5638 | fi
|
---|
[8756] | 5639 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5640 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5641 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[562] | 5642 |
|
---|
[8756] | 5643 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5644 | #define CRAY_STACKSEG_END $ac_func
|
---|
[8756] | 5645 | _ACEOF
|
---|
[562] | 5646 |
|
---|
[8756] | 5647 | break
|
---|
[687] | 5648 | fi
|
---|
[562] | 5649 |
|
---|
[8756] | 5650 | done
|
---|
[687] | 5651 | fi
|
---|
| 5652 |
|
---|
[8756] | 5653 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 5654 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 5655 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5656 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5657 | else
|
---|
| 5658 | if test "$cross_compiling" = yes; then
|
---|
| 5659 | ac_cv_c_stack_direction=0
|
---|
| 5660 | else
|
---|
[8756] | 5661 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5662 | /* confdefs.h. */
|
---|
| 5663 | _ACEOF
|
---|
| 5664 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5665 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5666 | /* end confdefs.h. */
|
---|
| 5667 | int
|
---|
[687] | 5668 | find_stack_direction ()
|
---|
| 5669 | {
|
---|
| 5670 | static char *addr = 0;
|
---|
| 5671 | auto char dummy;
|
---|
| 5672 | if (addr == 0)
|
---|
| 5673 | {
|
---|
| 5674 | addr = &dummy;
|
---|
| 5675 | return find_stack_direction ();
|
---|
| 5676 | }
|
---|
| 5677 | else
|
---|
| 5678 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5679 | }
|
---|
[8756] | 5680 |
|
---|
| 5681 | int
|
---|
[687] | 5682 | main ()
|
---|
| 5683 | {
|
---|
[8756] | 5684 | exit (find_stack_direction () < 0);
|
---|
[687] | 5685 | }
|
---|
[8756] | 5686 | _ACEOF
|
---|
| 5687 | rm -f conftest$ac_exeext
|
---|
| 5688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5689 | (eval $ac_link) 2>&5
|
---|
| 5690 | ac_status=$?
|
---|
| 5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5692 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5694 | (eval $ac_try) 2>&5
|
---|
| 5695 | ac_status=$?
|
---|
| 5696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5697 | (exit $ac_status); }; }; then
|
---|
[687] | 5698 | ac_cv_c_stack_direction=1
|
---|
[562] | 5699 | else
|
---|
[8756] | 5700 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5701 | echo "$as_me: failed program was:" >&5
|
---|
| 5702 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5703 |
|
---|
| 5704 | ( exit $ac_status )
|
---|
| 5705 | ac_cv_c_stack_direction=-1
|
---|
[562] | 5706 | fi
|
---|
[8756] | 5707 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5708 | fi
|
---|
| 5709 | fi
|
---|
[8756] | 5710 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5711 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[687] | 5712 |
|
---|
[8756] | 5713 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5714 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[8756] | 5715 | _ACEOF
|
---|
[687] | 5716 |
|
---|
[8756] | 5717 |
|
---|
[687] | 5718 | fi
|
---|
| 5719 |
|
---|
[8756] | 5720 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
| 5721 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 5722 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 5723 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5724 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5725 | else
|
---|
| 5726 | ac_pattern="Autoconf.*'x'"
|
---|
[8756] | 5727 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5728 | /* confdefs.h. */
|
---|
| 5729 | _ACEOF
|
---|
| 5730 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5731 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5732 | /* end confdefs.h. */
|
---|
[687] | 5733 | #include <sgtty.h>
|
---|
| 5734 | Autoconf TIOCGETP
|
---|
[8756] | 5735 | _ACEOF
|
---|
[687] | 5736 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5737 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 5738 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5739 | else
|
---|
| 5740 | ac_cv_prog_gcc_traditional=no
|
---|
| 5741 | fi
|
---|
[562] | 5742 | rm -f conftest*
|
---|
[687] | 5743 |
|
---|
[8200] | 5744 |
|
---|
[687] | 5745 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[8756] | 5746 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5747 | /* confdefs.h. */
|
---|
| 5748 | _ACEOF
|
---|
| 5749 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5750 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5751 | /* end confdefs.h. */
|
---|
[687] | 5752 | #include <termio.h>
|
---|
| 5753 | Autoconf TCGETA
|
---|
[8756] | 5754 | _ACEOF
|
---|
[687] | 5755 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5756 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 5757 | ac_cv_prog_gcc_traditional=yes
|
---|
[562] | 5758 | fi
|
---|
[687] | 5759 | rm -f conftest*
|
---|
[562] | 5760 |
|
---|
[687] | 5761 | fi
|
---|
| 5762 | fi
|
---|
[8756] | 5763 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 5764 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[687] | 5765 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5766 | CC="$CC -traditional"
|
---|
| 5767 | fi
|
---|
| 5768 | fi
|
---|
| 5769 |
|
---|
[8756] | 5770 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 5771 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 5772 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5773 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5774 | else
|
---|
[8756] | 5775 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5776 | /* confdefs.h. */
|
---|
| 5777 | _ACEOF
|
---|
| 5778 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5779 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5780 | /* end confdefs.h. */
|
---|
[687] | 5781 | #include <sys/types.h>
|
---|
| 5782 | #include <signal.h>
|
---|
| 5783 | #ifdef signal
|
---|
[8756] | 5784 | # undef signal
|
---|
[687] | 5785 | #endif
|
---|
| 5786 | #ifdef __cplusplus
|
---|
| 5787 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5788 | #else
|
---|
| 5789 | void (*signal ()) ();
|
---|
| 5790 | #endif
|
---|
[562] | 5791 |
|
---|
[8756] | 5792 | int
|
---|
| 5793 | main ()
|
---|
| 5794 | {
|
---|
[687] | 5795 | int i;
|
---|
[8756] | 5796 | ;
|
---|
| 5797 | return 0;
|
---|
| 5798 | }
|
---|
| 5799 | _ACEOF
|
---|
| 5800 | rm -f conftest.$ac_objext
|
---|
| 5801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5802 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5803 | ac_status=$?
|
---|
| 5804 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5805 | rm -f conftest.er1
|
---|
| 5806 | cat conftest.err >&5
|
---|
| 5807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5808 | (exit $ac_status); } &&
|
---|
| 5809 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5810 | || test ! -s conftest.err'
|
---|
| 5811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5812 | (eval $ac_try) 2>&5
|
---|
| 5813 | ac_status=$?
|
---|
| 5814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5815 | (exit $ac_status); }; } &&
|
---|
| 5816 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5818 | (eval $ac_try) 2>&5
|
---|
| 5819 | ac_status=$?
|
---|
| 5820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5821 | (exit $ac_status); }; }; then
|
---|
[687] | 5822 | ac_cv_type_signal=void
|
---|
[562] | 5823 | else
|
---|
[8756] | 5824 | echo "$as_me: failed program was:" >&5
|
---|
| 5825 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5826 |
|
---|
| 5827 | ac_cv_type_signal=int
|
---|
[562] | 5828 | fi
|
---|
[8756] | 5829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5830 | fi
|
---|
[8756] | 5831 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 5832 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[562] | 5833 |
|
---|
[8756] | 5834 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5835 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[8756] | 5836 | _ACEOF
|
---|
[562] | 5837 |
|
---|
[8200] | 5838 |
|
---|
[8756] | 5839 |
|
---|
| 5840 | for ac_func in vprintf
|
---|
| 5841 | do
|
---|
| 5842 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5843 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5844 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5845 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 5846 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5847 | else
|
---|
[8756] | 5848 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5849 | /* confdefs.h. */
|
---|
| 5850 | _ACEOF
|
---|
| 5851 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5852 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5853 | /* end confdefs.h. */
|
---|
| 5854 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5855 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5856 | #define $ac_func innocuous_$ac_func
|
---|
| 5857 |
|
---|
[562] | 5858 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5859 | which can conflict with char $ac_func (); below.
|
---|
| 5860 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5861 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5862 |
|
---|
| 5863 | #ifdef __STDC__
|
---|
| 5864 | # include <limits.h>
|
---|
| 5865 | #else
|
---|
| 5866 | # include <assert.h>
|
---|
| 5867 | #endif
|
---|
| 5868 |
|
---|
| 5869 | #undef $ac_func
|
---|
| 5870 |
|
---|
[562] | 5871 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5872 | #ifdef __cplusplus
|
---|
| 5873 | extern "C"
|
---|
| 5874 | {
|
---|
| 5875 | #endif
|
---|
[562] | 5876 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 5877 | builtin and then its argument prototype would still apply. */
|
---|
| 5878 | char $ac_func ();
|
---|
[562] | 5879 | /* The GNU C library defines this for functions which it implements
|
---|
| 5880 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5881 | something starting with __ and the normal name is an alias. */
|
---|
[8756] | 5882 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[562] | 5883 | choke me
|
---|
| 5884 | #else
|
---|
[8756] | 5885 | char (*f) () = $ac_func;
|
---|
[562] | 5886 | #endif
|
---|
[8756] | 5887 | #ifdef __cplusplus
|
---|
| 5888 | }
|
---|
| 5889 | #endif
|
---|
[562] | 5890 |
|
---|
[8756] | 5891 | int
|
---|
| 5892 | main ()
|
---|
| 5893 | {
|
---|
| 5894 | return f != $ac_func;
|
---|
| 5895 | ;
|
---|
| 5896 | return 0;
|
---|
| 5897 | }
|
---|
| 5898 | _ACEOF
|
---|
| 5899 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5901 | (eval $ac_link) 2>conftest.er1
|
---|
| 5902 | ac_status=$?
|
---|
| 5903 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5904 | rm -f conftest.er1
|
---|
| 5905 | cat conftest.err >&5
|
---|
| 5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5907 | (exit $ac_status); } &&
|
---|
| 5908 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5909 | || test ! -s conftest.err'
|
---|
| 5910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5911 | (eval $ac_try) 2>&5
|
---|
| 5912 | ac_status=$?
|
---|
| 5913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5914 | (exit $ac_status); }; } &&
|
---|
| 5915 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5917 | (eval $ac_try) 2>&5
|
---|
| 5918 | ac_status=$?
|
---|
| 5919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5920 | (exit $ac_status); }; }; then
|
---|
| 5921 | eval "$as_ac_var=yes"
|
---|
[562] | 5922 | else
|
---|
[8756] | 5923 | echo "$as_me: failed program was:" >&5
|
---|
| 5924 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5925 |
|
---|
| 5926 | eval "$as_ac_var=no"
|
---|
[562] | 5927 | fi
|
---|
[8756] | 5928 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5929 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5930 | fi
|
---|
[8756] | 5931 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5932 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5933 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5934 | cat >>confdefs.h <<_ACEOF
|
---|
| 5935 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 5936 | _ACEOF
|
---|
[8200] | 5937 |
|
---|
[8756] | 5938 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 5939 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 5940 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 5941 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5942 | else
|
---|
[8756] | 5943 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5944 | /* confdefs.h. */
|
---|
| 5945 | _ACEOF
|
---|
| 5946 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5947 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5948 | /* end confdefs.h. */
|
---|
| 5949 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 5950 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5951 | #define _doprnt innocuous__doprnt
|
---|
[8200] | 5952 |
|
---|
[562] | 5953 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5954 | which can conflict with char _doprnt (); below.
|
---|
| 5955 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5956 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5957 |
|
---|
| 5958 | #ifdef __STDC__
|
---|
| 5959 | # include <limits.h>
|
---|
| 5960 | #else
|
---|
| 5961 | # include <assert.h>
|
---|
| 5962 | #endif
|
---|
| 5963 |
|
---|
| 5964 | #undef _doprnt
|
---|
| 5965 |
|
---|
[562] | 5966 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5967 | #ifdef __cplusplus
|
---|
| 5968 | extern "C"
|
---|
| 5969 | {
|
---|
| 5970 | #endif
|
---|
[562] | 5971 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 5972 | builtin and then its argument prototype would still apply. */
|
---|
| 5973 | char _doprnt ();
|
---|
[562] | 5974 | /* The GNU C library defines this for functions which it implements
|
---|
| 5975 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5976 | something starting with __ and the normal name is an alias. */
|
---|
| 5977 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 5978 | choke me
|
---|
| 5979 | #else
|
---|
[8756] | 5980 | char (*f) () = _doprnt;
|
---|
[562] | 5981 | #endif
|
---|
[8756] | 5982 | #ifdef __cplusplus
|
---|
| 5983 | }
|
---|
| 5984 | #endif
|
---|
[562] | 5985 |
|
---|
[8756] | 5986 | int
|
---|
| 5987 | main ()
|
---|
| 5988 | {
|
---|
| 5989 | return f != _doprnt;
|
---|
| 5990 | ;
|
---|
| 5991 | return 0;
|
---|
| 5992 | }
|
---|
| 5993 | _ACEOF
|
---|
| 5994 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5996 | (eval $ac_link) 2>conftest.er1
|
---|
| 5997 | ac_status=$?
|
---|
| 5998 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5999 | rm -f conftest.er1
|
---|
| 6000 | cat conftest.err >&5
|
---|
| 6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6002 | (exit $ac_status); } &&
|
---|
| 6003 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6004 | || test ! -s conftest.err'
|
---|
| 6005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6006 | (eval $ac_try) 2>&5
|
---|
| 6007 | ac_status=$?
|
---|
| 6008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6009 | (exit $ac_status); }; } &&
|
---|
| 6010 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6012 | (eval $ac_try) 2>&5
|
---|
| 6013 | ac_status=$?
|
---|
| 6014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6015 | (exit $ac_status); }; }; then
|
---|
| 6016 | ac_cv_func__doprnt=yes
|
---|
[562] | 6017 | else
|
---|
[8756] | 6018 | echo "$as_me: failed program was:" >&5
|
---|
| 6019 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6020 |
|
---|
| 6021 | ac_cv_func__doprnt=no
|
---|
[562] | 6022 | fi
|
---|
[8756] | 6023 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6024 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 6025 | fi
|
---|
[8756] | 6026 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6027 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 6028 | if test $ac_cv_func__doprnt = yes; then
|
---|
[562] | 6029 |
|
---|
[8756] | 6030 | cat >>confdefs.h <<\_ACEOF
|
---|
[562] | 6031 | #define HAVE_DOPRNT 1
|
---|
[8756] | 6032 | _ACEOF
|
---|
[562] | 6033 |
|
---|
| 6034 | fi
|
---|
| 6035 |
|
---|
| 6036 | fi
|
---|
[8756] | 6037 | done
|
---|
[562] | 6038 |
|
---|
[8756] | 6039 |
|
---|
| 6040 |
|
---|
| 6041 |
|
---|
| 6042 |
|
---|
| 6043 |
|
---|
| 6044 |
|
---|
| 6045 |
|
---|
| 6046 |
|
---|
| 6047 |
|
---|
| 6048 |
|
---|
| 6049 |
|
---|
[788] | 6050 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[687] | 6051 | do
|
---|
[8756] | 6052 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6053 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6054 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6055 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6056 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6057 | else
|
---|
[8756] | 6058 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6059 | /* confdefs.h. */
|
---|
| 6060 | _ACEOF
|
---|
| 6061 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6062 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6063 | /* end confdefs.h. */
|
---|
| 6064 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6065 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6066 | #define $ac_func innocuous_$ac_func
|
---|
| 6067 |
|
---|
[687] | 6068 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6069 | which can conflict with char $ac_func (); below.
|
---|
| 6070 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6071 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6072 |
|
---|
| 6073 | #ifdef __STDC__
|
---|
| 6074 | # include <limits.h>
|
---|
| 6075 | #else
|
---|
| 6076 | # include <assert.h>
|
---|
| 6077 | #endif
|
---|
| 6078 |
|
---|
| 6079 | #undef $ac_func
|
---|
| 6080 |
|
---|
[687] | 6081 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6082 | #ifdef __cplusplus
|
---|
| 6083 | extern "C"
|
---|
| 6084 | {
|
---|
| 6085 | #endif
|
---|
[687] | 6086 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6087 | builtin and then its argument prototype would still apply. */
|
---|
| 6088 | char $ac_func ();
|
---|
[687] | 6089 | /* The GNU C library defines this for functions which it implements
|
---|
| 6090 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6091 | something starting with __ and the normal name is an alias. */
|
---|
| 6092 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6093 | choke me
|
---|
| 6094 | #else
|
---|
[8756] | 6095 | char (*f) () = $ac_func;
|
---|
[687] | 6096 | #endif
|
---|
[8756] | 6097 | #ifdef __cplusplus
|
---|
| 6098 | }
|
---|
| 6099 | #endif
|
---|
[687] | 6100 |
|
---|
[8756] | 6101 | int
|
---|
| 6102 | main ()
|
---|
| 6103 | {
|
---|
| 6104 | return f != $ac_func;
|
---|
| 6105 | ;
|
---|
| 6106 | return 0;
|
---|
| 6107 | }
|
---|
| 6108 | _ACEOF
|
---|
| 6109 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6111 | (eval $ac_link) 2>conftest.er1
|
---|
| 6112 | ac_status=$?
|
---|
| 6113 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6114 | rm -f conftest.er1
|
---|
| 6115 | cat conftest.err >&5
|
---|
| 6116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6117 | (exit $ac_status); } &&
|
---|
| 6118 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6119 | || test ! -s conftest.err'
|
---|
| 6120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6121 | (eval $ac_try) 2>&5
|
---|
| 6122 | ac_status=$?
|
---|
| 6123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6124 | (exit $ac_status); }; } &&
|
---|
| 6125 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6127 | (eval $ac_try) 2>&5
|
---|
| 6128 | ac_status=$?
|
---|
| 6129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6130 | (exit $ac_status); }; }; then
|
---|
| 6131 | eval "$as_ac_var=yes"
|
---|
[687] | 6132 | else
|
---|
[8756] | 6133 | echo "$as_me: failed program was:" >&5
|
---|
| 6134 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6135 |
|
---|
| 6136 | eval "$as_ac_var=no"
|
---|
[687] | 6137 | fi
|
---|
[8756] | 6138 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6139 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6140 | fi
|
---|
[8756] | 6141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6142 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6143 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6144 | cat >>confdefs.h <<_ACEOF
|
---|
| 6145 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6146 | _ACEOF
|
---|
[8200] | 6147 |
|
---|
[687] | 6148 | fi
|
---|
| 6149 | done
|
---|
| 6150 |
|
---|
[8756] | 6151 |
|
---|
| 6152 |
|
---|
| 6153 |
|
---|
[687] | 6154 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6155 | do
|
---|
[8756] | 6156 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6157 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6158 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6159 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6160 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6161 | else
|
---|
[8756] | 6162 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6163 | /* confdefs.h. */
|
---|
| 6164 | _ACEOF
|
---|
| 6165 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6166 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6167 | /* end confdefs.h. */
|
---|
| 6168 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6169 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6170 | #define $ac_func innocuous_$ac_func
|
---|
| 6171 |
|
---|
[687] | 6172 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6173 | which can conflict with char $ac_func (); below.
|
---|
| 6174 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6175 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6176 |
|
---|
| 6177 | #ifdef __STDC__
|
---|
| 6178 | # include <limits.h>
|
---|
| 6179 | #else
|
---|
| 6180 | # include <assert.h>
|
---|
| 6181 | #endif
|
---|
| 6182 |
|
---|
| 6183 | #undef $ac_func
|
---|
| 6184 |
|
---|
[687] | 6185 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6186 | #ifdef __cplusplus
|
---|
| 6187 | extern "C"
|
---|
| 6188 | {
|
---|
| 6189 | #endif
|
---|
[687] | 6190 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6191 | builtin and then its argument prototype would still apply. */
|
---|
| 6192 | char $ac_func ();
|
---|
[687] | 6193 | /* The GNU C library defines this for functions which it implements
|
---|
| 6194 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6195 | something starting with __ and the normal name is an alias. */
|
---|
| 6196 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6197 | choke me
|
---|
| 6198 | #else
|
---|
[8756] | 6199 | char (*f) () = $ac_func;
|
---|
[687] | 6200 | #endif
|
---|
[8756] | 6201 | #ifdef __cplusplus
|
---|
| 6202 | }
|
---|
| 6203 | #endif
|
---|
[687] | 6204 |
|
---|
[8756] | 6205 | int
|
---|
| 6206 | main ()
|
---|
| 6207 | {
|
---|
| 6208 | return f != $ac_func;
|
---|
| 6209 | ;
|
---|
| 6210 | return 0;
|
---|
| 6211 | }
|
---|
| 6212 | _ACEOF
|
---|
| 6213 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6215 | (eval $ac_link) 2>conftest.er1
|
---|
| 6216 | ac_status=$?
|
---|
| 6217 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6218 | rm -f conftest.er1
|
---|
| 6219 | cat conftest.err >&5
|
---|
| 6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6221 | (exit $ac_status); } &&
|
---|
| 6222 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6223 | || test ! -s conftest.err'
|
---|
| 6224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6225 | (eval $ac_try) 2>&5
|
---|
| 6226 | ac_status=$?
|
---|
| 6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6228 | (exit $ac_status); }; } &&
|
---|
| 6229 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6231 | (eval $ac_try) 2>&5
|
---|
| 6232 | ac_status=$?
|
---|
| 6233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6234 | (exit $ac_status); }; }; then
|
---|
| 6235 | eval "$as_ac_var=yes"
|
---|
[687] | 6236 | else
|
---|
[8756] | 6237 | echo "$as_me: failed program was:" >&5
|
---|
| 6238 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6239 |
|
---|
| 6240 | eval "$as_ac_var=no"
|
---|
[687] | 6241 | fi
|
---|
[8756] | 6242 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6243 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6244 | fi
|
---|
[8756] | 6245 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6246 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6247 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6248 | cat >>confdefs.h <<_ACEOF
|
---|
| 6249 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6250 | _ACEOF
|
---|
[8200] | 6251 |
|
---|
[687] | 6252 | else
|
---|
[8756] | 6253 | case $LIBOBJS in
|
---|
| 6254 | "$ac_func.$ac_objext" | \
|
---|
| 6255 | *" $ac_func.$ac_objext" | \
|
---|
| 6256 | "$ac_func.$ac_objext "* | \
|
---|
| 6257 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6258 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
| 6259 | esac
|
---|
| 6260 |
|
---|
[687] | 6261 | fi
|
---|
| 6262 | done
|
---|
| 6263 |
|
---|
[8200] | 6264 |
|
---|
| 6265 |
|
---|
[8756] | 6266 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 6267 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 6268 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6269 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3705] | 6270 | else
|
---|
[8756] | 6271 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6272 | /* confdefs.h. */
|
---|
| 6273 | _ACEOF
|
---|
| 6274 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6275 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6276 | /* end confdefs.h. */
|
---|
| 6277 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6278 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6279 | #define textdomain innocuous_textdomain
|
---|
| 6280 |
|
---|
[3705] | 6281 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6282 | which can conflict with char textdomain (); below.
|
---|
| 6283 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6284 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6285 |
|
---|
| 6286 | #ifdef __STDC__
|
---|
| 6287 | # include <limits.h>
|
---|
| 6288 | #else
|
---|
| 6289 | # include <assert.h>
|
---|
| 6290 | #endif
|
---|
| 6291 |
|
---|
| 6292 | #undef textdomain
|
---|
| 6293 |
|
---|
[3705] | 6294 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6295 | #ifdef __cplusplus
|
---|
| 6296 | extern "C"
|
---|
| 6297 | {
|
---|
| 6298 | #endif
|
---|
[3705] | 6299 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6300 | builtin and then its argument prototype would still apply. */
|
---|
| 6301 | char textdomain ();
|
---|
[3705] | 6302 | /* The GNU C library defines this for functions which it implements
|
---|
| 6303 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6304 | something starting with __ and the normal name is an alias. */
|
---|
[8202] | 6305 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
[3705] | 6306 | choke me
|
---|
| 6307 | #else
|
---|
[8756] | 6308 | char (*f) () = textdomain;
|
---|
[3705] | 6309 | #endif
|
---|
[8756] | 6310 | #ifdef __cplusplus
|
---|
| 6311 | }
|
---|
| 6312 | #endif
|
---|
[3705] | 6313 |
|
---|
[8756] | 6314 | int
|
---|
| 6315 | main ()
|
---|
| 6316 | {
|
---|
| 6317 | return f != textdomain;
|
---|
| 6318 | ;
|
---|
| 6319 | return 0;
|
---|
| 6320 | }
|
---|
| 6321 | _ACEOF
|
---|
| 6322 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6324 | (eval $ac_link) 2>conftest.er1
|
---|
| 6325 | ac_status=$?
|
---|
| 6326 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6327 | rm -f conftest.er1
|
---|
| 6328 | cat conftest.err >&5
|
---|
| 6329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6330 | (exit $ac_status); } &&
|
---|
| 6331 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6332 | || test ! -s conftest.err'
|
---|
| 6333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6334 | (eval $ac_try) 2>&5
|
---|
| 6335 | ac_status=$?
|
---|
| 6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6337 | (exit $ac_status); }; } &&
|
---|
| 6338 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6340 | (eval $ac_try) 2>&5
|
---|
| 6341 | ac_status=$?
|
---|
| 6342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6343 | (exit $ac_status); }; }; then
|
---|
| 6344 | ac_cv_func_textdomain=yes
|
---|
[3705] | 6345 | else
|
---|
[8756] | 6346 | echo "$as_me: failed program was:" >&5
|
---|
| 6347 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6348 |
|
---|
| 6349 | ac_cv_func_textdomain=no
|
---|
[3705] | 6350 | fi
|
---|
[8756] | 6351 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6352 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3705] | 6353 | fi
|
---|
[8756] | 6354 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 6355 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 6356 | if test $ac_cv_func_textdomain = yes; then
|
---|
| 6357 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6358 | #define ENABLE_NLS 1
|
---|
| 6359 | _ACEOF
|
---|
[8200] | 6360 |
|
---|
[3705] | 6361 | fi
|
---|
| 6362 |
|
---|
[8200] | 6363 |
|
---|
[687] | 6364 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6365 | # ---------------------------------------------------------------------------
|
---|
[8756] | 6366 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 6367 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[687] | 6368 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[8756] | 6369 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6370 | echo "${ECHO_T}yes" >&6
|
---|
| 6371 | case $LIBOBJS in
|
---|
| 6372 | "gmalloc.$ac_objext" | \
|
---|
| 6373 | *" gmalloc.$ac_objext" | \
|
---|
| 6374 | "gmalloc.$ac_objext "* | \
|
---|
| 6375 | *" gmalloc.$ac_objext "* ) ;;
|
---|
| 6376 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
| 6377 | esac
|
---|
| 6378 |
|
---|
| 6379 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 6380 | #define HAVE_VALLOC 1
|
---|
[8756] | 6381 | _ACEOF
|
---|
[687] | 6382 |
|
---|
| 6383 | else
|
---|
[8756] | 6384 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6385 | echo "${ECHO_T}no" >&6
|
---|
| 6386 |
|
---|
| 6387 | for ac_func in valloc
|
---|
[687] | 6388 | do
|
---|
[8756] | 6389 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6390 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6391 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6392 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6393 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6394 | else
|
---|
[8756] | 6395 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6396 | /* confdefs.h. */
|
---|
| 6397 | _ACEOF
|
---|
| 6398 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6399 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6400 | /* end confdefs.h. */
|
---|
| 6401 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6402 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6403 | #define $ac_func innocuous_$ac_func
|
---|
| 6404 |
|
---|
[687] | 6405 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6406 | which can conflict with char $ac_func (); below.
|
---|
| 6407 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6408 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6409 |
|
---|
| 6410 | #ifdef __STDC__
|
---|
| 6411 | # include <limits.h>
|
---|
| 6412 | #else
|
---|
| 6413 | # include <assert.h>
|
---|
| 6414 | #endif
|
---|
| 6415 |
|
---|
| 6416 | #undef $ac_func
|
---|
| 6417 |
|
---|
[687] | 6418 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6419 | #ifdef __cplusplus
|
---|
| 6420 | extern "C"
|
---|
| 6421 | {
|
---|
| 6422 | #endif
|
---|
[687] | 6423 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6424 | builtin and then its argument prototype would still apply. */
|
---|
| 6425 | char $ac_func ();
|
---|
[687] | 6426 | /* The GNU C library defines this for functions which it implements
|
---|
| 6427 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6428 | something starting with __ and the normal name is an alias. */
|
---|
| 6429 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6430 | choke me
|
---|
| 6431 | #else
|
---|
[8756] | 6432 | char (*f) () = $ac_func;
|
---|
[687] | 6433 | #endif
|
---|
[8756] | 6434 | #ifdef __cplusplus
|
---|
| 6435 | }
|
---|
| 6436 | #endif
|
---|
[687] | 6437 |
|
---|
[8756] | 6438 | int
|
---|
| 6439 | main ()
|
---|
| 6440 | {
|
---|
| 6441 | return f != $ac_func;
|
---|
| 6442 | ;
|
---|
| 6443 | return 0;
|
---|
| 6444 | }
|
---|
| 6445 | _ACEOF
|
---|
| 6446 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6448 | (eval $ac_link) 2>conftest.er1
|
---|
| 6449 | ac_status=$?
|
---|
| 6450 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6451 | rm -f conftest.er1
|
---|
| 6452 | cat conftest.err >&5
|
---|
| 6453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6454 | (exit $ac_status); } &&
|
---|
| 6455 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6456 | || test ! -s conftest.err'
|
---|
| 6457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6458 | (eval $ac_try) 2>&5
|
---|
| 6459 | ac_status=$?
|
---|
| 6460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6461 | (exit $ac_status); }; } &&
|
---|
| 6462 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6464 | (eval $ac_try) 2>&5
|
---|
| 6465 | ac_status=$?
|
---|
| 6466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6467 | (exit $ac_status); }; }; then
|
---|
| 6468 | eval "$as_ac_var=yes"
|
---|
[687] | 6469 | else
|
---|
[8756] | 6470 | echo "$as_me: failed program was:" >&5
|
---|
| 6471 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6472 |
|
---|
| 6473 | eval "$as_ac_var=no"
|
---|
[687] | 6474 | fi
|
---|
[8756] | 6475 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6476 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6477 | fi
|
---|
[8756] | 6478 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6479 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6480 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6481 | cat >>confdefs.h <<_ACEOF
|
---|
| 6482 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6483 | _ACEOF
|
---|
[8200] | 6484 |
|
---|
[687] | 6485 | fi
|
---|
| 6486 | done
|
---|
| 6487 |
|
---|
| 6488 | fi
|
---|
| 6489 |
|
---|
[8200] | 6490 | # we cannot generate static libraries under Darwin
|
---|
[8756] | 6491 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 6492 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
[8200] | 6493 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[8756] | 6494 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6495 | echo "${ECHO_T}yes" >&6
|
---|
[8200] | 6496 | STATIC=""
|
---|
| 6497 | else
|
---|
[8756] | 6498 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6499 | echo "${ECHO_T}no" >&6
|
---|
[8200] | 6500 | STATIC="-static "
|
---|
| 6501 | fi
|
---|
[3631] | 6502 |
|
---|
[8200] | 6503 |
|
---|
[8756] | 6504 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 6505 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
| 6506 |
|
---|
[700] | 6507 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 6508 | if test "${with_dmalloc+set}" = set; then
|
---|
| 6509 | withval="$with_dmalloc"
|
---|
| 6510 | if test "$withval" = yes; then
|
---|
[8756] | 6511 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6512 | echo "${ECHO_T}yes" >&6
|
---|
| 6513 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 6514 | #define WITH_DMALLOC 1
|
---|
[8756] | 6515 | _ACEOF
|
---|
[687] | 6516 |
|
---|
[700] | 6517 | LIBS="$LIBS -ldmalloc"
|
---|
| 6518 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6519 | else
|
---|
[8756] | 6520 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6521 | echo "${ECHO_T}no" >&6
|
---|
[700] | 6522 | fi
|
---|
| 6523 | else
|
---|
[8756] | 6524 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6525 | echo "${ECHO_T}no" >&6
|
---|
| 6526 | fi;
|
---|
[700] | 6527 |
|
---|
[8756] | 6528 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 6529 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[700] | 6530 |
|
---|
| 6531 | # Check whether --with-regex or --without-regex was given.
|
---|
| 6532 | if test "${with_regex+set}" = set; then
|
---|
| 6533 | withval="$with_regex"
|
---|
| 6534 | if test "$withval" = yes; then
|
---|
| 6535 | ac_with_regex=1
|
---|
[8756] | 6536 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 6537 | echo "${ECHO_T}regex" >&6
|
---|
| 6538 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 6539 | #define WITH_REGEX 1
|
---|
[8756] | 6540 | _ACEOF
|
---|
[700] | 6541 |
|
---|
[8756] | 6542 | case $LIBOBJS in
|
---|
| 6543 | "regex.$ac_objext" | \
|
---|
| 6544 | *" regex.$ac_objext" | \
|
---|
| 6545 | "regex.$ac_objext "* | \
|
---|
| 6546 | *" regex.$ac_objext "* ) ;;
|
---|
| 6547 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 6548 | esac
|
---|
| 6549 |
|
---|
[700] | 6550 | fi
|
---|
[8756] | 6551 | fi;
|
---|
[700] | 6552 | if test -z "$ac_with_regex"; then
|
---|
[8756] | 6553 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 6554 | echo "${ECHO_T}rx" >&6
|
---|
| 6555 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 6556 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 6557 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6558 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 6559 | else
|
---|
[8756] | 6560 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6561 | /* confdefs.h. */
|
---|
| 6562 | _ACEOF
|
---|
| 6563 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6564 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6565 | /* end confdefs.h. */
|
---|
| 6566 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6567 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6568 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6569 |
|
---|
[700] | 6570 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6571 | which can conflict with char re_rx_search (); below.
|
---|
| 6572 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6573 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6574 |
|
---|
| 6575 | #ifdef __STDC__
|
---|
| 6576 | # include <limits.h>
|
---|
| 6577 | #else
|
---|
| 6578 | # include <assert.h>
|
---|
| 6579 | #endif
|
---|
| 6580 |
|
---|
| 6581 | #undef re_rx_search
|
---|
| 6582 |
|
---|
[700] | 6583 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6584 | #ifdef __cplusplus
|
---|
| 6585 | extern "C"
|
---|
| 6586 | {
|
---|
| 6587 | #endif
|
---|
[700] | 6588 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6589 | builtin and then its argument prototype would still apply. */
|
---|
| 6590 | char re_rx_search ();
|
---|
[700] | 6591 | /* The GNU C library defines this for functions which it implements
|
---|
| 6592 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6593 | something starting with __ and the normal name is an alias. */
|
---|
| 6594 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 6595 | choke me
|
---|
| 6596 | #else
|
---|
[8756] | 6597 | char (*f) () = re_rx_search;
|
---|
[700] | 6598 | #endif
|
---|
[8756] | 6599 | #ifdef __cplusplus
|
---|
| 6600 | }
|
---|
| 6601 | #endif
|
---|
[700] | 6602 |
|
---|
[8756] | 6603 | int
|
---|
| 6604 | main ()
|
---|
| 6605 | {
|
---|
| 6606 | return f != re_rx_search;
|
---|
| 6607 | ;
|
---|
| 6608 | return 0;
|
---|
| 6609 | }
|
---|
| 6610 | _ACEOF
|
---|
| 6611 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6613 | (eval $ac_link) 2>conftest.er1
|
---|
| 6614 | ac_status=$?
|
---|
| 6615 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6616 | rm -f conftest.er1
|
---|
| 6617 | cat conftest.err >&5
|
---|
| 6618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6619 | (exit $ac_status); } &&
|
---|
| 6620 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6621 | || test ! -s conftest.err'
|
---|
| 6622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6623 | (eval $ac_try) 2>&5
|
---|
| 6624 | ac_status=$?
|
---|
| 6625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6626 | (exit $ac_status); }; } &&
|
---|
| 6627 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6629 | (eval $ac_try) 2>&5
|
---|
| 6630 | ac_status=$?
|
---|
| 6631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6632 | (exit $ac_status); }; }; then
|
---|
| 6633 | ac_cv_func_re_rx_search=yes
|
---|
[700] | 6634 | else
|
---|
[8756] | 6635 | echo "$as_me: failed program was:" >&5
|
---|
| 6636 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6637 |
|
---|
| 6638 | ac_cv_func_re_rx_search=no
|
---|
[700] | 6639 | fi
|
---|
[8756] | 6640 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6641 | conftest$ac_exeext conftest.$ac_ext
|
---|
[700] | 6642 | fi
|
---|
[8756] | 6643 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 6644 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 6645 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
[700] | 6646 | :
|
---|
| 6647 | else
|
---|
[8756] | 6648 | case $LIBOBJS in
|
---|
| 6649 | "rx.$ac_objext" | \
|
---|
| 6650 | *" rx.$ac_objext" | \
|
---|
| 6651 | "rx.$ac_objext "* | \
|
---|
| 6652 | *" rx.$ac_objext "* ) ;;
|
---|
| 6653 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
| 6654 | esac
|
---|
| 6655 |
|
---|
[700] | 6656 | fi
|
---|
| 6657 |
|
---|
| 6658 | fi
|
---|
| 6659 |
|
---|
[8200] | 6660 |
|
---|
[687] | 6661 | # ---------------------------------------------------------------------------
|
---|
| 6662 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[8756] | 6663 | case $LIBOBJS in
|
---|
| 6664 | "xmalloc.$ac_objext" | \
|
---|
| 6665 | *" xmalloc.$ac_objext" | \
|
---|
| 6666 | "xmalloc.$ac_objext "* | \
|
---|
| 6667 | *" xmalloc.$ac_objext "* ) ;;
|
---|
| 6668 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
| 6669 | esac
|
---|
| 6670 |
|
---|
| 6671 | case $LIBOBJS in
|
---|
| 6672 | "error.$ac_objext" | \
|
---|
| 6673 | *" error.$ac_objext" | \
|
---|
| 6674 | "error.$ac_objext "* | \
|
---|
| 6675 | *" error.$ac_objext "* ) ;;
|
---|
| 6676 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 6677 | esac
|
---|
| 6678 |
|
---|
[687] | 6679 | fi
|
---|
| 6680 |
|
---|
[8200] | 6681 |
|
---|
[687] | 6682 | # ---------------------------------------------------------------------------
|
---|
| 6683 |
|
---|
[8756] | 6684 | ac_ext=cc
|
---|
[687] | 6685 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 6686 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 6687 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 6688 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[687] | 6689 |
|
---|
[8200] | 6690 |
|
---|
| 6691 |
|
---|
[8756] | 6692 | echo "$as_me:$LINENO: checking that the GDBM library is available" >&5
|
---|
| 6693 | echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6
|
---|
[2471] | 6694 | if test ! -z "$gdbmdir" ; then
|
---|
[2279] | 6695 | # look in given directory for header file
|
---|
[2884] | 6696 | if test -r $gdbmdir/include/gdbm.h ; then
|
---|
[2279] | 6697 | GDBM_INCLUDE="-I$gdbmdir/include" ;
|
---|
[2884] | 6698 | elif test -r $gdbmdir/gdbm.h ; then
|
---|
[2279] | 6699 | GDBM_INCLUDE="-I$gdbmdir" ;
|
---|
| 6700 | fi
|
---|
| 6701 |
|
---|
| 6702 | # look in given directory for library
|
---|
[2884] | 6703 | if test -r $gdbmdir/libgdbm.a ; then
|
---|
[2279] | 6704 | GDBM_LIBPATH="-L$gdbmdir" ;
|
---|
[2884] | 6705 | elif test -r $gdbmdir/lib/libgdbm.a ; then
|
---|
[2279] | 6706 | GDBM_LIBPATH="-L$gdbmdir/lib" ;
|
---|
[2884] | 6707 | elif test -r $gdbmdir/.libs/libgdbm.a ; then
|
---|
[2279] | 6708 | GDBM_LIBPATH="-L$gdbmdir/.libs" ;
|
---|
| 6709 | fi
|
---|
| 6710 |
|
---|
[2471] | 6711 | if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
|
---|
[8756] | 6712 | echo "$as_me:$LINENO: result: $gdbmdir" >&5
|
---|
| 6713 | echo "${ECHO_T}$gdbmdir" >&6 ;
|
---|
[2279] | 6714 | else
|
---|
[8756] | 6715 | echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
|
---|
| 6716 | echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;
|
---|
| 6717 | echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&5
|
---|
| 6718 | echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6
|
---|
[2279] | 6719 | fi
|
---|
| 6720 | fi
|
---|
| 6721 |
|
---|
[2603] | 6722 | # look in default path and in /usr/local
|
---|
[2471] | 6723 | if test -z "$GDBM_INCLUDE" ; then
|
---|
[8756] | 6724 | # try in system directory
|
---|
| 6725 |
|
---|
| 6726 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6727 | /* confdefs.h. */
|
---|
| 6728 | _ACEOF
|
---|
| 6729 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6730 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6731 | /* end confdefs.h. */
|
---|
[687] | 6732 | #include <gdbm.h>
|
---|
| 6733 |
|
---|
[8756] | 6734 | int
|
---|
| 6735 | main ()
|
---|
| 6736 | {
|
---|
[687] | 6737 |
|
---|
[8756] | 6738 | ;
|
---|
| 6739 | return 0;
|
---|
| 6740 | }
|
---|
| 6741 | _ACEOF
|
---|
| 6742 | rm -f conftest.$ac_objext
|
---|
| 6743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6744 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6745 | ac_status=$?
|
---|
| 6746 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6747 | rm -f conftest.er1
|
---|
| 6748 | cat conftest.err >&5
|
---|
| 6749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6750 | (exit $ac_status); } &&
|
---|
| 6751 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6752 | || test ! -s conftest.err'
|
---|
| 6753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6754 | (eval $ac_try) 2>&5
|
---|
| 6755 | ac_status=$?
|
---|
| 6756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6757 | (exit $ac_status); }; } &&
|
---|
| 6758 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6760 | (eval $ac_try) 2>&5
|
---|
| 6761 | ac_status=$?
|
---|
| 6762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6763 | (exit $ac_status); }; }; then
|
---|
[687] | 6764 | success=yes
|
---|
| 6765 | else
|
---|
[8756] | 6766 | echo "$as_me: failed program was:" >&5
|
---|
| 6767 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6768 |
|
---|
| 6769 | success=no
|
---|
| 6770 |
|
---|
[687] | 6771 | fi
|
---|
[8756] | 6772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[2603] | 6773 |
|
---|
| 6774 | if test $success = "no"; then
|
---|
| 6775 | # last chance - look in /usr/local (eg FreeBSD)
|
---|
| 6776 | GDBM_LIBPATH=-L/usr/local/lib
|
---|
| 6777 | GDBM_INCLUDE=-I/usr/local/include
|
---|
| 6778 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
| 6779 | ac_save_LIBS="$LIBS"
|
---|
| 6780 | CXXFLAGS="$CXXFLAGS -I/usr/local/include"
|
---|
| 6781 | LIBS="$LIBS -L/usr/local/lib -lgdbm"
|
---|
[8756] | 6782 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6783 | /* confdefs.h. */
|
---|
| 6784 | _ACEOF
|
---|
| 6785 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6786 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6787 | /* end confdefs.h. */
|
---|
[2603] | 6788 | #include <gdbm.h>
|
---|
| 6789 | #include <stdio.h>
|
---|
[8756] | 6790 |
|
---|
| 6791 | int
|
---|
| 6792 | main ()
|
---|
| 6793 | {
|
---|
[2603] | 6794 | printf("%s",gdbm_version);
|
---|
[8756] | 6795 | ;
|
---|
| 6796 | return 0;
|
---|
| 6797 | }
|
---|
| 6798 | _ACEOF
|
---|
| 6799 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6801 | (eval $ac_link) 2>conftest.er1
|
---|
| 6802 | ac_status=$?
|
---|
| 6803 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6804 | rm -f conftest.er1
|
---|
| 6805 | cat conftest.err >&5
|
---|
| 6806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6807 | (exit $ac_status); } &&
|
---|
| 6808 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6809 | || test ! -s conftest.err'
|
---|
| 6810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6811 | (eval $ac_try) 2>&5
|
---|
| 6812 | ac_status=$?
|
---|
| 6813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6814 | (exit $ac_status); }; } &&
|
---|
| 6815 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6817 | (eval $ac_try) 2>&5
|
---|
| 6818 | ac_status=$?
|
---|
| 6819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6820 | (exit $ac_status); }; }; then
|
---|
[2603] | 6821 | success=/usr/local
|
---|
| 6822 | else
|
---|
[8756] | 6823 | echo "$as_me: failed program was:" >&5
|
---|
| 6824 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6825 |
|
---|
| 6826 | success=no
|
---|
| 6827 |
|
---|
[2603] | 6828 | fi
|
---|
[8756] | 6829 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6830 | conftest$ac_exeext conftest.$ac_ext
|
---|
[2603] | 6831 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 6832 | LIBS=$ac_save_LIBS
|
---|
| 6833 | fi
|
---|
| 6834 |
|
---|
[8756] | 6835 | echo "$as_me:$LINENO: result: $success" >&5
|
---|
| 6836 | echo "${ECHO_T}$success" >&6
|
---|
[2279] | 6837 | if test $success = "no"; then
|
---|
[8756] | 6838 | { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&5
|
---|
| 6839 | echo "$as_me: error: GDBM Library not available - cannot install" >&2;}
|
---|
| 6840 | { (exit 1); exit 1; }; }
|
---|
[2279] | 6841 | fi
|
---|
[687] | 6842 | fi
|
---|
[8756] | 6843 | cat >>confdefs.h <<\_ACEOF
|
---|
[2603] | 6844 | #define HAVE_LIBGDBM 1
|
---|
[8756] | 6845 | _ACEOF
|
---|
[687] | 6846 |
|
---|
[8200] | 6847 |
|
---|
| 6848 |
|
---|
| 6849 |
|
---|
| 6850 |
|
---|
[8756] | 6851 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
| 6852 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
[687] | 6853 | success="no"
|
---|
| 6854 | pl_path="$PATH"
|
---|
| 6855 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 6856 | for pl_dir in $pl_path; do
|
---|
| 6857 | test -z "$pl_dir" && pl_dir=.
|
---|
| 6858 | if test -x $pl_dir/perl; then
|
---|
| 6859 | success="yes"
|
---|
| 6860 | break
|
---|
| 6861 | fi
|
---|
| 6862 | done
|
---|
| 6863 | IFS="$pl_save_ifs"
|
---|
| 6864 |
|
---|
| 6865 | if test $success = "yes"; then
|
---|
| 6866 | try=`perl configtest.pl` || try="0"
|
---|
| 6867 | try=`expr $try \> 5.000`
|
---|
| 6868 | if test $try = "1"; then
|
---|
[8756] | 6869 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 6870 | echo "${ECHO_T}\"yes\"" >&6
|
---|
[687] | 6871 | else
|
---|
| 6872 | success="no"
|
---|
| 6873 | fi
|
---|
| 6874 | fi
|
---|
| 6875 |
|
---|
| 6876 | if test $success = "no"; then
|
---|
[8756] | 6877 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 6878 | echo "${ECHO_T}\"no\"" >&6
|
---|
| 6879 | { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
|
---|
| 6880 | echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
|
---|
| 6881 | { (exit 1); exit 1; }; }
|
---|
[687] | 6882 | fi
|
---|
| 6883 |
|
---|
| 6884 | success=no
|
---|
[8756] | 6885 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 6886 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
[687] | 6887 |
|
---|
[8756] | 6888 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6889 | /* confdefs.h. */
|
---|
| 6890 | _ACEOF
|
---|
| 6891 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6892 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6893 | /* end confdefs.h. */
|
---|
[687] | 6894 | #include <vector>
|
---|
| 6895 |
|
---|
[8756] | 6896 | int
|
---|
| 6897 | main ()
|
---|
| 6898 | {
|
---|
[687] | 6899 |
|
---|
[8756] | 6900 | ;
|
---|
| 6901 | return 0;
|
---|
| 6902 | }
|
---|
| 6903 | _ACEOF
|
---|
| 6904 | rm -f conftest.$ac_objext
|
---|
| 6905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6906 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6907 | ac_status=$?
|
---|
| 6908 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6909 | rm -f conftest.er1
|
---|
| 6910 | cat conftest.err >&5
|
---|
| 6911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6912 | (exit $ac_status); } &&
|
---|
| 6913 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6914 | || test ! -s conftest.err'
|
---|
| 6915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6916 | (eval $ac_try) 2>&5
|
---|
| 6917 | ac_status=$?
|
---|
| 6918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6919 | (exit $ac_status); }; } &&
|
---|
| 6920 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6922 | (eval $ac_try) 2>&5
|
---|
| 6923 | ac_status=$?
|
---|
| 6924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6925 | (exit $ac_status); }; }; then
|
---|
[687] | 6926 | success=yes
|
---|
| 6927 | else
|
---|
[8756] | 6928 | echo "$as_me: failed program was:" >&5
|
---|
| 6929 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6930 |
|
---|
[687] | 6931 | fi
|
---|
[8756] | 6932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 6933 |
|
---|
| 6934 | if test $success = "no"; then
|
---|
[8756] | 6935 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6936 | /* confdefs.h. */
|
---|
| 6937 | _ACEOF
|
---|
| 6938 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6939 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6940 | /* end confdefs.h. */
|
---|
[687] | 6941 | #include <vector.h>
|
---|
| 6942 |
|
---|
[8756] | 6943 | int
|
---|
| 6944 | main ()
|
---|
| 6945 | {
|
---|
[687] | 6946 |
|
---|
[8756] | 6947 | ;
|
---|
| 6948 | return 0;
|
---|
| 6949 | }
|
---|
| 6950 | _ACEOF
|
---|
| 6951 | rm -f conftest.$ac_objext
|
---|
| 6952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6953 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6954 | ac_status=$?
|
---|
| 6955 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6956 | rm -f conftest.er1
|
---|
| 6957 | cat conftest.err >&5
|
---|
| 6958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6959 | (exit $ac_status); } &&
|
---|
| 6960 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6961 | || test ! -s conftest.err'
|
---|
| 6962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6963 | (eval $ac_try) 2>&5
|
---|
| 6964 | ac_status=$?
|
---|
| 6965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6966 | (exit $ac_status); }; } &&
|
---|
| 6967 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6969 | (eval $ac_try) 2>&5
|
---|
| 6970 | ac_status=$?
|
---|
| 6971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6972 | (exit $ac_status); }; }; then
|
---|
[687] | 6973 | success="yes"
|
---|
| 6974 | else
|
---|
[8756] | 6975 | echo "$as_me: failed program was:" >&5
|
---|
| 6976 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6977 |
|
---|
[687] | 6978 | fi
|
---|
[8756] | 6979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 6980 | fi
|
---|
| 6981 |
|
---|
| 6982 | if test $success = "no"; then
|
---|
[8756] | 6983 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6984 | /* confdefs.h. */
|
---|
| 6985 | _ACEOF
|
---|
| 6986 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6987 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6988 | /* end confdefs.h. */
|
---|
[687] | 6989 | #include <ospace\\std\\vector>
|
---|
| 6990 |
|
---|
[8756] | 6991 | int
|
---|
| 6992 | main ()
|
---|
| 6993 | {
|
---|
[687] | 6994 |
|
---|
[8756] | 6995 | ;
|
---|
| 6996 | return 0;
|
---|
| 6997 | }
|
---|
| 6998 | _ACEOF
|
---|
| 6999 | rm -f conftest.$ac_objext
|
---|
| 7000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7001 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7002 | ac_status=$?
|
---|
| 7003 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7004 | rm -f conftest.er1
|
---|
| 7005 | cat conftest.err >&5
|
---|
| 7006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7007 | (exit $ac_status); } &&
|
---|
| 7008 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7009 | || test ! -s conftest.err'
|
---|
| 7010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7011 | (eval $ac_try) 2>&5
|
---|
| 7012 | ac_status=$?
|
---|
| 7013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7014 | (exit $ac_status); }; } &&
|
---|
| 7015 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7017 | (eval $ac_try) 2>&5
|
---|
| 7018 | ac_status=$?
|
---|
| 7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7020 | (exit $ac_status); }; }; then
|
---|
[687] | 7021 | success="yes"
|
---|
| 7022 | else
|
---|
[8756] | 7023 | echo "$as_me: failed program was:" >&5
|
---|
| 7024 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7025 |
|
---|
[687] | 7026 | fi
|
---|
[8756] | 7027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7028 | fi
|
---|
| 7029 |
|
---|
| 7030 | if test $success = yes; then
|
---|
[8756] | 7031 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 7032 | echo "${ECHO_T}\"no\"" >&6
|
---|
[687] | 7033 | else
|
---|
[8756] | 7034 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 7035 | echo "${ECHO_T}\"yes\"" >&6
|
---|
| 7036 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 7037 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 7038 | { (exit 1); exit 1; }; }
|
---|
[687] | 7039 | fi
|
---|
| 7040 |
|
---|
[2950] | 7041 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
[2951] | 7042 | # check for running bash under cygwin
|
---|
| 7043 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 7044 | then
|
---|
| 7045 | gsdlos=windows
|
---|
| 7046 | fi
|
---|
[687] | 7047 |
|
---|
[8200] | 7048 |
|
---|
[10856] | 7049 | # check for endianness
|
---|
| 7050 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7051 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
| 7052 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7053 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7054 | else
|
---|
| 7055 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7056 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7057 | /* confdefs.h. */
|
---|
| 7058 | _ACEOF
|
---|
| 7059 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7060 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7061 | /* end confdefs.h. */
|
---|
| 7062 | #include <sys/types.h>
|
---|
| 7063 | #include <sys/param.h>
|
---|
| 7064 |
|
---|
| 7065 | int
|
---|
| 7066 | main ()
|
---|
| 7067 | {
|
---|
| 7068 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
| 7069 | bogus endian macros
|
---|
| 7070 | #endif
|
---|
| 7071 |
|
---|
| 7072 | ;
|
---|
| 7073 | return 0;
|
---|
| 7074 | }
|
---|
| 7075 | _ACEOF
|
---|
| 7076 | rm -f conftest.$ac_objext
|
---|
| 7077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7078 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7079 | ac_status=$?
|
---|
| 7080 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7081 | rm -f conftest.er1
|
---|
| 7082 | cat conftest.err >&5
|
---|
| 7083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7084 | (exit $ac_status); } &&
|
---|
| 7085 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7086 | || test ! -s conftest.err'
|
---|
| 7087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7088 | (eval $ac_try) 2>&5
|
---|
| 7089 | ac_status=$?
|
---|
| 7090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7091 | (exit $ac_status); }; } &&
|
---|
| 7092 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7094 | (eval $ac_try) 2>&5
|
---|
| 7095 | ac_status=$?
|
---|
| 7096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7097 | (exit $ac_status); }; }; then
|
---|
| 7098 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 7099 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7100 | /* confdefs.h. */
|
---|
| 7101 | _ACEOF
|
---|
| 7102 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7103 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7104 | /* end confdefs.h. */
|
---|
| 7105 | #include <sys/types.h>
|
---|
| 7106 | #include <sys/param.h>
|
---|
| 7107 |
|
---|
| 7108 | int
|
---|
| 7109 | main ()
|
---|
| 7110 | {
|
---|
| 7111 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 7112 | not big endian
|
---|
| 7113 | #endif
|
---|
| 7114 |
|
---|
| 7115 | ;
|
---|
| 7116 | return 0;
|
---|
| 7117 | }
|
---|
| 7118 | _ACEOF
|
---|
| 7119 | rm -f conftest.$ac_objext
|
---|
| 7120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7121 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7122 | ac_status=$?
|
---|
| 7123 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7124 | rm -f conftest.er1
|
---|
| 7125 | cat conftest.err >&5
|
---|
| 7126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7127 | (exit $ac_status); } &&
|
---|
| 7128 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7129 | || test ! -s conftest.err'
|
---|
| 7130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7131 | (eval $ac_try) 2>&5
|
---|
| 7132 | ac_status=$?
|
---|
| 7133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7134 | (exit $ac_status); }; } &&
|
---|
| 7135 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7137 | (eval $ac_try) 2>&5
|
---|
| 7138 | ac_status=$?
|
---|
| 7139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7140 | (exit $ac_status); }; }; then
|
---|
| 7141 | ac_cv_c_bigendian=yes
|
---|
| 7142 | else
|
---|
| 7143 | echo "$as_me: failed program was:" >&5
|
---|
| 7144 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7145 |
|
---|
| 7146 | ac_cv_c_bigendian=no
|
---|
| 7147 | fi
|
---|
| 7148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7149 | else
|
---|
| 7150 | echo "$as_me: failed program was:" >&5
|
---|
| 7151 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7152 |
|
---|
| 7153 | # It does not; compile a test program.
|
---|
| 7154 | if test "$cross_compiling" = yes; then
|
---|
| 7155 | # try to guess the endianness by grepping values into an object file
|
---|
| 7156 | ac_cv_c_bigendian=unknown
|
---|
| 7157 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7158 | /* confdefs.h. */
|
---|
| 7159 | _ACEOF
|
---|
| 7160 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7161 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7162 | /* end confdefs.h. */
|
---|
| 7163 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7164 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 7165 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 7166 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7167 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 7168 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 7169 | int
|
---|
| 7170 | main ()
|
---|
| 7171 | {
|
---|
| 7172 | _ascii (); _ebcdic ();
|
---|
| 7173 | ;
|
---|
| 7174 | return 0;
|
---|
| 7175 | }
|
---|
| 7176 | _ACEOF
|
---|
| 7177 | rm -f conftest.$ac_objext
|
---|
| 7178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7179 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7180 | ac_status=$?
|
---|
| 7181 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7182 | rm -f conftest.er1
|
---|
| 7183 | cat conftest.err >&5
|
---|
| 7184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7185 | (exit $ac_status); } &&
|
---|
| 7186 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7187 | || test ! -s conftest.err'
|
---|
| 7188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7189 | (eval $ac_try) 2>&5
|
---|
| 7190 | ac_status=$?
|
---|
| 7191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7192 | (exit $ac_status); }; } &&
|
---|
| 7193 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7195 | (eval $ac_try) 2>&5
|
---|
| 7196 | ac_status=$?
|
---|
| 7197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7198 | (exit $ac_status); }; }; then
|
---|
| 7199 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 7200 | ac_cv_c_bigendian=yes
|
---|
| 7201 | fi
|
---|
| 7202 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7203 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7204 | ac_cv_c_bigendian=no
|
---|
| 7205 | else
|
---|
| 7206 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7207 | ac_cv_c_bigendian=unknown
|
---|
| 7208 | fi
|
---|
| 7209 | fi
|
---|
| 7210 | else
|
---|
| 7211 | echo "$as_me: failed program was:" >&5
|
---|
| 7212 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7213 |
|
---|
| 7214 | fi
|
---|
| 7215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7216 | else
|
---|
| 7217 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7218 | /* confdefs.h. */
|
---|
| 7219 | _ACEOF
|
---|
| 7220 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7221 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7222 | /* end confdefs.h. */
|
---|
| 7223 | int
|
---|
| 7224 | main ()
|
---|
| 7225 | {
|
---|
| 7226 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7227 | union
|
---|
| 7228 | {
|
---|
| 7229 | long l;
|
---|
| 7230 | char c[sizeof (long)];
|
---|
| 7231 | } u;
|
---|
| 7232 | u.l = 1;
|
---|
| 7233 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
| 7234 | }
|
---|
| 7235 | _ACEOF
|
---|
| 7236 | rm -f conftest$ac_exeext
|
---|
| 7237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7238 | (eval $ac_link) 2>&5
|
---|
| 7239 | ac_status=$?
|
---|
| 7240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7241 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 7242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7243 | (eval $ac_try) 2>&5
|
---|
| 7244 | ac_status=$?
|
---|
| 7245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7246 | (exit $ac_status); }; }; then
|
---|
| 7247 | ac_cv_c_bigendian=no
|
---|
| 7248 | else
|
---|
| 7249 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7250 | echo "$as_me: failed program was:" >&5
|
---|
| 7251 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7252 |
|
---|
| 7253 | ( exit $ac_status )
|
---|
| 7254 | ac_cv_c_bigendian=yes
|
---|
| 7255 | fi
|
---|
| 7256 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 7257 | fi
|
---|
| 7258 | fi
|
---|
| 7259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7260 | fi
|
---|
| 7261 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7262 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
| 7263 | case $ac_cv_c_bigendian in
|
---|
| 7264 | yes)
|
---|
| 7265 |
|
---|
| 7266 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7267 | #define WORDS_BIGENDIAN 1
|
---|
| 7268 | _ACEOF
|
---|
| 7269 | ;;
|
---|
| 7270 | no)
|
---|
| 7271 | ;;
|
---|
| 7272 | *)
|
---|
| 7273 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7274 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7275 | echo "$as_me: error: unknown endianness
|
---|
| 7276 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7277 | { (exit 1); exit 1; }; } ;;
|
---|
| 7278 | esac
|
---|
| 7279 |
|
---|
[687] | 7280 | # ---------------------------------------------------------------------------
|
---|
| 7281 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[8756] | 7282 | case $LIBOBJS in
|
---|
| 7283 | "xmalloc.o.$ac_objext" | \
|
---|
| 7284 | *" xmalloc.o.$ac_objext" | \
|
---|
| 7285 | "xmalloc.o.$ac_objext "* | \
|
---|
| 7286 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
| 7287 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
| 7288 | esac
|
---|
| 7289 |
|
---|
| 7290 | case $LIBOBJS in
|
---|
| 7291 | "error.$ac_objext" | \
|
---|
| 7292 | *" error.$ac_objext" | \
|
---|
| 7293 | "error.$ac_objext "* | \
|
---|
| 7294 | *" error.$ac_objext "* ) ;;
|
---|
| 7295 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 7296 | esac
|
---|
| 7297 |
|
---|
[687] | 7298 | fi
|
---|
| 7299 |
|
---|
[3063] | 7300 | # ---------------------------------------------------------------------------
|
---|
[687] | 7301 |
|
---|
[3063] | 7302 | moduleDirs=""
|
---|
| 7303 | MODULEDIRS=""
|
---|
| 7304 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7305 | if test -d "$x"; then
|
---|
| 7306 | d="$x/Makefile.in"
|
---|
| 7307 | if test -e "$d"; then
|
---|
| 7308 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7309 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7310 | fi
|
---|
| 7311 | fi
|
---|
| 7312 | done
|
---|
| 7313 | echo "Making$moduleDirs in modules directory"
|
---|
| 7314 |
|
---|
[8200] | 7315 |
|
---|
[687] | 7316 | # ---------------------------------------------------------------------------
|
---|
[1675] | 7317 |
|
---|
| 7318 |
|
---|
[8756] | 7319 | subdirs="$subdirs packages"
|
---|
| 7320 |
|
---|
| 7321 |
|
---|
[3063] | 7322 | # the list of folders in the src folder
|
---|
| 7323 | srclist="src/mgpp/lib/Makefile src/mgpp/text/Makefile src/mgpp/Makefile \
|
---|
| 7324 | src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile \
|
---|
[8200] | 7325 | src/oaiservr/Makefile src/db2txt/Makefile src/getpw/Makefile src/phind/generate/Makefile"
|
---|
[3063] | 7326 |
|
---|
[8756] | 7327 | 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"
|
---|
| 7328 | cat >confcache <<\_ACEOF
|
---|
[562] | 7329 | # This file is a shell script that caches the results of configure
|
---|
| 7330 | # tests run on this system so they can be shared between configure
|
---|
[8756] | 7331 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7332 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7333 | # want to keep, you may remove or edit it.
|
---|
[562] | 7334 | #
|
---|
[8756] | 7335 | # config.status only pays attention to the cache file if you give it
|
---|
| 7336 | # the --recheck option to rerun configure.
|
---|
[562] | 7337 | #
|
---|
[8756] | 7338 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7339 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7340 | # following values.
|
---|
| 7341 |
|
---|
| 7342 | _ACEOF
|
---|
| 7343 |
|
---|
[562] | 7344 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7345 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 7346 | # So, don't put newlines in cache variables' values.
|
---|
| 7347 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7348 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[8756] | 7349 | {
|
---|
| 7350 | (set) 2>&1 |
|
---|
| 7351 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7352 | *ac_space=\ *)
|
---|
| 7353 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7354 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7355 | sed -n \
|
---|
| 7356 | "s/'/'\\\\''/g;
|
---|
| 7357 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
| 7358 | ;;
|
---|
| 7359 | *)
|
---|
| 7360 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 7361 | sed -n \
|
---|
| 7362 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
| 7363 | ;;
|
---|
| 7364 | esac;
|
---|
| 7365 | } |
|
---|
| 7366 | sed '
|
---|
| 7367 | t clear
|
---|
| 7368 | : clear
|
---|
| 7369 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7370 | t end
|
---|
| 7371 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7372 | : end' >>confcache
|
---|
| 7373 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
[562] | 7374 | if test -w $cache_file; then
|
---|
[8756] | 7375 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
| 7376 | cat confcache >$cache_file
|
---|
[562] | 7377 | else
|
---|
| 7378 | echo "not updating unwritable cache $cache_file"
|
---|
| 7379 | fi
|
---|
| 7380 | fi
|
---|
| 7381 | rm -f confcache
|
---|
| 7382 |
|
---|
| 7383 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7384 | # Let make expand exec_prefix.
|
---|
| 7385 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7386 |
|
---|
[8756] | 7387 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7388 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7389 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7390 | # (actually we leave an empty line to preserve line numbers).
|
---|
[562] | 7391 | if test "x$srcdir" = x.; then
|
---|
[8756] | 7392 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7393 | s/:*\$(srcdir):*/:/;
|
---|
| 7394 | s/:*\${srcdir}:*/:/;
|
---|
| 7395 | s/:*@srcdir@:*/:/;
|
---|
| 7396 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
| 7397 | s/:*$//;
|
---|
| 7398 | s/^[^=]*=[ ]*$//;
|
---|
| 7399 | }'
|
---|
[562] | 7400 | fi
|
---|
| 7401 |
|
---|
[687] | 7402 | DEFS=-DHAVE_CONFIG_H
|
---|
[562] | 7403 |
|
---|
[8756] | 7404 | ac_libobjs=
|
---|
| 7405 | ac_ltlibobjs=
|
---|
| 7406 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7407 | # 1. Remove the extension, and $U if already installed.
|
---|
| 7408 | ac_i=`echo "$ac_i" |
|
---|
| 7409 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7410 | # 2. Add them.
|
---|
| 7411 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7412 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
| 7413 | done
|
---|
| 7414 | LIBOBJS=$ac_libobjs
|
---|
| 7415 |
|
---|
| 7416 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7417 |
|
---|
| 7418 |
|
---|
| 7419 |
|
---|
[562] | 7420 | : ${CONFIG_STATUS=./config.status}
|
---|
[8756] | 7421 | ac_clean_files_save=$ac_clean_files
|
---|
| 7422 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
| 7423 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 7424 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7425 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7426 | #! $SHELL
|
---|
| 7427 | # Generated by $as_me.
|
---|
[562] | 7428 | # Run this file to recreate the current configuration.
|
---|
| 7429 | # Compiler output produced by configure, useful for debugging
|
---|
[8756] | 7430 | # configure, is in config.log if it exists.
|
---|
[562] | 7431 |
|
---|
[8756] | 7432 | debug=false
|
---|
| 7433 | ac_cs_recheck=false
|
---|
| 7434 | ac_cs_silent=false
|
---|
| 7435 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7436 | _ACEOF
|
---|
| 7437 |
|
---|
| 7438 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7439 | ## --------------------- ##
|
---|
| 7440 | ## M4sh Initialization. ##
|
---|
| 7441 | ## --------------------- ##
|
---|
| 7442 |
|
---|
| 7443 | # Be Bourne compatible
|
---|
| 7444 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7445 | emulate sh
|
---|
| 7446 | NULLCMD=:
|
---|
| 7447 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7448 | # is contrary to our usage. Disable this feature.
|
---|
| 7449 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 7450 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7451 | set -o posix
|
---|
| 7452 | fi
|
---|
| 7453 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 7454 |
|
---|
| 7455 | # Support unset when possible.
|
---|
| 7456 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7457 | as_unset=unset
|
---|
| 7458 | else
|
---|
| 7459 | as_unset=false
|
---|
| 7460 | fi
|
---|
| 7461 |
|
---|
| 7462 |
|
---|
| 7463 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 7464 | $as_unset ENV MAIL MAILPATH
|
---|
| 7465 | PS1='$ '
|
---|
| 7466 | PS2='> '
|
---|
| 7467 | PS4='+ '
|
---|
| 7468 |
|
---|
| 7469 | # NLS nuisances.
|
---|
| 7470 | for as_var in \
|
---|
| 7471 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7472 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7473 | LC_TELEPHONE LC_TIME
|
---|
[562] | 7474 | do
|
---|
[8756] | 7475 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7476 | eval $as_var=C; export $as_var
|
---|
| 7477 | else
|
---|
| 7478 | $as_unset $as_var
|
---|
| 7479 | fi
|
---|
[562] | 7480 | done
|
---|
| 7481 |
|
---|
[8756] | 7482 | # Required to use basename.
|
---|
| 7483 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7484 | as_expr=expr
|
---|
| 7485 | else
|
---|
| 7486 | as_expr=false
|
---|
| 7487 | fi
|
---|
[562] | 7488 |
|
---|
[8756] | 7489 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 7490 | as_basename=basename
|
---|
| 7491 | else
|
---|
| 7492 | as_basename=false
|
---|
| 7493 | fi
|
---|
[562] | 7494 |
|
---|
| 7495 |
|
---|
[8756] | 7496 | # Name of the executable.
|
---|
| 7497 | as_me=`$as_basename "$0" ||
|
---|
| 7498 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7499 | X"$0" : 'X\(//\)$' \| \
|
---|
| 7500 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7501 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7502 | echo X/"$0" |
|
---|
| 7503 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7504 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7505 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7506 | s/.*/./; q'`
|
---|
[3631] | 7507 |
|
---|
| 7508 |
|
---|
[8756] | 7509 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 7510 | # Avoid depending upon Character Ranges.
|
---|
| 7511 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7512 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7513 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7514 | as_cr_digits='0123456789'
|
---|
| 7515 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 7516 |
|
---|
| 7517 | # The user is always right.
|
---|
| 7518 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7519 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7520 | echo "exit 0" >>conf$$.sh
|
---|
| 7521 | chmod +x conf$$.sh
|
---|
| 7522 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7523 | PATH_SEPARATOR=';'
|
---|
[8200] | 7524 | else
|
---|
[8756] | 7525 | PATH_SEPARATOR=:
|
---|
[8200] | 7526 | fi
|
---|
[8756] | 7527 | rm -f conf$$.sh
|
---|
| 7528 | fi
|
---|
| 7529 |
|
---|
| 7530 |
|
---|
| 7531 | as_lineno_1=$LINENO
|
---|
| 7532 | as_lineno_2=$LINENO
|
---|
| 7533 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7534 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7535 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7536 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7537 | # relative or not.
|
---|
| 7538 | case $0 in
|
---|
| 7539 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7540 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7541 | for as_dir in $PATH
|
---|
| 7542 | do
|
---|
| 7543 | IFS=$as_save_IFS
|
---|
| 7544 | test -z "$as_dir" && as_dir=.
|
---|
| 7545 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7546 | done
|
---|
| 7547 |
|
---|
| 7548 | ;;
|
---|
| 7549 | esac
|
---|
| 7550 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7551 | # in which case we are not to be found in the path.
|
---|
| 7552 | if test "x$as_myself" = x; then
|
---|
| 7553 | as_myself=$0
|
---|
| 7554 | fi
|
---|
| 7555 | if test ! -f "$as_myself"; then
|
---|
| 7556 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 7557 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 7558 | { (exit 1); exit 1; }; }
|
---|
| 7559 | fi
|
---|
| 7560 | case $CONFIG_SHELL in
|
---|
| 7561 | '')
|
---|
| 7562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7563 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 7564 | do
|
---|
| 7565 | IFS=$as_save_IFS
|
---|
| 7566 | test -z "$as_dir" && as_dir=.
|
---|
| 7567 | for as_base in sh bash ksh sh5; do
|
---|
| 7568 | case $as_dir in
|
---|
| 7569 | /*)
|
---|
| 7570 | if ("$as_dir/$as_base" -c '
|
---|
| 7571 | as_lineno_1=$LINENO
|
---|
| 7572 | as_lineno_2=$LINENO
|
---|
| 7573 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7574 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7575 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 7576 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 7577 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 7578 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 7579 | export CONFIG_SHELL
|
---|
| 7580 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 7581 | fi;;
|
---|
| 7582 | esac
|
---|
| 7583 | done
|
---|
| 7584 | done
|
---|
| 7585 | ;;
|
---|
| 7586 | esac
|
---|
| 7587 |
|
---|
| 7588 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 7589 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 7590 | # line-number line before each line; the second 'sed' does the real
|
---|
| 7591 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 7592 | # with the numbered line, and appends trailing '-' during
|
---|
| 7593 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 7594 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 7595 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 7596 | sed '=' <$as_myself |
|
---|
| 7597 | sed '
|
---|
| 7598 | N
|
---|
| 7599 | s,$,-,
|
---|
| 7600 | : loop
|
---|
| 7601 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 7602 | t loop
|
---|
| 7603 | s,-$,,
|
---|
| 7604 | s,^['$as_cr_digits']*\n,,
|
---|
| 7605 | ' >$as_me.lineno &&
|
---|
| 7606 | chmod +x $as_me.lineno ||
|
---|
| 7607 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 7608 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 7609 | { (exit 1); exit 1; }; }
|
---|
| 7610 |
|
---|
| 7611 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 7612 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 7613 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 7614 | . ./$as_me.lineno
|
---|
| 7615 | # Exit status is that of the last command.
|
---|
| 7616 | exit
|
---|
| 7617 | }
|
---|
| 7618 |
|
---|
| 7619 |
|
---|
| 7620 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 7621 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 7622 | ' ECHO_T=' ' ;;
|
---|
| 7623 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 7624 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 7625 | esac
|
---|
| 7626 |
|
---|
| 7627 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7628 | as_expr=expr
|
---|
| 7629 | else
|
---|
| 7630 | as_expr=false
|
---|
| 7631 | fi
|
---|
| 7632 |
|
---|
| 7633 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7634 | echo >conf$$.file
|
---|
| 7635 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7636 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 7637 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 7638 | if test -f conf$$.exe; then
|
---|
| 7639 | # Don't use ln at all; we don't have any links
|
---|
| 7640 | as_ln_s='cp -p'
|
---|
[8200] | 7641 | else
|
---|
[8756] | 7642 | as_ln_s='ln -s'
|
---|
[562] | 7643 | fi
|
---|
[8756] | 7644 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7645 | as_ln_s=ln
|
---|
| 7646 | else
|
---|
| 7647 | as_ln_s='cp -p'
|
---|
| 7648 | fi
|
---|
| 7649 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7650 |
|
---|
| 7651 | if mkdir -p . 2>/dev/null; then
|
---|
| 7652 | as_mkdir_p=:
|
---|
| 7653 | else
|
---|
| 7654 | test -d ./-p && rmdir ./-p
|
---|
| 7655 | as_mkdir_p=false
|
---|
| 7656 | fi
|
---|
| 7657 |
|
---|
| 7658 | as_executable_p="test -f"
|
---|
| 7659 |
|
---|
| 7660 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7661 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7662 |
|
---|
| 7663 | # Sed expression to map a string onto a valid variable name.
|
---|
| 7664 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7665 |
|
---|
| 7666 |
|
---|
| 7667 | # IFS
|
---|
| 7668 | # We need space, tab and new line, in precisely that order.
|
---|
| 7669 | as_nl='
|
---|
| 7670 | '
|
---|
| 7671 | IFS=" $as_nl"
|
---|
| 7672 |
|
---|
| 7673 | # CDPATH.
|
---|
| 7674 | $as_unset CDPATH
|
---|
| 7675 |
|
---|
| 7676 | exec 6>&1
|
---|
| 7677 |
|
---|
| 7678 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
| 7679 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 7680 | # values after options handling. Logging --version etc. is OK.
|
---|
| 7681 | exec 5>>config.log
|
---|
| 7682 | {
|
---|
| 7683 | echo
|
---|
| 7684 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7685 | ## Running $as_me. ##
|
---|
| 7686 | _ASBOX
|
---|
| 7687 | } >&5
|
---|
| 7688 | cat >&5 <<_CSEOF
|
---|
| 7689 |
|
---|
| 7690 | This file was extended by $as_me, which was
|
---|
| 7691 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 7692 |
|
---|
| 7693 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 7694 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 7695 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 7696 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 7697 | $ $0 $@
|
---|
| 7698 |
|
---|
| 7699 | _CSEOF
|
---|
| 7700 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 7701 | echo >&5
|
---|
| 7702 | _ACEOF
|
---|
| 7703 |
|
---|
| 7704 | # Files that config.status was made for.
|
---|
| 7705 | if test -n "$ac_config_files"; then
|
---|
| 7706 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 7707 | fi
|
---|
| 7708 |
|
---|
| 7709 | if test -n "$ac_config_headers"; then
|
---|
| 7710 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 7711 | fi
|
---|
| 7712 |
|
---|
| 7713 | if test -n "$ac_config_links"; then
|
---|
| 7714 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 7715 | fi
|
---|
| 7716 |
|
---|
| 7717 | if test -n "$ac_config_commands"; then
|
---|
| 7718 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 7719 | fi
|
---|
| 7720 |
|
---|
| 7721 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7722 |
|
---|
| 7723 | ac_cs_usage="\
|
---|
| 7724 | \`$as_me' instantiates files from templates according to the
|
---|
| 7725 | current configuration.
|
---|
| 7726 |
|
---|
| 7727 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 7728 |
|
---|
| 7729 | -h, --help print this help, then exit
|
---|
| 7730 | -V, --version print version number, then exit
|
---|
| 7731 | -q, --quiet do not print progress messages
|
---|
| 7732 | -d, --debug don't remove temporary files
|
---|
| 7733 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 7734 | --file=FILE[:TEMPLATE]
|
---|
| 7735 | instantiate the configuration file FILE
|
---|
| 7736 | --header=FILE[:TEMPLATE]
|
---|
| 7737 | instantiate the configuration header FILE
|
---|
| 7738 |
|
---|
| 7739 | Configuration files:
|
---|
| 7740 | $config_files
|
---|
| 7741 |
|
---|
| 7742 | Configuration headers:
|
---|
| 7743 | $config_headers
|
---|
| 7744 |
|
---|
| 7745 | Report bugs to <[email protected]>."
|
---|
| 7746 | _ACEOF
|
---|
| 7747 |
|
---|
| 7748 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7749 | ac_cs_version="\\
|
---|
| 7750 | config.status
|
---|
| 7751 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
| 7752 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
| 7753 |
|
---|
| 7754 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
| 7755 | This config.status script is free software; the Free Software Foundation
|
---|
| 7756 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 7757 | srcdir=$srcdir
|
---|
| 7758 | INSTALL="$INSTALL"
|
---|
| 7759 | _ACEOF
|
---|
| 7760 |
|
---|
| 7761 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7762 | # If no file are specified by the user, then we need to provide default
|
---|
| 7763 | # value. By we need to know if files were specified by the user.
|
---|
| 7764 | ac_need_defaults=:
|
---|
| 7765 | while test $# != 0
|
---|
| 7766 | do
|
---|
| 7767 | case $1 in
|
---|
| 7768 | --*=*)
|
---|
| 7769 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 7770 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
| 7771 | ac_shift=:
|
---|
| 7772 | ;;
|
---|
| 7773 | -*)
|
---|
| 7774 | ac_option=$1
|
---|
| 7775 | ac_optarg=$2
|
---|
| 7776 | ac_shift=shift
|
---|
| 7777 | ;;
|
---|
| 7778 | *) # This is not an option, so the user has probably given explicit
|
---|
| 7779 | # arguments.
|
---|
| 7780 | ac_option=$1
|
---|
| 7781 | ac_need_defaults=false;;
|
---|
| 7782 | esac
|
---|
| 7783 |
|
---|
| 7784 | case $ac_option in
|
---|
| 7785 | # Handling of the options.
|
---|
| 7786 | _ACEOF
|
---|
| 7787 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7788 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 7789 | ac_cs_recheck=: ;;
|
---|
| 7790 | --version | --vers* | -V )
|
---|
| 7791 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 7792 | --he | --h)
|
---|
| 7793 | # Conflict between --help and --header
|
---|
| 7794 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
| 7795 | Try \`$0 --help' for more information." >&5
|
---|
| 7796 | echo "$as_me: error: ambiguous option: $1
|
---|
| 7797 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7798 | { (exit 1); exit 1; }; };;
|
---|
| 7799 | --help | --hel | -h )
|
---|
| 7800 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 7801 | --debug | --d* | -d )
|
---|
| 7802 | debug=: ;;
|
---|
| 7803 | --file | --fil | --fi | --f )
|
---|
| 7804 | $ac_shift
|
---|
| 7805 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
| 7806 | ac_need_defaults=false;;
|
---|
| 7807 | --header | --heade | --head | --hea )
|
---|
| 7808 | $ac_shift
|
---|
| 7809 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
| 7810 | ac_need_defaults=false;;
|
---|
| 7811 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 7812 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 7813 | ac_cs_silent=: ;;
|
---|
| 7814 |
|
---|
| 7815 | # This is an error.
|
---|
| 7816 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
| 7817 | Try \`$0 --help' for more information." >&5
|
---|
| 7818 | echo "$as_me: error: unrecognized option: $1
|
---|
| 7819 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7820 | { (exit 1); exit 1; }; } ;;
|
---|
| 7821 |
|
---|
| 7822 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
| 7823 |
|
---|
| 7824 | esac
|
---|
| 7825 | shift
|
---|
[8200] | 7826 | done
|
---|
[8756] | 7827 |
|
---|
| 7828 | ac_configure_extra_args=
|
---|
| 7829 |
|
---|
| 7830 | if $ac_cs_silent; then
|
---|
| 7831 | exec 6>/dev/null
|
---|
| 7832 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
[8200] | 7833 | fi
|
---|
[562] | 7834 |
|
---|
[8756] | 7835 | _ACEOF
|
---|
| 7836 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7837 | if \$ac_cs_recheck; then
|
---|
| 7838 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 7839 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 7840 | fi
|
---|
[8200] | 7841 |
|
---|
[8756] | 7842 | _ACEOF
|
---|
| 7843 |
|
---|
| 7844 |
|
---|
| 7845 |
|
---|
| 7846 |
|
---|
| 7847 |
|
---|
| 7848 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7849 | for ac_config_target in $ac_config_targets
|
---|
| 7850 | do
|
---|
| 7851 | case "$ac_config_target" in
|
---|
| 7852 | # Handling of arguments.
|
---|
| 7853 | "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
| 7854 | "packages/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/Makefile" ;;
|
---|
| 7855 | "packages/mg/src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/text/Makefile" ;;
|
---|
| 7856 | "packages/mg/src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/images/Makefile" ;;
|
---|
| 7857 | "packages/mg/src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/scripts/Makefile" ;;
|
---|
| 7858 | "packages/mg/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/lib/Makefile" ;;
|
---|
| 7859 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
| 7860 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7861 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 7862 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 7863 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 7864 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 7865 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 7866 | { (exit 1); exit 1; }; };;
|
---|
[562] | 7867 | esac
|
---|
[8756] | 7868 | done
|
---|
[562] | 7869 |
|
---|
[8756] | 7870 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7871 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7872 | # We use the long form for the default assignment because of an extremely
|
---|
| 7873 | # bizarre bug on SunOS 4.1.3.
|
---|
| 7874 | if $ac_need_defaults; then
|
---|
| 7875 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 7876 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 7877 | fi
|
---|
[8200] | 7878 |
|
---|
[8756] | 7879 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 7880 | # simply because there is no reason to put it here, and in addition,
|
---|
| 7881 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
| 7882 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
| 7883 | $debug ||
|
---|
| 7884 | {
|
---|
| 7885 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
| 7886 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
| 7887 | }
|
---|
| 7888 |
|
---|
| 7889 | # Create a (secure) tmp directory for tmp files.
|
---|
| 7890 |
|
---|
| 7891 | {
|
---|
| 7892 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
| 7893 | test -n "$tmp" && test -d "$tmp"
|
---|
| 7894 | } ||
|
---|
| 7895 | {
|
---|
| 7896 | tmp=./confstat$$-$RANDOM
|
---|
| 7897 | (umask 077 && mkdir $tmp)
|
---|
| 7898 | } ||
|
---|
| 7899 | {
|
---|
| 7900 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 7901 | { (exit 1); exit 1; }
|
---|
| 7902 | }
|
---|
| 7903 |
|
---|
| 7904 | _ACEOF
|
---|
| 7905 |
|
---|
| 7906 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7907 |
|
---|
| 7908 | #
|
---|
| 7909 | # CONFIG_FILES section.
|
---|
| 7910 | #
|
---|
| 7911 |
|
---|
| 7912 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 7913 | # This happens for instance when ./config.status config.h
|
---|
| 7914 | if test -n "\$CONFIG_FILES"; then
|
---|
| 7915 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 7916 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 7917 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 7918 | s,@SHELL@,$SHELL,;t t
|
---|
| 7919 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 7920 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 7921 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 7922 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 7923 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 7924 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
| 7925 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 7926 | s,@prefix@,$prefix,;t t
|
---|
| 7927 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 7928 | s,@bindir@,$bindir,;t t
|
---|
| 7929 | s,@sbindir@,$sbindir,;t t
|
---|
| 7930 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 7931 | s,@datadir@,$datadir,;t t
|
---|
| 7932 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 7933 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 7934 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 7935 | s,@libdir@,$libdir,;t t
|
---|
| 7936 | s,@includedir@,$includedir,;t t
|
---|
| 7937 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 7938 | s,@infodir@,$infodir,;t t
|
---|
| 7939 | s,@mandir@,$mandir,;t t
|
---|
| 7940 | s,@build_alias@,$build_alias,;t t
|
---|
| 7941 | s,@host_alias@,$host_alias,;t t
|
---|
| 7942 | s,@target_alias@,$target_alias,;t t
|
---|
| 7943 | s,@DEFS@,$DEFS,;t t
|
---|
| 7944 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 7945 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 7946 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 7947 | s,@LIBS@,$LIBS,;t t
|
---|
| 7948 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 7949 | s,@VERSION@,$VERSION,;t t
|
---|
| 7950 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
| 7951 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
| 7952 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
| 7953 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
| 7954 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
[12492] | 7955 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
[8756] | 7956 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 7957 | s,@CC@,$CC,;t t
|
---|
| 7958 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 7959 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 7960 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 7961 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 7962 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 7963 | s,@CXX@,$CXX,;t t
|
---|
| 7964 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 7965 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 7966 | s,@AWK@,$AWK,;t t
|
---|
| 7967 | s,@YACC@,$YACC,;t t
|
---|
| 7968 | s,@build@,$build,;t t
|
---|
| 7969 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 7970 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 7971 | s,@build_os@,$build_os,;t t
|
---|
| 7972 | s,@host@,$host,;t t
|
---|
| 7973 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 7974 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 7975 | s,@host_os@,$host_os,;t t
|
---|
| 7976 | s,@target@,$target,;t t
|
---|
| 7977 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 7978 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 7979 | s,@target_os@,$target_os,;t t
|
---|
| 7980 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 7981 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 7982 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 7983 | s,@LN_S@,$LN_S,;t t
|
---|
| 7984 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 7985 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 7986 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 7987 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
| 7988 | s,@CPP@,$CPP,;t t
|
---|
| 7989 | s,@EGREP@,$EGREP,;t t
|
---|
| 7990 | s,@U@,$U,;t t
|
---|
| 7991 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 7992 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 7993 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
| 7994 | s,@STATIC@,$STATIC,;t t
|
---|
| 7995 | s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t
|
---|
| 7996 | s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t
|
---|
| 7997 | s,@gsdlos@,$gsdlos,;t t
|
---|
| 7998 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
| 7999 | s,@subdirs@,$subdirs,;t t
|
---|
| 8000 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
| 8001 | CEOF
|
---|
| 8002 |
|
---|
| 8003 | _ACEOF
|
---|
| 8004 |
|
---|
| 8005 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8006 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 8007 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 8008 | ac_max_sed_lines=48
|
---|
| 8009 | ac_sed_frag=1 # Number of current file.
|
---|
| 8010 | ac_beg=1 # First line for current file.
|
---|
| 8011 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 8012 | ac_more_lines=:
|
---|
| 8013 | ac_sed_cmds=
|
---|
| 8014 | while $ac_more_lines; do
|
---|
| 8015 | if test $ac_beg -gt 1; then
|
---|
| 8016 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 8017 | else
|
---|
| 8018 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 8019 | fi
|
---|
| 8020 | if test ! -s $tmp/subs.frag; then
|
---|
| 8021 | ac_more_lines=false
|
---|
| 8022 | else
|
---|
| 8023 | # The purpose of the label and of the branching condition is to
|
---|
| 8024 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 8025 | # is no need to browse any of the substitutions).
|
---|
| 8026 | # These are the two extra sed commands mentioned above.
|
---|
| 8027 | (echo ':t
|
---|
| 8028 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 8029 | if test -z "$ac_sed_cmds"; then
|
---|
| 8030 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8031 | else
|
---|
| 8032 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8033 | fi
|
---|
| 8034 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8035 | ac_beg=$ac_end
|
---|
| 8036 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8037 | fi
|
---|
| 8038 | done
|
---|
| 8039 | if test -z "$ac_sed_cmds"; then
|
---|
| 8040 | ac_sed_cmds=cat
|
---|
[562] | 8041 | fi
|
---|
[8756] | 8042 | fi # test -n "$CONFIG_FILES"
|
---|
[562] | 8043 |
|
---|
[8756] | 8044 | _ACEOF
|
---|
| 8045 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8046 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 8047 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 8048 | case $ac_file in
|
---|
| 8049 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8050 | cat >$tmp/stdin
|
---|
| 8051 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8052 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8053 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8054 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8055 | * ) ac_file_in=$ac_file.in ;;
|
---|
[562] | 8056 | esac
|
---|
| 8057 |
|
---|
[8756] | 8058 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
| 8059 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8060 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8061 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8062 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8063 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8064 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8065 | echo X"$ac_file" |
|
---|
| 8066 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8067 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8068 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8069 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8070 | s/.*/./; q'`
|
---|
| 8071 | { if $as_mkdir_p; then
|
---|
| 8072 | mkdir -p "$ac_dir"
|
---|
| 8073 | else
|
---|
| 8074 | as_dir="$ac_dir"
|
---|
| 8075 | as_dirs=
|
---|
| 8076 | while test ! -d "$as_dir"; do
|
---|
| 8077 | as_dirs="$as_dir $as_dirs"
|
---|
| 8078 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8079 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8080 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8081 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8082 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8083 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8084 | echo X"$as_dir" |
|
---|
| 8085 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8086 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8087 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8088 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8089 | s/.*/./; q'`
|
---|
| 8090 | done
|
---|
| 8091 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8092 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8093 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8094 | { (exit 1); exit 1; }; }; }
|
---|
[562] | 8095 |
|
---|
[8756] | 8096 | ac_builddir=.
|
---|
| 8097 |
|
---|
| 8098 | if test "$ac_dir" != .; then
|
---|
| 8099 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8100 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8101 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8102 | else
|
---|
| 8103 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8104 | fi
|
---|
| 8105 |
|
---|
| 8106 | case $srcdir in
|
---|
| 8107 | .) # No --srcdir option. We are building in place.
|
---|
| 8108 | ac_srcdir=.
|
---|
| 8109 | if test -z "$ac_top_builddir"; then
|
---|
| 8110 | ac_top_srcdir=.
|
---|
| 8111 | else
|
---|
| 8112 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8113 | fi ;;
|
---|
| 8114 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8115 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8116 | ac_top_srcdir=$srcdir ;;
|
---|
| 8117 | *) # Relative path.
|
---|
| 8118 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8119 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8120 | esac
|
---|
| 8121 |
|
---|
| 8122 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8123 | # the directories may not exist.
|
---|
| 8124 | case `pwd` in
|
---|
| 8125 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8126 | *)
|
---|
| 8127 | case "$ac_dir" in
|
---|
| 8128 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8129 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8130 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8131 | esac;;
|
---|
| 8132 | esac
|
---|
| 8133 | case $ac_abs_builddir in
|
---|
| 8134 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8135 | *)
|
---|
| 8136 | case ${ac_top_builddir}. in
|
---|
| 8137 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8138 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8139 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8140 | esac;;
|
---|
| 8141 | esac
|
---|
| 8142 | case $ac_abs_builddir in
|
---|
| 8143 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8144 | *)
|
---|
| 8145 | case $ac_srcdir in
|
---|
| 8146 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8147 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8148 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8149 | esac;;
|
---|
| 8150 | esac
|
---|
| 8151 | case $ac_abs_builddir in
|
---|
| 8152 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8153 | *)
|
---|
| 8154 | case $ac_top_srcdir in
|
---|
| 8155 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8156 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8157 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8158 | esac;;
|
---|
| 8159 | esac
|
---|
| 8160 |
|
---|
| 8161 |
|
---|
| 8162 | case $INSTALL in
|
---|
| 8163 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
| 8164 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[8200] | 8165 | esac
|
---|
[562] | 8166 |
|
---|
[8756] | 8167 | if test x"$ac_file" != x-; then
|
---|
| 8168 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8169 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8170 | rm -f "$ac_file"
|
---|
| 8171 | fi
|
---|
| 8172 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8173 | # use $as_me), people would be surprised to read:
|
---|
| 8174 | # /* config.h. Generated by config.status. */
|
---|
| 8175 | if test x"$ac_file" = x-; then
|
---|
| 8176 | configure_input=
|
---|
| 8177 | else
|
---|
| 8178 | configure_input="$ac_file. "
|
---|
| 8179 | fi
|
---|
| 8180 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8181 | sed 's,.*/,,'` by configure."
|
---|
[562] | 8182 |
|
---|
[8756] | 8183 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8184 | # src tree.
|
---|
| 8185 | ac_file_inputs=`IFS=:
|
---|
| 8186 | for f in $ac_file_in; do
|
---|
| 8187 | case $f in
|
---|
| 8188 | -) echo $tmp/stdin ;;
|
---|
| 8189 | [\\/$]*)
|
---|
| 8190 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8191 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8192 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8193 | { (exit 1); exit 1; }; }
|
---|
| 8194 | echo "$f";;
|
---|
| 8195 | *) # Relative
|
---|
| 8196 | if test -f "$f"; then
|
---|
| 8197 | # Build tree
|
---|
| 8198 | echo "$f"
|
---|
| 8199 | elif test -f "$srcdir/$f"; then
|
---|
| 8200 | # Source tree
|
---|
| 8201 | echo "$srcdir/$f"
|
---|
| 8202 | else
|
---|
| 8203 | # /dev/null tree
|
---|
| 8204 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8205 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8206 | { (exit 1); exit 1; }; }
|
---|
| 8207 | fi;;
|
---|
| 8208 | esac
|
---|
| 8209 | done` || { (exit 1); exit 1; }
|
---|
| 8210 | _ACEOF
|
---|
| 8211 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8212 | sed "$ac_vpsub
|
---|
| 8213 | $extrasub
|
---|
| 8214 | _ACEOF
|
---|
| 8215 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8216 | :t
|
---|
| 8217 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 8218 | s,@configure_input@,$configure_input,;t t
|
---|
| 8219 | s,@srcdir@,$ac_srcdir,;t t
|
---|
| 8220 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
| 8221 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
| 8222 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8223 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8224 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8225 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8226 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
| 8227 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8228 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8229 | rm -f $tmp/stdin
|
---|
| 8230 | if test x"$ac_file" != x-; then
|
---|
| 8231 | mv $tmp/out $ac_file
|
---|
| 8232 | else
|
---|
| 8233 | cat $tmp/out
|
---|
| 8234 | rm -f $tmp/out
|
---|
| 8235 | fi
|
---|
| 8236 |
|
---|
| 8237 | done
|
---|
| 8238 | _ACEOF
|
---|
| 8239 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8240 |
|
---|
| 8241 | #
|
---|
| 8242 | # CONFIG_HEADER section.
|
---|
| 8243 | #
|
---|
| 8244 |
|
---|
[687] | 8245 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8246 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8247 | #
|
---|
| 8248 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
[8756] | 8249 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8250 | ac_dB='[ ].*$,\1#\2'
|
---|
| 8251 | ac_dC=' '
|
---|
| 8252 | ac_dD=',;t'
|
---|
| 8253 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 8254 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 8255 | ac_uB='$,\1#\2define\3'
|
---|
[687] | 8256 | ac_uC=' '
|
---|
[8756] | 8257 | ac_uD=',;t'
|
---|
[687] | 8258 |
|
---|
[8756] | 8259 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
[687] | 8260 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8756] | 8261 | case $ac_file in
|
---|
| 8262 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8263 | cat >$tmp/stdin
|
---|
| 8264 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8265 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8266 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8267 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8268 | * ) ac_file_in=$ac_file.in ;;
|
---|
[687] | 8269 | esac
|
---|
[562] | 8270 |
|
---|
[8756] | 8271 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8272 | echo "$as_me: creating $ac_file" >&6;}
|
---|
[687] | 8273 |
|
---|
[8756] | 8274 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8275 | # src tree.
|
---|
| 8276 | ac_file_inputs=`IFS=:
|
---|
| 8277 | for f in $ac_file_in; do
|
---|
| 8278 | case $f in
|
---|
| 8279 | -) echo $tmp/stdin ;;
|
---|
| 8280 | [\\/$]*)
|
---|
| 8281 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8282 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8283 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8284 | { (exit 1); exit 1; }; }
|
---|
| 8285 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8286 | echo "$f";;
|
---|
| 8287 | *) # Relative
|
---|
| 8288 | if test -f "$f"; then
|
---|
| 8289 | # Build tree
|
---|
| 8290 | echo "$f"
|
---|
| 8291 | elif test -f "$srcdir/$f"; then
|
---|
| 8292 | # Source tree
|
---|
| 8293 | echo "$srcdir/$f"
|
---|
| 8294 | else
|
---|
| 8295 | # /dev/null tree
|
---|
| 8296 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8297 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8298 | { (exit 1); exit 1; }; }
|
---|
| 8299 | fi;;
|
---|
| 8300 | esac
|
---|
| 8301 | done` || { (exit 1); exit 1; }
|
---|
| 8302 | # Remove the trailing spaces.
|
---|
| 8303 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
[687] | 8304 |
|
---|
[8756] | 8305 | _ACEOF
|
---|
[687] | 8306 |
|
---|
[8756] | 8307 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8308 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8309 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8310 | # templates, and the second `#undef' templates.
|
---|
| 8311 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8312 | # config.status. Protect against being in an unquoted here document
|
---|
| 8313 | # in config.status.
|
---|
| 8314 | rm -f conftest.defines conftest.undefs
|
---|
| 8315 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8316 | # Putting comments in sed scripts is not portable.
|
---|
| 8317 | #
|
---|
| 8318 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8319 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8320 | # See the Autoconf documentation for `clear'.
|
---|
| 8321 | cat >confdef2sed.sed <<\_ACEOF
|
---|
| 8322 | s/[\\&,]/\\&/g
|
---|
| 8323 | s,[\\$`],\\&,g
|
---|
| 8324 | t clear
|
---|
| 8325 | : clear
|
---|
| 8326 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
| 8327 | t end
|
---|
| 8328 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
| 8329 | : end
|
---|
| 8330 | _ACEOF
|
---|
| 8331 | # If some macros were called several times there might be several times
|
---|
| 8332 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8333 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8334 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8335 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8336 | rm -f confdef2sed.sed
|
---|
[687] | 8337 |
|
---|
| 8338 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 8339 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8340 | # on some systems where configure will not decide to define it.
|
---|
[8756] | 8341 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8342 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8343 | _ACEOF
|
---|
[687] | 8344 |
|
---|
[8756] | 8345 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8346 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8347 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
| 8348 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
| 8349 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8350 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8351 | rm -f conftest.tail
|
---|
| 8352 | while grep . conftest.defines >/dev/null
|
---|
| 8353 | do
|
---|
| 8354 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8355 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8356 | # Speed up: don't consider the non `#define' lines.
|
---|
| 8357 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
| 8358 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8359 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8360 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8361 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 8362 | echo 'CEOF
|
---|
| 8363 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8364 | rm -f $tmp/in
|
---|
| 8365 | mv $tmp/out $tmp/in
|
---|
| 8366 | ' >>$CONFIG_STATUS
|
---|
| 8367 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 8368 | rm -f conftest.defines
|
---|
| 8369 | mv conftest.tail conftest.defines
|
---|
| 8370 | done
|
---|
| 8371 | rm -f conftest.defines
|
---|
| 8372 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
| 8373 | echo >>$CONFIG_STATUS
|
---|
[687] | 8374 |
|
---|
[8756] | 8375 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8376 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8377 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
[687] | 8378 | rm -f conftest.tail
|
---|
[8756] | 8379 | while grep . conftest.undefs >/dev/null
|
---|
[687] | 8380 | do
|
---|
[8756] | 8381 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8382 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8383 | # Speed up: don't consider the non `#undef'
|
---|
| 8384 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
| 8385 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8386 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8387 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8388 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
[687] | 8389 | echo 'CEOF
|
---|
[8756] | 8390 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8391 | rm -f $tmp/in
|
---|
| 8392 | mv $tmp/out $tmp/in
|
---|
| 8393 | ' >>$CONFIG_STATUS
|
---|
| 8394 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8395 | rm -f conftest.undefs
|
---|
| 8396 | mv conftest.tail conftest.undefs
|
---|
[687] | 8397 | done
|
---|
[8756] | 8398 | rm -f conftest.undefs
|
---|
[687] | 8399 |
|
---|
[8756] | 8400 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8401 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8402 | # use $as_me), people would be surprised to read:
|
---|
| 8403 | # /* config.h. Generated by config.status. */
|
---|
| 8404 | if test x"$ac_file" = x-; then
|
---|
| 8405 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
[687] | 8406 | else
|
---|
[8756] | 8407 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
| 8408 | fi
|
---|
| 8409 | cat $tmp/in >>$tmp/config.h
|
---|
| 8410 | rm -f $tmp/in
|
---|
| 8411 | if test x"$ac_file" != x-; then
|
---|
| 8412 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 8413 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 8414 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8415 | else
|
---|
| 8416 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8417 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8418 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8419 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8420 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8421 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8422 | echo X"$ac_file" |
|
---|
| 8423 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8424 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8425 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8426 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8427 | s/.*/./; q'`
|
---|
| 8428 | { if $as_mkdir_p; then
|
---|
| 8429 | mkdir -p "$ac_dir"
|
---|
| 8430 | else
|
---|
| 8431 | as_dir="$ac_dir"
|
---|
| 8432 | as_dirs=
|
---|
| 8433 | while test ! -d "$as_dir"; do
|
---|
| 8434 | as_dirs="$as_dir $as_dirs"
|
---|
| 8435 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8436 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8437 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8438 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8439 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8440 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8441 | echo X"$as_dir" |
|
---|
| 8442 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8443 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8444 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8445 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8446 | s/.*/./; q'`
|
---|
| 8447 | done
|
---|
| 8448 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8449 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8450 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8451 | { (exit 1); exit 1; }; }; }
|
---|
| 8452 |
|
---|
| 8453 | rm -f $ac_file
|
---|
| 8454 | mv $tmp/config.h $ac_file
|
---|
[687] | 8455 | fi
|
---|
[8756] | 8456 | else
|
---|
| 8457 | cat $tmp/config.h
|
---|
| 8458 | rm -f $tmp/config.h
|
---|
[687] | 8459 | fi
|
---|
[8756] | 8460 | done
|
---|
| 8461 | _ACEOF
|
---|
[8200] | 8462 |
|
---|
[8756] | 8463 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[687] | 8464 |
|
---|
[8756] | 8465 | { (exit 0); exit 0; }
|
---|
| 8466 | _ACEOF
|
---|
[562] | 8467 | chmod +x $CONFIG_STATUS
|
---|
[8756] | 8468 | ac_clean_files=$ac_clean_files_save
|
---|
[562] | 8469 |
|
---|
[8756] | 8470 |
|
---|
| 8471 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8472 | # config.status does its own redirection, appending to config.log.
|
---|
| 8473 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8474 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8475 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8476 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8477 | # appended to by config.status. When coming back to configure, we
|
---|
| 8478 | # need to make the FD available again.
|
---|
| 8479 | if test "$no_create" != yes; then
|
---|
| 8480 | ac_cs_success=:
|
---|
| 8481 | ac_config_status_args=
|
---|
| 8482 | test "$silent" = yes &&
|
---|
| 8483 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 8484 | exec 5>/dev/null
|
---|
| 8485 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 8486 | exec 5>>config.log
|
---|
| 8487 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8488 | # would make configure fail if this is the last instruction.
|
---|
| 8489 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 8490 | fi
|
---|
| 8491 |
|
---|
| 8492 | #
|
---|
| 8493 | # CONFIG_SUBDIRS section.
|
---|
| 8494 | #
|
---|
[1675] | 8495 | if test "$no_recursion" != yes; then
|
---|
[562] | 8496 |
|
---|
[1675] | 8497 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
| 8498 | ac_sub_configure_args=
|
---|
| 8499 | ac_prev=
|
---|
| 8500 | for ac_arg in $ac_configure_args; do
|
---|
| 8501 | if test -n "$ac_prev"; then
|
---|
| 8502 | ac_prev=
|
---|
| 8503 | continue
|
---|
| 8504 | fi
|
---|
[8756] | 8505 | case $ac_arg in
|
---|
[1675] | 8506 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 8507 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 8508 | ac_prev=cache_file ;;
|
---|
| 8509 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
[8756] | 8510 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 8511 | | --c=*)
|
---|
[1675] | 8512 | ;;
|
---|
[8756] | 8513 | --config-cache | -C)
|
---|
| 8514 | ;;
|
---|
[1675] | 8515 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 8516 | ac_prev=srcdir ;;
|
---|
| 8517 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 8518 | ;;
|
---|
[8756] | 8519 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 8520 | ac_prev=prefix ;;
|
---|
| 8521 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 8522 | ;;
|
---|
[1675] | 8523 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
| 8524 | esac
|
---|
| 8525 | done
|
---|
[562] | 8526 |
|
---|
[8756] | 8527 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 8528 | # in subdir configurations.
|
---|
| 8529 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
[1570] | 8530 |
|
---|
[8756] | 8531 | ac_popdir=`pwd`
|
---|
| 8532 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 8533 |
|
---|
[1675] | 8534 | # Do not complain, so a configure script can configure whichever
|
---|
| 8535 | # parts of a large source tree are present.
|
---|
[8756] | 8536 | test -d $srcdir/$ac_dir || continue
|
---|
[1675] | 8537 |
|
---|
[8756] | 8538 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 8539 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 8540 | { if $as_mkdir_p; then
|
---|
| 8541 | mkdir -p "$ac_dir"
|
---|
| 8542 | else
|
---|
| 8543 | as_dir="$ac_dir"
|
---|
| 8544 | as_dirs=
|
---|
| 8545 | while test ! -d "$as_dir"; do
|
---|
| 8546 | as_dirs="$as_dir $as_dirs"
|
---|
| 8547 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8548 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8549 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8550 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8551 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8552 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8553 | echo X"$as_dir" |
|
---|
| 8554 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8555 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8556 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8557 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8558 | s/.*/./; q'`
|
---|
| 8559 | done
|
---|
| 8560 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8561 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8562 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8563 | { (exit 1); exit 1; }; }; }
|
---|
[8200] | 8564 |
|
---|
[8756] | 8565 | ac_builddir=.
|
---|
[1675] | 8566 |
|
---|
[8756] | 8567 | if test "$ac_dir" != .; then
|
---|
| 8568 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8569 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8570 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8571 | else
|
---|
| 8572 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8573 | fi
|
---|
[1675] | 8574 |
|
---|
[8756] | 8575 | case $srcdir in
|
---|
| 8576 | .) # No --srcdir option. We are building in place.
|
---|
| 8577 | ac_srcdir=.
|
---|
| 8578 | if test -z "$ac_top_builddir"; then
|
---|
| 8579 | ac_top_srcdir=.
|
---|
| 8580 | else
|
---|
| 8581 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8582 | fi ;;
|
---|
| 8583 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8584 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8585 | ac_top_srcdir=$srcdir ;;
|
---|
| 8586 | *) # Relative path.
|
---|
| 8587 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8588 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8589 | esac
|
---|
[1675] | 8590 |
|
---|
[8756] | 8591 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8592 | # the directories may not exist.
|
---|
| 8593 | case `pwd` in
|
---|
| 8594 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8595 | *)
|
---|
| 8596 | case "$ac_dir" in
|
---|
| 8597 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8598 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8599 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8600 | esac;;
|
---|
| 8601 | esac
|
---|
| 8602 | case $ac_abs_builddir in
|
---|
| 8603 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8604 | *)
|
---|
| 8605 | case ${ac_top_builddir}. in
|
---|
| 8606 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8607 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8608 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8609 | esac;;
|
---|
| 8610 | esac
|
---|
| 8611 | case $ac_abs_builddir in
|
---|
| 8612 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8613 | *)
|
---|
| 8614 | case $ac_srcdir in
|
---|
| 8615 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8616 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8617 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8618 | esac;;
|
---|
| 8619 | esac
|
---|
| 8620 | case $ac_abs_builddir in
|
---|
| 8621 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8622 | *)
|
---|
| 8623 | case $ac_top_srcdir in
|
---|
| 8624 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8625 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8626 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8627 | esac;;
|
---|
| 8628 | esac
|
---|
[1675] | 8629 |
|
---|
[8756] | 8630 |
|
---|
| 8631 | cd $ac_dir
|
---|
| 8632 |
|
---|
[1675] | 8633 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[8756] | 8634 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 8635 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 8636 | elif test -f $ac_srcdir/configure; then
|
---|
| 8637 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 8638 | elif test -f $ac_srcdir/configure.in; then
|
---|
[1675] | 8639 | ac_sub_configure=$ac_configure
|
---|
| 8640 | else
|
---|
[8756] | 8641 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 8642 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
[1675] | 8643 | ac_sub_configure=
|
---|
| 8644 | fi
|
---|
| 8645 |
|
---|
| 8646 | # The recursion is here.
|
---|
| 8647 | if test -n "$ac_sub_configure"; then
|
---|
| 8648 | # Make the cache file name correct relative to the subdirectory.
|
---|
[8756] | 8649 | case $cache_file in
|
---|
| 8650 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[1675] | 8651 | *) # Relative path.
|
---|
[8756] | 8652 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
[1675] | 8653 | esac
|
---|
| 8654 |
|
---|
[8756] | 8655 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 8656 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[1675] | 8657 | # The eval makes quoting arguments work.
|
---|
[8756] | 8658 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
| 8659 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
| 8660 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 8661 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 8662 | { (exit 1); exit 1; }; }
|
---|
[1675] | 8663 | fi
|
---|
| 8664 |
|
---|
| 8665 | cd $ac_popdir
|
---|
| 8666 | done
|
---|
| 8667 | fi
|
---|
| 8668 |
|
---|
[8200] | 8669 |
|
---|
| 8670 |
|
---|