# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59.
#
# Copyright (C) 2003 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
# Be Bourne compatible
NULLCMD=:
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
set -o posix
fi
# Support unset when possible.
as_unset=unset
else
as_unset=false
fi
# Work around bugs in pre-3.0 UWIN ksh.
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
do
else
fi
done
# Required to use basename.
else
as_expr=false
fi
else
as_basename=false
fi
# Name of the executable.
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)$' \| \
echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
/^X\/\(\/\/\)$/{ s//\1/; q; }
/^X\/\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_digits='0123456789'
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
PATH_SEPARATOR=';'
else
fi
fi
test "x$as_lineno_1" != "x$as_lineno_2" &&
# Find who we are. Look in the path if we contain no path at all
# relative or not.
case $0 in
*[\\/]* ) as_myself=$0 ;;
do
done
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
as_myself=$0
fi
{ (exit 1); exit 1; }; }
fi
case $CONFIG_SHELL in
'')
do
/*)
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
export CONFIG_SHELL
fi;;
esac
done
done
;;
esac
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
# line-number line before each line; the second 'sed' does the real
# work. The second script uses 'N' to pair each line-number line
# with the numbered line, and appends trailing '-' during
# substitution so that $LINENO is not a special case at line end.
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
sed '
N
s,$,-,
: loop
t loop
s,-$,,
{ (exit 1); exit 1; }; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensible to this).
# Exit status is that of the last command.
exit
}
esac
else
as_expr=false
fi
# We could just check for DJGPP; but this test a) works b) is more generic
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
# Don't use ln at all; we don't have any links
as_ln_s='cp -p'
else
as_ln_s='ln -s'
fi
else
as_ln_s='cp -p'
fi
else
test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
as_executable_p="test -f"
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
# CDPATH.
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
exec 6>&1
#
# Initializations.
#
# Maximum number of lines to put in a shell here document.
# This variable seems obsolete. It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}
# Identity of this package.
# Factoring default headers for most tests.
#include <stdio.h>
#if HAVE_SYS_TYPES_H
#endif
#if HAVE_SYS_STAT_H
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
# include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LOC_NTOA LIBOBJS LTLIBOBJS'
# Initialize some variables set by options.
ac_init_version=false
# The variables have the same names as the options, with
# dashes changed to underlines.
program_transform_name=s,x,x,
site=
# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
for ac_option
do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
continue
fi
# Accept the important Cygnus configure options, so we can diagnose typos.
case $ac_option in
bindir=$ac_optarg ;;
| --da=*)
# Reject names that are not valid shell variable names.
{ (exit 1); exit 1; }; }
eval "enable_$ac_feature=no" ;;
# Reject names that are not valid shell variable names.
{ (exit 1); exit 1; }; }
case $ac_option in
esac
eval "enable_$ac_feature='$ac_optarg'" ;;
# Obsolete; use --with-gas.
ac_init_help=long ;;
libdir=$ac_optarg ;;
mandir=$ac_optarg ;;
# Obsolete; use --without-fp.
no_recursion=yes ;;
prefix=$ac_optarg ;;
site=$ac_optarg ;;
srcdir=$ac_optarg ;;
ac_init_version=: ;;
# Reject names that are not valid shell variable names.
{ (exit 1); exit 1; }; }
case $ac_option in
esac
eval "with_$ac_package='$ac_optarg'" ;;
# Reject names that are not valid shell variable names.
{ (exit 1); exit 1; }; }
eval "with_$ac_package=no" ;;
--x)
# Obsolete; use --with-x.
-*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; }
;;
*=*)
# Reject names that are not valid shell variable names.
{ (exit 1); exit 1; }; }
eval "$ac_envvar='$ac_optarg'"
export $ac_envvar ;;
*)
# FIXME: should be removed in autoconf 3.0.
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
;;
esac
done
if test -n "$ac_prev"; then
{ (exit 1); exit 1; }; }
fi
# Be sure to have absolute paths.
do
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
{ (exit 1); exit 1; }; };;
esac
done
# Be sure to have absolute paths.
do
[\\/$]* | ?:[\\/]* ) ;;
{ (exit 1); exit 1; }; };;
esac
done
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
# FIXME: To remove some day.
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used." >&2
elif test "x$build_alias" != "x$host_alias"; then
fi
fi
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
# Try the directory containing this script, then its parent.
X"$0" : 'X\(//\)[^/]' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| \
echo X"$0" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
if test ! -r $srcdir/$ac_unique_file; then
srcdir=..
fi
else
fi
if test ! -r $srcdir/$ac_unique_file; then
if test "$ac_srcdir_defaulted" = yes; then
{ (exit 1); exit 1; }; }
else
{ (exit 1); exit 1; }; }
fi
fi
{ (exit 1); exit 1; }; }
ac_env_host_alias_set=${host_alias+set}
ac_env_CC_set=${CC+set}
ac_cv_env_CC_set=${CC+set}
ac_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPP_set=${CPP+set}
ac_cv_env_CPP_set=${CPP+set}
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
cat <<_ACEOF
\`configure' configures this package to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print \`checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for \`--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or \`..']
_ACEOF
cat <<_ACEOF
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data [PREFIX/share]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--infodir=DIR info documentation [PREFIX/info]
--mandir=DIR man documentation [PREFIX/man]
_ACEOF
fi
if test -n "$ac_init_help"; then
_ACEOF
fi
if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
ac_popdir=`pwd`
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
test -d $ac_dir || continue
ac_builddir=.
if test "$ac_dir" != .; then
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
# A "../" for each directory in $ac_dir_suffix.
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
ac_dir_suffix= ac_top_builddir=
fi
case $srcdir in
.) # No --srcdir option. We are building in place.
ac_srcdir=.
if test -z "$ac_top_builddir"; then
ac_top_srcdir=.
else
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
fi ;;
[\\/]* | ?:[\\/]* ) # Absolute path.
ac_srcdir=$srcdir$ac_dir_suffix;
ac_top_srcdir=$srcdir ;;
*) # Relative path.
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
case "$ac_dir" in
.) ac_abs_builddir=`pwd`;;
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
*) ac_abs_builddir=`pwd`/"$ac_dir";;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
case ${ac_top_builddir}. in
.) ac_abs_top_builddir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
case $ac_srcdir in
.) ac_abs_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
case $ac_top_srcdir in
.) ac_abs_top_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
esac;;
esac
cd $ac_dir
# Check for guested configure; otherwise get Cygnus style configure.
if test -f $ac_srcdir/configure.gnu; then
echo
$SHELL $ac_srcdir/configure.gnu --help=recursive
echo
elif test -f $ac_srcdir/configure.ac ||
test -f $ac_srcdir/configure.in; then
echo
$ac_configure --help
else
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fi
cd "$ac_popdir"
done
fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
Copyright (C) 2003 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
exit 0
fi
exec 5>config.log
cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by $as_me, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
_ACEOF
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
_ASUNAME
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
echo "PATH: $as_dir"
done
} >&5
cat >&5 <<_ACEOF
## ----------- ##
## Core tests. ##
## ----------- ##
_ACEOF
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_must_keep_next=false
do
for ac_arg
do
continue ;;
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
esac
2)
if test $ac_must_keep_next = true; then
ac_must_keep_next=false # Got value, back to normal.
else
esac
;;
-* ) ac_must_keep_next=true ;;
esac
fi
# Get rid of the leading space.
ac_sep=" "
;;
esac
done
done
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
# When interrupted or exit'd, cleanup temporary files, and complete
# config.log. We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Be sure not to use single quotes in there, as some shells,
# such as our DU 5.0 friend, will then `close' the trap.
trap 'exit_status=$?
# Save into config.log some information that might help in debugging.
{
echo
cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
echo
# The following way of writing the cache mishandles newlines in values,
{
(set) 2>&1 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
*ac_space=\ *)
sed -n \
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
;;
*)
sed -n \
;;
esac;
}
echo
cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
echo
for ac_var in $ac_subst_vars
do
eval ac_val=$`echo $ac_var`
done | sort
echo
cat <<\_ASBOX
## ------------- ##
## Output files. ##
## ------------- ##
_ASBOX
echo
for ac_var in $ac_subst_files
do
eval ac_val=$`echo $ac_var`
done | sort
echo
fi
if test -s confdefs.h; then
cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
echo
echo
fi
} >&5
rm -f core *.core &&
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h
# Predefined preprocessor variables.
cat >>confdefs.h <<_ACEOF
_ACEOF
cat >>confdefs.h <<_ACEOF
_ACEOF
cat >>confdefs.h <<_ACEOF
_ACEOF
cat >>confdefs.h <<_ACEOF
_ACEOF
cat >>confdefs.h <<_ACEOF
_ACEOF
# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
else
fi
fi
for ac_site_file in $CONFIG_SITE; do
fi
done
# files actually), so we avoid doing that.
case $cache_file in
[\\/]* | ?:[\\/]* ) . $cache_file;;
*) . ./$cache_file;;
esac
fi
else
fi
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in `(set) 2>&1 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set
eval ac_new_set=\$ac_env_${ac_var}_set
case $ac_old_set,$ac_new_set in
set,)
ac_cache_corrupted=: ;;
,set)
ac_cache_corrupted=: ;;
,);;
*)
ac_cache_corrupted=:
fi;;
esac
# Pass precious variables to config.status.
case $ac_new_val in
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
*) ac_arg=$ac_var=$ac_new_val ;;
esac
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
esac
fi
done
if $ac_cache_corrupted; then
{ (exit 1); exit 1; }; }
fi
ac_ext=c
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_ext=c
ac_compiler_gnu=$ac_cv_c_compiler_gnu
set dummy ${ac_tool_prefix}gcc; ac_word=$2
else
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
for ac_exec_ext in '' $ac_executable_extensions; do
break 2
fi
done
done
fi
fi
else
fi
fi
ac_ct_CC=$CC
set dummy gcc; ac_word=$2
else
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
for ac_exec_ext in '' $ac_executable_extensions; do
break 2
fi
done
done
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
else
fi
CC=$ac_ct_CC
else
fi
set dummy ${ac_tool_prefix}cc; ac_word=$2
else
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
for ac_exec_ext in '' $ac_executable_extensions; do
break 2
fi
done
done
fi
fi
else
fi
fi
ac_ct_CC=$CC
set dummy cc; ac_word=$2
else
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
for ac_exec_ext in '' $ac_executable_extensions; do
break 2
fi
done
done
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
else
fi
CC=$ac_ct_CC
else
fi
fi
set dummy cc; ac_word=$2
else
else
ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
for ac_exec_ext in '' $ac_executable_extensions; do
ac_prog_rejected=yes
continue
fi
break 2
fi
done
done
if test $ac_prog_rejected = yes; then
# We found a bogon in the path, so make sure we never use it.
set dummy $ac_cv_prog_CC
shift
if test $# != 0; then
# We chose a different compiler from the bogus one.
# However, it has the same basename, so the bogon will be chosen
# first if we set CC to just the basename; use the full file name.
shift
fi
fi
fi
fi
else
fi
fi
for ac_prog in cl
do
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
else
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
for ac_exec_ext in '' $ac_executable_extensions; do
break 2
fi
done
done
fi
fi
else
fi
done
fi
ac_ct_CC=$CC
for ac_prog in cl
do
set dummy $ac_prog; ac_word=$2
else
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
for ac_exec_ext in '' $ac_executable_extensions; do
break 2
fi
done
done
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
else
fi
done
CC=$ac_ct_CC
fi
fi
See \`config.log' for more details." >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH
{ (exit 1); exit 1; }; }
# Provide some information about the compiler.
ac_compiler=`set X $ac_compile; echo $2`
(eval $ac_compiler --version </dev/null >&5) 2>&5
ac_status=$?
(exit $ac_status); }
(eval $ac_compiler -v </dev/null >&5) 2>&5
ac_status=$?
(exit $ac_status); }
(eval $ac_compiler -V </dev/null >&5) 2>&5
ac_status=$?
(exit $ac_status); }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
(eval $ac_link_default) 2>&5
ac_status=$?
(exit $ac_status); }; then
# Find the output, starting from the most likely. This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
# Be careful to initialize this variable, since it used to be cached.
ac_cv_exeext=
# b.out is created by i960 compilers.
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
do
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
;;
conftest.$ac_ext )
# This is the source file.
;;
[ab].out )
# We found the default executable, but exeext='' is most
# certainly right.
break;;
*.* )
# FIXME: I believe we export ac_cv_exeext for Libtool,
# but it would be cool to find out if it's true. Does anybody
# maintain Libtool? --akim.
export ac_cv_exeext
break;;
* )
break;;
esac
done
else
sed 's/^/| /' conftest.$ac_ext >&5
See \`config.log' for more details." >&5
echo "$as_me: error: C compiler cannot create executables
{ (exit 77); exit 77; }; }
fi
ac_exeext=$ac_cv_exeext
# Check the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if { ac_try='./$ac_file'
(eval $ac_try) 2>&5
ac_status=$?
(exit $ac_status); }; }; then
cross_compiling=no
else
cross_compiling=yes
else
{ (exit 1); exit 1; }; }
fi
fi
fi
rm -f a.out a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
(eval $ac_link) 2>&5
ac_status=$?
(exit $ac_status); }; then
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
export ac_cv_exeext
break;;
* ) break;;
esac
done
else
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
if test "${ac_cv_objext+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
ac_status=$?
break;;
esac
done
else
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "${ac_cv_c_compiler_gnu+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
#ifndef __GNUC__
choke me
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
fi
ac_test_CFLAGS=${CFLAGS+set}
CFLAGS="-g"
if test "${ac_cv_prog_cc_g+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
fi
elif test $ac_cv_prog_cc_g = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
else
CFLAGS="-O2"
else
fi
fi
if test "${ac_cv_prog_cc_stdc+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
char **p;
int i;
{
return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
char *s;
va_list v;
va_start (v,p);
s = g (p, va_arg (v,int));
va_end (v);
return s;
}
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
function prototypes and stuff, but not '\xHH' hex character constants.
These don't provoke an error unfortunately, instead are silently treated
as 'x'. The following induces an error, until -std1 is added to get
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
array size at least. It's necessary to write '\x00'==0 to get something
that's true only with -std1. */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
;
return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX -qlanglvl=ansi
# Ultrix and OSF/1 -std1
# HP-UX 10.20 and later -Ae
# HP-UX older versions -Aa -D_HPUX_SOURCE
# SVR4 -Xc -D__EXTENSIONS__
do
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
break
else
fi
done
fi
x|xno)
echo "${ECHO_T}none needed" >&6 ;;
*)
esac
# Some people use a C++ compiler to compile C. Since we use `exit',
# in C++ we need to declare it. In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
#ifndef __cplusplus
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
for ac_declaration in \
'' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
'extern "C" void exit (int);' \
'void exit (int);'
do
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_declaration
#include <stdlib.h>
int
main ()
{
exit (42);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
:
else
continue
fi
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_declaration
int
main ()
{
exit (42);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
break
else
fi
done
echo $ac_declaration >>confdefs.h
fi
else
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
CFLAGS="${CFLAGS} -Wall"
fi
ac_install_sh="$ac_aux_dir/install-sh -c"
break
elif test -f $ac_dir/install.sh; then
break
ac_install_sh="$ac_aux_dir/shtool install -c"
break
fi
done
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
{ (exit 1); exit 1; }; }
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:
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
if test "${ac_cv_path_install+set}" = set; then
else
do
# Account for people who put trailing slashes in PATH elements.
./ | .// | /cC/* | \
*)
# OSF1 and SCO ODT 3.0 have their own names for install.
# Don't use installbsd from OSF since it installs stuff as root
# by default.
# AIX install. It has an incompatible calling convention.
:
# program-specific install script used by HP pwplus--don't use.
:
else
break 3
fi
fi
done
done
;;
esac
done
fi
if test "${ac_cv_path_install+set}" = set; then
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.
fi
fi
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
if test "${ac_cv_lib_resolv_res_query+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char res_query ();
int
main ()
{
res_query ();
;
return 0;
}
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
rm -f conftest.err conftest.$ac_objext \
fi
if test $ac_cv_lib_resolv_res_query = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBRESOLV 1
_ACEOF
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# On Suns, sometimes $CPP names a directory.
CPP=
fi
if test "${ac_cv_prog_CPP+set}" = set; then
else
# Double quotes because CPP needs to be expanded
do
ac_preproc_ok=false
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# <limits.h> exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
if test -s conftest.err; then
else
fi
else
fi
:
else
# Broken: fails on valid input.
continue
fi
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <ac_nonexistent.h>
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
if test -s conftest.err; then
else
fi
else
fi
# Broken: success on invalid input.
continue
else
# Passes both tests.
break
fi
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
if $ac_preproc_ok; then
break
fi
done
fi
else
fi
ac_preproc_ok=false
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# <limits.h> exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
if test -s conftest.err; then
else
fi
else
fi
:
else
# Broken: fails on valid input.
continue
fi
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <ac_nonexistent.h>
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
if test -s conftest.err; then
else
fi
else
fi
# Broken: success on invalid input.
continue
else
# Passes both tests.
break
fi
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
if $ac_preproc_ok; then
:
else
See \`config.log' for more details." >&5
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
if test "${ac_cv_prog_egrep+set}" = set; then
else
then ac_cv_prog_egrep='grep -E'
else ac_cv_prog_egrep='egrep'
fi
fi
if test "${ac_cv_header_stdc+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
if test $ac_cv_header_stdc = yes; then
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <string.h>
_ACEOF
:
else
fi
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <stdlib.h>
_ACEOF
:
else
fi
fi
if test $ac_cv_header_stdc = yes; then
:
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
(('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
int i;
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
|| toupper (i) != TOUPPER (i))
exit(2);
exit (0);
}
_ACEOF
ac_status=$?
ac_status=$?
:
else
( exit $ac_status )
fi
fi
fi
fi
if test $ac_cv_header_stdc = yes; then
cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
fi
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
do
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
eval "$as_ac_Header=yes"
else
eval "$as_ac_Header=no"
fi
fi
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
if test "${ac_cv_header_resolv_h+set}" = set; then
if test "${ac_cv_header_resolv_h+set}" = set; then
fi
else
# Is the header compilable?
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <resolv.h>
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
# Is the header present?
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <resolv.h>
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
if test -s conftest.err; then
else
fi
else
fi
else
fi
# So? What about this header?
{ echo "$as_me:$LINENO: WARNING: resolv.h: accepted by the compiler, rejected by the preprocessor!" >&5
;;
(
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
) |
;;
esac
if test "${ac_cv_header_resolv_h+set}" = set; then
else
fi
fi
if test $ac_cv_header_resolv_h = yes; then
:
else
{ (exit 1); exit 1; }; }
fi
if test "${ac_cv_header_arpa_nameser_h+set}" = set; then
if test "${ac_cv_header_arpa_nameser_h+set}" = set; then
fi
else
# Is the header compilable?
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <arpa/nameser.h>
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
# Is the header present?
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <arpa/nameser.h>
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
if test -s conftest.err; then
else
fi
else
fi
else
fi
# So? What about this header?
{ echo "$as_me:$LINENO: WARNING: arpa/nameser.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: arpa/nameser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
;;
{ echo "$as_me:$LINENO: WARNING: arpa/nameser.h: in the future, the compiler will take precedence" >&5
(
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
) |
;;
esac
if test "${ac_cv_header_arpa_nameser_h+set}" = set; then
else
fi
fi
if test $ac_cv_header_arpa_nameser_h = yes; then
:
else
{ (exit 1); exit 1; }; }
fi
if test "${ac_cv_header_sys_time_h+set}" = set; then
if test "${ac_cv_header_sys_time_h+set}" = set; then
fi
else
# Is the header compilable?
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <sys/time.h>
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
# Is the header present?
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <sys/time.h>
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
if test -s conftest.err; then
else
fi
else
fi
else
fi
# So? What about this header?
{ echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
;;
(
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
) |
;;
esac
if test "${ac_cv_header_sys_time_h+set}" = set; then
else
fi
fi
if test $ac_cv_header_sys_time_h = yes; then
:
else
{ (exit 1); exit 1; }; }
fi
if test "${ac_cv_header_unistd_h+set}" = set; then
if test "${ac_cv_header_unistd_h+set}" = set; then
fi
else
# Is the header compilable?
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <unistd.h>
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
# Is the header present?
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <unistd.h>
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
if test -s conftest.err; then
else
fi
else
fi
else
fi
# So? What about this header?
{ echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
;;
(
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
) |
;;
esac
if test "${ac_cv_header_unistd_h+set}" = set; then
else
fi
fi
if test $ac_cv_header_unistd_h = yes; then
:
else
{ (exit 1); exit 1; }; }
fi
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
union
{
HEADER hdr;
u_char buf[4096]; /* With RFC 2671, otherwise 512 is enough */
}
response;
char *domain;
int requested_type;
int
main ()
{
res_query(domain,
C_IN,
requested_type,
(u_char *) & response,
sizeof (response))
;
return 0;
}
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
echo "${ECHO_T}no" >&6
else
fi
rm -f conftest.err conftest.$ac_objext \
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
#include <resolv.h>
int
main ()
{
u_char *cp; char *result; loc_ntoa(cp, result)
;
return 0;
}
_ACEOF
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
#define HAVE_LOC_NTOA 1
else
fi
rm -f conftest.err conftest.$ac_objext \
if test "${ac_cv_c_const+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
/* 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;
}
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
fi
if test $ac_cv_c_const = no; then
cat >>confdefs.h <<\_ACEOF
#define const
fi
if test "${ac_cv_type_long+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((long *) 0)
return 0;
if (sizeof (long))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
fi
if test "${ac_cv_sizeof_long+set}" = set; then
else
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
# Depending upon the size, compute the lo and hi bounds.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
while :; do
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
break
fi
fi
done
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
while :; do
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
break
fi
fi
done
else
fi
fi
# Binary search between lo and hi bounds.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
done
?*) ac_cv_sizeof_long=$ac_lo;;
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
{ (exit 1); exit 1; }; }
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (long)); }
unsigned long ulongval () { return (long) (sizeof (long)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (long))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (long))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (long))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
ac_status=$?
ac_status=$?
else
( exit $ac_status )
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
fi
rm -f conftest.val
else
fi
fi
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF
if test "${ac_cv_type_int+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((int *) 0)
return 0;
if (sizeof (int))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
fi
if test "${ac_cv_sizeof_int+set}" = set; then
else
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
# Depending upon the size, compute the lo and hi bounds.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
while :; do
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
break
fi
fi
done
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
while :; do
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
break
fi
fi
done
else
fi
fi
# Binary search between lo and hi bounds.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
done
?*) ac_cv_sizeof_int=$ac_lo;;
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
{ (exit 1); exit 1; }; }
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (int)); }
unsigned long ulongval () { return (long) (sizeof (int)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (int))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (int))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (int))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
ac_status=$?
ac_status=$?
else
( exit $ac_status )
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
fi
rm -f conftest.val
else
fi
fi
cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF
if test "${ac_cv_type_short+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((short *) 0)
return 0;
if (sizeof (short))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
fi
if test "${ac_cv_sizeof_short+set}" = set; then
else
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
# Depending upon the size, compute the lo and hi bounds.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
while :; do
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
break
fi
fi
done
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
while :; do
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
break
fi
fi
done
else
fi
fi
# Binary search between lo and hi bounds.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
done
?*) ac_cv_sizeof_short=$ac_lo;;
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
{ (exit 1); exit 1; }; }
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (short)); }
unsigned long ulongval () { return (long) (sizeof (short)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (short))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (short))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (short))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
ac_status=$?
ac_status=$?
else
( exit $ac_status )
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
fi
rm -f conftest.val
else
fi
fi
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF
if test "${ac_cv_type_char+set}" = set; then
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((char *) 0)
return 0;
if (sizeof (char))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
fi
if test "${ac_cv_sizeof_char+set}" = set; then
else
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
# Depending upon the size, compute the lo and hi bounds.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
while :; do
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
break
fi
fi
done
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
while :; do
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
break
fi
fi
done
else
fi
fi
# Binary search between lo and hi bounds.
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
ac_status=$?
rm -f conftest.er1
cat conftest.err >&5
ac_status=$?
ac_status=$?
else
fi
done
?*) ac_cv_sizeof_char=$ac_lo;;
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
{ (exit 1); exit 1; }; }
else
/* confdefs.h. */
_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (char)); }
unsigned long ulongval () { return (long) (sizeof (char)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (char))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (char))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (char))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
ac_status=$?
ac_status=$?
else
( exit $ac_status )
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
fi
rm -f conftest.val
else
fi
fi
cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR $ac_cv_sizeof_char
_ACEOF
ac_config_files="$ac_config_files Makefile"
# 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, see configure's option --config-cache.
# It is not useful on other systems. If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.
# 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 |
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote
# substitution turns \\\\ into \\, and sed turns \\ into \).
sed -n \
"s/'/'\\\\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n \
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
;;
esac;
} |
sed '
t clear
: clear
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
t end
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
: end' >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
if test -w $cache_file; then
else
echo "not updating unwritable cache $cache_file"
fi
fi
# Let make expand exec_prefix.
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
ac_vpsub='/^[ ]*VPATH[ ]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@srcdir@:*/:/;
s/^\([^=]*=[ ]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ ]*$//;
}'
fi
# 1. Remove the extension, and $U if already installed.
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
# 2. Add them.
done
: ${CONFIG_STATUS=./config.status}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.
debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
# Be Bourne compatible
NULLCMD=:
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
set -o posix
fi
# Support unset when possible.
as_unset=unset
else
as_unset=false
fi
# Work around bugs in pre-3.0 UWIN ksh.
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
do
else
fi
done
# Required to use basename.
else
as_expr=false
fi
else
as_basename=false
fi
# Name of the executable.
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)$' \| \
echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
/^X\/\(\/\/\)$/{ s//\1/; q; }
/^X\/\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_digits='0123456789'
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
PATH_SEPARATOR=';'
else
fi
fi
# Find who we are. Look in the path if we contain no path at all
# relative or not.
case $0 in
*[\\/]* ) as_myself=$0 ;;
do
done
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
as_myself=$0
fi
{ (exit 1); exit 1; }; }
fi
case $CONFIG_SHELL in
'')
do
/*)
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
export CONFIG_SHELL
fi;;
esac
done
done
;;
esac
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
# line-number line before each line; the second 'sed' does the real
# work. The second script uses 'N' to pair each line-number line
# with the numbered line, and appends trailing '-' during
# substitution so that $LINENO is not a special case at line end.
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
sed '
N
s,$,-,
: loop
t loop
s,-$,,
{ (exit 1); exit 1; }; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensible to this).
# Exit status is that of the last command.
exit
}
esac
else
as_expr=false
fi
# We could just check for DJGPP; but this test a) works b) is more generic
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
# Don't use ln at all; we don't have any links
as_ln_s='cp -p'
else
as_ln_s='ln -s'
fi
else
as_ln_s='cp -p'
fi
else
test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
as_executable_p="test -f"
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
# CDPATH.
exec 6>&1
# Open the log real soon, to keep \$[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. Logging --version etc. is OK.
exec 5>>config.log
{
echo
## Running $as_me. ##
_ASBOX
} >&5
cat >&5 <<_CSEOF
This file was extended by $as_me, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS
CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@
_CSEOF
echo >&5
# Files that config.status was made for.
fi
fi
fi
fi
cat >>$CONFIG_STATUS <<\_ACEOF
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.
Usage: $0 [OPTIONS] [FILE]...
-h, --help print this help, then exit
-V, --version print version number, then exit
-q, --quiet do not print progress messages
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same conditions
--file=FILE[:TEMPLATE]
instantiate the configuration file FILE
--header=FILE[:TEMPLATE]
instantiate the configuration header FILE
Configuration files:
Configuration headers:
Report bugs to <bug-autoconf@gnu.org>."
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Copyright (C) 2003 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
INSTALL="$INSTALL"
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
# If no file are specified by the user, then we need to provide default
# value. By we need to know if files were specified by the user.
while test $# != 0
do
case $1 in
--*=*)
ac_shift=:
;;
-*)
ac_option=$1
ac_optarg=$2
ac_shift=shift
;;
*) # This is not an option, so the user has probably given explicit
# arguments.
ac_option=$1
ac_need_defaults=false;;
esac
case $ac_option in
# Handling of the options.
cat >>$CONFIG_STATUS <<\_ACEOF
ac_cs_recheck=: ;;
--he | --h)
# Conflict between --help and --header
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
{ (exit 1); exit 1; }; };;
--debug | --d* | -d )
debug=: ;;
ac_need_defaults=false;;
ac_need_defaults=false;;
ac_cs_silent=: ;;
# This is an error.
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
shift
done
if $ac_cs_silent; then
ac_configure_extra_args="$ac_configure_extra_args --silent"
fi
cat >>$CONFIG_STATUS <<_ACEOF
if \$ac_cs_recheck; then
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fi
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
do
# Handling of arguments.
{ (exit 1); exit 1; }; };;
esac
done
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used. Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
fi
# Have a temporary directory for convenience. Make it in the build tree
# simply because there is no reason to put it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
{
} ||
{
} ||
{
{ (exit 1); exit 1; }
}
cat >>$CONFIG_STATUS <<_ACEOF
#
# CONFIG_FILES section.
#
# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
# Protect against being on the right side of a sed subst in config.status.
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@SHELL@,$SHELL,;t t
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
s,@exec_prefix@,$exec_prefix,;t t
s,@prefix@,$prefix,;t t
s,@program_transform_name@,$program_transform_name,;t t
s,@bindir@,$bindir,;t t
s,@sbindir@,$sbindir,;t t
s,@libexecdir@,$libexecdir,;t t
s,@datadir@,$datadir,;t t
s,@sysconfdir@,$sysconfdir,;t t
s,@sharedstatedir@,$sharedstatedir,;t t
s,@localstatedir@,$localstatedir,;t t
s,@libdir@,$libdir,;t t
s,@includedir@,$includedir,;t t
s,@oldincludedir@,$oldincludedir,;t t
s,@infodir@,$infodir,;t t
s,@mandir@,$mandir,;t t
s,@build_alias@,$build_alias,;t t
s,@host_alias@,$host_alias,;t t
s,@target_alias@,$target_alias,;t t
s,@DEFS@,$DEFS,;t t
s,@ECHO_C@,$ECHO_C,;t t
s,@ECHO_N@,$ECHO_N,;t t
s,@ECHO_T@,$ECHO_T,;t t
s,@LIBS@,$LIBS,;t t
s,@CC@,$CC,;t t
s,@CFLAGS@,$CFLAGS,;t t
s,@LDFLAGS@,$LDFLAGS,;t t
s,@CPPFLAGS@,$CPPFLAGS,;t t
s,@ac_ct_CC@,$ac_ct_CC,;t t
s,@EXEEXT@,$EXEEXT,;t t
s,@OBJEXT@,$OBJEXT,;t t
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
s,@CPP@,$CPP,;t t
s,@EGREP@,$EGREP,;t t
s,@LOC_NTOA@,$LOC_NTOA,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
CEOF
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_sed_frag=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_lines # Line after last line for current file.
while $ac_more_lines; do
else
fi
ac_more_lines=false
else
# The purpose of the label and of the branching condition is to
# speed up the sed processing (if there are no `@' at all, there
# is no need to browse any of the substitutions).
# These are the two extra sed commands mentioned above.
(echo ':t
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
else
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
fi
fi
done
fi
fi # test -n "$CONFIG_FILES"
cat >>$CONFIG_STATUS <<\_ACEOF
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- | *:- | *:-:* ) # input from stdin
* ) ac_file_in=$ac_file.in ;;
esac
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
{ if $as_mkdir_p; then
else
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
done
{ (exit 1); exit 1; }; }; }
# A "../" for each directory in $ac_dir_suffix.
else
fi
.) # No --srcdir option. We are building in place.
else
fi ;;
[\\/]* | ?:[\\/]* ) # Absolute path.
*) # Relative path.
esac
# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
*)
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
case ${ac_top_builddir}. in
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
case $ac_srcdir in
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
esac;;
esac
case $ac_abs_builddir in
*)
case $ac_top_srcdir in
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
esac;;
esac
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
esac
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */
else
fi
# First look for the input files in the build tree, otherwise in the
# src tree.
ac_file_inputs=`IFS=:
for f in $ac_file_in; do
case $f in
-) echo $tmp/stdin ;;
[\\/$]*)
# Absolute (can't be DOS-style, as IFS=:)
{ (exit 1); exit 1; }; }
echo "$f";;
*) # Relative
if test -f "$f"; then
# Build tree
echo "$f"
# Source tree
else
{ (exit 1); exit 1; }; }
fi;;
esac
done` || { (exit 1); exit 1; }
fi
cat >>$CONFIG_STATUS <<_ACEOF
sed "$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
:t
s,@configure_input@,$configure_input,;t t
s,@srcdir@,$ac_srcdir,;t t
s,@abs_srcdir@,$ac_abs_srcdir,;t t
s,@top_srcdir@,$ac_top_srcdir,;t t
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
s,@builddir@,$ac_builddir,;t t
s,@abs_builddir@,$ac_abs_builddir,;t t
s,@top_builddir@,$ac_top_builddir,;t t
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
s,@INSTALL@,$ac_INSTALL,;t t
rm -f $tmp/stdin
else
cat $tmp/out
rm -f $tmp/out
fi
done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
#
# CONFIG_HEADER section.
#
# 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=' '
ac_dD=',;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='$,\1#\2define\3'
ac_uC=' '
ac_uD=',;t'
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- | *:- | *:-:* ) # input from stdin
* ) ac_file_in=$ac_file.in ;;
esac
# First look for the input files in the build tree, otherwise in the
# src tree.
ac_file_inputs=`IFS=:
for f in $ac_file_in; do
case $f in
-) echo $tmp/stdin ;;
[\\/$]*)
# Absolute (can't be DOS-style, as IFS=:)
{ (exit 1); exit 1; }; }
# Do quote $f, to prevent DOS paths from being IFS'd.
echo "$f";;
*) # Relative
if test -f "$f"; then
# Build tree
echo "$f"
# Source tree
else
{ (exit 1); exit 1; }; }
fi;;
esac
done` || { (exit 1); exit 1; }
# Remove the trailing spaces.
# Transform confdefs.h into two sed scripts, `conftest.defines' and
# `conftest.undefs', that substitutes the proper values into
# config.h.in to produce config.h. The first handles `#define'
# templates, and the second `#undef' templates.
# 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.
# Using a here document instead of a string reduces the quoting nightmare.
# Putting comments in sed scripts is not portable.
#
# `end' is used to avoid that the second main sed command (meant for
# 0-ary CPP macros) applies to n-ary macro definitions.
# See the Autoconf documentation for `clear'.
cat >confdef2sed.sed <<\_ACEOF
s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
t end
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: end
_ACEOF
# If some macros were called several times there might be several times
# the same #defines, which is useless. Nevertheless, we may not want to
# sort them, since we want the *last* AC-DEFINE to be honored.
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
rm -f confdef2sed.sed
# 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.undefs <<\_ACEOF
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
_ACEOF
# Break up conftest.defines because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.defines >/dev/null
do
# Write a limited-size here document to $tmp/defines.sed.
# Speed up: don't consider the non `#define' lines.
# Work around the forget-to-reset-the-flag bug.
echo 'CEOF
' >>$CONFIG_STATUS
done
echo >>$CONFIG_STATUS
# Break up conftest.undefs because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
rm -f conftest.tail
while grep . conftest.undefs >/dev/null
do
# Write a limited-size here document to $tmp/undefs.sed.
# Speed up: don't consider the non `#undef'
# Work around the forget-to-reset-the-flag bug.
echo 'CEOF
' >>$CONFIG_STATUS
done
cat >>$CONFIG_STATUS <<\_ACEOF
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */
else
fi
else
X"$ac_file" : 'X\(//\)[^/]' \| \
X"$ac_file" : 'X\(//\)$' \| \
X"$ac_file" : 'X\(/\)' \| \
echo X"$ac_file" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
{ if $as_mkdir_p; then
else
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
done
{ (exit 1); exit 1; }; }; }
fi
else
fi
done
cat >>$CONFIG_STATUS <<\_ACEOF
{ (exit 0); exit 0; }
# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status. When coming back to configure, we
# need to make the FD available again.
ac_config_status_args="$ac_config_status_args --quiet"
exec 5>>config.log
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
# would make configure fail if this is the last instruction.
fi