configure revision 7c0876aa42e6abaa8779bcb83962ccf20a9f4da3
76b43e4417bab52e913da39b5f5bc2a130d3f149Timo Sirainen#! /bin/sh
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# From configure.in Revision: 1.13
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen# Guess values for system-dependent variables and create Makefiles.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Generated automatically using autoconf version 2.12
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
137ea7ca34005345aa2304a940149b7f3774d727Timo Sirainen#
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen# This configure script is free software; the Free Software Foundation
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen# gives unlimited permission to copy, distribute and modify it.
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen# Defaults:
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenac_help=
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenac_default_prefix=/usr/local
137ea7ca34005345aa2304a940149b7f3774d727Timo Sirainen# Any additions from configure.in:
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen# Initialize some variables set by options.
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen# The variables have the same names as the options, with
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen# dashes changed to underlines.
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenbuild=NONE
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainencache_file=./config.cache
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenexec_prefix=NONE
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenhost=NONE
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenno_create=
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainennonopt=NONE
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenno_recursion=
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenprefix=NONE
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenprogram_prefix=NONE
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenprogram_suffix=NONE
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenprogram_transform_name=s,x,x,
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainensilent=
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainensite=
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainensrcdir=
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainentarget=NONE
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenverbose=
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenx_includes=NONE
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenx_libraries=NONE
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenbindir='${exec_prefix}/bin'
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainensbindir='${exec_prefix}/sbin'
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenlibexecdir='${exec_prefix}/libexec'
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainendatadir='${prefix}/share'
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainensysconfdir='${prefix}/etc'
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainensharedstatedir='${prefix}/com'
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenlocalstatedir='${prefix}/var'
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenlibdir='${exec_prefix}/lib'
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenincludedir='${prefix}/include'
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenoldincludedir='/usr/include'
0c17af9d3f9323136a94e66605776ed4462a172dTimo Siraineninfodir='${prefix}/info'
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenmandir='${prefix}/man'
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen# Initialize some other variables.
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainensubdirs=
0c17af9d3f9323136a94e66605776ed4462a172dTimo SirainenMFLAGS= MAKEFLAGS=
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen# Maximum number of lines to put in a shell here document.
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenac_max_here_lines=12
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenac_prev=
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainenfor ac_option
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainendo
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen # If the previous option needs an argument, assign it.
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen if test -n "$ac_prev"; then
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen eval "$ac_prev=\$ac_option"
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen ac_prev=
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen continue
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen fi
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen case "$ac_option" in
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen *) ac_optarg= ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen esac
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen # Accept the important Cygnus configure options, so we can diagnose typos.
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen case "$ac_option" in
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -bindir | --bindir | --bindi | --bind | --bin | --bi)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen ac_prev=bindir ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen bindir="$ac_optarg" ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -build | --build | --buil | --bui | --bu)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen ac_prev=build ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -build=* | --build=* | --buil=* | --bui=* | --bu=*)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen build="$ac_optarg" ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -cache-file | --cache-file | --cache-fil | --cache-fi \
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen ac_prev=cache_file ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen cache_file="$ac_optarg" ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen ac_prev=datadir ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen | --da=*)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen datadir="$ac_optarg" ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -disable-* | --disable-*)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen # Reject names that are not valid shell variable names.
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen fi
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen ac_feature=`echo $ac_feature| sed 's/-/_/g'`
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen eval "enable_${ac_feature}=no" ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -enable-* | --enable-*)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen # Reject names that are not valid shell variable names.
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen fi
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen ac_feature=`echo $ac_feature| sed 's/-/_/g'`
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen case "$ac_option" in
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen *=*) ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen *) ac_optarg=yes ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen esac
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen eval "enable_${ac_feature}='$ac_optarg'" ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen | --exec | --exe | --ex)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen ac_prev=exec_prefix ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen | --exec=* | --exe=* | --ex=*)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen exec_prefix="$ac_optarg" ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -gas | --gas | --ga | --g)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen # Obsolete; use --with-gas.
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen with_gas=yes ;;
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen -help | --help | --hel | --he)
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen # Omit some internal or obsolete options to make the list less imposing.
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen # This message is too long to be a string in the A/UX 3.1 sh.
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen cat << EOF
0c17af9d3f9323136a94e66605776ed4462a172dTimo SirainenUsage: configure [options] [host]
0c17af9d3f9323136a94e66605776ed4462a172dTimo SirainenOptions: [defaults in brackets after descriptions]
0c17af9d3f9323136a94e66605776ed4462a172dTimo SirainenConfiguration:
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --cache-file=FILE cache test results in FILE
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --help print this message
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --no-create do not create output files
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --quiet, --silent do not print \`checking...' messages
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --version print the version of autoconf that created configure
0c17af9d3f9323136a94e66605776ed4462a172dTimo SirainenDirectory and file names:
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --prefix=PREFIX install architecture-independent files in PREFIX
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen [$ac_default_prefix]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen [same as prefix]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --bindir=DIR user executables in DIR [EPREFIX/bin]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --datadir=DIR read-only architecture-independent data in DIR
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen [PREFIX/share]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --sharedstatedir=DIR modifiable architecture-independent data in DIR
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen [PREFIX/com]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --libdir=DIR object code libraries in DIR [EPREFIX/lib]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --includedir=DIR C header files in DIR [PREFIX/include]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --infodir=DIR info documentation in DIR [PREFIX/info]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --mandir=DIR man documentation in DIR [PREFIX/man]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --srcdir=DIR find the sources in DIR [configure dir or ..]
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --program-prefix=PREFIX prepend PREFIX to installed program names
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --program-suffix=SUFFIX append SUFFIX to installed program names
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen --program-transform-name=PROGRAM
0c17af9d3f9323136a94e66605776ed4462a172dTimo Sirainen run sed PROGRAM on installed program names
0c17af9d3f9323136a94e66605776ed4462a172dTimo SirainenEOF
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen cat << EOF
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenHost type:
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen --build=BUILD configure for building on BUILD [BUILD=HOST]
16f816d3f3c32ae3351834253f52ddd0212bcbf3Timo Sirainen --host=HOST configure for HOST [guessed]
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen --target=TARGET configure for TARGET [TARGET=HOST]
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenFeatures and packages:
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
8e5fedd9ada47735be8ac0f8af2a66e8528bd776Timo Sirainen --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
e8bdf1be00aec45d0c6dd72ad9c8be02a3dfc778Timo Sirainen --x-includes=DIR X include files are in DIR
5fb3bff645380804c9db2510940c41db6b8fdb01Timo Sirainen --x-libraries=DIR X library files are in DIR
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenEOF
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen if test -n "$ac_help"; then
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen echo "--enable and --with options recognized:$ac_help"
2abfef71398a61e5ed97c23a1ceb71461933ccb8Timo Sirainen fi
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen exit 0 ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen -host | --host | --hos | --ho)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ac_prev=host ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen -host=* | --host=* | --hos=* | --ho=*)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen host="$ac_optarg" ;;
b66a7b7ab0db2c9ad425912d3f21a36fcf76d876Timo Sirainen
b66a7b7ab0db2c9ad425912d3f21a36fcf76d876Timo Sirainen -includedir | --includedir | --includedi | --included | --include \
b66a7b7ab0db2c9ad425912d3f21a36fcf76d876Timo Sirainen | --includ | --inclu | --incl | --inc)
b66a7b7ab0db2c9ad425912d3f21a36fcf76d876Timo Sirainen ac_prev=includedir ;;
b66a7b7ab0db2c9ad425912d3f21a36fcf76d876Timo Sirainen -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
b66a7b7ab0db2c9ad425912d3f21a36fcf76d876Timo Sirainen | --includ=* | --inclu=* | --incl=* | --inc=*)
b66a7b7ab0db2c9ad425912d3f21a36fcf76d876Timo Sirainen includedir="$ac_optarg" ;;
b66a7b7ab0db2c9ad425912d3f21a36fcf76d876Timo Sirainen
cbf7138b49d32fce0645dc6523fbb42cc07cb2faTimo Sirainen -infodir | --infodir | --infodi | --infod | --info | --inf)
cbf7138b49d32fce0645dc6523fbb42cc07cb2faTimo Sirainen ac_prev=infodir ;;
b9b48aaaebf6f72dfab567cda073cde8a7b26598Timo Sirainen -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b9b48aaaebf6f72dfab567cda073cde8a7b26598Timo Sirainen infodir="$ac_optarg" ;;
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen -libdir | --libdir | --libdi | --libd)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ac_prev=libdir ;;
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainen -libdir=* | --libdir=* | --libdi=* | --libd=*)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen libdir="$ac_optarg" ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
e30b748edcef3cf3352478bf21fa8f785bdc773aTimo Sirainen -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen | --libexe | --libex | --libe)
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen ac_prev=libexecdir ;;
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainen | --libexe=* | --libex=* | --libe=*)
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainen libexecdir="$ac_optarg" ;;
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainen
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainen -localstatedir | --localstatedir | --localstatedi | --localstated \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen | --localstate | --localstat | --localsta | --localst \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen | --locals | --local | --loca | --loc | --lo)
9c7e765845357342923e16351181091028e5930fTimo Sirainen ac_prev=localstatedir ;;
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen | --localstate=* | --localstat=* | --localsta=* | --localst=* \
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
6bf1543bb7af03324c04e8f9ac8e430f395989aeTimo Sirainen localstatedir="$ac_optarg" ;;
6bf1543bb7af03324c04e8f9ac8e430f395989aeTimo Sirainen
6bf1543bb7af03324c04e8f9ac8e430f395989aeTimo Sirainen -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
6bf1543bb7af03324c04e8f9ac8e430f395989aeTimo Sirainen ac_prev=mandir ;;
6bf1543bb7af03324c04e8f9ac8e430f395989aeTimo Sirainen -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6bf1543bb7af03324c04e8f9ac8e430f395989aeTimo Sirainen mandir="$ac_optarg" ;;
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen
b00787191c3c31bebb939c3d00f1fcdb67356c69Timo Sirainen -nfp | --nfp | --nf)
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen # Obsolete; use --without-fp.
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen with_fp=no ;;
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen -no-create | --no-create | --no-creat | --no-crea | --no-cre \
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen | --no-cr | --no-c)
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen no_create=yes ;;
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen -no-recursion | --no-recursion | --no-recursio | --no-recursi \
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen no_recursion=yes ;;
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen | --oldin | --oldi | --old | --ol | --o)
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen ac_prev=oldincludedir ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
e30b748edcef3cf3352478bf21fa8f785bdc773aTimo Sirainen | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
e30b748edcef3cf3352478bf21fa8f785bdc773aTimo Sirainen | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen oldincludedir="$ac_optarg" ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ac_prev=prefix ;;
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainen -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainen prefix="$ac_optarg" ;;
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainen
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen -program-prefix | --program-prefix | --program-prefi | --program-pref \
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen | --program-pre | --program-pr | --program-p)
e30b748edcef3cf3352478bf21fa8f785bdc773aTimo Sirainen ac_prev=program_prefix ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen -program-prefix=* | --program-prefix=* | --program-prefi=* \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen program_prefix="$ac_optarg" ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen -program-suffix | --program-suffix | --program-suffi | --program-suff \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen | --program-suf | --program-su | --program-s)
e05181d973025627ba08b631c12c07c3bbc99528Timo Sirainen ac_prev=program_suffix ;;
0b3662995e9fa0d0d857ec5350ce2b1ee6d3b94fTimo Sirainen -program-suffix=* | --program-suffix=* | --program-suffi=* \
0b3662995e9fa0d0d857ec5350ce2b1ee6d3b94fTimo Sirainen | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
0b3662995e9fa0d0d857ec5350ce2b1ee6d3b94fTimo Sirainen program_suffix="$ac_optarg" ;;
0b3662995e9fa0d0d857ec5350ce2b1ee6d3b94fTimo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen -program-transform-name | --program-transform-name \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen | --program-transform-nam | --program-transform-na \
4b43f50117630aa12b3cfd0cbd05ae22ba27fec1Timo Sirainen | --program-transform-n | --program-transform- \
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen | --program-transform | --program-transfor \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen | --program-transfo | --program-transf \
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen | --program-trans | --program-tran \
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen | --progr-tra | --program-tr | --program-t)
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen ac_prev=program_transform_name ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen -program-transform-name=* | --program-transform-name=* \
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen | --program-transform-nam=* | --program-transform-na=* \
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen | --program-transform-n=* | --program-transform-=* \
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen | --program-transform=* | --program-transfor=* \
4b43f50117630aa12b3cfd0cbd05ae22ba27fec1Timo Sirainen | --program-transfo=* | --program-transf=* \
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen | --program-trans=* | --program-tran=* \
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen | --progr-tra=* | --program-tr=* | --program-t=*)
4b43f50117630aa12b3cfd0cbd05ae22ba27fec1Timo Sirainen program_transform_name="$ac_optarg" ;;
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen
4b43f50117630aa12b3cfd0cbd05ae22ba27fec1Timo Sirainen -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4b43f50117630aa12b3cfd0cbd05ae22ba27fec1Timo Sirainen | -silent | --silent | --silen | --sile | --sil)
4b43f50117630aa12b3cfd0cbd05ae22ba27fec1Timo Sirainen silent=yes ;;
4b43f50117630aa12b3cfd0cbd05ae22ba27fec1Timo Sirainen
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen ac_prev=sbindir ;;
cbf7138b49d32fce0645dc6523fbb42cc07cb2faTimo Sirainen -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen | --sbi=* | --sb=*)
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen sbindir="$ac_optarg" ;;
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen -sharedstatedir | --sharedstatedir | --sharedstatedi \
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen | --sharedst | --shareds | --shared | --share | --shar \
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen | --sha | --sh)
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen ac_prev=sharedstatedir ;;
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen | --sha=* | --sh=*)
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen sharedstatedir="$ac_optarg" ;;
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen -site | --site | --sit)
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen ac_prev=site ;;
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen -site=* | --site=* | --sit=*)
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen site="$ac_optarg" ;;
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen ac_prev=srcdir ;;
992a9e2d6c6ee45d87089ac54267e0198a7802c3Timo Sirainen -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4b43f50117630aa12b3cfd0cbd05ae22ba27fec1Timo Sirainen srcdir="$ac_optarg" ;;
4b43f50117630aa12b3cfd0cbd05ae22ba27fec1Timo Sirainen
4b43f50117630aa12b3cfd0cbd05ae22ba27fec1Timo Sirainen -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
538303a216166f3526c0ae9658c9978275cfa100Timo Sirainen | --syscon | --sysco | --sysc | --sys | --sy)
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen ac_prev=sysconfdir ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen sysconfdir="$ac_optarg" ;;
a87e5f15283e057c7dc26dd9db7b616268c95ca7Timo Sirainen
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen -target | --target | --targe | --targ | --tar | --ta | --t)
c93cd163f9c1d4b0ca29f49cbfdbf474caeef5bfTimo Sirainen ac_prev=target ;;
6925fd9cd70c30884406d50f1d85efb6561e776cTimo Sirainen -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen target="$ac_optarg" ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen -v | -verbose | --verbose | --verbos | --verbo | --verb)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen verbose=yes ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
8e5fedd9ada47735be8ac0f8af2a66e8528bd776Timo Sirainen -version | --version | --versio | --versi | --vers)
8e5fedd9ada47735be8ac0f8af2a66e8528bd776Timo Sirainen echo "configure generated by autoconf version 2.12"
8e5fedd9ada47735be8ac0f8af2a66e8528bd776Timo Sirainen exit 0 ;;
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen -with-* | --with-*)
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen # Reject names that are not valid shell variable names.
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen fi
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen ac_package=`echo $ac_package| sed 's/-/_/g'`
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen case "$ac_option" in
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen *=*) ;;
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen *) ac_optarg=yes ;;
8e5fedd9ada47735be8ac0f8af2a66e8528bd776Timo Sirainen esac
8e5fedd9ada47735be8ac0f8af2a66e8528bd776Timo Sirainen eval "with_${ac_package}='$ac_optarg'" ;;
8e5fedd9ada47735be8ac0f8af2a66e8528bd776Timo Sirainen
8e5fedd9ada47735be8ac0f8af2a66e8528bd776Timo Sirainen -without-* | --without-*)
8e5fedd9ada47735be8ac0f8af2a66e8528bd776Timo Sirainen ac_package=`echo $ac_option|sed -e 's/-*without-//'`
8e5fedd9ada47735be8ac0f8af2a66e8528bd776Timo Sirainen # Reject names that are not valid shell variable names.
8e5fedd9ada47735be8ac0f8af2a66e8528bd776Timo Sirainen if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
6ef7e31619edfaa17ed044b45861d106a86191efTimo Sirainen { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen fi
ccc895c0358108d2304239063e940b7d75f364abTimo Sirainen ac_package=`echo $ac_package| sed 's/-/_/g'`
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen eval "with_${ac_package}=no" ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen --x)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen # Obsolete; use --with-x.
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen with_x=yes ;;
b66a7b7ab0db2c9ad425912d3f21a36fcf76d876Timo Sirainen
b60baf6af900a610b2b2ddd24a46f8311acc3386Timo Sirainen -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen | --x-incl | --x-inc | --x-in | --x-i)
6ef7e31619edfaa17ed044b45861d106a86191efTimo Sirainen ac_prev=x_includes ;;
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
d3eff05aaa4c2bc0a7580ee87a54f6693f4a8241Timo Sirainen | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen x_includes="$ac_optarg" ;;
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen -x-libraries | --x-libraries | --x-librarie | --x-librari \
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen ac_prev=x_libraries ;;
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen x_libraries="$ac_optarg" ;;
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen
8e5fedd9ada47735be8ac0f8af2a66e8528bd776Timo Sirainen -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
8e5fedd9ada47735be8ac0f8af2a66e8528bd776Timo Sirainen ;;
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen *)
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
32ee977e189266744ef69ac4e832fd3111d6f949Timo Sirainen echo "configure: warning: $ac_option: invalid host type" 1>&2
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen fi
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen if test "x$nonopt" != xNONE; then
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen fi
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen nonopt="$ac_option"
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen ;;
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen esac
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainendone
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenif test -n "$ac_prev"; then
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenfi
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainentrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen# File descriptor usage:
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen# 0 standard input
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen# 1 file creation
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen# 2 errors and warnings
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen# 3 some systems may open it to /dev/tty
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen# 4 used on the Kubota Titan
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen# 6 checking for... messages and results
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen# 5 compiler messages saved in config.log
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenif test "$silent" = yes; then
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen exec 6>/dev/null
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenelse
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen exec 6>&1
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenfi
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenexec 5>./config.log
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenecho "\
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo SirainenThis file contains any messages produced by compilers while
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenrunning configure, to aid debugging if configure makes a mistake.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen" 1>&5
d77c309fccbc6a7594f8cb08fb01009fa613c568Timo Sirainen
d77c309fccbc6a7594f8cb08fb01009fa613c568Timo Sirainen# Strip out --no-create and --no-recursion so they do not pile up.
d77c309fccbc6a7594f8cb08fb01009fa613c568Timo Sirainen# Also quote any args containing shell metacharacters.
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainenac_configure_args=
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainenfor ac_arg
41264e5dcef8335ab7ba422822b3ab518b7a327aTimo Sirainendo
41264e5dcef8335ab7ba422822b3ab518b7a327aTimo Sirainen case "$ac_arg" in
41264e5dcef8335ab7ba422822b3ab518b7a327aTimo Sirainen -no-create | --no-create | --no-creat | --no-crea | --no-cre \
7bd6001d84ecc1792ddfd54fe8efa63c509d90b1Timo Sirainen | --no-cr | --no-c) ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen -no-recursion | --no-recursion | --no-recursio | --no-recursi \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
d3eff05aaa4c2bc0a7580ee87a54f6693f4a8241Timo Sirainen *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainen ac_configure_args="$ac_configure_args '$ac_arg'" ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen *) ac_configure_args="$ac_configure_args $ac_arg" ;;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen esac
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainendone
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# NLS nuisances.
8754bb7a1f24705ffa5434f9e10d57e0b3b88d6eTimo Sirainen# Only set these to C if already set. These must not be set unconditionally
8754bb7a1f24705ffa5434f9e10d57e0b3b88d6eTimo Sirainen# because not all systems understand e.g. LANG=C (notably SCO).
8754bb7a1f24705ffa5434f9e10d57e0b3b88d6eTimo Sirainen# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainen# Non-C LC_CTYPE values break the ctype check.
d67f54632110cfb6aafe2d7cd1f99b031c0b208aTimo Sirainenif test "${LANG+set}" = set; then LANG=C; export LANG; fi
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
b60baf6af900a610b2b2ddd24a46f8311acc3386Timo Sirainenif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainenif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainen
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainen# confdefs.h avoids OS command line length limits that DEFS can exceed.
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainenrm -rf conftest* confdefs.h
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen# AIX cpp loses on an empty file, so make sure it contains at least a newline.
b60baf6af900a610b2b2ddd24a46f8311acc3386Timo Sirainenecho > confdefs.h
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainen
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainen# A filename unique to this package, relative to the directory that
9a099a65160987349f441c82ab0e38f32b747adbTimo Sirainen# configure is in, which we can look for to find out if srcdir is correct.
9a099a65160987349f441c82ab0e38f32b747adbTimo Sirainenac_unique_file=lib/dns/name.c
9a099a65160987349f441c82ab0e38f32b747adbTimo Sirainen
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainen# Find the source files, if location was not specified.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenif test -z "$srcdir"; then
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ac_srcdir_defaulted=yes
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainen # Try the directory containing this script, then its parent.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ac_prog=$0
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen srcdir=$ac_confdir
b60baf6af900a610b2b2ddd24a46f8311acc3386Timo Sirainen if test ! -r $srcdir/$ac_unique_file; then
b60baf6af900a610b2b2ddd24a46f8311acc3386Timo Sirainen srcdir=..
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainen fi
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainenelse
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainen ac_srcdir_defaulted=no
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenfi
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenif test ! -r $srcdir/$ac_unique_file; then
b60baf6af900a610b2b2ddd24a46f8311acc3386Timo Sirainen if test "$ac_srcdir_defaulted" = yes; then
b60baf6af900a610b2b2ddd24a46f8311acc3386Timo Sirainen { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
b60baf6af900a610b2b2ddd24a46f8311acc3386Timo Sirainen else
d3eff05aaa4c2bc0a7580ee87a54f6693f4a8241Timo Sirainen { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen fi
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainenfi
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainensrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Prefer explicitly selected file to automatically selected ones.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenif test -z "$CONFIG_SITE"; then
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen if test "x$prefix" != xNONE; then
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen else
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen fi
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainenfi
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenfor ac_site_file in $CONFIG_SITE; do
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen if test -r "$ac_site_file"; then
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen echo "loading site script $ac_site_file"
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen . "$ac_site_file"
41264e5dcef8335ab7ba422822b3ab518b7a327aTimo Sirainen fi
41264e5dcef8335ab7ba422822b3ab518b7a327aTimo Sirainendone
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
41264e5dcef8335ab7ba422822b3ab518b7a327aTimo Sirainenif test -r "$cache_file"; then
41264e5dcef8335ab7ba422822b3ab518b7a327aTimo Sirainen echo "loading cache $cache_file"
41264e5dcef8335ab7ba422822b3ab518b7a327aTimo Sirainen . $cache_file
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenelse
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen echo "creating cache $cache_file"
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen > $cache_file
41264e5dcef8335ab7ba422822b3ab518b7a327aTimo Sirainenfi
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
d77c309fccbc6a7594f8cb08fb01009fa613c568Timo Sirainenac_ext=c
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenac_cpp='$CPP $CPPFLAGS'
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainencross_compiling=$ac_cv_prog_cc_cross
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
44dc970b18c4e2d06f34cb908924152156e4a45bTimo Sirainen # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
b60baf6af900a610b2b2ddd24a46f8311acc3386Timo Sirainen if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ac_n= ac_c='
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen' ac_t=' '
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen else
a3d22d3cb0e5436128ca7287cedc921f1789b2c8Timo Sirainen ac_n=-n ac_c= ac_t=
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen fi
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenelse
5fb3bff645380804c9db2510940c41db6b8fdb01Timo Sirainen ac_n= ac_c='\c' ac_t=
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenfi
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
5fb3bff645380804c9db2510940c41db6b8fdb01Timo Sirainen
88187ee880b4829443e0d55ea7d145d9d5880217Timo Sirainenac_aux_dir=
88187ee880b4829443e0d55ea7d145d9d5880217Timo Sirainenfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen if test -f $ac_dir/install-sh; then
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen ac_aux_dir=$ac_dir
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen ac_install_sh="$ac_aux_dir/install-sh -c"
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen break
5fb3bff645380804c9db2510940c41db6b8fdb01Timo Sirainen elif test -f $ac_dir/install.sh; then
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen ac_aux_dir=$ac_dir
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen ac_install_sh="$ac_aux_dir/install.sh -c"
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen break
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen fi
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainendone
a3d22d3cb0e5436128ca7287cedc921f1789b2c8Timo Sirainenif test -z "$ac_aux_dir"; then
a3d22d3cb0e5436128ca7287cedc921f1789b2c8Timo Sirainen { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c449f545b10daa47027552f98d916a9805da662Timo Sirainenfi
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenac_config_guess=$ac_aux_dir/config.guess
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenac_config_sub=$ac_aux_dir/config.sub
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
ff4bb2dfb5714eeb0408d3bb862de1646351d097Timo Sirainen# Make sure we can run config.sub.
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenif $ac_config_sub sun4 >/dev/null 2>&1; then :
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenfi
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenecho $ac_n "checking host system type""... $ac_c" 1>&6
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenecho "configure:552: checking host system type" >&5
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
7c449f545b10daa47027552f98d916a9805da662Timo Sirainenhost_alias=$host
7c449f545b10daa47027552f98d916a9805da662Timo Sirainencase "$host_alias" in
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo SirainenNONE)
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen case $nonopt in
ff4bb2dfb5714eeb0408d3bb862de1646351d097Timo Sirainen NONE)
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen if host_alias=`$ac_config_guess`; then :
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen fi ;;
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen *) host_alias=$nonopt ;;
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen esac ;;
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenesac
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
60f9b96be55e63f0113e273dda8ba3b883c6f095Timo Sirainenhost=`$ac_config_sub $host_alias`
60f9b96be55e63f0113e273dda8ba3b883c6f095Timo Sirainenhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenecho "$ac_t""$host" 1>&6
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen# Extract the first word of "gcc", so it can be a program name with args.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenset dummy gcc; ac_word=$2
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenecho "configure:576: checking for $ac_word" >&5
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen echo $ac_n "(cached) $ac_c" 1>&6
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenelse
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen if test -n "$CC"; then
60f9b96be55e63f0113e273dda8ba3b883c6f095Timo Sirainen ac_cv_prog_CC="$CC" # Let the user override the test.
60f9b96be55e63f0113e273dda8ba3b883c6f095Timo Sirainenelse
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen for ac_dir in $PATH; do
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen test -z "$ac_dir" && ac_dir=.
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen if test -f $ac_dir/$ac_word; then
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen ac_cv_prog_CC="gcc"
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen break
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen fi
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen done
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen IFS="$ac_save_ifs"
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenfi
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenfi
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo SirainenCC="$ac_cv_prog_CC"
bde6382cf65fba6165dc3603f5419e194d87f404Timo Sirainenif test -n "$CC"; then
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen echo "$ac_t""$CC" 1>&6
b7b81543899e306c71e6152516d8698416162bcbTimo Sirainenelse
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen echo "$ac_t""no" 1>&6
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenfi
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenif test -z "$CC"; then
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen # Extract the first word of "cc", so it can be a program name with args.
b7b81543899e306c71e6152516d8698416162bcbTimo Sirainenset dummy cc; ac_word=$2
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenecho "configure:605: checking for $ac_word" >&5
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen echo $ac_n "(cached) $ac_c" 1>&6
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenelse
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen if test -n "$CC"; then
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen ac_cv_prog_CC="$CC" # Let the user override the test.
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainenelse
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen ac_prog_rejected=no
60f9b96be55e63f0113e273dda8ba3b883c6f095Timo Sirainen for ac_dir in $PATH; do
60f9b96be55e63f0113e273dda8ba3b883c6f095Timo Sirainen test -z "$ac_dir" && ac_dir=.
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen if test -f $ac_dir/$ac_word; then
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ac_prog_rejected=yes
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen continue
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen fi
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ac_cv_prog_CC="cc"
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen break
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen fi
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen done
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen IFS="$ac_save_ifs"
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainenif test $ac_prog_rejected = yes; then
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen # We found a bogon in the path, so make sure we never use it.
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen set dummy $ac_cv_prog_CC
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen shift
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen if test $# -gt 0; then
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen # We chose a different compiler from the bogus one.
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen # However, it has the same basename, so the bogon will be chosen
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen # first if we set CC to just the basename; use the full file name.
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen shift
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen set dummy "$ac_dir/$ac_word" "$@"
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen shift
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen ac_cv_prog_CC="$@"
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen fi
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainenfi
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainenfi
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainenfi
7895c4845da515b0aa9bb156674a1fca40803f44Timo SirainenCC="$ac_cv_prog_CC"
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainenif test -n "$CC"; then
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen echo "$ac_t""$CC" 1>&6
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainenelse
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainen echo "$ac_t""no" 1>&6
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainenfi
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainen
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainen test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainenfi
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainen
4f44284b96302c0a18203e2ac1243aeb193c6840Timo Sirainenecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainenecho "configure:653: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainen
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainenac_ext=c
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainen# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainenac_cpp='$CPP $CPPFLAGS'
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainenac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainenac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4Timo Sirainencross_compiling=$ac_cv_prog_cc_cross
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainencat > conftest.$ac_ext <<EOF
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen#line 663 "configure"
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen#include "confdefs.h"
7c449f545b10daa47027552f98d916a9805da662Timo Sirainenmain(){return(0);}
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo SirainenEOF
7c449f545b10daa47027552f98d916a9805da662Timo Sirainenif { (eval echo configure:667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7c449f545b10daa47027552f98d916a9805da662Timo Sirainen ac_cv_prog_cc_works=yes
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen # If we can't run a trivial program, we are probably using a cross compiler.
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen if (./conftest; exit) 2>/dev/null; then
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen ac_cv_prog_cc_cross=no
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen else
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen ac_cv_prog_cc_cross=yes
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen fi
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainenelse
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen echo "configure: failed program was:" >&5
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen cat conftest.$ac_ext >&5
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen ac_cv_prog_cc_works=no
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainenfi
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainenrm -fr conftest*
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainenecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainenif test $ac_cv_prog_cc_works = no; then
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainenfi
6ef7e31619edfaa17ed044b45861d106a86191efTimo Sirainenecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainenecho "configure:687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
649823f9c7e42a424a8fadc427e12f3576c4f714Timo Sirainencross_compiling=$ac_cv_prog_cc_cross
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainen
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainenecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6ef7e31619edfaa17ed044b45861d106a86191efTimo Sirainenecho "configure:692: checking whether we are using GNU C" >&5
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen echo $ac_n "(cached) $ac_c" 1>&6
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenelse
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen cat > conftest.c <<EOF
a38ef15060e45e5060bb24c403a580b9a57a818cTimo Sirainen#ifdef __GNUC__
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen yes;
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen#endif
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo SirainenEOF
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainenif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a38ef15060e45e5060bb24c403a580b9a57a818cTimo Sirainen ac_cv_prog_gcc=yes
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdcaTimo Sirainenelse
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen ac_cv_prog_gcc=no
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenfi
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenfi
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenecho "$ac_t""$ac_cv_prog_gcc" 1>&6
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenif test $ac_cv_prog_gcc = yes; then
e05181d973025627ba08b631c12c07c3bbc99528Timo Sirainen GCC=yes
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen ac_test_CFLAGS="${CFLAGS+set}"
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen ac_save_CFLAGS="$CFLAGS"
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen CFLAGS=
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenecho "configure:716: checking whether ${CC-cc} accepts -g" >&5
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen echo $ac_n "(cached) $ac_c" 1>&6
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenelse
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen echo 'void f(){}' > conftest.c
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen ac_cv_prog_cc_g=yes
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenelse
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen ac_cv_prog_cc_g=no
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenfi
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenrm -f conftest*
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenfi
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen if test "$ac_test_CFLAGS" = set; then
d77c309fccbc6a7594f8cb08fb01009fa613c568Timo Sirainen CFLAGS="$ac_save_CFLAGS"
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen elif test $ac_cv_prog_cc_g = yes; then
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen CFLAGS="-g -O2"
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen else
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen CFLAGS="-O2"
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen fi
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenelse
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen GCC=
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen test "${CFLAGS+set}" = set || CFLAGS="-g"
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenfi
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenecho "configure:745: checking how to run the C preprocessor" >&5
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainen# On Suns, sometimes $CPP names a directory.
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenif test -n "$CPP" && test -d "$CPP"; then
65d6ca3fb5450b81df0190d9e9aa62c00fed5116Timo Sirainen CPP=
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainenfi
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainenif test -z "$CPP"; then
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainenif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainen echo $ac_n "(cached) $ac_c" 1>&6
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainenelse
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainen # This must be in double quotes, not single quotes, because CPP may get
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainen # substituted into the Makefile and "${CC-cc}" will confuse make.
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainen CPP="${CC-cc} -E"
e30b748edcef3cf3352478bf21fa8f785bdc773aTimo Sirainen # On the NeXT, cc -E runs the code through the compiler's parser,
e30b748edcef3cf3352478bf21fa8f785bdc773aTimo Sirainen # not just through cpp.
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainen cat > conftest.$ac_ext <<EOF
649823f9c7e42a424a8fadc427e12f3576c4f714Timo Sirainen#line 760 "configure"
57a91f930a12d2cd1220da4f3f7cb2c47557cd37Timo Sirainen#include "confdefs.h"
57a91f930a12d2cd1220da4f3f7cb2c47557cd37Timo Sirainen#include <assert.h>
1582b4d531679849bba299c17b6ec9402b7df67dTimo SirainenSyntax Error
1582b4d531679849bba299c17b6ec9402b7df67dTimo SirainenEOF
d4dcb9c30dba354cff7af6d303ecef7698194c55Timo Sirainenac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a38ef15060e45e5060bb24c403a580b9a57a818cTimo Sirainen{ (eval echo configure:766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainenac_err=`grep -v '^ *+' conftest.out`
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainenif test -z "$ac_err"; then
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainen :
73c76fa7340a107229c530196d026aadeae979c7Timo Sirainenelse
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainen echo "$ac_err" >&5
9c7e765845357342923e16351181091028e5930fTimo Sirainen echo "configure: failed program was:" >&5
e05181d973025627ba08b631c12c07c3bbc99528Timo Sirainen cat conftest.$ac_ext >&5
e05181d973025627ba08b631c12c07c3bbc99528Timo Sirainen rm -rf conftest*
e05181d973025627ba08b631c12c07c3bbc99528Timo Sirainen CPP="${CC-cc} -E -traditional-cpp"
e05181d973025627ba08b631c12c07c3bbc99528Timo Sirainen cat > conftest.$ac_ext <<EOF
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainen#line 777 "configure"
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainen#include "confdefs.h"
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainen#include <assert.h>
b9b48aaaebf6f72dfab567cda073cde8a7b26598Timo SirainenSyntax Error
b9b48aaaebf6f72dfab567cda073cde8a7b26598Timo SirainenEOF
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainenac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainen{ (eval echo configure:783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainenac_err=`grep -v '^ *+' conftest.out`
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainenif test -z "$ac_err"; then
b9b48aaaebf6f72dfab567cda073cde8a7b26598Timo Sirainen :
b9b48aaaebf6f72dfab567cda073cde8a7b26598Timo Sirainenelse
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainen echo "$ac_err" >&5
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainen echo "configure: failed program was:" >&5
b7b81543899e306c71e6152516d8698416162bcbTimo Sirainen cat conftest.$ac_ext >&5
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainen rm -rf conftest*
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainen CPP=/lib/cpp
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainenfi
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainenrm -f conftest*
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainenfi
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainenrm -f conftest*
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainen ac_cv_prog_CPP="$CPP"
7895c4845da515b0aa9bb156674a1fca40803f44Timo Sirainenfi
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainen CPP="$ac_cv_prog_CPP"
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainenelse
b7b81543899e306c71e6152516d8698416162bcbTimo Sirainen ac_cv_prog_CPP="$CPP"
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenfi
7abd00c65bbf53fda3f638101c4cd43647d1eb07Timo Sirainenecho "$ac_t""$CPP" 1>&6
7abd00c65bbf53fda3f638101c4cd43647d1eb07Timo Sirainen
7abd00c65bbf53fda3f638101c4cd43647d1eb07Timo Sirainenecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7abd00c65bbf53fda3f638101c4cd43647d1eb07Timo Sirainenecho "configure:806: checking for ANSI C header files" >&5
7abd00c65bbf53fda3f638101c4cd43647d1eb07Timo Sirainenif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7abd00c65bbf53fda3f638101c4cd43647d1eb07Timo Sirainen echo $ac_n "(cached) $ac_c" 1>&6
1582b4d531679849bba299c17b6ec9402b7df67dTimo Sirainenelse
57a91f930a12d2cd1220da4f3f7cb2c47557cd37Timo Sirainen cat > conftest.$ac_ext <<EOF
57a91f930a12d2cd1220da4f3f7cb2c47557cd37Timo Sirainen#line 811 "configure"
d61a5e0e4ff58d1aa613f0d51161e5bb0f092514Timo Sirainen#include "confdefs.h"
e05181d973025627ba08b631c12c07c3bbc99528Timo Sirainen#include <stdlib.h>
e05181d973025627ba08b631c12c07c3bbc99528Timo Sirainen#include <stdarg.h>
0b3662995e9fa0d0d857ec5350ce2b1ee6d3b94fTimo Sirainen#include <string.h>
e05181d973025627ba08b631c12c07c3bbc99528Timo Sirainen#include <float.h>
e05181d973025627ba08b631c12c07c3bbc99528Timo SirainenEOF
e05181d973025627ba08b631c12c07c3bbc99528Timo Sirainenac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
65d6ca3fb5450b81df0190d9e9aa62c00fed5116Timo Sirainen{ (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4d938f46f4f956ecb802c30ca771922f5539a660Timo Sirainenac_err=`grep -v '^ *+' conftest.out`
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainenif test -z "$ac_err"; then
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainen rm -rf conftest*
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainen ac_cv_header_stdc=yes
65d6ca3fb5450b81df0190d9e9aa62c00fed5116Timo Sirainenelse
d67f54632110cfb6aafe2d7cd1f99b031c0b208aTimo Sirainen echo "$ac_err" >&5
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainen echo "configure: failed program was:" >&5
fd1a173038402c968f82d6b19b8b2e029bbcee45Timo Sirainen cat conftest.$ac_ext >&5
fd1a173038402c968f82d6b19b8b2e029bbcee45Timo Sirainen rm -rf conftest*
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainen ac_cv_header_stdc=no
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainenfi
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainenrm -f conftest*
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainen
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainenif test $ac_cv_header_stdc = yes; then
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainen # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainencat > conftest.$ac_ext <<EOF
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainen#line 836 "configure"
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen#include "confdefs.h"
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#include <string.h>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenEOF
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainenif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen egrep "memchr" >/dev/null 2>&1; then
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen :
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainenelse
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen rm -rf conftest*
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ac_cv_header_stdc=no
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainenfi
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainenrm -f conftest*
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainenfi
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainenif test $ac_cv_header_stdc = yes; then
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainen # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainencat > conftest.$ac_ext <<EOF
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen#line 854 "configure"
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen#include "confdefs.h"
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen#include <stdlib.h>
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo SirainenEOF
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainenif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen egrep "free" >/dev/null 2>&1; then
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainen :
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainenelse
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen rm -rf conftest*
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ac_cv_header_stdc=no
d756ebcfa96bd7cff02097c8f26df9df368b81b1Timo Sirainenfi
d756ebcfa96bd7cff02097c8f26df9df368b81b1Timo Sirainenrm -f conftest*
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainenfi
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainenif test $ac_cv_header_stdc = yes; then
d756ebcfa96bd7cff02097c8f26df9df368b81b1Timo Sirainen # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenif test "$cross_compiling" = yes; then
013e3b3942e9550fde619a0b3ce6bdd04edc4268Timo Sirainen :
013e3b3942e9550fde619a0b3ce6bdd04edc4268Timo Sirainenelse
5fb3bff645380804c9db2510940c41db6b8fdb01Timo Sirainen cat > conftest.$ac_ext <<EOF
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#line 875 "configure"
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainen#include "confdefs.h"
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainen#include <ctype.h>
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainen#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainenint main () { int i; for (i = 0; i < 256; i++)
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainenif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainenexit (0); }
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo SirainenEOF
4d938f46f4f956ecb802c30ca771922f5539a660Timo Sirainenif { (eval echo configure:886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d67ac5f76cc02c227f4997878bb4aef48ee298faTimo Sirainenthen
d67ac5f76cc02c227f4997878bb4aef48ee298faTimo Sirainen :
cce169a321c9c629e4f2db1a69dae3b75bbcb27aTimo Sirainenelse
c2cb5e469cd11759da22d82083d4fbb564d06dfaTimo Sirainen echo "configure: failed program was:" >&5
4d938f46f4f956ecb802c30ca771922f5539a660Timo Sirainen cat conftest.$ac_ext >&5
f7ad1162969feff6b08f0e640a928db1783daae9Timo Sirainen rm -fr conftest*
4d938f46f4f956ecb802c30ca771922f5539a660Timo Sirainen ac_cv_header_stdc=no
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenfi
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenrm -fr conftest*
d756ebcfa96bd7cff02097c8f26df9df368b81b1Timo Sirainenfi
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
a3d22d3cb0e5436128ca7287cedc921f1789b2c8Timo Sirainenfi
a3d22d3cb0e5436128ca7287cedc921f1789b2c8Timo Sirainenfi
a3d22d3cb0e5436128ca7287cedc921f1789b2c8Timo Sirainen
6ef7e31619edfaa17ed044b45861d106a86191efTimo Sirainenecho "$ac_t""$ac_cv_header_stdc" 1>&6
6ef7e31619edfaa17ed044b45861d106a86191efTimo Sirainenif test $ac_cv_header_stdc = yes; then
a3d22d3cb0e5436128ca7287cedc921f1789b2c8Timo Sirainen cat >> confdefs.h <<\EOF
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen#define STDC_HEADERS 1
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo SirainenEOF
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainenfi
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainen
a3d22d3cb0e5436128ca7287cedc921f1789b2c8Timo Sirainenfor ac_hdr in fcntl.h sys/time.h unistd.h
7c449f545b10daa47027552f98d916a9805da662Timo Sirainendo
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainenac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
eddd9bf1a1369aea4a2715f6be1137da6d17d293Timo Sirainenecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a3d22d3cb0e5436128ca7287cedc921f1789b2c8Timo Sirainenecho "configure:913: checking for $ac_hdr" >&5
a3d22d3cb0e5436128ca7287cedc921f1789b2c8Timo Sirainenif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 918 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:951: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 956 "configure"
#include "confdefs.h"
int main() {
/* Ultrix mips cc rejects this. */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this. */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this. */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
It does not let you subtract one const X* pointer from another in an arm
of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this. */
char *t;
char const *s = 0 ? (char *) 0 : (char const *) 0;
*t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
int x[] = {25, 17};
const int *foo = &x[0];
++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
typedef const int *iptr;
iptr p = 0;
++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
struct s { int j; const int *ap[3]; };
struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
const int foo = 10;
}
; return 0; }
EOF
if { (eval echo configure:1005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_c_const=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
cat >> confdefs.h <<\EOF
#define const
EOF
fi
echo $ac_n "checking for inline""... $ac_c" 1>&6
echo "configure:1026: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF
#line 1033 "configure"
#include "confdefs.h"
int main() {
} $ac_kw foo() {
; return 0; }
EOF
if { (eval echo configure:1040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_inline=$ac_kw; break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
fi
echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
inline | yes) ;;
no) cat >> confdefs.h <<\EOF
#define inline
EOF
;;
*) cat >> confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
;;
esac
echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:1066: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1071 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_size_t=yes
else
rm -rf conftest*
ac_cv_type_size_t=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF
fi
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:1099: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1104 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:1113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_time=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_header_time=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF
fi
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
echo "configure:1135: checking for pthread_create in -lpthread" >&5
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1143 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pthread_create();
int main() {
pthread_create()
; return 0; }
EOF
if { (eval echo configure:1154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
echo "configure:1180: checking for __pthread_create in -lpthread" >&5
ac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1188 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __pthread_create();
int main() {
__pthread_create()
; return 0; }
EOF
if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
echo "configure:1227: checking for __pthread_create_system in -lpthread" >&5
ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1235 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __pthread_create_system();
int main() {
__pthread_create_system()
; return 0; }
EOF
if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
fi
fi
echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
echo "configure:1277: checking for socket in -lxnet" >&5
ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lxnet $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1285 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char socket();
int main() {
socket()
; return 0; }
EOF
if { (eval echo configure:1296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lxnet $LIBS"
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
echo "configure:1322: checking for socket in -lsocket" >&5
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1330 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char socket();
int main() {
socket()
; return 0; }
EOF
if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lsocket $LIBS"
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
echo "configure:1369: checking for inet_ntoa in -lnsl" >&5
ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1377 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char inet_ntoa();
int main() {
inet_ntoa()
; return 0; }
EOF
if { (eval echo configure:1388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lnsl $LIBS"
else
echo "$ac_t""no" 1>&6
fi
fi
echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
echo "configure:1420: checking for inet_ntop" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_ntop'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1425 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_ntop(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char inet_ntop();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
inet_ntop();
#endif
; return 0; }
EOF
if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_inet_ntop=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_inet_ntop=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'inet_ntop`\" = yes"; then
echo "$ac_t""yes" 1>&6
:
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.o"
cat >> confdefs.h <<\EOF
#define NEED_INET_NTOP 1
EOF
fi
echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
echo "configure:1475: checking for inet_pton" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1480 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_pton(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char inet_pton();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
inet_pton();
#endif
; return 0; }
EOF
if { (eval echo configure:1503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_inet_pton=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_inet_pton=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
echo "$ac_t""yes" 1>&6
:
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.o"
cat >> confdefs.h <<\EOF
#define NEED_INET_PTON 1
EOF
fi
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
echo "configure:1530: checking for inet_aton" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1535 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_aton(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char inet_aton();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
inet_aton();
#endif
; return 0; }
EOF
if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_inet_aton=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_inet_aton=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
echo "$ac_t""yes" 1>&6
:
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.o"
cat >> confdefs.h <<\EOF
#define NEED_INET_ATON 1
EOF
fi
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:1586: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftestmake <<\EOF
all:
@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
eval ac_cv_prog_make_${ac_make}_set=yes
else
eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftestmake
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
echo "$ac_t""yes" 1>&6
SET_MAKE=
else
echo "$ac_t""no" 1>&6
SET_MAKE="MAKE=${MAKE-make}"
fi
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1615: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$RANLIB"; then
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_RANLIB="ranlib"
break
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
echo "$ac_t""$RANLIB" 1>&6
else
echo "$ac_t""no" 1>&6
fi
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:1652: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
for ac_dir in $PATH; do
# Account for people who put trailing slashes in PATH elements.
case "$ac_dir/" in
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
*)
# OSF1 and SCO ODT 3.0 have their own names for install.
for ac_prog in ginstall installbsd scoinst install; do
if test -f $ac_dir/$ac_prog; then
if test $ac_prog = install &&
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
# AIX install. It has an incompatible calling convention.
# OSF/1 installbsd also uses dspmsg, but is usable.
:
else
ac_cv_path_install="$ac_dir/$ac_prog -c"
break 2
fi
fi
done
;;
esac
done
IFS="$ac_save_IFS"
fi
if test "${ac_cv_path_install+set}" = set; then
INSTALL="$ac_cv_path_install"
else
# As a last resort, use the slow shell script. We don't cache a
# path for INSTALL within a source directory, because that will
# break other packages using the cache if that directory is
# removed, or if the path is relative.
INSTALL="$ac_install_sh"
fi
fi
echo "$ac_t""$INSTALL" 1>&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
if test "X$GCC" = "Xyes"; then
STD_CINCLUDES=
STD_CDEFINES=
STD_CWARNINGS="-W -Wall -Wmissing-prototypes"
case "$host" in
*-sun-solaris*)
LIBS="$LIBS -lthread"
;;
esac
else
STD_CINCLUDES=
STD_CDEFINES=
STD_CWARNINGS=
case "$host" in
*-dec-osf*)
CC="$CC -pthread"
;;
*-sun-solaris*)
CC="$CC -mt"
;;
*-hp-hpux*)
CC="$CC"
;;
esac
fi
case "$host" in
*-sun-solaris*)
cat >> confdefs.h <<\EOF
#define NEED_AF_INET6 1
EOF
;;
*-hp-hpux*)
cat >> confdefs.h <<\EOF
#define NEED_AF_INET6 1
EOF
;;
esac
BIND9_MAKE_RULES=make/rules
BIND9_VERSION=$srcdir/version
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
DEFS=-DHAVE_CONFIG_H
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.12"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "make/rules
Makefile
make/Makefile
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/pthreads/Makefile
lib/isc/pthreads/include/Makefile
lib/isc/pthreads/include/isc/Makefile
lib/dns/Makefile
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
bin/Makefile
bin/tests/Makefile
bin/named/Makefile
config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@CC@%$CC%g
s%@CPP@%$CPP%g
s%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
s%@SET_MAKE@%$SET_MAKE%g
s%@RANLIB@%$RANLIB%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@STD_CINCLUDES@%$STD_CINCLUDES%g
s%@STD_CDEFINES@%$STD_CDEFINES%g
s%@STD_CWARNINGS@%$STD_CWARNINGS%g
/@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
s%@BIND9_MAKE_RULES@%%g
/@BIND9_VERSION@/r $BIND9_VERSION
s%@BIND9_VERSION@%%g
CEOF
EOF
cat >> $CONFIG_STATUS <<\EOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"make/rules
Makefile
make/Makefile
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/pthreads/Makefile
lib/isc/pthreads/include/Makefile
lib/isc/pthreads/include/isc/Makefile
lib/dns/Makefile
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
bin/Makefile
bin/tests/Makefile
bin/named/Makefile
"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='\([ ]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_HEADERS="config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
echo creating $ac_file
rm -f conftest.frag conftest.in conftest.out
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
cat $ac_file_inputs > conftest.in
EOF
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
# This sed command replaces #undef with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
rm -f conftest.tail
while :
do
ac_lines=`grep -c . conftest.vals`
# grep -c gives empty output for an empty file on some AIX systems.
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
# Write a limited-size here document to conftest.frag.
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
echo 'CEOF
sed -f conftest.frag conftest.in > conftest.out
rm -f conftest.in
mv conftest.out conftest.in
' >> $CONFIG_STATUS
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
rm -f conftest.vals
mv conftest.tail conftest.vals
done
rm -f conftest.vals
cat >> $CONFIG_STATUS <<\EOF
rm -f conftest.frag conftest.h
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
cat conftest.in >> conftest.h
rm -f conftest.in
if cmp -s $ac_file conftest.h 2>/dev/null; then
echo "$ac_file is unchanged"
rm -f conftest.h
else
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
fi
rm -f $ac_file
mv conftest.h $ac_file
fi
fi; done
EOF
cat >> $CONFIG_STATUS <<EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1