configure revision 13494a4d4bead37f22eb6c4779c73310109f7e4a
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#! /bin/sh
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister# From configure.in Revision: 1.27
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Guess values for system-dependent variables and create Makefiles.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister# Generated automatically using autoconf version 2.13
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This configure script is free software; the Free Software Foundation
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# gives unlimited permission to copy, distribute and modify it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Defaults:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_help=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_default_prefix=/usr/local
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Any additions from configure.in:
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonac_help="$ac_help
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson --with-mit-pthreads use the mit-pthreads thread library"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonac_help="$ac_help
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson --with-ptl2 use the ptl2 thread library"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Initialize some variables set by options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# The variables have the same names as the options, with
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# dashes changed to underlines.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleybuild=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycache_file=./config.cache
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyexec_prefix=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyno_create=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleynonopt=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyno_recursion=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyprefix=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyprogram_prefix=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyprogram_suffix=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyprogram_transform_name=s,x,x,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysilent=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysite=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysrcdir=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytarget=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyverbose=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyx_includes=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyx_libraries=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleybindir='${exec_prefix}/bin'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysbindir='${exec_prefix}/sbin'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleylibexecdir='${exec_prefix}/libexec'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydatadir='${prefix}/share'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysysconfdir='${prefix}/etc'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysharedstatedir='${prefix}/com'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleylocalstatedir='${prefix}/var'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleylibdir='${exec_prefix}/lib'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyincludedir='${prefix}/include'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyoldincludedir='/usr/include'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyinfodir='${prefix}/info'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleymandir='${prefix}/man'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Initialize some other variables.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysubdirs=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyMFLAGS= MAKEFLAGS=
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerSHELL=${CONFIG_SHELL-/bin/sh}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Maximum number of lines to put in a shell here document.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_max_here_lines=12
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_prev=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_option
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # If the previous option needs an argument, assign it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$ac_prev"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "$ac_prev=\$ac_option"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley continue
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_optarg= ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Accept the important Cygnus configure options, so we can diagnose typos.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -bindir | --bindir | --bindi | --bind | --bin | --bi)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=bindir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bindir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -build | --build | --buil | --bui | --bu)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=build ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley build="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file | --cache-file | --cache-fil | --cache-fi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=cache_file ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cache_file="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=datadir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --da=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley datadir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -disable-* | --disable-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_feature| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "enable_${ac_feature}=no" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -enable-* | --enable-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_feature| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *=*) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_optarg=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "enable_${ac_feature}='$ac_optarg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec | --exe | --ex)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=exec_prefix ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec=* | --exe=* | --ex=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec_prefix="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -gas | --gas | --ga | --g)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --with-gas.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley with_gas=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -help | --help | --hel | --he)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Omit some internal or obsolete options to make the list less imposing.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # This message is too long to be a string in the A/UX 3.1 sh.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat << EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyUsage: configure [options] [host]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyOptions: [defaults in brackets after descriptions]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyConfiguration:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --cache-file=FILE cache test results in FILE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --help print this message
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --no-create do not create output files
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --quiet, --silent do not print \`checking...' messages
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --version print the version of autoconf that created configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyDirectory and file names:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --prefix=PREFIX install architecture-independent files in PREFIX
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [$ac_default_prefix]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [same as prefix]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --bindir=DIR user executables in DIR [EPREFIX/bin]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --datadir=DIR read-only architecture-independent data in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [PREFIX/share]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sharedstatedir=DIR modifiable architecture-independent data in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [PREFIX/com]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --libdir=DIR object code libraries in DIR [EPREFIX/lib]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --includedir=DIR C header files in DIR [PREFIX/include]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --infodir=DIR info documentation in DIR [PREFIX/info]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --mandir=DIR man documentation in DIR [PREFIX/man]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --srcdir=DIR find the sources in DIR [configure dir or ..]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-prefix=PREFIX prepend PREFIX to installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-suffix=SUFFIX append SUFFIX to installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-transform-name=PROGRAM
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley run sed PROGRAM on installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat << EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyHost type:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --build=BUILD configure for building on BUILD [BUILD=HOST]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --host=HOST configure for HOST [guessed]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --target=TARGET configure for TARGET [TARGET=HOST]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyFeatures and packages:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x-includes=DIR X include files are in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x-libraries=DIR X library files are in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$ac_help"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "--enable and --with options recognized:$ac_help"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -host | --host | --hos | --ho)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=host ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -host=* | --host=* | --hos=* | --ho=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley host="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -includedir | --includedir | --includedi | --included | --include \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --includ | --inclu | --incl | --inc)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=includedir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --includ=* | --inclu=* | --incl=* | --inc=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley includedir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -infodir | --infodir | --infodi | --infod | --info | --inf)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=infodir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley infodir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libdir | --libdir | --libdi | --libd)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=libdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libdir=* | --libdir=* | --libdi=* | --libd=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley libdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --libexe | --libex | --libe)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=libexecdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --libexe=* | --libex=* | --libe=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley libexecdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -localstatedir | --localstatedir | --localstatedi | --localstated \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --localstate | --localstat | --localsta | --localst \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --locals | --local | --loca | --loc | --lo)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=localstatedir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --localstate=* | --localstat=* | --localsta=* | --localst=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley localstatedir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=mandir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley mandir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -nfp | --nfp | --nf)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --without-fp.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley with_fp=no ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-cr | --no-c)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley no_create=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley no_recursion=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldin | --oldi | --old | --ol | --o)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=oldincludedir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley oldincludedir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=prefix ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley prefix="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-prefix | --program-prefix | --program-prefi | --program-pref \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-pre | --program-pr | --program-p)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=program_prefix ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-prefix=* | --program-prefix=* | --program-prefi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley program_prefix="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-suffix | --program-suffix | --program-suffi | --program-suff \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-suf | --program-su | --program-s)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=program_suffix ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-suffix=* | --program-suffix=* | --program-suffi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley program_suffix="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-transform-name | --program-transform-name \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-nam | --program-transform-na \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-n | --program-transform- \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform | --program-transfor \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transfo | --program-transf \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-trans | --program-tran \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --progr-tra | --program-tr | --program-t)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=program_transform_name ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-transform-name=* | --program-transform-name=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-nam=* | --program-transform-na=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-n=* | --program-transform-=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform=* | --program-transfor=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transfo=* | --program-transf=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-trans=* | --program-tran=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --progr-tra=* | --program-tr=* | --program-t=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley program_transform_name="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -q | -quiet | --quiet | --quie | --qui | --qu | --q \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | -silent | --silent | --silen | --sile | --sil)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley silent=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=sbindir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sbi=* | --sb=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sbindir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir | --sharedstatedir | --sharedstatedi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst | --shareds | --shared | --share | --shar \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sha | --sh)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=sharedstatedir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sha=* | --sh=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sharedstatedir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -site | --site | --sit)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=site ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -site=* | --site=* | --sit=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley site="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=srcdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --syscon | --sysco | --sysc | --sys | --sy)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=sysconfdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sysconfdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -target | --target | --targe | --targ | --tar | --ta | --t)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=target ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley target="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -v | -verbose | --verbose | --verbos | --verbo | --verb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley verbose=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -version | --version | --versio | --versi | --vers)
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "configure generated by autoconf version 2.13"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -with-* | --with-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_package| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *=*) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_optarg=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}='$ac_optarg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -without-* | --without-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*without-//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_package| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}=no" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --with-x.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley with_x=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-incl | --x-inc | --x-in | --x-i)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=x_includes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley x_includes="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries | --x-libraries | --x-librarie | --x-librari \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=x_libraries ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley x_libraries="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: warning: $ac_option: invalid host type" 1>&2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "x$nonopt" != xNONE; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley nonopt="$ac_option"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$ac_prev"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# File descriptor usage:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 0 standard input
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 1 file creation
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 2 errors and warnings
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 3 some systems may open it to /dev/tty
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 4 used on the Kubota Titan
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 6 checking for... messages and results
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 5 compiler messages saved in config.log
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "$silent" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec 6>/dev/null
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec 6>&1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyexec 5>./config.log
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "\
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyThis file contains any messages produced by compilers while
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrunning configure, to aid debugging if configure makes a mistake.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley" 1>&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Strip out --no-create and --no-recursion so they do not pile up.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Also quote any args containing shell metacharacters.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_configure_args=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_arg
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_arg" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-cr | --no-c) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_configure_args="$ac_configure_args '$ac_arg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_configure_args="$ac_configure_args $ac_arg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# NLS nuisances.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Only set these to C if already set. These must not be set unconditionally
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# because not all systems understand e.g. LANG=C (notably SCO).
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Non-C LC_CTYPE values break the ctype check.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LANG+set}" = set; then LANG=C; export LANG; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# confdefs.h avoids OS command line length limits that DEFS can exceed.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -rf conftest* confdefs.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AIX cpp loses on an empty file, so make sure it contains at least a newline.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho > confdefs.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# A filename unique to this package, relative to the directory that
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# configure is in, which we can look for to find out if srcdir is correct.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_unique_file=lib/dns/name.c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Find the source files, if location was not specified.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$srcdir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_srcdir_defaulted=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Try the directory containing this script, then its parent.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prog=$0
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir=$ac_confdir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test ! -r $srcdir/$ac_unique_file; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir=..
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_srcdir_defaulted=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test ! -r $srcdir/$ac_unique_file; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$ac_srcdir_defaulted" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Prefer explicitly selected file to automatically selected ones.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CONFIG_SITE"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "x$prefix" != xNONE; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_site_file in $CONFIG_SITE; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -r "$ac_site_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading site script $ac_site_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley . "$ac_site_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -r "$cache_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley . $cache_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "creating cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley > $cache_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_ext=c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_cpp='$CPP $CPPFLAGS'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycross_compiling=$ac_cv_prog_cc_cross
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_exeext=
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_objext=o
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_n= ac_c='
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley' ac_t=' '
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_n=-n ac_c= ac_t=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_n= ac_c='\c' ac_t=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_aux_dir=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/install-sh; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_aux_dir=$ac_dir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_install_sh="$ac_aux_dir/install-sh -c"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley elif test -f $ac_dir/install.sh; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_aux_dir=$ac_dir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_install_sh="$ac_aux_dir/install.sh -c"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_aux_dir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_config_guess=$ac_aux_dir/config.guess
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_config_sub=$ac_aux_dir/config.sub
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Make sure we can run config.sub.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking host system type""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:561: checking host system type" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_alias=$host
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycase "$host_alias" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyNONE)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case $nonopt in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley NONE)
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) host_alias=$nonopt ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$host" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:583: checking whether ${MAKE-make} sets \${MAKE}" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff cat > conftestmake <<\EOF
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffall:
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff @echo 'ac_maketemp="${MAKE}"'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffEOF
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -n "$ac_maketemp"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff eval ac_cv_prog_make_${ac_make}_set=yes
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff eval ac_cv_prog_make_${ac_make}_set=no
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffrm -f conftestmake
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "$ac_t""yes" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff SET_MAKE=
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "$ac_t""no" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff SET_MAKE="MAKE=${MAKE-make}"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Extract the first word of "ranlib", so it can be a program name with args.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffset dummy ranlib; ac_word=$2
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:612: checking for $ac_word" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -n "$RANLIB"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_dummy="$PATH"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister for ac_dir in $ac_dummy; do
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff test -z "$ac_dir" && ac_dir=.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -f $ac_dir/$ac_word; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_cv_prog_RANLIB="ranlib"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff break
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff IFS="$ac_save_ifs"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffRANLIB="$ac_cv_prog_RANLIB"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -n "$RANLIB"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "$ac_t""$RANLIB" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "$ac_t""no" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Find a good install program. We prefer a C program (faster),
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# so one script is as good as another. But avoid the broken or
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# incompatible versions:
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# SysV /etc/install, /usr/sbin/install
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# SunOS /usr/etc/install
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# IRIX /sbin/install
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# AIX /bin/install
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# AFS /usr/afsws/bin/install, which mishandles nonexistent args
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# ./install, which can be erroneously created by make from ./install.sh.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:651: checking for a BSD compatible install" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -z "$INSTALL"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff for ac_dir in $PATH; do
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # Account for people who put trailing slashes in PATH elements.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff case "$ac_dir/" in
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff *)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # OSF1 and SCO ODT 3.0 have their own names for install.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister # Don't use installbsd from OSF since it installs stuff as root
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister # by default.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister for ac_prog in ginstall scoinst install; do
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -f $ac_dir/$ac_prog; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test $ac_prog = install &&
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # AIX install. It has an incompatible calling convention.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff :
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff else
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_cv_path_install="$ac_dir/$ac_prog -c"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff break 2
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff esac
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff IFS="$ac_save_IFS"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test "${ac_cv_path_install+set}" = set; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff INSTALL="$ac_cv_path_install"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff else
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # As a last resort, use the slow shell script. We don't cache a
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # path for INSTALL within a source directory, because that will
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # break other packages using the cache if that directory is
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # removed, or if the path is relative.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff INSTALL="$ac_install_sh"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "$ac_t""$INSTALL" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# It thinks the first close brace ends the variable substitution.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafftest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristertest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafftest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffSTD_CINCLUDES=""
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffSTD_CDEFINES=""
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffSTD_CWARNINGS=""
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graffif test "X$CC" = "X" ; then
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff case "$host" in
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff *-dec-osf*)
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff CC="cc"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ;;
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff *-sun-solaris*)
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff CC="cc"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ;;
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff *-hp-hpux*)
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff CC="cc"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ;;
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff mips-sgi-irix*)
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff CC="cc"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ;;
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff esac
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Grafffi
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssoncase "$host" in
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson *-netbsd*)
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson CC="gcc"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson echo $ac_n "checking which thread library to use""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:733: checking which thread library to use" >&5
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson # Check whether --with-mit-pthreads or --without-mit-pthreads was given.
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonif test "${with_mit_pthreads+set}" = set; then
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson withval="$with_mit_pthreads"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson use_mit_pthreads="$withval"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonelse
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson use_mit_pthreads="no"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonfi
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson # Check whether --with-ptl2 or --without-ptl2 was given.
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonif test "${with_ptl2+set}" = set; then
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson withval="$with_ptl2"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson use_ptl2="$withval"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonelse
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson use_ptl2="no"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonfi
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson case "$use_mit_pthreads+$use_ptl2" in
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson no+no)
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson if test -d /usr/pkg/pthreads
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson then
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson use_mit_pthreads="yes"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson fi
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson if test -d /usr/pkg/PTL
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson then
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson use_ptl2="yes"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson fi
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson ;;
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson esac
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson case "$use_mit_pthreads+$use_ptl2" in
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson yes+no)
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson echo "$ac_t""mit-pthreads" 1>&6
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson pkg="/usr/pkg/pthreads"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson lib1="-L$pkg/lib -Wl,-R$pkg/lib"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson lib2="-lpthread -lm -lgcc -lpthread"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson LIBS="$lib1 $lib2 $LIBS"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson STD_CINCLUDES="-I$pkg/include"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson ;;
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson no+yes)
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson echo "$ac_t""PTL2" 1>&6
2c7e99b941c3f1ffa29f9034c710f358c09f13c9Michael Graff CC=ptlgcc
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson ;;
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson *)
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson { echo "configure: error: no thread library.
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas GustafssonPlease choose a thread library using one of
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson configure --with-mit-pthreads
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson configure --with-ptl2
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson" 1>&2; exit 1; }
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson ;;
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson esac
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson ;;
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonesac
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Extract the first word of "gcc", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyset dummy gcc; ac_word=$2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:796: checking for $ac_word" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_dummy="$PATH"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister for ac_dir in $ac_dummy; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$ac_dir" && ac_dir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/$ac_word; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="gcc"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_ifs"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyCC="$ac_cv_prog_CC"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""$CC" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Extract the first word of "cc", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyset dummy cc; ac_word=$2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:826: checking for $ac_word" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prog_rejected=no
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_dummy="$PATH"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister for ac_dir in $ac_dummy; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$ac_dir" && ac_dir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/$ac_word; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prog_rejected=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley continue
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="cc"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_ifs"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_prog_rejected = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # We found a bogon in the path, so make sure we never use it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley set dummy $ac_cv_prog_CC
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley shift
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test $# -gt 0; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # We chose a different compiler from the bogus one.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # However, it has the same basename, so the bogon will be chosen
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # first if we set CC to just the basename; use the full file name.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley shift
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley set dummy "$ac_dir/$ac_word" "$@"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley shift
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="$@"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyCC="$ac_cv_prog_CC"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""$CC" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister if test -z "$CC"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister case "`uname -s`" in
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister *win32* | *WIN32*)
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister # Extract the first word of "cl", so it can be a program name with args.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerset dummy cl; ac_word=$2
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:877: checking for $ac_word" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo $ac_n "(cached) $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister if test -n "$CC"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_cv_prog_CC="$CC" # Let the user override the test.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_dummy="$PATH"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister for ac_dir in $ac_dummy; do
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister test -z "$ac_dir" && ac_dir=.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister if test -f $ac_dir/$ac_word; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_cv_prog_CC="cl"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister break
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister fi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister done
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister IFS="$ac_save_ifs"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerCC="$ac_cv_prog_CC"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif test -n "$CC"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_t""$CC" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_t""no" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ;;
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister esac
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:909: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_ext=c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_cpp='$CPP $CPPFLAGS'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycross_compiling=$ac_cv_prog_cc_cross
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristercat > conftest.$ac_ext << EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 920 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleymain(){return(0);}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_works=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # If we can't run a trivial program, we are probably using a cross compiler.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if (./conftest; exit) 2>/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_cross=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_cross=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_works=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -fr conftest*
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_ext=c
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_cpp='$CPP $CPPFLAGS'
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristercross_compiling=$ac_cv_prog_cc_cross
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_prog_cc_works = no; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:951: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycross_compiling=$ac_cv_prog_cc_cross
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:956: checking whether we are using GNU C" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.c <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#ifdef __GNUC__
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley yes;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#endif
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_gcc=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_gcc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_prog_gcc" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_prog_gcc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley GCC=yes
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister GCC=
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_test_CFLAGS="${CFLAGS+set}"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_save_CFLAGS="$CFLAGS"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerCFLAGS=
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:984: checking whether ${CC-cc} accepts -g" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo 'void f(){}' > conftest.c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_g=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_g=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif test "$ac_test_CFLAGS" = set; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister CFLAGS="$ac_save_CFLAGS"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelif test $ac_cv_prog_cc_g = yes; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister if test "$GCC" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CFLAGS="-g -O2"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister CFLAGS="-g"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister fi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister if test "$GCC" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CFLAGS="-O2"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister else
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister CFLAGS=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfor ac_prog in 'bison -y' byacc
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerdo
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister# Extract the first word of "$ac_prog", so it can be a program name with args.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerset dummy $ac_prog; ac_word=$2
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1020: checking for $ac_word" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister if test -n "$YACC"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_cv_prog_YACC="$YACC" # Let the user override the test.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_dummy="$PATH"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister for ac_dir in $ac_dummy; do
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister test -z "$ac_dir" && ac_dir=.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister if test -f $ac_dir/$ac_word; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_cv_prog_YACC="$ac_prog"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister break
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister fi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister done
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister IFS="$ac_save_ifs"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerYACC="$ac_cv_prog_YACC"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif test -n "$YACC"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_t""$YACC" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_t""no" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristertest -n "$YACC" && break
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerdone
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristertest -n "$YACC" || YACC="yacc"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1052: checking how to run the C preprocessor" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# On Suns, sometimes $CPP names a directory.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CPP" && test -d "$CPP"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CPP"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # This must be in double quotes, not single quotes, because CPP may get
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # substituted into the Makefile and "${CC-cc}" will confuse make.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="${CC-cc} -E"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # On the NeXT, cc -E runs the code through the compiler's parser,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # not just through cpp.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1067 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleySyntax Error
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister{ (eval echo configure:1073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="${CC-cc} -E -traditional-cpp"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1084 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleySyntax Error
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister{ (eval echo configure:1090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif test -z "$ac_err"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister :
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_err" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "configure: failed program was:" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister cat conftest.$ac_ext >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister rm -rf conftest*
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister CPP="${CC-cc} -nologo -E"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1101 "configure"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#include "confdefs.h"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#include <assert.h>
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerSyntax Error
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister{ (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP=/lib/cpp
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerrm -f conftest*
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CPP="$CPP"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="$ac_cv_prog_CPP"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CPP="$CPP"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$CPP" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1132: checking for ANSI C header files" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1137 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdarg.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <string.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <float.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister{ (eval echo configure:1145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1162 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <string.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley egrep "memchr" >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1180 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley egrep "free" >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "$cross_compiling" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1201 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <ctype.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main () { int i; for (i = 0; i < 256; i++)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyexit (0); }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleythen
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -fr conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -fr conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_header_stdc" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define STDC_HEADERS 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_hdr in fcntl.h sys/time.h unistd.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1239: checking for $ac_hdr" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1244 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <$ac_hdr>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister{ (eval echo configure:1249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_header_$ac_safe=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_header_$ac_safe=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_hdr 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for working const""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1277: checking for working const" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1282 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Ultrix mips cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytypedef int charset[2]; const charset x;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* SunOS 4.1.1 cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar const *const *ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar **p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* NEC SVR4.0.2 mips cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystruct point {int x, y;};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystatic struct point const zero = {0,0};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* AIX XL C 1.02.0.0 rejects this.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley It does not let you subtract one const X* pointer from another in an arm
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley of an if-expression whose if-part is not a constant expression */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyconst char *g = "string";
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyccp = &g + (g ? g-g : 0);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* HPUX 7.0 cc rejects these. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley++ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyp = (char**) ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyccp = (char const *const *) p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* SCO 3.2v4 cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley char *t;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley char const *s = 0 ? (char *) 0 : (char const *) 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *t++ = 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley int x[] = {25, 17};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley const int *foo = &x[0];
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ++foo;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley typedef const int *iptr;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley iptr p = 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ++p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* AIX XL C 1.02.0.0 rejects this saying
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley struct s { int j; const int *ap[3]; };
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley struct s *b; b->j = 5;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley const int foo = 10;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_const=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_const=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_c_const" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_c_const = no; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define const
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for inline""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1352: checking for inline" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_inline=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_kw in inline __inline__ __inline; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1359 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley} $ac_kw foo() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_inline=$ac_kw; break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_c_inline" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycase "$ac_cv_c_inline" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley inline | yes) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley no) cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define inline
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) cat >> confdefs.h <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define inline $ac_cv_c_inline
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for size_t""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1392: checking for size_t" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1397 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if STDC_HEADERS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stddef.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#endif
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_type_size_t=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_type_size_t=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_type_size_t" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_type_size_t = no; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define size_t unsigned
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1425: checking whether time.h and sys/time.h may both be included" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1430 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/time.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <time.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystruct tm *tp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_time=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_time=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_header_time" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_time = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define TIME_WITH_SYS_TIME 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1461: checking for pthread_create in -lpthread" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_save_LIBS="$LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="-lpthread $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1469 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar pthread_create();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleypthread_create()
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="$ac_save_LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_lib 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley LIBS="-lpthread $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyecho $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1506: checking for __pthread_create in -lpthread" >&5
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyelse
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley ac_save_LIBS="$LIBS"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob HalleyLIBS="-lpthread $LIBS"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleycat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1514 "configure"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#include "confdefs.h"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley/* We use char because int might match the return type of a gcc2
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley builtin and then its argument prototype would still apply. */
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleychar __pthread_create();
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyint main() {
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley__pthread_create()
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley; return 0; }
a2171e092382f8f8a72b1f73436ddf93918c7719Bob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley rm -rf conftest*
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyelse
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley echo "configure: failed program was:" >&5
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley cat conftest.$ac_ext >&5
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley rm -rf conftest*
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyrm -f conftest*
a2171e092382f8f8a72b1f73436ddf93918c7719Bob HalleyLIBS="$ac_save_LIBS"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyfi
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley echo "$ac_t""yes" 1>&6
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley cat >> confdefs.h <<EOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#define $ac_tr_lib 1
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob HalleyEOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley LIBS="-lpthread $LIBS"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyelse
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley echo "$ac_t""no" 1>&6
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyfi
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1553: checking for __pthread_create_system in -lpthread" >&5
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyelse
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ac_save_LIBS="$LIBS"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob HalleyLIBS="-lpthread $LIBS"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleycat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1561 "configure"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#include "confdefs.h"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley/* We use char because int might match the return type of a gcc2
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley builtin and then its argument prototype would still apply. */
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleychar __pthread_create_system();
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyint main() {
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley__pthread_create_system()
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley; return 0; }
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley rm -rf conftest*
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyelse
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley echo "configure: failed program was:" >&5
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley cat conftest.$ac_ext >&5
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley rm -rf conftest*
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyfi
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyrm -f conftest*
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob HalleyLIBS="$ac_save_LIBS"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley echo "$ac_t""yes" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley cat >> confdefs.h <<EOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#define $ac_tr_lib 1
a2171e092382f8f8a72b1f73436ddf93918c7719Bob HalleyEOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley LIBS="-lpthread $LIBS"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyelse
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley echo "$ac_t""no" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
491b48ec3f3ef014312688776ddbd4eab8a2c10cMichael Graff
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif test "$ac_cv_lib_pthread" != "yes"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1606: checking for pthread_create in -lc_r" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo $ac_n "(cached) $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_save_LIBS="$LIBS"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerLIBS="-lc_r $LIBS"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristercat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1614 "configure"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#include "confdefs.h"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister/* Override any gcc2 internal prototype to avoid an error. */
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister/* We use char because int might match the return type of a gcc2
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister builtin and then its argument prototype would still apply. */
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerchar pthread_create();
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerint main() {
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerpthread_create()
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister; return 0; }
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister rm -rf conftest*
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister eval "ac_cv_lib_$ac_lib_var=yes"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "configure: failed program was:" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister cat conftest.$ac_ext >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister rm -rf conftest*
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister eval "ac_cv_lib_$ac_lib_var=no"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerrm -f conftest*
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerLIBS="$ac_save_LIBS"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_t""yes" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister cat >> confdefs.h <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#define $ac_tr_lib 1
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister LIBS="-lc_r $LIBS"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_t""no" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1656: checking for sigwait in -lpthread" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_save_LIBS="$LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLIBS="-lpthread $LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleycat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1664 "configure"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* We use char because int might match the return type of a gcc2
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley builtin and then its argument prototype would still apply. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleychar sigwait();
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyint main() {
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleysigwait()
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley; return 0; }
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley rm -rf conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "configure: failed program was:" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat conftest.$ac_ext >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley rm -rf conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyrm -f conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLIBS="$ac_save_LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""yes" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat >> confdefs.h <<\EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define HAVE_SIGWAIT 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""no" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1697: checking for _Psigwait in -lpthread" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_save_LIBS="$LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLIBS="-lpthread $LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleycat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1705 "configure"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* We use char because int might match the return type of a gcc2
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley builtin and then its argument prototype would still apply. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleychar _Psigwait();
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyint main() {
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley_Psigwait()
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley; return 0; }
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley rm -rf conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "configure: failed program was:" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat conftest.$ac_ext >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley rm -rf conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyrm -f conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLIBS="$ac_save_LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""yes" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat >> confdefs.h <<\EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define HAVE_SIGWAIT 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""no" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleycase "$host" in
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley *-sun-solaris*)
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat >> confdefs.h <<\EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define _POSIX_PTHREAD_SEMANTICS 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ;;
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyesac
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleycase "$host" in
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley *-bsdi3.1*)
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat >> confdefs.h <<\EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define NEED_PTHREAD_INIT 1
50453ad879d0d93854de5a3385776bd799e8f35cBob HalleyEOF
50453ad879d0d93854de5a3385776bd799e8f35cBob Halley
50453ad879d0d93854de5a3385776bd799e8f35cBob Halley ;;
50453ad879d0d93854de5a3385776bd799e8f35cBob Halley *-linux*)
50453ad879d0d93854de5a3385776bd799e8f35cBob Halley cat >> confdefs.h <<\EOF
50453ad879d0d93854de5a3385776bd799e8f35cBob Halley#define HAVE_LINUXTHREADS 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ;;
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyesac
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graffcase "$host" in
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff mips-sgi-irix*)
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff ;;
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff *)
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1773: checking for socket in -lsocket" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo $ac_n "(cached) $ac_c" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ac_save_LIBS="$LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyLIBS="-lsocket $LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleycat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1781 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* Override any gcc2 internal prototype to avoid an error. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* We use char because int might match the return type of a gcc2
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley builtin and then its argument prototype would still apply. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleychar socket();
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyint main() {
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleysocket()
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley; return 0; }
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "configure: failed program was:" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat conftest.$ac_ext >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=no"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyrm -f conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyLIBS="$ac_save_LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""yes" 1>&6
ffea097efa5b9d6a0d5e8ed43d98c29de3fa5b8dMichael Graff ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat >> confdefs.h <<EOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define $ac_tr_lib 1
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley LIBS="-lsocket $LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""no" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1820: checking for inet_ntoa in -lnsl" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo $ac_n "(cached) $ac_c" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ac_save_LIBS="$LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyLIBS="-lnsl $LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleycat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1828 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* Override any gcc2 internal prototype to avoid an error. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* We use char because int might match the return type of a gcc2
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley builtin and then its argument prototype would still apply. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleychar inet_ntoa();
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyint main() {
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyinet_ntoa()
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley; return 0; }
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "configure: failed program was:" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat conftest.$ac_ext >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=no"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyrm -f conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyLIBS="$ac_save_LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""yes" 1>&6
ffea097efa5b9d6a0d5e8ed43d98c29de3fa5b8dMichael Graff ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat >> confdefs.h <<EOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define $ac_tr_lib 1
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley LIBS="-lnsl $LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""no" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff ;;
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graffesac
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffecho $ac_n "checking for inet_ntop""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1870: checking for inet_ntop" >&5
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffif eval "test \"`echo '$''{'ac_cv_func_inet_ntop'+set}'`\" = set"; then
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffelse
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1875 "configure"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#include "confdefs.h"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff/* System header to define __stub macros and hopefully few prototypes,
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff which can conflict with char inet_ntop(); below. */
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#include <assert.h>
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff/* Override any gcc2 internal prototype to avoid an error. */
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff/* We use char because int might match the return type of a gcc2
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff builtin and then its argument prototype would still apply. */
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffchar inet_ntop();
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffint main() {
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff/* The GNU C library defines this for functions which it implements
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff to always fail with ENOSYS. Some functions are actually named
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff something starting with __ and the normal name is an alias. */
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffchoke me
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#else
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffinet_ntop();
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#endif
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff; return 0; }
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael GraffEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff rm -rf conftest*
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff eval "ac_cv_func_inet_ntop=yes"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffelse
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff echo "configure: failed program was:" >&5
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff cat conftest.$ac_ext >&5
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff rm -rf conftest*
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff eval "ac_cv_func_inet_ntop=no"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Grafffi
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffrm -f conftest*
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Grafffi
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffif eval "test \"`echo '$ac_cv_func_'inet_ntop`\" = yes"; then
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff echo "$ac_t""yes" 1>&6
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff :
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffelse
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff echo "$ac_t""no" 1>&6
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael GraffISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.o"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff cat >> confdefs.h <<\EOF
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#define NEED_INET_NTOP 1
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael GraffEOF
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
28ed3013196c373745dbde87b75a490148dab840Bob Halleyfi
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halleyecho $ac_n "checking for inet_pton""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1925: checking for inet_pton" >&5
28ed3013196c373745dbde87b75a490148dab840Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
28ed3013196c373745dbde87b75a490148dab840Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
28ed3013196c373745dbde87b75a490148dab840Bob Halleyelse
28ed3013196c373745dbde87b75a490148dab840Bob Halley cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1930 "configure"
28ed3013196c373745dbde87b75a490148dab840Bob Halley#include "confdefs.h"
28ed3013196c373745dbde87b75a490148dab840Bob Halley/* System header to define __stub macros and hopefully few prototypes,
28ed3013196c373745dbde87b75a490148dab840Bob Halley which can conflict with char inet_pton(); below. */
28ed3013196c373745dbde87b75a490148dab840Bob Halley#include <assert.h>
28ed3013196c373745dbde87b75a490148dab840Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
28ed3013196c373745dbde87b75a490148dab840Bob Halley/* We use char because int might match the return type of a gcc2
28ed3013196c373745dbde87b75a490148dab840Bob Halley builtin and then its argument prototype would still apply. */
28ed3013196c373745dbde87b75a490148dab840Bob Halleychar inet_pton();
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halleyint main() {
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halley/* The GNU C library defines this for functions which it implements
28ed3013196c373745dbde87b75a490148dab840Bob Halley to always fail with ENOSYS. Some functions are actually named
28ed3013196c373745dbde87b75a490148dab840Bob Halley something starting with __ and the normal name is an alias. */
28ed3013196c373745dbde87b75a490148dab840Bob Halley#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
28ed3013196c373745dbde87b75a490148dab840Bob Halleychoke me
28ed3013196c373745dbde87b75a490148dab840Bob Halley#else
28ed3013196c373745dbde87b75a490148dab840Bob Halleyinet_pton();
28ed3013196c373745dbde87b75a490148dab840Bob Halley#endif
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halley; return 0; }
28ed3013196c373745dbde87b75a490148dab840Bob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
28ed3013196c373745dbde87b75a490148dab840Bob Halley rm -rf conftest*
28ed3013196c373745dbde87b75a490148dab840Bob Halley eval "ac_cv_func_inet_pton=yes"
28ed3013196c373745dbde87b75a490148dab840Bob Halleyelse
28ed3013196c373745dbde87b75a490148dab840Bob Halley echo "configure: failed program was:" >&5
28ed3013196c373745dbde87b75a490148dab840Bob Halley cat conftest.$ac_ext >&5
28ed3013196c373745dbde87b75a490148dab840Bob Halley rm -rf conftest*
28ed3013196c373745dbde87b75a490148dab840Bob Halley eval "ac_cv_func_inet_pton=no"
28ed3013196c373745dbde87b75a490148dab840Bob Halleyfi
28ed3013196c373745dbde87b75a490148dab840Bob Halleyrm -f conftest*
28ed3013196c373745dbde87b75a490148dab840Bob Halleyfi
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halleyif eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
28ed3013196c373745dbde87b75a490148dab840Bob Halley echo "$ac_t""yes" 1>&6
28ed3013196c373745dbde87b75a490148dab840Bob Halley :
28ed3013196c373745dbde87b75a490148dab840Bob Halleyelse
28ed3013196c373745dbde87b75a490148dab840Bob Halley echo "$ac_t""no" 1>&6
28ed3013196c373745dbde87b75a490148dab840Bob HalleyISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.o"
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halley cat >> confdefs.h <<\EOF
28ed3013196c373745dbde87b75a490148dab840Bob Halley#define NEED_INET_PTON 1
28ed3013196c373745dbde87b75a490148dab840Bob HalleyEOF
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halley
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Grafffi
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffecho $ac_n "checking for inet_aton""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1980: checking for inet_aton" >&5
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffif eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffelse
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1985 "configure"
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#include "confdefs.h"
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff/* System header to define __stub macros and hopefully few prototypes,
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff which can conflict with char inet_aton(); below. */
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#include <assert.h>
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff/* Override any gcc2 internal prototype to avoid an error. */
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff/* We use char because int might match the return type of a gcc2
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff builtin and then its argument prototype would still apply. */
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffchar inet_aton();
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffint main() {
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff/* The GNU C library defines this for functions which it implements
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff to always fail with ENOSYS. Some functions are actually named
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff something starting with __ and the normal name is an alias. */
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffchoke me
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#else
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffinet_aton();
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#endif
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff; return 0; }
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael GraffEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:2008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff rm -rf conftest*
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff eval "ac_cv_func_inet_aton=yes"
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffelse
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff echo "configure: failed program was:" >&5
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff cat conftest.$ac_ext >&5
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff rm -rf conftest*
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff eval "ac_cv_func_inet_aton=no"
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Grafffi
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffrm -f conftest*
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Grafffi
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffif eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff echo "$ac_t""yes" 1>&6
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff :
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffelse
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff echo "$ac_t""no" 1>&6
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael GraffISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.o"
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff cat >> confdefs.h <<\EOF
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#define NEED_INET_ATON 1
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael GraffEOF
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Grafffi
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "X$GCC" = "Xyes"; then
491b48ec3f3ef014312688776ddbd4eab8a2c10cMichael Graff STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley case "$host" in
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley *-sun-solaris*)
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley LIBS="$LIBS -lthread"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ;;
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$host" in
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley *-dec-osf*)
4edd745f86393784c415250868332f3ef08847b5Bob Halley CC="$CC -pthread"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley *-sun-solaris*)
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley CC="$CC -mt"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ;;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley *-hp-hpux*)
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley CC="$CC"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
491b48ec3f3ef014312688776ddbd4eab8a2c10cMichael Graff
28ed3013196c373745dbde87b75a490148dab840Bob Halleycase "$host" in
28ed3013196c373745dbde87b75a490148dab840Bob Halley *-sun-solaris*)
28ed3013196c373745dbde87b75a490148dab840Bob Halley cat >> confdefs.h <<\EOF
28ed3013196c373745dbde87b75a490148dab840Bob Halley#define NEED_AF_INET6 1
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob HalleyEOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ;;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley *-hp-hpux*)
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley cat >> confdefs.h <<\EOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#define NEED_AF_INET6 1
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas GustafssonEOF
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson ;;
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson *-dec-osf*)
820ad97db480f58e1e4d0d3eeae73b2fb27b4f91Andreas Gustafsson ;;
28ed3013196c373745dbde87b75a490148dab840Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafssonecho $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:2075: checking for sa_len in struct sockaddr" >&5
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafssoncat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 2077 "configure"
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson#include "confdefs.h"
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson#include <sys/socket.h>
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas GustafssonEOF
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafssonif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson egrep "sa_len[^a-z0-9_]" >/dev/null 2>&1; then
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson rm -rf conftest*
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson echo "$ac_t""yes" 1>&6
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson cat >> confdefs.h <<\EOF
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson#define HAVE_SA_LEN 1
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas GustafssonEOF
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafssonelse
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson rm -rf conftest*
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson echo "$ac_t""no" 1>&6
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafssonfi
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafssonrm -f conftest*
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob HalleyBIND9_TOP_BUILDDIR=`pwd`
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob HalleyBIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyBIND9_VERSION=$srcdir/version
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap '' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > confcache <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This file is a shell script that caches the results of configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# tests run on this system so they can be shared between configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# scripts and configure runs. It is not useful on other systems.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# If it contains results you don't want to keep, you may remove or edit it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# By default, configure uses ./config.cache as the cache file,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# creating it if it does not exist already. You can give configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the --cache-file=FILE option to use a different cache file; that is
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# what configure does when it calls configure scripts in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# subdirectories, so they share the cache.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Giving --cache-file=/dev/null disables caching, for debugging configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# config.status only pays attention to the cache file if you give it the
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# --recheck option to rerun configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# The following way of writing the cache mishandles newlines in values,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# but we know of no workaround that is simple, portable, and efficient.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# So, don't put newlines in cache variables' values.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Ultrix sh set writes to stderr and can't be redirected directly,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# and sets the high bit in the cache file unless we assign to the vars.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley(set) 2>&1 |
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister case `(ac_space=' '; set | grep ac_space) 2>&1` in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *ac_space=\ *)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # `set' does not quote correctly, so add quotes (double-quote substitution
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # turns \\\\ into \\, and sed turns \\ into \).
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed -n \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e "s/'/'\\\\''/g" \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # `set' quotes correctly as required by POSIX, so do not add quotes.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac >> confcache
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif cmp -s $cache_file confcache; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -w $cache_file; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "updating cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat confcache > $cache_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "not updating unwritable cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f confcache
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest "x$prefix" = xNONE && prefix=$ac_default_prefix
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Let make expand exec_prefix.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Any assignment to VPATH causes Sun make to only execute
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the first set of double-colon rules, so remove it if not needed.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# If there is a colon in the path, we need to keep it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "x$srcdir" = x.; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyDEFS=-DHAVE_CONFIG_H
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Without the "./", some shells look in PATH for config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley: ${CONFIG_STATUS=./config.status}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho creating $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > $CONFIG_STATUS <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#! /bin/sh
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Generated automatically by configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Run this file to recreate the current configuration.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This directory was configured as follows,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# $0 $ac_configure_args
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Compiler output produced by configure, useful for debugging
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# configure, is in ./config.log if it exists.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_option
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "\$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$CONFIG_STATUS generated by autoconf version 2.13"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -help | --help | --hel | --he | --h)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "\$ac_cs_usage"; exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) echo "\$ac_cs_usage"; exit 1 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_given_srcdir=$srcdir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_given_INSTALL="$INSTALL"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleytrap 'rm -fr `echo "make/rules
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley Makefile
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley make/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/pthreads/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/pthreads/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/pthreads/include/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/dns/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/include/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/include/tests/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/Makefile
690a68b8112039e633e26f9216c0d463751e011aMichael Graff bin/named/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/names/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/master/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/rbt/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Protect against being on the right side of a sed subst in config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley$ac_vpsub
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley$extrasub
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristers%@SHELL@%$SHELL%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CFLAGS@%$CFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CPPFLAGS@%$CPPFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CXXFLAGS@%$CXXFLAGS%g
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristers%@FFLAGS@%$FFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@DEFS@%$DEFS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@LDFLAGS@%$LDFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@LIBS@%$LIBS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@exec_prefix@%$exec_prefix%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@prefix@%$prefix%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@program_transform_name@%$program_transform_name%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@bindir@%$bindir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@sbindir@%$sbindir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@libexecdir@%$libexecdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@datadir@%$datadir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@sysconfdir@%$sysconfdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@sharedstatedir@%$sharedstatedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@localstatedir@%$localstatedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@libdir@%$libdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@includedir@%$includedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@oldincludedir@%$oldincludedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@infodir@%$infodir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@mandir@%$mandir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host@%$host%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_alias@%$host_alias%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_cpu@%$host_cpu%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_vendor@%$host_vendor%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_os@%$host_os%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@SET_MAKE@%$SET_MAKE%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@RANLIB@%$RANLIB%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristers%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@INSTALL_DATA@%$INSTALL_DATA%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@STD_CINCLUDES@%$STD_CINCLUDES%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@STD_CDEFINES@%$STD_CDEFINES%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@STD_CWARNINGS@%$STD_CWARNINGS%g
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffs%@CC@%$CC%g
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristers%@YACC@%$YACC%g
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffs%@CPP@%$CPP%g
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffs%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halleys%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@BIND9_MAKE_RULES@%%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/@BIND9_VERSION@/r $BIND9_VERSION
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@BIND9_VERSION@%%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyCEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Split the substitutions into bite-sized pieces for seds with
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# small command number limits, like on Digital OSF/1 and HP-UX.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_file=1 # Number of current file.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_beg=1 # First line for current file.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_end=$ac_max_sed_cmds # Line after last line for current file.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_more_lines=:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_sed_cmds=""
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleywhile $ac_more_lines; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test $ac_beg -gt 1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed "${ac_end}q" conftest.subs > conftest.s$ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test ! -s conftest.s$ac_file; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_more_lines=false
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.s$ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -z "$ac_sed_cmds"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_sed_cmds="sed -f conftest.s$ac_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_file=`expr $ac_file + 1`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_beg=$ac_end
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_end=`expr $ac_end + $ac_max_sed_cmds`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_sed_cmds"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_sed_cmds=cat
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyCONFIG_FILES=\${CONFIG_FILES-"make/rules
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley Makefile
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley make/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/pthreads/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/pthreads/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/pthreads/include/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/dns/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/include/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/include/tests/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/Makefile
690a68b8112039e633e26f9216c0d463751e011aMichael Graff bin/named/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/names/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/master/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/rbt/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley"}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_file" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_file_in="${ac_file}.in" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Remove last slash and all that follows it. Not all systems have dirname.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # The file is in a subdirectory.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test ! -d "$ac_dir" && mkdir "$ac_dir"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # A "../" for each directory in $ac_dir_suffix.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dir_suffix= ac_dots=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_given_srcdir" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley .) srcdir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -z "$ac_dots"; then top_srcdir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) # Relative path.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley top_srcdir="$ac_dots$ac_given_srcdir" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_given_INSTALL" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [/$]*) INSTALL="$ac_given_INSTALL" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo creating "$ac_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f "$ac_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_file" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *Makefile*) ac_comsub="1i\\
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# $configure_input" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_comsub= ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed -e "$ac_comsub
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@configure_input@%$configure_input%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@srcdir@%$srcdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@top_srcdir@%$top_srcdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@INSTALL@%$INSTALL%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi; done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest.s*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# NAME is the cpp macro being defined and VALUE is the value it is being given.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ac_d sets the value in "#define NAME VALUE" lines.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_dC='\3'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_dD='%g'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_uB='\([ ]\)%\1#\2define\3'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_uC=' '
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_uD='\4%g'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_eB='$%\1#\2define\3'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_eC=' '
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_eD='%g'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${CONFIG_HEADERS+set}" != set; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_HEADERS="config.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_file" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_file_in="${ac_file}.in" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo creating $ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.frag conftest.in conftest.out
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat $ac_file_inputs > conftest.in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Transform confdefs.h into a sed script conftest.vals that substitutes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the proper values into config.h.in to produce config.h. And first:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Protect against being on the right side of a sed subst in config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Protect against being in an unquoted here document in config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest.vals
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.hdr <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys/[\\&%]/\\&/g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%[\\$`]%\\&%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%ac_d%ac_u%gp
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%ac_u%ac_e%gp
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysed -n -f conftest.hdr confdefs.h > conftest.vals
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest.hdr
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This sed command replaces #undef with comments. This is necessary, for
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# example, in the case of _POSIX_SOURCE, which is predefined and required
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# on some systems where configure will not decide to define it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> conftest.vals <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Break up conftest.vals because some shells have a limit on
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the size of here documents, and old seds have small limits too.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest.tail
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleywhile :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_lines=`grep -c . conftest.vals`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # grep -c gives empty output for an empty file on some AIX systems.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Write a limited-size here document to conftest.frag.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo 'CEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed -f conftest.frag conftest.in > conftest.out
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley mv conftest.out conftest.in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley' >> $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.vals
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley mv conftest.tail conftest.vals
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest.vals
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.frag conftest.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.in >> conftest.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if cmp -s $ac_file conftest.h 2>/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_file is unchanged"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Remove last slash and all that follows it. Not all systems have dirname.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # The file is in a subdirectory.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test ! -d "$ac_dir" && mkdir "$ac_dir"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f $ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley mv conftest.h $ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi; done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyexit 0
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychmod +x $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -fr confdefs* $ac_clean_files
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley