emacs/configure

24379 lines
679 KiB
Text
Raw Normal View History

1999-10-07 13:06:22 +00:00
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
2006-12-22 19:23:19 +00:00
# Generated by GNU Autoconf 2.61.
1999-10-07 13:06:22 +00:00
#
2006-12-20 19:57:39 +00:00
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2007-01-23 00:57:48 +00:00
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1999-10-07 13:06:22 +00:00
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
2002-11-07 17:33:03 +00:00
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
2001-10-19 12:33:10 +00:00
2006-12-22 19:23:19 +00:00
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
2001-10-19 12:33:10 +00:00
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
2002-11-08 12:32:10 +00:00
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
2006-12-20 19:57:39 +00:00
setopt NO_GLOB_SUBST
else
2006-12-22 19:23:19 +00:00
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;;
esac
2001-10-19 12:33:10 +00:00
fi
2006-12-22 19:23:19 +00:00
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
rm -f conf$$.sh
fi
2002-11-07 17:33:03 +00:00
# Support unset when possible.
2005-07-06 12:07:32 +00:00
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2002-11-07 17:33:03 +00:00
as_unset=unset
else
as_unset=false
fi
2002-11-08 12:32:10 +00:00
2006-12-20 19:57:39 +00:00
# IFS
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" "" $as_nl"
# Find who we are. Look in the path if we contain no directory separator.
case $0 in
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS
;;
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.
if test "x$as_myself" = x; then
as_myself=$0
fi
if test ! -f "$as_myself"; then
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
{ (exit 1); exit 1; }
fi
2002-11-08 12:32:10 +00:00
# Work around bugs in pre-3.0 UWIN ksh.
2006-12-20 19:57:39 +00:00
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
2002-11-08 12:32:10 +00:00
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
2003-07-23 11:16:30 +00:00
for as_var in \
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
LC_TELEPHONE LC_TIME
2002-11-08 12:32:10 +00:00
do
2005-07-06 12:07:32 +00:00
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2002-11-08 12:32:10 +00:00
eval $as_var=C; export $as_var
else
2006-12-20 19:57:39 +00:00
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2002-11-08 12:32:10 +00:00
fi
done
# Required to use basename.
2006-12-20 19:57:39 +00:00
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2002-11-08 12:32:10 +00:00
as_expr=expr
else
as_expr=false
fi
2006-12-20 19:57:39 +00:00
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2002-11-08 12:32:10 +00:00
as_basename=basename
else
as_basename=false
fi
2002-11-07 17:33:03 +00:00
2001-10-19 12:33:10 +00:00
# Name of the executable.
2006-12-20 19:57:39 +00:00
as_me=`$as_basename -- "$0" ||
2002-11-07 17:33:03 +00:00
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
2006-12-20 19:57:39 +00:00
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2002-11-07 17:33:03 +00:00
echo X/"$0" |
2006-12-20 19:57:39 +00:00
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
# CDPATH.
$as_unset CDPATH
2006-12-19 06:49:01 +00:00
2006-12-20 19:57:39 +00:00
if test "x$CONFIG_SHELL" = x; then
if (eval ":") 2>/dev/null; then
as_have_required=yes
else
as_have_required=no
2006-12-19 06:49:01 +00:00
fi
2006-12-20 19:57:39 +00:00
if test $as_have_required = yes && (eval ":
(as_func_return () {
(exit \$1)
}
as_func_success () {
as_func_return 0
}
as_func_failure () {
as_func_return 1
}
as_func_ret_success () {
return 0
}
as_func_ret_failure () {
return 1
}
2006-12-19 06:49:01 +00:00
2006-12-20 19:57:39 +00:00
exitcode=0
if as_func_success; then
:
else
exitcode=1
echo as_func_success failed.
fi
2006-12-19 06:49:01 +00:00
2006-12-20 19:57:39 +00:00
if as_func_failure; then
exitcode=1
echo as_func_failure succeeded.
fi
if as_func_ret_success; then
:
else
exitcode=1
echo as_func_ret_success failed.
fi
if as_func_ret_failure; then
exitcode=1
echo as_func_ret_failure succeeded.
fi
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
:
else
exitcode=1
echo positional parameters were not saved.
fi
test \$exitcode = 0) || { (exit 1); exit 1; }
(
as_lineno_1=\$LINENO
as_lineno_2=\$LINENO
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
") 2> /dev/null; then
:
else
as_candidate_shells=
2002-11-07 17:33:03 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006-12-22 19:23:19 +00:00
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2002-11-07 17:33:03 +00:00
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
2006-12-20 19:57:39 +00:00
case $as_dir in
2002-11-07 17:33:03 +00:00
/*)
2006-12-20 19:57:39 +00:00
for as_base in sh bash ksh sh5; do
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
done;;
esac
done
IFS=$as_save_IFS
for as_shell in $as_candidate_shells $SHELL; do
# Try only shells that exist, to save several forks.
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
{ ("$as_shell") 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
2006-12-22 19:23:19 +00:00
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;;
esac
2006-12-20 19:57:39 +00:00
fi
2006-12-22 19:23:19 +00:00
2006-12-20 19:57:39 +00:00
:
_ASEOF
}; then
CONFIG_SHELL=$as_shell
as_have_required=yes
if { "$as_shell" 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
2006-12-22 19:23:19 +00:00
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;;
esac
2006-12-20 19:57:39 +00:00
fi
2006-12-22 19:23:19 +00:00
2006-12-20 19:57:39 +00:00
:
(as_func_return () {
(exit $1)
}
as_func_success () {
as_func_return 0
}
as_func_failure () {
as_func_return 1
}
as_func_ret_success () {
return 0
}
as_func_ret_failure () {
return 1
}
exitcode=0
if as_func_success; then
:
else
exitcode=1
echo as_func_success failed.
fi
if as_func_failure; then
exitcode=1
echo as_func_failure succeeded.
fi
if as_func_ret_success; then
:
else
exitcode=1
echo as_func_ret_success failed.
fi
if as_func_ret_failure; then
exitcode=1
echo as_func_ret_failure succeeded.
fi
if ( set x; as_func_ret_success y && test x = "$1" ); then
:
else
exitcode=1
echo positional parameters were not saved.
fi
test $exitcode = 0) || { (exit 1); exit 1; }
(
2006-12-19 06:49:01 +00:00
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
2006-12-20 19:57:39 +00:00
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
_ASEOF
}; then
break
fi
fi
done
if test "x$CONFIG_SHELL" != x; then
for as_var in BASH_ENV ENV
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
export CONFIG_SHELL
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
fi
if test $as_have_required = no; then
echo This script requires a shell more modern than all the
echo shells that I found on your system. Please install a
echo modern shell, or manually run the script under such a
echo shell if you do have one.
{ (exit 1); exit 1; }
fi
fi
fi
(eval "as_func_return () {
(exit \$1)
}
as_func_success () {
as_func_return 0
}
as_func_failure () {
as_func_return 1
}
as_func_ret_success () {
return 0
}
as_func_ret_failure () {
return 1
}
exitcode=0
if as_func_success; then
:
else
exitcode=1
echo as_func_success failed.
fi
if as_func_failure; then
exitcode=1
echo as_func_failure succeeded.
fi
if as_func_ret_success; then
:
else
exitcode=1
echo as_func_ret_success failed.
fi
if as_func_ret_failure; then
exitcode=1
echo as_func_ret_failure succeeded.
fi
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
:
else
exitcode=1
echo positional parameters were not saved.
fi
test \$exitcode = 0") || {
echo No shell found that supports shell functions.
echo Please tell autoconf@gnu.org about your system,
echo including any error possibly output before this
echo message
}
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2002-11-07 17:33:03 +00:00
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
2006-12-20 19:57:39 +00:00
# line-number line after each line using $LINENO; the second 'sed'
# does the real work. The second script uses 'N' to pair each
# line-number line with the line containing $LINENO, and appends
# trailing '-' during substitution so that $LINENO is not a special
# case at line end.
2002-11-07 17:33:03 +00:00
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2006-12-20 19:57:39 +00:00
# scripts with optimization help from Paolo Bonzini. Blame Lee
# E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
2002-11-07 17:33:03 +00:00
sed '
2006-12-20 19:57:39 +00:00
s/[$]LINENO.*/&-/
t lineno
b
:lineno
2002-11-07 17:33:03 +00:00
N
2006-12-20 19:57:39 +00:00
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2002-11-07 17:33:03 +00:00
t loop
2006-12-20 19:57:39 +00:00
s/-\n.*//
2002-11-07 17:33:03 +00:00
' >$as_me.lineno &&
2006-12-20 19:57:39 +00:00
chmod +x "$as_me.lineno" ||
2002-11-07 17:33:03 +00:00
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
{ (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
2006-12-20 19:57:39 +00:00
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
2002-11-07 17:33:03 +00:00
# Exit status is that of the last command.
exit
}
2006-12-20 19:57:39 +00:00
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
as_dirname=dirname
else
as_dirname=false
fi
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
case `echo 'x\c'` in
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
*) ECHO_C='\c';;
esac;;
*)
ECHO_N='-n';;
2002-11-07 17:33:03 +00:00
esac
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2001-10-19 12:33:10 +00:00
as_expr=expr
else
as_expr=false
fi
rm -f conf$$ conf$$.exe conf$$.file
2006-12-20 19:57:39 +00:00
if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file
else
rm -f conf$$.dir
mkdir conf$$.dir
fi
2001-10-19 12:33:10 +00:00
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
2006-12-20 19:57:39 +00:00
as_ln_s='ln -s'
# ... but there are two gotchas:
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
# In both cases, we have to default to `cp -p'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2001-10-19 12:33:10 +00:00
as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'
fi
2006-12-20 19:57:39 +00:00
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
2001-10-19 12:33:10 +00:00
2002-11-08 12:32:10 +00:00
if mkdir -p . 2>/dev/null; then
as_mkdir_p=:
else
2005-07-06 12:07:32 +00:00
test -d ./-p && rmdir ./-p
2002-11-08 12:32:10 +00:00
as_mkdir_p=false
fi
2006-12-22 19:23:19 +00:00
if test -x / >/dev/null 2>&1; then
as_test_x='test -x'
2006-12-20 19:57:39 +00:00
else
2006-12-22 19:23:19 +00:00
if ls -dL / >/dev/null 2>&1; then
as_ls_L_option=L
else
as_ls_L_option=
fi
as_test_x='
eval sh -c '\''
if test -d "$1"; then
test -d "$1/.";
else
case $1 in
-*)set "./$1";;
esac;
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
???[sx]*):;;*)false;;esac;fi
'\'' sh
'
2006-12-20 19:57:39 +00:00
fi
2006-12-22 19:23:19 +00:00
as_executable_p=$as_test_x
2001-10-19 12:33:10 +00:00
2002-11-07 17:33:03 +00:00
# Sed expression to map a string onto a valid CPP name.
2005-07-06 12:07:32 +00:00
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2002-11-07 17:33:03 +00:00
# Sed expression to map a string onto a valid variable name.
2005-07-06 12:07:32 +00:00
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2001-10-19 12:33:10 +00:00
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
exec 7<&0 </dev/null 6>&1
2001-10-19 12:33:10 +00:00
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
#
# Initializations.
#
1999-10-07 13:06:22 +00:00
ac_default_prefix=/usr/local
2006-12-20 19:57:39 +00:00
ac_clean_files=
2002-11-08 12:32:10 +00:00
ac_config_libobj_dir=.
2006-12-20 19:57:39 +00:00
LIBOBJS=
2001-10-19 12:33:10 +00:00
cross_compiling=no
subdirs=
2002-11-07 17:33:03 +00:00
MFLAGS=
MAKEFLAGS=
2001-10-19 12:33:10 +00:00
SHELL=${CONFIG_SHELL-/bin/sh}
2002-11-07 17:33:03 +00:00
# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_VERSION=
PACKAGE_STRING=
PACKAGE_BUGREPORT=
2001-10-19 12:33:10 +00:00
ac_unique_file="src/lisp.h"
2002-11-08 12:32:10 +00:00
ac_config_libobj_dir=src
2001-10-19 12:33:10 +00:00
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
2006-12-22 19:23:19 +00:00
#ifdef HAVE_SYS_TYPES_H
2001-10-19 12:33:10 +00:00
# include <sys/types.h>
#endif
2006-12-22 19:23:19 +00:00
#ifdef HAVE_SYS_STAT_H
2001-10-19 12:33:10 +00:00
# include <sys/stat.h>
#endif
2006-12-22 19:23:19 +00:00
#ifdef STDC_HEADERS
2001-10-19 12:33:10 +00:00
# include <stdlib.h>
# include <stddef.h>
#else
2006-12-22 19:23:19 +00:00
# ifdef HAVE_STDLIB_H
2001-10-19 12:33:10 +00:00
# include <stdlib.h>
# endif
#endif
2006-12-22 19:23:19 +00:00
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
2001-10-19 12:33:10 +00:00
# include <memory.h>
# endif
# include <string.h>
#endif
2006-12-22 19:23:19 +00:00
#ifdef HAVE_STRINGS_H
2001-10-19 12:33:10 +00:00
# include <strings.h>
#endif
2006-12-22 19:23:19 +00:00
#ifdef HAVE_INTTYPES_H
2001-10-19 12:33:10 +00:00
# include <inttypes.h>
2006-12-20 19:57:39 +00:00
#endif
2006-12-22 19:23:19 +00:00
#ifdef HAVE_STDINT_H
2006-12-20 19:57:39 +00:00
# include <stdint.h>
2001-10-19 12:33:10 +00:00
#endif
2006-12-22 19:23:19 +00:00
#ifdef HAVE_UNISTD_H
2001-10-19 12:33:10 +00:00
# include <unistd.h>
#endif"
1999-10-07 13:06:22 +00:00
2006-12-22 19:23:19 +00:00
ac_header_list=
ac_func_list=
2006-12-20 19:57:39 +00:00
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
datarootdir
datadir
sysconfdir
sharedstatedir
localstatedir
includedir
oldincludedir
docdir
infodir
htmldir
dvidir
pdfdir
psdir
libdir
localedir
mandir
DEFS
ECHO_C
ECHO_N
ECHO_T
LIBS
build_alias
host_alias
target_alias
MAINT
build
build_cpu
build_vendor
build_os
host
host_cpu
host_vendor
host_os
CC
CFLAGS
LDFLAGS
CPPFLAGS
ac_ct_CC
EXEEXT
OBJEXT
CPP
GREP
EGREP
LN_S
INSTALL_PROGRAM
INSTALL_SCRIPT
INSTALL_DATA
RANLIB
INSTALL_INFO
GZIP_PROG
LIBSOUND
PKG_CONFIG
ALSA_CFLAGS
ALSA_LIBS
CFLAGS_SOUND
SET_MAKE
XMKMF
GTK_CFLAGS
GTK_LIBS
2007-01-26 16:33:30 +00:00
XFT_CFLAGS
XFT_LIBS
2006-12-20 19:57:39 +00:00
ALLOCA
liblockfile
LIBOBJS
NEED_SETGID
KMEM_GROUP
GETLOADAVG_LIBS
GETOPT_H
GETOPTOBJS
version
configuration
canonical
srcdir
lispdir
locallisppath
lisppath
x_default_search_path
etcdir
archlibdir
bitmapdir
gamedir
gameuser
c_switch_system
c_switch_machine
LD_SWITCH_X_SITE
LD_SWITCH_X_SITE_AUX
C_SWITCH_X_SITE
X_TOOLKIT_TYPE
machfile
opsysfile
carbon_appdir
LTLIBOBJS'
2002-11-08 12:32:10 +00:00
ac_subst_files=''
2006-12-20 19:57:39 +00:00
ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
2006-12-22 19:23:19 +00:00
LIBS
2006-12-20 19:57:39 +00:00
CPPFLAGS
CPP
XMKMF'
2002-11-07 17:33:03 +00:00
1999-10-07 13:06:22 +00:00
# Initialize some variables set by options.
2001-10-19 12:33:10 +00:00
ac_init_help=
ac_init_version=false
1999-10-07 13:06:22 +00:00
# The variables have the same names as the options, with
# dashes changed to underlines.
2001-10-19 12:33:10 +00:00
cache_file=/dev/null
1999-10-07 13:06:22 +00:00
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE
2001-10-19 12:33:10 +00:00
# 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.
2006-12-20 19:57:39 +00:00
# (The list follows the same order as the GNU Coding Standards.)
1999-10-07 13:06:22 +00:00
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
2006-12-20 19:57:39 +00:00
datarootdir='${prefix}/share'
datadir='${datarootdir}'
1999-10-07 13:06:22 +00:00
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
2006-12-20 19:57:39 +00:00
docdir='${datarootdir}/doc/${PACKAGE}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'
1999-10-07 13:06:22 +00:00
ac_prev=
2006-12-20 19:57:39 +00:00
ac_dashdash=
1999-10-07 13:06:22 +00:00
for ac_option
do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
2006-12-20 19:57:39 +00:00
eval $ac_prev=\$ac_option
1999-10-07 13:06:22 +00:00
ac_prev=
continue
fi
2006-12-20 19:57:39 +00:00
case $ac_option in
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
*) ac_optarg=yes ;;
esac
1999-10-07 13:06:22 +00:00
# Accept the important Cygnus configure options, so we can diagnose typos.
2006-12-20 19:57:39 +00:00
case $ac_dashdash$ac_option in
--)
ac_dashdash=yes ;;
1999-10-07 13:06:22 +00:00
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2001-10-19 12:33:10 +00:00
bindir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-build | --build | --buil | --bui | --bu)
2001-10-19 12:33:10 +00:00
ac_prev=build_alias ;;
1999-10-07 13:06:22 +00:00
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
2001-10-19 12:33:10 +00:00
build_alias=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-cache-file | --cache-file | --cache-fil | --cache-fi \
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2001-10-19 12:33:10 +00:00
cache_file=$ac_optarg ;;
--config-cache | -C)
cache_file=config.cache ;;
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
-datadir | --datadir | --datadi | --datad)
1999-10-07 13:06:22 +00:00
ac_prev=datadir ;;
2006-12-20 19:57:39 +00:00
-datadir=* | --datadir=* | --datadi=* | --datad=*)
2001-10-19 12:33:10 +00:00
datadir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
| --dataroo | --dataro | --datar)
ac_prev=datarootdir ;;
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
datarootdir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-disable-* | --disable-*)
2001-10-19 12:33:10 +00:00
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1999-10-07 13:06:22 +00:00
# Reject names that are not valid shell variable names.
2006-12-22 19:23:19 +00:00
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2001-10-19 12:33:10 +00:00
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
{ (exit 1); exit 1; }; }
2006-12-22 19:23:19 +00:00
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
2006-12-20 19:57:39 +00:00
eval enable_$ac_feature=no ;;
-docdir | --docdir | --docdi | --doc | --do)
ac_prev=docdir ;;
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
docdir=$ac_optarg ;;
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
ac_prev=dvidir ;;
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
dvidir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-enable-* | --enable-*)
2001-10-19 12:33:10 +00:00
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1999-10-07 13:06:22 +00:00
# Reject names that are not valid shell variable names.
2006-12-22 19:23:19 +00:00
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2001-10-19 12:33:10 +00:00
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
{ (exit 1); exit 1; }; }
2006-12-22 19:23:19 +00:00
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
2006-12-20 19:57:39 +00:00
eval enable_$ac_feature=\$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
| --exec | --exe | --ex)
ac_prev=exec_prefix ;;
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
| --exec=* | --exe=* | --ex=*)
2001-10-19 12:33:10 +00:00
exec_prefix=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-gas | --gas | --ga | --g)
# Obsolete; use --with-gas.
with_gas=yes ;;
2001-10-19 12:33:10 +00:00
-help | --help | --hel | --he | -h)
ac_init_help=long ;;
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
ac_init_help=recursive ;;
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
ac_init_help=short ;;
1999-10-07 13:06:22 +00:00
-host | --host | --hos | --ho)
2001-10-19 12:33:10 +00:00
ac_prev=host_alias ;;
1999-10-07 13:06:22 +00:00
-host=* | --host=* | --hos=* | --ho=*)
2001-10-19 12:33:10 +00:00
host_alias=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
ac_prev=htmldir ;;
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
| --ht=*)
htmldir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-includedir | --includedir | --includedi | --included | --include \
| --includ | --inclu | --incl | --inc)
ac_prev=includedir ;;
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
| --includ=* | --inclu=* | --incl=* | --inc=*)
2001-10-19 12:33:10 +00:00
includedir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-infodir | --infodir | --infodi | --infod | --info | --inf)
ac_prev=infodir ;;
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2001-10-19 12:33:10 +00:00
infodir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
-libdir=* | --libdir=* | --libdi=* | --libd=*)
2001-10-19 12:33:10 +00:00
libdir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
| --libexe | --libex | --libe)
ac_prev=libexecdir ;;
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
| --libexe=* | --libex=* | --libe=*)
2001-10-19 12:33:10 +00:00
libexecdir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
-localedir | --localedir | --localedi | --localed | --locale)
ac_prev=localedir ;;
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
localedir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-localstatedir | --localstatedir | --localstatedi | --localstated \
2006-12-20 19:57:39 +00:00
| --localstate | --localstat | --localsta | --localst | --locals)
1999-10-07 13:06:22 +00:00
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2006-12-20 19:57:39 +00:00
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2001-10-19 12:33:10 +00:00
localstatedir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
ac_prev=mandir ;;
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2001-10-19 12:33:10 +00:00
mandir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
2002-11-07 17:33:03 +00:00
| --no-cr | --no-c | -n)
1999-10-07 13:06:22 +00:00
no_create=yes ;;
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
no_recursion=yes ;;
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
| --oldin | --oldi | --old | --ol | --o)
ac_prev=oldincludedir ;;
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2001-10-19 12:33:10 +00:00
oldincludedir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2001-10-19 12:33:10 +00:00
prefix=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-program-prefix | --program-prefix | --program-prefi | --program-pref \
| --program-pre | --program-pr | --program-p)
ac_prev=program_prefix ;;
-program-prefix=* | --program-prefix=* | --program-prefi=* \
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2001-10-19 12:33:10 +00:00
program_prefix=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-program-suffix | --program-suffix | --program-suffi | --program-suff \
| --program-suf | --program-su | --program-s)
ac_prev=program_suffix ;;
-program-suffix=* | --program-suffix=* | --program-suffi=* \
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2001-10-19 12:33:10 +00:00
program_suffix=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-program-transform-name | --program-transform-name \
| --program-transform-nam | --program-transform-na \
| --program-transform-n | --program-transform- \
| --program-transform | --program-transfor \
| --program-transfo | --program-transf \
| --program-trans | --program-tran \
| --progr-tra | --program-tr | --program-t)
ac_prev=program_transform_name ;;
-program-transform-name=* | --program-transform-name=* \
| --program-transform-nam=* | --program-transform-na=* \
| --program-transform-n=* | --program-transform-=* \
| --program-transform=* | --program-transfor=* \
| --program-transfo=* | --program-transf=* \
| --program-trans=* | --program-tran=* \
| --progr-tra=* | --program-tr=* | --program-t=*)
2001-10-19 12:33:10 +00:00
program_transform_name=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
ac_prev=pdfdir ;;
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
pdfdir=$ac_optarg ;;
-psdir | --psdir | --psdi | --psd | --ps)
ac_prev=psdir ;;
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
psdir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
| --sbi=* | --sb=*)
2001-10-19 12:33:10 +00:00
sbindir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-sharedstatedir | --sharedstatedir | --sharedstatedi \
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
| --sharedst | --shareds | --shared | --share | --shar \
| --sha | --sh)
ac_prev=sharedstatedir ;;
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
| --sha=* | --sh=*)
2001-10-19 12:33:10 +00:00
sharedstatedir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
2001-10-19 12:33:10 +00:00
site=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2001-10-19 12:33:10 +00:00
srcdir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
| --syscon | --sysco | --sysc | --sys | --sy)
ac_prev=sysconfdir ;;
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2001-10-19 12:33:10 +00:00
sysconfdir=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-target | --target | --targe | --targ | --tar | --ta | --t)
2001-10-19 12:33:10 +00:00
ac_prev=target_alias ;;
1999-10-07 13:06:22 +00:00
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2001-10-19 12:33:10 +00:00
target_alias=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-v | -verbose | --verbose | --verbos | --verbo | --verb)
verbose=yes ;;
2001-10-19 12:33:10 +00:00
-version | --version | --versio | --versi | --vers | -V)
ac_init_version=: ;;
1999-10-07 13:06:22 +00:00
-with-* | --with-*)
2001-10-19 12:33:10 +00:00
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1999-10-07 13:06:22 +00:00
# Reject names that are not valid shell variable names.
2006-12-22 19:23:19 +00:00
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2001-10-19 12:33:10 +00:00
{ echo "$as_me: error: invalid package name: $ac_package" >&2
{ (exit 1); exit 1; }; }
2006-12-22 19:23:19 +00:00
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
2006-12-20 19:57:39 +00:00
eval with_$ac_package=\$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-without-* | --without-*)
2001-10-19 12:33:10 +00:00
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1999-10-07 13:06:22 +00:00
# Reject names that are not valid shell variable names.
2006-12-22 19:23:19 +00:00
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2001-10-19 12:33:10 +00:00
{ echo "$as_me: error: invalid package name: $ac_package" >&2
{ (exit 1); exit 1; }; }
2006-12-22 19:23:19 +00:00
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
2006-12-20 19:57:39 +00:00
eval with_$ac_package=no ;;
1999-10-07 13:06:22 +00:00
--x)
# Obsolete; use --with-x.
with_x=yes ;;
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
| --x-incl | --x-inc | --x-in | --x-i)
ac_prev=x_includes ;;
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2001-10-19 12:33:10 +00:00
x_includes=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
-x-libraries | --x-libraries | --x-librarie | --x-librari \
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
ac_prev=x_libraries ;;
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2001-10-19 12:33:10 +00:00
x_libraries=$ac_optarg ;;
1999-10-07 13:06:22 +00:00
2001-10-19 12:33:10 +00:00
-*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; }
1999-10-07 13:06:22 +00:00
;;
2001-10-19 12:33:10 +00:00
*=*)
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
# Reject names that are not valid shell variable names.
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
{ (exit 1); exit 1; }; }
2006-12-20 19:57:39 +00:00
eval $ac_envvar=\$ac_optarg
2001-10-19 12:33:10 +00:00
export $ac_envvar ;;
1999-10-07 13:06:22 +00:00
*)
2001-10-19 12:33:10 +00:00
# FIXME: should be removed in autoconf 3.0.
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1999-10-07 13:06:22 +00:00
;;
esac
done
if test -n "$ac_prev"; then
2001-10-19 12:33:10 +00:00
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
{ echo "$as_me: error: missing argument to $ac_option" >&2
{ (exit 1); exit 1; }; }
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
# Be sure to have absolute directory names.
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
libdir localedir mandir
2006-12-19 19:48:48 +00:00
do
2006-12-20 19:57:39 +00:00
eval ac_val=\$$ac_var
2006-12-19 19:48:48 +00:00
case $ac_val in
2006-12-20 19:57:39 +00:00
[\\/$]* | ?:[\\/]* ) continue;;
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1999-10-07 13:06:22 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
{ (exit 1); exit 1; }; }
1999-10-07 13:06:22 +00:00
done
2001-10-19 12:33:10 +00:00
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
2002-11-07 17:33:03 +00:00
# FIXME: To remove some day.
2001-10-19 12:33:10 +00:00
build=$build_alias
host=$host_alias
target=$target_alias
2002-11-07 17:33:03 +00:00
# FIXME: To remove some day.
2001-10-19 12:33:10 +00:00
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
cross_compiling=maybe
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
cross_compiling=yes
fi
fi
1999-10-07 13:06:22 +00:00
2001-10-19 12:33:10 +00:00
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1999-10-07 13:06:22 +00:00
2001-10-19 12:33:10 +00:00
test "$silent" = yes && exec 6>/dev/null
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
{ echo "$as_me: error: Working directory cannot be determined" >&2
{ (exit 1); exit 1; }; }
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
{ echo "$as_me: error: pwd does not report name of working directory" >&2
{ (exit 1); exit 1; }; }
1999-10-07 13:06:22 +00:00
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
ac_srcdir_defaulted=yes
2006-12-20 19:57:39 +00:00
# Try the directory containing this script, then the parent directory.
ac_confdir=`$as_dirname -- "$0" ||
2002-11-07 17:33:03 +00:00
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2005-07-06 12:07:32 +00:00
X"$0" : 'X\(//\)[^/]' \| \
X"$0" : 'X\(//\)$' \| \
2006-12-20 19:57:39 +00:00
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2002-11-07 17:33:03 +00:00
echo X"$0" |
2006-12-20 19:57:39 +00:00
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
1999-10-07 13:06:22 +00:00
srcdir=$ac_confdir
2006-12-20 19:57:39 +00:00
if test ! -r "$srcdir/$ac_unique_file"; then
1999-10-07 13:06:22 +00:00
srcdir=..
fi
else
ac_srcdir_defaulted=no
fi
2006-12-20 19:57:39 +00:00
if test ! -r "$srcdir/$ac_unique_file"; then
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
2001-10-19 12:33:10 +00:00
{ (exit 1); exit 1; }; }
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
2002-11-08 12:32:10 +00:00
{ (exit 1); exit 1; }; }
2006-12-20 19:57:39 +00:00
pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
eval ac_env_${ac_var}_set=\${${ac_var}+set}
eval ac_env_${ac_var}_value=\$${ac_var}
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
eval ac_cv_env_${ac_var}_value=\$${ac_var}
done
2001-10-19 12:33:10 +00:00
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
2002-11-07 17:33:03 +00:00
cat <<_ACEOF
2001-10-19 12:33:10 +00:00
\`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 \`..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
2005-07-06 12:07:32 +00:00
[$ac_default_prefix]
2001-10-19 12:33:10 +00:00
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2005-07-06 12:07:32 +00:00
[PREFIX]
2001-10-19 12:33:10 +00:00
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]
--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]
2006-12-20 19:57:39 +00:00
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
2002-11-07 17:33:03 +00:00
cat <<\_ACEOF
2001-10-19 12:33:10 +00:00
2001-11-15 20:48:20 +00:00
Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
2001-10-19 12:33:10 +00:00
X features:
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
System types:
--build=BUILD configure for building on BUILD [guessed]
2002-11-07 17:33:03 +00:00
--host=HOST cross-compile to build programs to run on HOST [BUILD]
_ACEOF
2001-10-19 12:33:10 +00:00
fi
if test -n "$ac_init_help"; then
2002-11-07 17:33:03 +00:00
cat <<\_ACEOF
2001-10-19 12:33:10 +00:00
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2003-01-07 17:53:56 +00:00
--enable-carbon-app[=DIR] [DIR=/Application]
specify install directory for Emacs.app on Mac OS X
--enable-asserts compile code with asserts enabled
2003-07-23 11:16:30 +00:00
--enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer
2005-05-19 08:29:56 +00:00
--enable-locallisppath=PATH
directories Emacs should search for lisp files
specific to this site
2001-10-19 12:33:10 +00:00
--disable-largefile omit support for large files
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--without-gcc don't use GCC to compile Emacs if GCC is found
--without-pop don't support POP mail retrieval with movemail
--with-kerberos support Kerberos-authenticated POP
--with-kerberos5 support Kerberos version 5 authenticated POP
--with-hesiod support Hesiod to get the POP server host
2002-04-08 06:17:17 +00:00
--without-sound don't compile with sound support
2003-01-19 21:50:03 +00:00
--with-x-toolkit=KIT use an X toolkit
(KIT = yes/lucid/athena/motif/gtk/no)
2001-10-19 12:33:10 +00:00
--with-xpm use -lXpm for displaying XPM images
--with-jpeg use -ljpeg for displaying JPEG images
--with-tiff use -ltiff for displaying TIFF images
--with-gif use -lungif for displaying GIF images
--with-png use -lpng for displaying PNG images
2003-01-19 21:50:03 +00:00
--with-gtk use GTK (same as --with-x-toolkit=gtk)
--with-pkg-config-prog Path to pkg-config to use for finding GTK
2001-10-19 12:33:10 +00:00
--without-toolkit-scroll-bars
2001-11-02 02:28:50 +00:00
don't use Motif or Xaw3d scroll bars
--without-xim don't use X11 XIM
--without-carbon don't use Carbon GUI on Mac OS X
2001-10-19 12:33:10 +00:00
--with-x use the X Window System
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
2006-12-22 19:23:19 +00:00
LIBS libraries to pass to the linker, e.g. -l<library>
2006-12-20 19:57:39 +00:00
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
2001-10-19 12:33:10 +00:00
CPP C preprocessor
2006-12-20 19:57:39 +00:00
XMKMF Path to xmkmf, Makefile generator for X Window System
2001-10-19 12:33:10 +00:00
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
2002-11-07 17:33:03 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
ac_status=$?
2001-10-19 12:33:10 +00:00
fi
if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
2002-11-07 17:33:03 +00:00
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2006-12-20 19:57:39 +00:00
test -d "$ac_dir" || continue
2002-11-07 17:33:03 +00:00
ac_builddir=.
2006-12-20 19:57:39 +00:00
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
2002-11-07 17:33:03 +00:00
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2006-12-20 19:57:39 +00:00
# A ".." for each directory in $ac_dir_suffix.
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
case $ac_top_builddir_sub in
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
2001-10-19 12:33:10 +00:00
2002-11-07 17:33:03 +00:00
case $srcdir in
2006-12-20 19:57:39 +00:00
.) # We are building in place.
2002-11-07 17:33:03 +00:00
ac_srcdir=.
2006-12-20 19:57:39 +00:00
ac_top_srcdir=$ac_top_builddir_sub
ac_abs_top_srcdir=$ac_pwd ;;
[\\/]* | ?:[\\/]* ) # Absolute name.
2002-11-07 17:33:03 +00:00
ac_srcdir=$srcdir$ac_dir_suffix;
2006-12-20 19:57:39 +00:00
ac_top_srcdir=$srcdir
ac_abs_top_srcdir=$srcdir ;;
*) # Relative name.
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_build_prefix$srcdir
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2005-07-06 12:07:32 +00:00
esac
2006-12-20 19:57:39 +00:00
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cd "$ac_dir" || { ac_status=$?; continue; }
# Check for guested configure.
if test -f "$ac_srcdir/configure.gnu"; then
echo &&
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
elif test -f "$ac_srcdir/configure"; then
echo &&
$SHELL "$ac_srcdir/configure" --help=recursive
2001-10-19 12:33:10 +00:00
else
2002-11-07 17:33:03 +00:00
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2006-12-20 19:57:39 +00:00
fi || ac_status=$?
cd "$ac_pwd" || { ac_status=$?; break; }
2001-10-19 12:33:10 +00:00
done
fi
2006-12-20 19:57:39 +00:00
test -n "$ac_init_help" && exit $ac_status
2001-10-19 12:33:10 +00:00
if $ac_init_version; then
2002-11-07 17:33:03 +00:00
cat <<\_ACEOF
2006-12-20 19:57:39 +00:00
configure
2006-12-22 19:23:19 +00:00
generated by GNU Autoconf 2.61
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2007-01-23 00:57:48 +00:00
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2001-10-19 12:33:10 +00:00
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
2002-11-07 17:33:03 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
exit
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
cat >config.log <<_ACEOF
2001-10-19 12:33:10 +00:00
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
2006-12-22 19:23:19 +00:00
generated by GNU Autoconf 2.61. Invocation command line was
2001-10-19 12:33:10 +00:00
$ $0 $@
2002-11-07 17:33:03 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
exec 5>>config.log
2001-10-19 12:33:10 +00:00
{
cat <<_ASUNAME
2002-11-07 17:33:03 +00:00
## --------- ##
## Platform. ##
## --------- ##
2001-10-19 12:33:10 +00:00
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2006-12-20 19:57:39 +00:00
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001-10-19 12:33:10 +00:00
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2002-05-10 08:36:08 +00:00
_ASUNAME
2002-11-07 17:33:03 +00:00
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
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2002-11-07 17:33:03 +00:00
2001-10-19 12:33:10 +00:00
} >&5
2002-11-07 17:33:03 +00:00
cat >&5 <<_ACEOF
## ----------- ##
## Core tests. ##
## ----------- ##
_ACEOF
2001-10-19 12:33:10 +00:00
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
2003-07-23 11:16:30 +00:00
# Strip out --silent because we don't want to record it for future runs.
2001-10-19 12:33:10 +00:00
# Also quote any args containing shell meta-characters.
2003-07-23 11:16:30 +00:00
# Make two passes to allow for proper duplicate-argument suppression.
2001-10-19 12:33:10 +00:00
ac_configure_args=
2003-07-23 11:16:30 +00:00
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
2001-10-19 12:33:10 +00:00
do
2003-07-23 11:16:30 +00:00
for ac_arg
do
case $ac_arg in
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
continue ;;
2006-12-20 19:57:39 +00:00
*\'*)
2003-07-23 11:16:30 +00:00
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
case $ac_pass in
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2)
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
if test $ac_must_keep_next = true; then
2005-07-06 12:07:32 +00:00
ac_must_keep_next=false # Got value, back to normal.
2003-07-23 11:16:30 +00:00
else
2005-07-06 12:07:32 +00:00
case $ac_arg in
*=* | --config-cache | -C | -disable-* | --disable-* \
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
| -with-* | --with-* | -without-* | --without-* | --x)
case "$ac_configure_args0 " in
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
esac
;;
-* ) ac_must_keep_next=true ;;
esac
2003-07-23 11:16:30 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_configure_args="$ac_configure_args '$ac_arg'"
2003-07-23 11:16:30 +00:00
;;
esac
done
2001-10-19 12:33:10 +00:00
done
2003-07-23 11:16:30 +00:00
$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; }
2001-10-19 12:33:10 +00:00
# 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.
2006-12-20 19:57:39 +00:00
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2001-10-19 12:33:10 +00:00
trap 'exit_status=$?
# Save into config.log some information that might help in debugging.
2002-11-07 17:33:03 +00:00
{
echo
2002-11-08 12:32:10 +00:00
2002-11-07 17:33:03 +00:00
cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
echo
# The following way of writing the cache mishandles newlines in values,
2006-12-20 19:57:39 +00:00
(
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
eval ac_val=\$$ac_var
case $ac_val in #(
*${as_nl}*)
case $ac_var in #(
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
esac
case $ac_var in #(
_ | IFS | as_nl) ;; #(
*) $as_unset $ac_var ;;
esac ;;
esac
done
2001-10-19 12:33:10 +00:00
(set) 2>&1 |
2006-12-20 19:57:39 +00:00
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
*${as_nl}ac_space=\ *)
2001-10-19 12:33:10 +00:00
sed -n \
2006-12-20 19:57:39 +00:00
"s/'\''/'\''\\\\'\'''\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
;; #(
2001-10-19 12:33:10 +00:00
*)
2006-12-20 19:57:39 +00:00
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2001-10-19 12:33:10 +00:00
;;
2006-12-20 19:57:39 +00:00
esac |
sort
)
2002-11-07 17:33:03 +00:00
echo
2002-11-08 12:32:10 +00:00
cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
echo
for ac_var in $ac_subst_vars
do
2006-12-20 19:57:39 +00:00
eval ac_val=\$$ac_var
case $ac_val in
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
esac
echo "$ac_var='\''$ac_val'\''"
2002-11-08 12:32:10 +00:00
done | sort
echo
if test -n "$ac_subst_files"; then
cat <<\_ASBOX
2006-12-20 19:57:39 +00:00
## ------------------- ##
## File substitutions. ##
## ------------------- ##
2002-11-08 12:32:10 +00:00
_ASBOX
echo
for ac_var in $ac_subst_files
do
2006-12-20 19:57:39 +00:00
eval ac_val=\$$ac_var
case $ac_val in
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
esac
echo "$ac_var='\''$ac_val'\''"
2002-11-08 12:32:10 +00:00
done | sort
echo
fi
2002-11-07 17:33:03 +00:00
if test -s confdefs.h; then
cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
echo
2006-12-20 19:57:39 +00:00
cat confdefs.h
2002-11-07 17:33:03 +00:00
echo
fi
test "$ac_signal" != 0 &&
echo "$as_me: caught signal $ac_signal"
echo "$as_me: exit $exit_status"
} >&5
2006-12-20 19:57:39 +00:00
rm -f core *.core core.conftest.* &&
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2001-10-19 12:33:10 +00:00
exit $exit_status
2006-12-20 19:57:39 +00:00
' 0
2001-10-19 12:33:10 +00:00
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.
2006-12-20 19:57:39 +00:00
rm -f -r conftest* confdefs.h
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
# Predefined preprocessor variables.
cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF
2001-10-19 12:33:10 +00:00
# Let the site file select an alternate cache file if it wants to.
1999-10-07 13:06:22 +00:00
# Prefer explicitly selected file to automatically selected ones.
2006-12-20 19:57:39 +00:00
if test -n "$CONFIG_SITE"; then
set x "$CONFIG_SITE"
elif test "x$prefix" != xNONE; then
set x "$prefix/share/config.site" "$prefix/etc/config.site"
else
set x "$ac_default_prefix/share/config.site" \
"$ac_default_prefix/etc/config.site"
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
shift
for ac_site_file
do
1999-10-07 13:06:22 +00:00
if test -r "$ac_site_file"; then
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: loading site script $ac_site_file" >&6;}
2002-11-07 17:33:03 +00:00
sed 's/^/| /' "$ac_site_file" >&5
1999-10-07 13:06:22 +00:00
. "$ac_site_file"
fi
done
if test -r "$cache_file"; then
2001-10-19 12:33:10 +00:00
# Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that.
if test -f "$cache_file"; then
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: loading cache $cache_file" >&6;}
case $cache_file in
2006-12-20 19:57:39 +00:00
[\\/]* | ?:[\\/]* ) . "$cache_file";;
*) . "./$cache_file";;
2001-10-19 12:33:10 +00:00
esac
fi
1999-10-07 13:06:22 +00:00
else
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: creating cache $cache_file" >&6;}
>$cache_file
fi
2006-12-22 19:23:19 +00:00
ac_header_list="$ac_header_list sys/time.h"
ac_header_list="$ac_header_list unistd.h"
ac_func_list="$ac_func_list alarm"
2001-10-19 12:33:10 +00:00
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
2006-12-20 19:57:39 +00:00
for ac_var in $ac_precious_vars; do
2001-10-19 12:33:10 +00:00
eval ac_old_set=\$ac_cv_env_${ac_var}_set
eval ac_new_set=\$ac_env_${ac_var}_set
2006-12-20 19:57:39 +00:00
eval ac_old_val=\$ac_cv_env_${ac_var}_value
eval ac_new_val=\$ac_env_${ac_var}_value
2001-10-19 12:33:10 +00:00
case $ac_old_set,$ac_new_set in
set,)
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ac_cache_corrupted=: ;;
,set)
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ac_cache_corrupted=: ;;
,);;
*)
if test "x$ac_old_val" != "x$ac_new_val"; then
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: former value: $ac_old_val" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: current value: $ac_new_val" >&2;}
2005-07-06 12:07:32 +00:00
ac_cache_corrupted=:
2001-10-19 12:33:10 +00:00
fi;;
esac
2002-11-07 17:33:03 +00:00
# Pass precious variables to config.status.
2001-10-19 12:33:10 +00:00
if test "$ac_new_set" = set; then
case $ac_new_val in
2006-12-20 19:57:39 +00:00
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2002-11-07 17:33:03 +00:00
*) ac_arg=$ac_var=$ac_new_val ;;
esac
case " $ac_configure_args " in
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2001-10-19 12:33:10 +00:00
esac
fi
done
if $ac_cache_corrupted; then
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2002-11-07 17:33:03 +00:00
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
{ (exit 1); exit 1; }; }
1999-10-07 13:06:22 +00:00
fi
2002-11-07 17:33:03 +00:00
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
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'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002-11-08 12:32:10 +00:00
2006-12-19 19:48:48 +00:00
2006-12-20 19:57:39 +00:00
ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
2001-11-15 20:48:20 +00:00
test "$program_prefix" != NONE &&
2006-12-20 19:57:39 +00:00
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2001-11-15 20:48:20 +00:00
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
2006-12-20 19:57:39 +00:00
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2001-11-15 20:48:20 +00:00
# Double any \ or $. echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2006-12-20 19:57:39 +00:00
rm -f conftest.sed
2001-11-15 20:48:20 +00:00
2002-11-07 17:33:03 +00:00
1999-10-07 13:06:22 +00:00
lispdir='${datadir}/emacs/${version}/lisp'
locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2006-09-30 09:11:23 +00:00
'${datadir}/emacs/site-lisp'
lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1999-10-07 13:06:22 +00:00
etcdir='${datadir}/emacs/${version}/etc'
archlibdir='${libexecdir}/emacs/${version}/${configuration}'
docdir='${datadir}/emacs/${version}/etc'
2002-07-21 20:22:11 +00:00
gamedir='${localstatedir}/games/emacs'
2002-04-10 22:14:09 +00:00
gameuser=games
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-gcc was given.
1999-10-07 13:06:22 +00:00
if test "${with_gcc+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_gcc;
fi
2001-10-19 12:33:10 +00:00
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-pop was given.
1999-10-07 13:06:22 +00:00
if test "${with_pop+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_pop; if test "$withval" = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
1999-10-07 13:06:22 +00:00
#define MAIL_USE_POP 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
1999-10-12 17:14:18 +00:00
else :
fi
1999-11-08 16:26:25 +00:00
else
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
1999-11-08 16:26:25 +00:00
#define MAIL_USE_POP 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-11-08 16:26:25 +00:00
2006-12-20 19:57:39 +00:00
fi
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-kerberos was given.
if test "${with_kerberos+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
#define KERBEROS 1
2002-11-07 17:33:03 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
fi
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-kerberos5 was given.
if test "${with_kerberos5+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
if test "${with_kerberos+set}" != set; then
with_kerberos=yes
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
#define KERBEROS 1
2002-11-07 17:33:03 +00:00
_ACEOF
fi
fi
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
#define KERBEROS5 1
2002-11-07 17:33:03 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
fi
2002-04-14 01:42:18 +00:00
2006-12-19 19:48:48 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-hesiod was given.
if test "${with_hesiod+set}" = set; then
withval=$with_hesiod;
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
1999-10-07 13:06:22 +00:00
#define HESIOD 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
fi
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-sound was given.
2002-04-08 06:17:17 +00:00
if test "${with_sound+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_sound;
fi
2002-04-08 06:17:17 +00:00
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-x-toolkit was given.
1999-10-07 13:06:22 +00:00
if test "${with_x_toolkit+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_x_toolkit; case "${withval}" in
1999-10-07 13:06:22 +00:00
y | ye | yes ) val=athena ;;
n | no ) val=no ;;
l | lu | luc | luci | lucid ) val=lucid ;;
a | at | ath | athe | athen | athena ) val=athena ;;
m | mo | mot | moti | motif ) val=motif ;;
2003-01-19 21:50:03 +00:00
g | gt | gtk ) val=gtk ;;
1999-10-07 13:06:22 +00:00
* )
2002-11-07 17:33:03 +00:00
{ { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
2003-01-19 21:50:03 +00:00
this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2001-10-19 12:33:10 +00:00
Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
2003-01-19 21:50:03 +00:00
this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2001-10-19 12:33:10 +00:00
Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
{ (exit 1); exit 1; }; }
1999-10-07 13:06:22 +00:00
;;
esac
with_x_toolkit=$val
2006-12-20 19:57:39 +00:00
fi
2006-12-19 06:49:01 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-xpm was given.
1999-10-07 13:06:22 +00:00
if test "${with_xpm+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_xpm;
fi
2001-10-19 12:33:10 +00:00
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-jpeg was given.
1999-10-07 13:06:22 +00:00
if test "${with_jpeg+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_jpeg;
fi
2001-10-19 12:33:10 +00:00
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-tiff was given.
1999-10-07 13:06:22 +00:00
if test "${with_tiff+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_tiff;
fi
2001-10-19 12:33:10 +00:00
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-gif was given.
1999-10-07 13:06:22 +00:00
if test "${with_gif+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_gif;
fi
2001-10-19 12:33:10 +00:00
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-png was given.
1999-10-07 13:06:22 +00:00
if test "${with_png+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_png;
fi
2001-10-19 12:33:10 +00:00
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-gtk was given.
2003-01-19 21:50:03 +00:00
if test "${with_gtk+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_gtk;
fi
2003-01-19 21:50:03 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-pkg-config-prog was given.
2003-01-19 21:50:03 +00:00
if test "${with_pkg_config_prog+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_pkg_config_prog;
fi
2003-01-19 21:50:03 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-toolkit-scroll-bars was given.
1999-10-07 13:06:22 +00:00
if test "${with_toolkit_scroll_bars+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_toolkit_scroll_bars;
fi
2001-10-19 12:33:10 +00:00
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-xim was given.
2000-06-26 15:40:38 +00:00
if test "${with_xim+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_xim;
fi
2000-06-26 15:40:38 +00:00
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-carbon was given.
if test "${with_carbon+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_carbon;
fi
2006-12-20 19:57:39 +00:00
# Check whether --enable-carbon-app was given.
2003-01-07 17:53:56 +00:00
if test "${enable_carbon_app+set}" = set; then
2006-12-20 19:57:39 +00:00
enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
fi
2006-12-20 19:57:39 +00:00
# Check whether --enable-asserts was given.
if test "${enable_asserts+set}" = set; then
2006-12-20 19:57:39 +00:00
enableval=$enable_asserts; USE_XASSERTS=$enableval
else
USE_XASSERTS=no
2006-12-20 19:57:39 +00:00
fi
2006-12-19 06:49:01 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --enable-maintainer-mode was given.
2003-07-23 11:16:30 +00:00
if test "${enable_maintainer_mode+set}" = set; then
2006-12-20 19:57:39 +00:00
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2003-07-23 11:16:30 +00:00
else
USE_MAINTAINER_MODE=no
2006-12-20 19:57:39 +00:00
fi
2003-07-23 11:16:30 +00:00
if test $USE_MAINTAINER_MODE = yes; then
MAINT=
else
MAINT=#
fi
2006-12-20 19:57:39 +00:00
# Check whether --enable-locallisppath was given.
2005-05-19 08:29:56 +00:00
if test "${enable_locallisppath+set}" = set; then
2006-12-20 19:57:39 +00:00
enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2005-05-19 08:29:56 +00:00
locallisppath=
elif test "${enableval}" != "yes"; then
locallisppath=${enableval}
fi
2006-12-20 19:57:39 +00:00
fi
2005-05-19 08:29:56 +00:00
1999-10-07 13:06:22 +00:00
#### Make srcdir absolute, if it isn't already. It's important to
2000-08-24 11:42:48 +00:00
#### avoid running the path through pwd unnecessarily, since pwd can
1999-10-07 13:06:22 +00:00
#### give you automounter prefixes, which can go away. We do all this
#### so Emacs can find its files when run uninstalled.
2000-08-24 11:42:48 +00:00
## Make sure CDPATH doesn't affect cd (in case PWD is relative).
unset CDPATH
1999-10-07 13:06:22 +00:00
case "${srcdir}" in
/* ) ;;
. )
## We may be able to use the $PWD environment variable to make this
## absolute. But sometimes PWD is inaccurate.
2002-03-05 10:54:56 +00:00
## Note: we used to use ${PWD} at the end instead of `pwd`,
## but that tested only for a well-formed and valid PWD,
## it did not object when PWD was well-formed and valid but just wrong.
if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1999-10-07 13:06:22 +00:00
then
srcdir="$PWD"
else
srcdir="`(cd ${srcdir}; pwd)`"
fi
;;
* ) srcdir="`(cd ${srcdir}; pwd)`" ;;
esac
#### Check if the source directory already has a configured system in it.
if test `pwd` != `(cd ${srcdir} && pwd)` \
&& test -f "${srcdir}/src/config.h" ; then
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2001-10-19 12:33:10 +00:00
as a build directory right now; it has been configured in its own
right. To configure in another directory as well, you MUST
use GNU make. If you do not have GNU make, then you must
now do \`make distclean' in ${srcdir},
and then run $0 again." >&5
echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1999-10-07 13:06:22 +00:00
as a build directory right now; it has been configured in its own
right. To configure in another directory as well, you MUST
use GNU make. If you do not have GNU make, then you must
now do \`make distclean' in ${srcdir},
2001-10-19 12:33:10 +00:00
and then run $0 again." >&2;}
1999-10-07 13:06:22 +00:00
fi
#### Given the configuration name, set machfile and opsysfile to the
#### names of the m/*.h and s/*.h files we should use.
### Canonicalize the configuration name.
ac_aux_dir=
2006-12-20 19:57:39 +00:00
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
if test -f "$ac_dir/install-sh"; then
1999-10-07 13:06:22 +00:00
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
break
2006-12-20 19:57:39 +00:00
elif test -f "$ac_dir/install.sh"; then
1999-10-07 13:06:22 +00:00
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
2006-12-20 19:57:39 +00:00
elif test -f "$ac_dir/shtool"; then
2001-10-19 12:33:10 +00:00
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c"
break
1999-10-07 13:06:22 +00:00
fi
done
if test -z "$ac_aux_dir"; then
2006-12-20 19:57:39 +00:00
{ { 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;}
2001-10-19 12:33:10 +00:00
{ (exit 1); exit 1; }; }
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1999-10-07 13:06:22 +00:00
# Make sure we can run config.sub.
2006-12-20 19:57:39 +00:00
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2001-10-19 12:33:10 +00:00
{ (exit 1); exit 1; }; }
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_build+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-12-20 19:57:39 +00:00
ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
2002-11-07 17:33:03 +00:00
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
{ (exit 1); exit 1; }; }
2006-12-20 19:57:39 +00:00
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2001-10-19 12:33:10 +00:00
{ (exit 1); exit 1; }; }
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
echo "$as_me: error: invalid value of canonical build" >&2;}
{ (exit 1); exit 1; }; };;
esac
2001-10-19 12:33:10 +00:00
build=$ac_cv_build
2006-12-20 19:57:39 +00:00
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
{ echo "$as_me:$LINENO: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_host+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-12-20 19:57:39 +00:00
if test "x$host_alias" = x; then
ac_cv_host=$ac_cv_build
else
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2001-10-19 12:33:10 +00:00
{ (exit 1); exit 1; }; }
2006-12-20 19:57:39 +00:00
fi
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
echo "$as_me: error: invalid value of canonical host" >&2;}
{ (exit 1); exit 1; }; };;
esac
2001-10-19 12:33:10 +00:00
host=$ac_cv_host
2006-12-20 19:57:39 +00:00
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
1999-10-07 13:06:22 +00:00
canonical=$host
2001-10-19 15:27:05 +00:00
configuration=${host_alias-$host}
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
2002-11-21 20:38:07 +00:00
1999-10-07 13:06:22 +00:00
### If you add support for a new configuration, add code to this
### switch statement to recognize your configuration name and select
### the appropriate operating system and machine description files.
### You would hope that you could choose an m/*.h file pretty much
### based on the machine portion of the configuration name, and an s-
### file based on the operating system portion. However, it turns out
### that each m/*.h file is pretty manufacturer-specific - for
### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
### machines. So we basically have to have a special case for each
### configuration name.
###
### As far as handling version numbers on operating systems is
### concerned, make sure things will fail in a fixable way. If
### /etc/MACHINES doesn't say anything about version numbers, be
### prepared to handle anything reasonably. If version numbers
### matter, be sure /etc/MACHINES says something about it.
###
### Eric Raymond says we should accept strings like "sysvr4" to mean
### "System V Release 4"; he writes, "The old convention encouraged
### confusion between `system' and `release' levels'."
machine='' opsys='' unported=no
case "${canonical}" in
2001-11-29 12:13:52 +00:00
## FreeBSD ports
*-*-freebsd* )
opsys=freebsd
case "${canonical}" in
alpha*-*-freebsd*) machine=alpha ;;
2006-11-08 08:03:01 +00:00
ia64-*-freebsd*) machine=ia64 ;;
sparc64-*-freebsd*) machine=sparc ;;
powerpc-*-freebsd*) machine=macppc ;;
2001-11-29 12:13:52 +00:00
i[3456]86-*-freebsd*) machine=intel386 ;;
amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2001-11-29 12:13:52 +00:00
esac
;;
1999-10-07 13:06:22 +00:00
## NetBSD ports
*-*-netbsd* )
opsys=netbsd
2003-07-15 08:10:17 +00:00
if test -f /usr/lib/crti.o; then
2003-07-22 17:31:46 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_CRTIN
2003-07-15 08:10:17 +00:00
_ACEOF
fi
1999-10-07 13:06:22 +00:00
case "${canonical}" in
alpha*-*-netbsd*) machine=alpha ;;
i[3456]86-*-netbsd*) machine=intel386 ;;
m68k-*-netbsd*)
# This is somewhat bogus.
machine=hp9000s300 ;;
mips-*-netbsd*) machine=pmax ;;
2000-03-01 12:56:09 +00:00
mipsel-*-netbsd*) machine=pmax ;;
2002-06-21 20:59:11 +00:00
mipseb-*-netbsd*) machine=pmax ;;
1999-10-07 13:06:22 +00:00
ns32k-*-netbsd*) machine=ns32000 ;;
2000-04-20 21:52:10 +00:00
powerpc-*-netbsd*) machine=macppc ;;
2000-09-30 14:35:11 +00:00
sparc*-*-netbsd*) machine=sparc ;;
1999-10-07 13:06:22 +00:00
vax-*-netbsd*) machine=vax ;;
2000-03-01 12:56:09 +00:00
arm-*-netbsd*) machine=arm ;;
2006-12-22 23:13:53 +00:00
x86_64-*-netbsd*) machine=amdx86-64 ;;
2007-01-29 17:04:28 +00:00
hppa-*-netbsd*) machine=hp800 ;;
2006-12-22 23:13:53 +00:00
shle-*-netbsd*) machine=sh3el ;;
1999-10-07 13:06:22 +00:00
esac
;;
## OpenBSD ports
*-*-openbsd* )
opsys=openbsd
case "${canonical}" in
alpha*-*-openbsd*) machine=alpha ;;
i386-*-openbsd*) machine=intel386 ;;
x86_64-*-openbsd*) machine=amdx86-64 ;;
1999-10-07 13:06:22 +00:00
m68k-*-openbsd*) machine=hp9000s300 ;;
mipsel-*-openbsd*) machine=pmax ;;
ns32k-*-openbsd*) machine=ns32000 ;;
sparc-*-openbsd*) machine=sparc ;;
vax-*-openbsd*) machine=vax ;;
esac
;;
## LynxOS ports
*-*-lynxos* )
opsys=lynxos
case "${canonical}" in
i[3456]86-*-lynxos*) machine=intel386 ;;
powerpc-*-lynxos*) machine=powerpc ;;
esac
;;
1999-10-07 13:06:22 +00:00
## Acorn RISCiX:
arm-acorn-riscix1.1* )
machine=acorn opsys=riscix1-1
;;
arm-acorn-riscix1.2* | arm-acorn-riscix )
## This name is riscix12 instead of riscix1.2
## to avoid a file name conflict on MSDOS.
machine=acorn opsys=riscix12
;;
## BSDI ports
*-*-bsdi* )
opsys=bsdi
case "${canonical}" in
i[345]86-*-bsdi*) machine=intel386 ;;
sparc-*-bsdi*) machine=sparc ;;
2000-11-22 12:50:52 +00:00
powerpc-*-bsdi*) machine=macppc ;;
1999-10-07 13:06:22 +00:00
esac
case "${canonical}" in
*-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
*-*-bsdi2.0* ) opsys=bsdos2 ;;
*-*-bsdi2* ) opsys=bsdos2-1 ;;
*-*-bsdi3* ) opsys=bsdos3 ;;
2002-01-27 10:03:14 +00:00
*-*-bsdi[45]* ) opsys=bsdos4 ;;
1999-10-07 13:06:22 +00:00
esac
;;
## Alliant machines
## Strictly speaking, we need the version of the alliant operating
## system to choose the right machine file, but currently the
## configuration name doesn't tell us enough to choose the right
## one; we need to give alliants their own operating system name to
## do this right. When someone cares, they can help us.
fx80-alliant-* )
machine=alliant4 opsys=bsd4-2
;;
i860-alliant-* )
machine=alliant-2800 opsys=bsd4-3
;;
## Alpha (DEC) machines.
alpha*-dec-osf* )
machine=alpha opsys=osf1
# This is needed to find X11R6.1 libraries for certain tests.
NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2000-12-11 17:17:41 +00:00
# NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
# due to non-traditional preprocessing with the current compiler
# defaults. OSF 4 can also have that compiler version, and there
# seems always to have been a usable /usr/bin/cpp.
NON_GNU_CPP=/usr/bin/cpp
2000-02-27 12:31:28 +00:00
case "${canonical}" in
2000-09-29 09:32:42 +00:00
alpha*-dec-osf[5-9]*)
2000-08-28 15:05:20 +00:00
opsys=osf5-0 ;;
2000-02-27 12:31:28 +00:00
esac
1999-10-07 13:06:22 +00:00
;;
alpha*-*-linux-gnu* )
machine=alpha opsys=gnu-linux
;;
2000-01-05 22:56:49 +00:00
arm*-*-linux-gnu* )
machine=arm opsys=gnu-linux
;;
1999-10-07 13:06:22 +00:00
## Altos 3068
m68*-altos-sysv* )
machine=altos opsys=usg5-2
;;
## Amdahl UTS
580-amdahl-sysv* )
machine=amdahl opsys=usg5-2-2
;;
## Apollo, Domain/OS
m68*-apollo-* )
machine=apollo opsys=bsd4-3
;;
2007-01-23 00:57:48 +00:00
## Apple Darwin / Mac OS X
*-apple-darwin* )
case "${canonical}" in
i[3456]86-* ) machine=intel386 ;;
powerpc-* ) machine=powermac ;;
* ) unported=yes ;;
esac
opsys=darwin
# Define CPP as follows to make autoconf work correctly.
CPP="${CC-cc} -E -no-cpp-precomp"
# Use fink packages if available.
if test -d /sw/include && test -d /sw/lib; then
GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
CPP="${CPP} ${GCC_TEST_OPTIONS}"
NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
fi
;;
1999-10-07 13:06:22 +00:00
## AT&T 3b2, 3b5, 3b15, 3b20
we32k-att-sysv* )
machine=att3b opsys=usg5-2-2
;;
## AT&T 3b1 - The Mighty Unix PC!
m68*-att-sysv* )
machine=7300 opsys=usg5-2-2
;;
## Bull dpx20
rs6000-bull-bosx* )
machine=ibmrs6000 opsys=aix3-2
;;
## Bull dpx2
m68*-bull-sysv3* )
machine=dpx2 opsys=usg5-3
;;
## Bull sps7
m68*-bull-sysv2* )
machine=sps7 opsys=usg5-2
;;
## CCI 5/32, 6/32 -- see "Tahoe".
## Celerity
## I don't know what configuration name to use for this; config.sub
## doesn't seem to know anything about it. Hey, Celerity users, get
## in touch with us!
celerity-celerity-bsd* )
machine=celerity opsys=bsd4-2
;;
## Clipper
## What operating systems does this chip run that Emacs has been
## tested on?
clipper-* )
machine=clipper
## We'll use the catch-all code at the bottom to guess the
## operating system.
;;
2002-03-05 10:54:56 +00:00
## Compaq Nonstop
mips-compaq-nonstopux* )
machine=nonstopux opsys=nonstopux
;;
1999-10-07 13:06:22 +00:00
## Convex
*-convex-bsd* | *-convex-convexos* )
machine=convex opsys=bsd4-3
## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
NON_GNU_CPP="cc -E -P"
;;
## Cubix QBx/386
i[3456]86-cubix-sysv* )
machine=intel386 opsys=usg5-3
;;
## Cydra 5
cydra*-cydrome-sysv* )
machine=cydra5 opsys=usg5-3
;;
## Data General AViiON Machines
## DG changed naming conventions with the release of 5.4.4.10, they
## dropped the initial 5.4 but left the intervening R. Because of the
## R this shouldn't conflict with older versions of the OS (which I
## think were named like dgux4.*). In addition, DG new AViiONs series
## uses either Motorola M88k or Intel Pentium CPUs.
m88k-dg-dguxR4.* | m88k-dg-dgux4* )
machine=aviion opsys=dgux4
;;
m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
## This name is dgux5-4-3 instead of dgux5-4r3
## to avoid a file name conflict on MSDOS.
machine=aviion opsys=dgux5-4-3
;;
m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
machine=aviion opsys=dgux5-4r2
;;
m88k-dg-dgux* )
machine=aviion opsys=dgux
;;
## Data General AViiON Intel (x86) Machines
## Exists from 5.4.3 (current i586-dg-dguxR4.11)
## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
i[345]86-dg-dguxR4* )
machine=aviion-intel opsys=dgux4
;;
## DECstations
mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
machine=pmax opsys=bsd4-2
;;
mips-dec-ultrix4.[12]* | mips-dec-bsd* )
machine=pmax opsys=bsd4-3
;;
mips-dec-ultrix* )
machine=pmax opsys=ultrix4-3
;;
mips-dec-osf* )
machine=pmax opsys=osf1
;;
mips-dec-mach_bsd4.3* )
machine=pmax opsys=mach-bsd4-3
;;
2003-01-20 05:35:31 +00:00
## Motorola Delta machines
m68k-motorola-sysv* | m68000-motorola-sysv* )
machine=delta opsys=usg5-3
if test -z "`type gnucc | grep 'not found'`"
then
if test -s /etc/167config
then CC="gnucc -m68040"
else CC="gnucc -m68881"
fi
else
if test -z "`type gcc | grep 'not found'`"
then CC=gcc
else CC=cc
fi
fi
;;
1999-10-07 13:06:22 +00:00
m88k-motorola-sysv4* )
# jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
# needs POSIX_SIGNALS and therefore needs usg5-4-2.
# I hope there are not other 4.0 versions for this machine
# which really need usg5-4 instead.
machine=delta88k opsys=usg5-4-2
;;
m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
machine=delta88k opsys=usg5-3
;;
## Dual machines
m68*-dual-sysv* )
machine=dual opsys=usg5-2
;;
m68*-dual-uniplus* )
machine=dual opsys=unipl5-2
;;
## Elxsi 6400
elxsi-elxsi-sysv* )
machine=elxsi opsys=usg5-2
;;
## Encore machines
ns16k-encore-bsd* )
machine=ns16000 opsys=umax
;;
2000-07-05 17:07:14 +00:00
## The GEC 63 - apparently, this port isn't really finished yet.
# I'm sure we finished off the last of the machines, though. -- fx
1999-10-07 13:06:22 +00:00
## Gould Power Node and NP1
pn-gould-bsd4.2* )
machine=gould opsys=bsd4-2
;;
pn-gould-bsd4.3* )
machine=gould opsys=bsd4-3
;;
np1-gould-bsd* )
machine=gould-np1 opsys=bsd4-3
;;
## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
## as far as Emacs is concerned).
m88k-harris-cxux* )
# Build needs to be different on 7.0 and later releases
case "`uname -r`" in
[56].[0-9] ) machine=nh4000 opsys=cxux ;;
[7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
esac
NON_GNU_CPP="/lib/cpp"
;;
## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
m68k-harris-cxux* )
machine=nh3000 opsys=cxux
;;
## Harris power pc NightHawk running Power UNIX (Series 6000)
powerpc-harris-powerunix )
machine=nh6000 opsys=powerunix
NON_GNU_CPP="cc -Xo -E -P"
;;
## Honeywell XPS100
xps*-honeywell-sysv* )
machine=xps100 opsys=usg5-2
;;
## HP 9000 series 200 or 300
m68*-hp-bsd* )
machine=hp9000s300 opsys=bsd4-3
;;
## HP/UX 7, 8, 9, and 10 are supported on these machines.
m68*-hp-hpux* )
case "`uname -r`" in
## Someone's system reports A.B8.05 for this.
## I wonder what other possibilities there are.
*.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
*.08.* ) machine=hp9000s300 opsys=hpux8 ;;
*.09.* ) machine=hp9000s300 opsys=hpux9 ;;
*.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
*) machine=hp9000s300 opsys=hpux ;;
esac
;;
2007-01-29 17:04:28 +00:00
hppa*-*-linux-gnu* )
machine=hp800 opsys=gnu-linux
;;
hppa*-*-nextstep* )
machine=hp800 opsys=nextstep
;;
1999-10-07 13:06:22 +00:00
## Orion machines
orion-orion-bsd* )
machine=orion opsys=bsd4-2
;;
clipper-orion-bsd* )
machine=orion105 opsys=bsd4-2
;;
## IBM machines
i[3456]86-ibm-aix1.1* )
machine=ibmps2-aix opsys=usg5-2-2
;;
i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
machine=ibmps2-aix opsys=usg5-3
;;
i370-ibm-aix*)
machine=ibm370aix opsys=usg5-3
;;
2003-05-21 12:59:28 +00:00
s390-*-linux-gnu* )
2001-10-28 19:28:52 +00:00
machine=ibms390 opsys=gnu-linux
;;
2006-03-03 11:32:03 +00:00
s390x-*-linux-gnu* )
machine=ibms390x opsys=gnu-linux
;;
1999-10-07 13:06:22 +00:00
rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
machine=ibmrs6000 opsys=aix3-1
;;
rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
machine=ibmrs6000 opsys=aix3-2-5
;;
rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
machine=ibmrs6000 opsys=aix4-1
;;
rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
machine=ibmrs6000 opsys=aix4-2
;;
2003-05-21 12:59:28 +00:00
rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2002-03-15 12:22:53 +00:00
machine=ibmrs6000 opsys=aix4-2
;;
1999-10-07 13:06:22 +00:00
rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
machine=ibmrs6000 opsys=aix4
;;
rs6000-ibm-aix4* | powerpc-ibm-aix4* )
machine=ibmrs6000 opsys=aix4-1
;;
rs6000-ibm-aix* | powerpc-ibm-aix* )
machine=ibmrs6000 opsys=aix3-2
;;
romp-ibm-bsd4.3* )
machine=ibmrt opsys=bsd4-3
;;
romp-ibm-bsd4.2* )
machine=ibmrt opsys=bsd4-2
;;
romp-ibm-aos4.3* )
machine=ibmrt opsys=bsd4-3
;;
romp-ibm-aos4.2* )
machine=ibmrt opsys=bsd4-2
;;
romp-ibm-aos* )
machine=ibmrt opsys=bsd4-3
;;
romp-ibm-bsd* )
machine=ibmrt opsys=bsd4-3
;;
romp-ibm-aix* )
machine=ibmrt-aix opsys=usg5-2-2
;;
## Integrated Solutions `Optimum V'
m68*-isi-bsd4.2* )
machine=isi-ov opsys=bsd4-2
;;
m68*-isi-bsd4.3* )
machine=isi-ov opsys=bsd4-3
;;
## Intel 386 machines where we do care about the manufacturer
i[3456]86-intsys-sysv* )
machine=is386 opsys=usg5-2-2
;;
## Prime EXL
i[3456]86-prime-sysv* )
machine=i386 opsys=usg5-3
;;
## Sequent Symmetry running Dynix
i[3456]86-sequent-bsd* )
machine=symmetry opsys=bsd4-3
;;
## Sequent Symmetry running ptx 4, which is a modified SVR4.
i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
machine=sequent-ptx opsys=ptx4
NON_GNU_CPP=/lib/cpp
;;
## Sequent Symmetry running DYNIX/ptx
## Use the old cpp rather than the newer ANSI one.
i[3456]86-sequent-ptx* )
machine=sequent-ptx opsys=ptx
NON_GNU_CPP="/lib/cpp"
;;
## ncr machine running svr4.3.
i[3456]86-ncr-sysv4.3 )
machine=ncr386 opsys=usg5-4-3
;;
## Unspecified sysv on an ncr machine defaults to svr4.2.
## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
i[3456]86-ncr-sysv* )
machine=ncr386 opsys=usg5-4-2
;;
## Intel Paragon OSF/1
i860-intel-osf1* )
machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
;;
## Intel 860
i860-*-sysv4* )
machine=i860 opsys=usg5-4
NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
;;
2000-04-27 19:12:09 +00:00
## Macintosh PowerPC
powerpc*-*-linux-gnu* )
machine=macppc opsys=gnu-linux
;;
1999-10-07 13:06:22 +00:00
## Masscomp machines
m68*-masscomp-rtu* )
machine=masscomp opsys=rtu
;;
## Megatest machines
m68*-megatest-bsd* )
machine=mega68 opsys=bsd4-2
;;
## Workstations sold by MIPS
## This is not necessarily all workstations using the MIPS processor -
## Irises are produced by SGI, and DECstations by DEC.
## etc/MACHINES lists mips.h and mips4.h as possible machine files,
## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
## it gives for choosing between the alternatives seems to be "Use
## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
## the BSD world." I'll assume that these are instructions for
## handling two odd situations, and that every other situation
## should use mips.h and usg5-2-2, they being listed first.
mips-mips-usg* )
machine=mips4
## Fall through to the general code at the bottom to decide on the OS.
;;
mips-mips-riscos4* )
machine=mips4 opsys=bsd4-3
NON_GNU_CC="cc -systype bsd43"
NON_GNU_CPP="cc -systype bsd43 -E"
;;
mips-mips-riscos5* )
machine=mips4 opsys=riscos5
NON_GNU_CC="cc -systype bsd43"
NON_GNU_CPP="cc -systype bsd43 -E"
;;
mips-mips-bsd* )
machine=mips opsys=bsd4-3
;;
mips-mips-* )
machine=mips opsys=usg5-2-2
;;
## NeXT
m68*-next-* | m68k-*-nextstep* )
machine=m68k opsys=nextstep
;;
## The complete machine from National Semiconductor
ns32k-ns-genix* )
machine=ns32000 opsys=usg5-2
;;
## NCR machines
m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
machine=tower32 opsys=usg5-2-2
;;
m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
machine=tower32v3 opsys=usg5-3
;;
## NEC EWS4800
mips-nec-sysv4*)
machine=ews4800 opsys=ux4800
;;
## Nixdorf Targon 31
m68*-nixdorf-sysv* )
machine=targon31 opsys=usg5-2-2
;;
## Nu (TI or LMI)
m68*-nu-sysv* )
machine=nu opsys=usg5-2
;;
## Plexus
m68*-plexus-sysv* )
machine=plexus opsys=usg5-2
;;
## Pyramid machines
## I don't really have any idea what sort of processor the Pyramid has,
## so I'm assuming it is its own architecture.
pyramid-pyramid-bsd* )
machine=pyramid opsys=bsd4-2
;;
## Sequent Balance
ns32k-sequent-bsd4.2* )
machine=sequent opsys=bsd4-2
;;
ns32k-sequent-bsd4.3* )
machine=sequent opsys=bsd4-3
;;
## Siemens Nixdorf
mips-siemens-sysv* | mips-sni-sysv*)
machine=mips-siemens opsys=usg5-4
NON_GNU_CC=/usr/ccs/bin/cc
NON_GNU_CPP=/usr/ccs/lib/cpp
;;
## Silicon Graphics machines
## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
m68*-sgi-iris3.5* )
machine=irist opsys=iris3-5
;;
m68*-sgi-iris3.6* | m68*-sgi-iris*)
machine=irist opsys=iris3-6
;;
## Iris 4D
mips-sgi-irix3* )
machine=iris4d opsys=irix3-3
;;
mips-sgi-irix4* )
machine=iris4d opsys=irix4-0
;;
mips-sgi-irix6.5 )
machine=iris4d opsys=irix6-5
1999-11-18 18:28:59 +00:00
# Without defining _LANGUAGE_C, things get masked out in the headers
# so that, for instance, grepping for `free' in stdlib.h fails and
# AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2000-06-02 15:46:19 +00:00
NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
1999-10-07 13:06:22 +00:00
;;
mips-sgi-irix6* )
machine=iris4d opsys=irix6-0
2000-01-05 22:56:49 +00:00
# It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1999-11-18 18:28:59 +00:00
# but presumably it does no harm.
NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2000-06-02 15:46:19 +00:00
# -32 probably isn't necessary in later v.6s -- anyone know which?
1999-10-07 13:06:22 +00:00
NON_GCC_TEST_OPTIONS=-32
;;
mips-sgi-irix5.[01]* )
machine=iris4d opsys=irix5-0
;;
mips-sgi-irix5* | mips-sgi-irix* )
machine=iris4d opsys=irix5-2
;;
## SONY machines
m68*-sony-bsd4.2* )
machine=news opsys=bsd4-2
;;
m68*-sony-bsd4.3* )
machine=news opsys=bsd4-3
;;
m68*-sony-newsos3* | m68*-sony-news3*)
machine=news opsys=bsd4-3
;;
mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
machine=news-risc opsys=bsd4-3
;;
mips-sony-newsos6* )
machine=news-r6 opsys=newsos6
;;
mips-sony-news* )
machine=news-risc opsys=newsos5
;;
## Stride
m68*-stride-sysv* )
machine=stride opsys=usg5-2
;;
## Suns
sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
machine=sparc opsys=gnu-linux
;;
2000-03-02 09:49:52 +00:00
*-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
1999-10-07 13:06:22 +00:00
| i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
| rs6000-*-solaris2*)
case "${canonical}" in
m68*-sunos1* ) machine=sun1 ;;
m68*-sunos2* ) machine=sun2 ;;
m68* ) machine=sun3 ;;
i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
i[3456]86-*-* ) machine=intel386 ;;
2006-12-08 15:45:06 +00:00
amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
1999-10-07 13:06:22 +00:00
powerpcle* ) machine=powerpcle ;;
powerpc* | rs6000* ) machine=ibmrs6000 ;;
sparc* ) machine=sparc ;;
* ) unported=yes ;;
esac
case "${canonical}" in
## The Sun386 didn't get past 4.0.
i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
*-sunos4.0* ) opsys=sunos4-0 ;;
*-sunos4.1.[3-9]*noshare )
## This name is sunos413 instead of sunos4-1-3
## to avoid a file name conflict on MSDOS.
opsys=sunos413
NON_GNU_CPP=/usr/lib/cpp
NON_GCC_TEST_OPTIONS=-Bstatic
GCC_TEST_OPTIONS=-static
;;
*-sunos4.1.[3-9]* | *-sunos4shr*)
opsys=sunos4shr
NON_GNU_CPP=/usr/lib/cpp
;;
*-sunos4* | *-sunos )
opsys=sunos4-1
NON_GCC_TEST_OPTIONS=-Bstatic
GCC_TEST_OPTIONS=-static
;;
*-sunos5.3* | *-solaris2.3* )
opsys=sol2-3
NON_GNU_CPP=/usr/ccs/lib/cpp
;;
*-sunos5.4* | *-solaris2.4* )
opsys=sol2-4
NON_GNU_CPP=/usr/ccs/lib/cpp
RANLIB="ar -ts"
;;
*-sunos5.5* | *-solaris2.5* )
opsys=sol2-5
NON_GNU_CPP=/usr/ccs/lib/cpp
RANLIB="ar -ts"
;;
*-sunos5.6* | *-solaris2.6* )
opsys=sol2-6
NON_GNU_CPP=/usr/ccs/lib/cpp
RANLIB="ar -ts"
;;
1999-10-07 13:06:22 +00:00
*-sunos5* | *-solaris* )
2003-01-06 14:54:51 +00:00
opsys=sol2-6
1999-10-07 13:06:22 +00:00
NON_GNU_CPP=/usr/ccs/lib/cpp
;;
* ) opsys=bsd4-2 ;;
esac
## Watch out for a compiler that we know will not work.
case "${canonical}" in
*-solaris* | *-sunos5* )
if [ "x$CC" = x/usr/ucb/cc ]; then
## /usr/ucb/cc doesn't work;
## we should find some other compiler that does work.
unset CC
fi
;;
*) ;;
esac
;;
sparc-*-nextstep* )
machine=sparc opsys=nextstep
;;
## Tadpole 68k
m68*-tadpole-sysv* )
machine=tad68k opsys=usg5-3
;;
## Tahoe machines
tahoe-tahoe-bsd4.2* )
machine=tahoe opsys=bsd4-2
;;
tahoe-tahoe-bsd4.3* )
machine=tahoe opsys=bsd4-3
;;
## Tandem Integrity S2
mips-tandem-sysv* )
machine=tandem-s2 opsys=usg5-3
;;
## Tektronix XD88
m88k-tektronix-sysv3* )
machine=tekxd88 opsys=usg5-3
;;
## Tektronix 16000 box (6130?)
ns16k-tektronix-bsd* )
machine=ns16000 opsys=bsd4-2
;;
## Tektronix 4300
## src/m/tek4300.h hints that this is a m68k machine.
m68*-tektronix-bsd* )
machine=tek4300 opsys=bsd4-3
;;
## Titan P2 or P3
## We seem to have lost the machine-description file titan.h!
titan-titan-sysv* )
machine=titan opsys=usg5-3
;;
## Ustation E30 (SS5E)
m68*-unisys-uniplus* )
machine=ustation opsystem=unipl5-2
;;
## Vaxen.
vax-dec-* )
machine=vax
case "${canonical}" in
*-bsd4.1* ) opsys=bsd4-1 ;;
*-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
*-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
*-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
*-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
*-vms* ) opsys=vms ;;
* ) unported=yes
esac
;;
## Whitechapel MG1
ns16k-whitechapel-* )
machine=mg1
## We don't know what sort of OS runs on these; we'll let the
## operating system guessing code below try.
;;
## Wicat
m68*-wicat-sysv* )
machine=wicat opsys=usg5-2
;;
2000-08-03 20:24:26 +00:00
## IA-64
ia64*-*-linux* )
machine=ia64 opsys=gnu-linux
;;
1999-10-07 13:06:22 +00:00
## Intel 386 machines where we don't care about the manufacturer
i[3456]86-*-* )
machine=intel386
case "${canonical}" in
2003-01-31 15:24:20 +00:00
*-cygwin ) opsys=cygwin ;;
2005-10-25 01:09:39 +00:00
*-darwin* ) opsys=darwin
CPP="${CC-cc} -E -no-cpp-precomp"
;;
1999-10-07 13:06:22 +00:00
*-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
*-isc2.2* ) opsys=isc2-2 ;;
*-isc4.0* ) opsys=isc4-0 ;;
*-isc4.* ) opsys=isc4-1
GCC_TEST_OPTIONS=-posix
NON_GCC_TEST_OPTIONS=-Xp
;;
*-isc* ) opsys=isc3-0 ;;
*-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
*-esix* ) opsys=esix ;;
*-xenix* ) opsys=xenix ;;
*-linux-gnu* ) opsys=gnu-linux ;;
*-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2001-10-19 12:33:10 +00:00
*-sco3.2v5* ) opsys=sco5
1999-10-07 13:06:22 +00:00
NON_GNU_CPP=/lib/cpp
# Prevent -belf from being passed to $CPP.
# /lib/cpp does not accept it.
OVERRIDE_CPPFLAGS=" "
;;
*-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2003-05-21 12:59:28 +00:00
*-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
*-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
1999-10-07 13:06:22 +00:00
*-386bsd* ) opsys=386bsd ;;
*-nextstep* ) opsys=nextstep ;;
## Otherwise, we'll fall through to the generic opsys code at the bottom.
esac
;;
## m68k Linux-based GNU system
m68k-*-linux-gnu* )
machine=m68k opsys=gnu-linux
;;
## Mips Linux-based GNU system
2002-11-28 01:08:07 +00:00
mips-*-linux-gnu* | mipsel-*-linux-gnu* )
1999-10-07 13:06:22 +00:00
machine=mips opsys=gnu-linux
;;
## UXP/DS
sparc-fujitsu-sysv4* )
machine=sparc opsys=uxpds
NON_GNU_CPP=/usr/ccs/lib/cpp
RANLIB="ar -ts"
;;
## UXP/V
f301-fujitsu-uxpv4.1)
machine=f301 opsys=uxpv
;;
2002-06-07 11:23:40 +00:00
## AMD x86-64 Linux-based GNU system
x86_64-*-linux-gnu* )
2002-07-21 20:22:11 +00:00
machine=amdx86-64 opsys=gnu-linux
2002-06-07 11:23:40 +00:00
;;
## Tensilica Xtensa Linux-based GNU system
xtensa-*-linux-gnu* )
machine=xtensa opsys=gnu-linux
;;
1999-10-07 13:06:22 +00:00
* )
unported=yes
;;
esac
### If the code above didn't choose an operating system, just choose
### an operating system based on the configuration name. You really
### only want to use this when you have no idea what the right
### operating system is; if you know what operating systems a machine
### runs, it's cleaner to make it explicit in the case statement
### above.
if test x"${opsys}" = x; then
case "${canonical}" in
*-gnu* ) opsys=gnu ;;
*-bsd4.[01] ) opsys=bsd4-1 ;;
*-bsd4.2 ) opsys=bsd4-2 ;;
*-bsd4.3 ) opsys=bsd4-3 ;;
*-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
*-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
*-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
*-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
*-sysv4.2uw* ) opsys=unixware ;;
2003-05-21 12:59:28 +00:00
*-sysv5uw* ) opsys=unixware ;;
*-sysv5OpenUNIX* ) opsys=unixware ;;
1999-10-07 13:06:22 +00:00
*-sysv4.1* | *-sysvr4.1* )
NON_GNU_CPP=/usr/lib/cpp
opsys=usg5-4 ;;
*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
if [ x$NON_GNU_CPP = x ]; then
if [ -f /usr/ccs/lib/cpp ]; then
NON_GNU_CPP=/usr/ccs/lib/cpp
else
NON_GNU_CPP=/lib/cpp
fi
fi
opsys=usg5-4-2 ;;
*-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
* )
unported=yes
;;
esac
fi
2002-11-07 17:33:03 +00:00
2002-11-21 20:38:07 +00:00
1999-10-07 13:06:22 +00:00
if test $unported = yes; then
2002-11-07 17:33:03 +00:00
{ { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2001-10-19 12:33:10 +00:00
Check \`etc/MACHINES' for recognized configuration names." >&5
echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
Check \`etc/MACHINES' for recognized configuration names." >&2;}
{ (exit 1); exit 1; }; }
1999-10-07 13:06:22 +00:00
fi
machfile="m/${machine}.h"
opsysfile="s/${opsys}.h"
2002-11-07 17:33:03 +00:00
1999-10-07 13:06:22 +00:00
#### Choose a compiler.
test -n "$CC" && cc_specified=yes
# Save the value of CFLAGS that the user specified.
SPECIFIED_CFLAGS="$CFLAGS"
case ${with_gcc} in
"yes" ) CC="gcc" GCC=yes ;;
"no" ) : ${CC=cc} ;;
2001-10-19 12:33:10 +00:00
* )
esac
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'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
2002-11-07 17:33:03 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-11-07 17:33:03 +00:00
ac_cv_prog_CC="${ac_tool_prefix}gcc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
2001-10-19 12:33:10 +00:00
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2001-10-19 12:33:10 +00:00
1999-10-07 13:06:22 +00:00
fi
fi
2001-10-19 12:33:10 +00:00
CC=$ac_cv_prog_CC
1999-10-07 13:06:22 +00:00
if test -n "$CC"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
2001-10-19 12:33:10 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
fi
if test -z "$ac_cv_prog_CC"; then
ac_ct_CC=$CC
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
2002-11-07 17:33:03 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-11-07 17:33:03 +00:00
ac_cv_prog_ac_ct_CC="gcc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
2001-10-19 12:33:10 +00:00
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2001-10-19 12:33:10 +00:00
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6; }
1999-10-07 13:06:22 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
if test "x$ac_ct_CC" = x; then
CC=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
CC=$ac_ct_CC
fi
2001-10-19 12:33:10 +00:00
else
CC="$ac_cv_prog_CC"
1999-10-07 13:06:22 +00:00
fi
if test -z "$CC"; then
2006-12-20 19:57:39 +00:00
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2001-10-19 12:33:10 +00:00
set dummy ${ac_tool_prefix}cc; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
2002-11-07 17:33:03 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-11-07 17:33:03 +00:00
ac_cv_prog_CC="${ac_tool_prefix}cc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
2001-10-19 12:33:10 +00:00
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2001-10-19 12:33:10 +00:00
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
2006-12-19 19:48:48 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2006-12-19 19:48:48 +00:00
fi
2006-12-20 19:57:39 +00:00
fi
2001-10-19 12:33:10 +00:00
fi
if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
ac_prog_rejected=no
2002-11-07 17:33:03 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-11-07 17:33:03 +00:00
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
ac_prog_rejected=yes
continue
fi
ac_cv_prog_CC="cc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
2001-10-19 12:33:10 +00:00
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2001-10-19 12:33:10 +00:00
1999-10-07 13:06:22 +00:00
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
2001-10-19 12:33:10 +00:00
if test $# != 0; then
1999-10-07 13:06:22 +00:00
# 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
2002-11-08 12:32:10 +00:00
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1999-10-07 13:06:22 +00:00
fi
fi
fi
fi
2001-10-19 12:33:10 +00:00
CC=$ac_cv_prog_CC
1999-10-07 13:06:22 +00:00
if test -n "$CC"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
1999-10-07 13:06:22 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
fi
if test -z "$CC"; then
if test -n "$ac_tool_prefix"; then
2006-12-20 19:57:39 +00:00
for ac_prog in cl.exe
2001-10-19 12:33:10 +00:00
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-01-05 22:56:49 +00:00
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
2002-11-07 17:33:03 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-11-07 17:33:03 +00:00
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
2001-10-19 12:33:10 +00:00
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2001-10-19 12:33:10 +00:00
2000-01-05 22:56:49 +00:00
fi
fi
2001-10-19 12:33:10 +00:00
CC=$ac_cv_prog_CC
2000-01-05 22:56:49 +00:00
if test -n "$CC"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
2000-01-05 22:56:49 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
test -n "$CC" && break
done
fi
if test -z "$CC"; then
ac_ct_CC=$CC
2006-12-20 19:57:39 +00:00
for ac_prog in cl.exe
2001-10-19 12:33:10 +00:00
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
2002-11-07 17:33:03 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-11-07 17:33:03 +00:00
ac_cv_prog_ac_ct_CC="$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
2001-10-19 12:33:10 +00:00
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2001-10-19 12:33:10 +00:00
2000-01-05 22:56:49 +00:00
fi
2001-10-19 12:33:10 +00:00
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6; }
2001-10-19 12:33:10 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
test -n "$ac_ct_CC" && break
done
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
if test "x$ac_ct_CC" = x; then
CC=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
CC=$ac_ct_CC
fi
2001-10-19 12:33:10 +00:00
fi
fi
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
2003-07-23 11:16:30 +00:00
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
2001-10-19 12:33:10 +00:00
{ (exit 1); exit 1; }; }
2000-01-05 22:56:49 +00:00
2001-10-19 12:33:10 +00:00
# Provide some information about the compiler.
2006-12-20 19:57:39 +00:00
echo "$as_me:$LINENO: checking for C compiler version" >&5
2001-10-19 12:33:10 +00:00
ac_compiler=`set X $ac_compile; echo $2`
2006-12-20 19:57:39 +00:00
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compiler --version >&5") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); }
2006-12-20 19:57:39 +00:00
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compiler -v >&5") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); }
2006-12-20 19:57:39 +00:00
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compiler -V >&5") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); }
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2000-01-05 22:56:49 +00:00
2001-10-19 12:33:10 +00:00
int
main ()
{
;
return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
2003-07-23 11:16:30 +00:00
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2001-10-19 12:33:10 +00:00
# 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.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2006-12-20 19:57:39 +00:00
#
# List of possible output files, starting from the most likely.
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
# only as a last resort. b.out is created by i960 compilers.
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
#
# The IRIX 6 linker writes into existing files which may not be
# executable, retaining their permissions. Remove them first so a
# subsequent execution test works.
ac_rmfiles=
for ac_file in $ac_files
do
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
esac
done
rm -f $ac_rmfiles
if { (ac_try="$ac_link_default"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link_default") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); }; then
2006-12-20 19:57:39 +00:00
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile. We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
2006-12-22 19:23:19 +00:00
for ac_file in $ac_files ''
2003-07-23 11:16:30 +00:00
do
2002-11-08 12:32:10 +00:00
test -f "$ac_file" || continue
2001-10-19 12:33:10 +00:00
case $ac_file in
2006-12-20 19:57:39 +00:00
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2005-07-06 12:07:32 +00:00
;;
2003-07-23 11:16:30 +00:00
[ab].out )
2005-07-06 12:07:32 +00:00
# We found the default executable, but exeext='' is most
# certainly right.
break;;
2003-07-23 11:16:30 +00:00
*.* )
2006-12-20 19:57:39 +00:00
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
then :; else
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
fi
# We set ac_cv_exeext here because the later test for it is not
# safe: cross compilers may not add the suffix if given an `-o'
# argument, so we may need to know it at that point already.
# Even if this section looks crufty: it has the advantage of
# actually working.
2005-07-06 12:07:32 +00:00
break;;
2003-07-23 11:16:30 +00:00
* )
2005-07-06 12:07:32 +00:00
break;;
2001-10-19 12:33:10 +00:00
esac
done
2006-12-20 19:57:39 +00:00
test "$ac_cv_exeext" = no && ac_cv_exeext=
2001-10-19 12:33:10 +00:00
else
2006-12-22 19:23:19 +00:00
ac_file=''
fi
{ echo "$as_me:$LINENO: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6; }
if test -z "$ac_file"; then
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-08 12:32:10 +00:00
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2003-07-23 11:16:30 +00:00
See \`config.log' for more details." >&5
2002-11-08 12:32:10 +00:00
echo "$as_me: error: C compiler cannot create executables
2003-07-23 11:16:30 +00:00
See \`config.log' for more details." >&2;}
2001-10-19 12:33:10 +00:00
{ (exit 77); exit 77; }; }
fi
ac_exeext=$ac_cv_exeext
2006-12-20 19:57:39 +00:00
# Check that the compiler produces executables we can run. If not, either
2001-10-19 12:33:10 +00:00
# the compiler is broken, or we cross compile.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
# 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 test "$cross_compiling" != yes; then
if { ac_try='./$ac_file'
2006-12-20 19:57:39 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_try") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); }; }; then
cross_compiling=no
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
if test "$cross_compiling" = maybe; then
cross_compiling=yes
else
2002-11-07 17:33:03 +00:00
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2003-07-23 11:16:30 +00:00
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: error: cannot run C compiled programs.
2003-07-23 11:16:30 +00:00
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
2001-10-19 12:33:10 +00:00
{ (exit 1); exit 1; }; }
fi
1999-10-07 13:06:22 +00:00
fi
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
2001-10-19 12:33:10 +00:00
2003-07-23 11:16:30 +00:00
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2001-10-19 12:33:10 +00:00
ac_clean_files=$ac_clean_files_save
2006-12-20 19:57:39 +00:00
# Check that the compiler produces executables we can run. If not, either
2001-10-19 12:33:10 +00:00
# the compiler is broken, or we cross compile.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6; }
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); }; then
# If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
2002-11-08 12:32:10 +00:00
for ac_file in conftest.exe conftest conftest.*; do
test -f "$ac_file" || continue
2001-10-19 12:33:10 +00:00
case $ac_file in
2006-12-20 19:57:39 +00:00
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2001-10-19 12:33:10 +00:00
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2005-07-06 12:07:32 +00:00
break;;
2001-10-19 12:33:10 +00:00
* ) break;;
esac
done
1999-10-07 13:06:22 +00:00
else
2003-07-23 11:16:30 +00:00
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
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;}
2001-10-19 12:33:10 +00:00
{ (exit 1); exit 1; }; }
1999-10-07 13:06:22 +00:00
fi
2001-10-19 12:33:10 +00:00
rm -f conftest$ac_cv_exeext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6; }
1999-10-07 13:06:22 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_objext+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-10-07 13:06:22 +00:00
2001-10-19 12:33:10 +00:00
int
main ()
{
1999-10-07 13:06:22 +00:00
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); }; then
2006-12-20 19:57:39 +00:00
for ac_file in conftest.o conftest.obj conftest.*; do
test -f "$ac_file" || continue;
2001-10-19 12:33:10 +00:00
case $ac_file in
2006-12-20 19:57:39 +00:00
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2001-10-19 12:33:10 +00:00
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
break;;
esac
done
2000-01-05 22:56:49 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
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;}
2001-10-19 12:33:10 +00:00
{ (exit 1); exit 1; }; }
2000-01-05 22:56:49 +00:00
fi
2001-10-19 12:33:10 +00:00
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6; }
2001-10-19 12:33:10 +00:00
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_c_compiler_gnu+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
int
main ()
{
#ifndef __GNUC__
choke me
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-10-19 12:33:10 +00:00
ac_compiler_gnu=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_compiler_gnu=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
ac_cv_c_compiler_gnu=$ac_compiler_gnu
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2001-10-19 12:33:10 +00:00
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_prog_cc_g+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-12-20 19:57:39 +00:00
ac_save_c_werror_flag=$ac_c_werror_flag
ac_c_werror_flag=yes
ac_cv_prog_cc_g=no
CFLAGS="-g"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1999-10-07 13:06:22 +00:00
ac_cv_prog_cc_g=yes
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
CFLAGS=""
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
2002-11-08 12:32:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
2002-11-08 12:32:10 +00:00
;
return 0;
}
_ACEOF
2006-12-20 19:57:39 +00:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-08 12:32:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-08 12:32:10 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-12-20 19:57:39 +00:00
:
2002-11-08 12:32:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_c_werror_flag=$ac_save_c_werror_flag
CFLAGS="-g"
cat >conftest.$ac_ext <<_ACEOF
2006-12-19 19:48:48 +00:00
/* confdefs.h. */
2003-07-23 11:16:30 +00:00
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-12-20 19:57:39 +00:00
ac_cv_prog_cc_g=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
2006-12-19 06:49:01 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
else
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
fi
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-12-20 19:57:39 +00:00
#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 -std 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 -std. */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
inside strings and character constants. */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 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;
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
2006-12-20 19:57:39 +00:00
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
CC="$ac_save_CC $ac_arg"
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-12-20 19:57:39 +00:00
ac_cv_prog_cc_c89=$ac_arg
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext
test "x$ac_cv_prog_cc_c89" != "xno" && break
2001-10-19 12:33:10 +00:00
done
2006-12-20 19:57:39 +00:00
rm -f conftest.$ac_ext
CC=$ac_save_CC
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
x)
{ echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6; } ;;
xno)
{ echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6; } ;;
*)
CC="$CC $ac_cv_prog_cc_c89"
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
esac
1999-10-07 13:06:22 +00:00
2003-07-23 11:16:30 +00:00
2001-10-19 12:33:10 +00:00
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'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
1999-10-07 13:06:22 +00:00
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
#### Some systems specify a CPP to use unless we are using GCC.
#### Now that we know whether we are using GCC, we can decide whether
#### to use that one.
if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
then
CPP="$NON_GNU_CPP"
fi
#### Some systems specify a CC to use unless we are using GCC.
#### Now that we know whether we are using GCC, we can decide whether
#### to use that one.
if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
test x$cc_specified != xyes
then
CC="$NON_GNU_CC"
fi
if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
then
CC="$CC $GCC_TEST_OPTIONS"
fi
if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
then
CC="$CC $NON_GCC_TEST_OPTIONS"
fi
2006-01-12 22:43:27 +00:00
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'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2006-01-12 22:43:27 +00:00
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
if test "${ac_cv_prog_CPP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Double quotes because CPP needs to be expanded
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
do
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
# <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.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2006-01-12 22:43:27 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2006-01-12 22:43:27 +00:00
:
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
# Broken: fails on valid input.
continue
fi
2006-12-20 19:57:39 +00:00
2006-01-12 22:43:27 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
# OK, works on sane cases. Now check whether nonexistent headers
2006-01-12 22:43:27 +00:00
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <ac_nonexistent.h>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2006-01-12 22:43:27 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2006-01-12 22:43:27 +00:00
# Broken: success on invalid input.
continue
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
# Passes both tests.
ac_preproc_ok=:
break
fi
2006-12-20 19:57:39 +00:00
2006-01-12 22:43:27 +00:00
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
break
fi
done
ac_cv_prog_CPP=$CPP
fi
CPP=$ac_cv_prog_CPP
else
ac_cv_prog_CPP=$CPP
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6; }
2006-01-12 22:43:27 +00:00
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
# <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.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2006-01-12 22:43:27 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2006-01-12 22:43:27 +00:00
:
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
# Broken: fails on valid input.
continue
fi
2006-12-20 19:57:39 +00:00
2006-01-12 22:43:27 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
# OK, works on sane cases. Now check whether nonexistent headers
2006-01-12 22:43:27 +00:00
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <ac_nonexistent.h>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2006-01-12 22:43:27 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2006-01-12 22:43:27 +00:00
# Broken: success on invalid input.
continue
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
# Passes both tests.
ac_preproc_ok=:
break
fi
2006-12-20 19:57:39 +00:00
2006-01-12 22:43:27 +00:00
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
:
else
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
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'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
if test "${ac_cv_path_GREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Extract the first word of "grep ggrep" to use in msg output
if test -z "$GREP"; then
set dummy grep ggrep; ac_prog_name=$2
if test "${ac_cv_path_GREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_path_GREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in grep ggrep; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2006-12-22 19:23:19 +00:00
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2006-12-20 19:57:39 +00:00
# Check for GNU ac_path_GREP and select it if it is found.
# Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
ac_count=0
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
echo 'GREP' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
ac_count=`expr $ac_count + 1`
if test $ac_count -gt ${ac_path_GREP_max-0}; then
# Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP"
ac_path_GREP_max=$ac_count
fi
# 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break
done
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
$ac_path_GREP_found && break 3
done
done
done
IFS=$as_save_IFS
fi
GREP="$ac_cv_path_GREP"
if test -z "$GREP"; then
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
{ (exit 1); exit 1; }; }
fi
else
ac_cv_path_GREP=$GREP
fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then
2006-12-19 06:49:01 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-12-20 19:57:39 +00:00
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
then ac_cv_path_EGREP="$GREP -E"
else
# Extract the first word of "egrep" to use in msg output
if test -z "$EGREP"; then
set dummy egrep; ac_prog_name=$2
if test "${ac_cv_path_EGREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in egrep; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2006-12-22 19:23:19 +00:00
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2006-12-20 19:57:39 +00:00
# Check for GNU ac_path_EGREP and select it if it is found.
# Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
ac_count=0
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
echo 'EGREP' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
ac_count=`expr $ac_count + 1`
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
# Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP"
ac_path_EGREP_max=$ac_count
2006-01-12 22:43:27 +00:00
fi
2006-12-20 19:57:39 +00:00
# 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break
done
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
$ac_path_EGREP_found && break 3
done
done
done
IFS=$as_save_IFS
fi
EGREP="$ac_cv_path_EGREP"
if test -z "$EGREP"; then
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
{ (exit 1); exit 1; }; }
fi
else
ac_cv_path_EGREP=$EGREP
fi
fi
2006-12-19 06:49:01 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
EGREP="$ac_cv_path_EGREP"
2006-01-12 22:43:27 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for AIX" >&5
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
2006-01-12 22:43:27 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef _AIX
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
2006-01-12 22:43:27 +00:00
cat >>confdefs.h <<\_ACEOF
#define _ALL_SOURCE 1
_ACEOF
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2006-01-12 22:43:27 +00:00
fi
rm -f conftest*
cat >>confdefs.h <<\_ACEOF
#define _GNU_SOURCE 1
_ACEOF
### Use -Wno-pointer-sign if the compiler supports it
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wno-pointer-sign"
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
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
has_option=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
has_option=no
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test $has_option = yes; then
C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $has_option" >&5
echo "${ECHO_T}$has_option" >&6; }
CFLAGS="$SAVE_CFLAGS"
unset has_option
unset SAVE_CFLAGS
2003-01-07 17:53:56 +00:00
#### Some other nice autoconf tests.
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
1999-10-07 13:06:22 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6; }
1999-10-07 13:06:22 +00:00
fi
2001-10-19 12:33:10 +00:00
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'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1999-10-07 13:06:22 +00:00
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
2001-10-19 12:33:10 +00:00
if test "${ac_cv_prog_CPP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Double quotes because CPP needs to be expanded
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
do
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
2003-07-23 11:16:30 +00:00
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
# <limits.h> exists even on freestanding compilers.
1999-10-07 13:06:22 +00:00
# On the NeXT, cc -E runs the code through the compiler's parser,
2001-10-19 12:33:10 +00:00
# not just through cpp. "Syntax error" is here to catch this case.
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
Syntax error
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
1999-10-07 13:06:22 +00:00
:
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-10-19 12:33:10 +00:00
# Broken: fails on valid input.
continue
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
# OK, works on sane cases. Now check whether nonexistent headers
2001-10-19 12:33:10 +00:00
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
#include <ac_nonexistent.h>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2001-10-19 12:33:10 +00:00
# Broken: success on invalid input.
continue
2000-01-05 22:56:49 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-10-19 12:33:10 +00:00
# Passes both tests.
ac_preproc_ok=:
break
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
break
fi
done
ac_cv_prog_CPP=$CPP
fi
CPP=$ac_cv_prog_CPP
else
ac_cv_prog_CPP=$CPP
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6; }
2001-10-19 12:33:10 +00:00
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
2003-07-23 11:16:30 +00:00
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
# <limits.h> exists even on freestanding compilers.
2001-10-19 12:33:10 +00:00
# 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.
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
Syntax error
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
1999-10-07 13:06:22 +00:00
:
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-10-19 12:33:10 +00:00
# Broken: fails on valid input.
continue
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
# OK, works on sane cases. Now check whether nonexistent headers
2001-10-19 12:33:10 +00:00
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
#include <ac_nonexistent.h>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2001-10-19 12:33:10 +00:00
# Broken: success on invalid input.
continue
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-10-19 12:33:10 +00:00
# Passes both tests.
ac_preproc_ok=:
break
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
:
1999-10-07 13:06:22 +00:00
else
2003-07-23 11:16:30 +00:00
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&2;}
2001-10-19 12:33:10 +00:00
{ (exit 1); exit 1; }; }
1999-10-07 13:06:22 +00:00
fi
2001-10-19 12:33:10 +00:00
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'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999-10-07 13:06:22 +00:00
# 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
2001-10-19 12:33:10 +00:00
# AmigaOS /C/install, which installs bootblocks on floppy discs
2000-01-05 22:56:49 +00:00
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1999-10-07 13:06:22 +00:00
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2005-07-06 12:07:32 +00:00
# OS/2's system install, which has a completely different semantic
1999-10-07 13:06:22 +00:00
# ./install, which can be erroneously created by make from ./install.sh.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1999-10-07 13:06:22 +00:00
if test -z "$INSTALL"; then
2001-10-19 12:33:10 +00:00
if test "${ac_cv_path_install+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2002-11-07 17:33:03 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
# Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
./ | .// | /cC/* | \
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2005-07-06 12:07:32 +00:00
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2002-11-07 17:33:03 +00:00
/usr/ucb/* ) ;;
*)
# 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.
for ac_prog in ginstall scoinst install; do
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2005-07-06 12:07:32 +00:00
if test $ac_prog = install &&
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
# AIX install. It has an incompatible calling convention.
:
elif test $ac_prog = install &&
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
# program-specific install script used by HP pwplus--don't use.
:
else
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
break 3
fi
fi
1999-10-07 13:06:22 +00:00
done
2002-11-07 17:33:03 +00:00
done
;;
esac
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2002-11-07 17:33:03 +00:00
1999-10-07 13:06:22 +00:00
fi
if test "${ac_cv_path_install+set}" = set; then
2001-10-19 12:33:10 +00:00
INSTALL=$ac_cv_path_install
1999-10-07 13:06:22 +00:00
else
2006-12-20 19:57:39 +00:00
# As a last resort, use the slow shell script. Don't cache a
# value for INSTALL within a source directory, because that will
1999-10-07 13:06:22 +00:00
# break other packages using the cache if that directory is
2006-12-20 19:57:39 +00:00
# removed, or if the value is a relative name.
2001-10-19 12:33:10 +00:00
INSTALL=$ac_install_sh
1999-10-07 13:06:22 +00:00
fi
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6; }
1999-10-07 13:06:22 +00:00
# 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}'
2001-10-19 12:33:10 +00:00
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2000-01-05 22:56:49 +00:00
1999-10-07 13:06:22 +00:00
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2002-11-07 17:33:03 +00:00
if test "x$RANLIB" = x; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
if test "${ac_cv_prog_RANLIB+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$RANLIB"; then
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
2002-11-07 17:33:03 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-11-07 17:33:03 +00:00
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
2001-10-19 12:33:10 +00:00
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2001-10-19 12:33:10 +00:00
fi
fi
2001-10-19 12:33:10 +00:00
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6; }
2001-10-19 12:33:10 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
fi
if test -z "$ac_cv_prog_RANLIB"; then
ac_ct_RANLIB=$RANLIB
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_RANLIB"; then
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
2002-11-07 17:33:03 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-11-07 17:33:03 +00:00
ac_cv_prog_ac_ct_RANLIB="ranlib"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
2001-10-19 12:33:10 +00:00
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2001-10-19 12:33:10 +00:00
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2001-10-19 12:33:10 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
if test "x$ac_ct_RANLIB" = x; then
RANLIB=":"
else
case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
RANLIB=$ac_ct_RANLIB
fi
else
2001-10-19 12:33:10 +00:00
RANLIB="$ac_cv_prog_RANLIB"
fi
fi
2003-01-06 14:54:51 +00:00
# Extract the first word of "install-info", so it can be a program name with args.
set dummy install-info; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2003-01-06 14:54:51 +00:00
if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $INSTALL_INFO in
[\\/]* | ?:[\\/]*)
ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2003-01-06 14:54:51 +00:00
ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2003-01-06 14:54:51 +00:00
;;
esac
fi
INSTALL_INFO=$ac_cv_path_INSTALL_INFO
if test -n "$INSTALL_INFO"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
echo "${ECHO_T}$INSTALL_INFO" >&6; }
2003-01-06 14:54:51 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2003-01-06 14:54:51 +00:00
fi
2006-12-20 19:57:39 +00:00
2003-01-06 14:54:51 +00:00
# Extract the first word of "install-info", so it can be a program name with args.
set dummy install-info; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2003-01-06 14:54:51 +00:00
if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $INSTALL_INFO in
[\\/]* | ?:[\\/]*)
ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /usr/sbin
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2003-01-06 14:54:51 +00:00
ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2003-01-06 14:54:51 +00:00
;;
esac
fi
INSTALL_INFO=$ac_cv_path_INSTALL_INFO
if test -n "$INSTALL_INFO"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
echo "${ECHO_T}$INSTALL_INFO" >&6; }
2003-01-06 14:54:51 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2003-01-06 14:54:51 +00:00
fi
2006-12-20 19:57:39 +00:00
2003-01-06 14:54:51 +00:00
# Extract the first word of "install-info", so it can be a program name with args.
set dummy install-info; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2003-01-06 14:54:51 +00:00
if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $INSTALL_INFO in
[\\/]* | ?:[\\/]*)
ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /sbin
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2003-01-06 14:54:51 +00:00
ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2003-01-06 14:54:51 +00:00
test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
;;
esac
fi
INSTALL_INFO=$ac_cv_path_INSTALL_INFO
if test -n "$INSTALL_INFO"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
echo "${ECHO_T}$INSTALL_INFO" >&6; }
2003-01-06 14:54:51 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2003-01-06 14:54:51 +00:00
fi
2006-12-20 19:57:39 +00:00
2005-11-01 11:49:36 +00:00
# Extract the first word of "gzip", so it can be a program name with args.
set dummy gzip; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005-11-03 17:00:04 +00:00
if test "${ac_cv_path_GZIP_PROG+set}" = set; then
2005-11-01 11:49:36 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-11-03 17:00:04 +00:00
case $GZIP_PROG in
2005-11-01 11:49:36 +00:00
[\\/]* | ?:[\\/]*)
2005-11-03 17:00:04 +00:00
ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
2005-11-01 11:49:36 +00:00
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2005-11-03 17:00:04 +00:00
ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
2005-11-01 11:49:36 +00:00
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2005-11-01 11:49:36 +00:00
;;
esac
fi
2005-11-03 17:00:04 +00:00
GZIP_PROG=$ac_cv_path_GZIP_PROG
if test -n "$GZIP_PROG"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
echo "${ECHO_T}$GZIP_PROG" >&6; }
2005-11-01 11:49:36 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2005-11-01 11:49:36 +00:00
fi
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
then
ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
fi
if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
then
ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
fi
2002-11-07 17:33:03 +00:00
2004-04-15 08:38:21 +00:00
late_LDFLAGS=$LDFLAGS
2004-05-10 11:50:28 +00:00
if test "$GCC" = yes; then
2004-04-15 08:38:21 +00:00
LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
else
LDFLAGS="$LDFLAGS -znocombreloc"
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for -znocombreloc" >&5
echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
2004-04-15 08:38:21 +00:00
cat >conftest.$ac_ext <<_ACEOF
main(){return 0;}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2004-04-15 08:38:21 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2004-04-15 08:38:21 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
2004-04-15 08:38:21 +00:00
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
LDFLAGS=$late_LDFLAGS
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2004-04-15 08:38:21 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-04-15 08:38:21 +00:00
2000-07-18 22:16:01 +00:00
#### Extract some information from the operating system and machine files.
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
2000-07-18 22:16:01 +00:00
- which libraries the lib-src programs will want, and
2001-10-19 12:33:10 +00:00
- whether the GNU malloc routines are usable..." >&5
echo "$as_me: checking the machine- and system-dependent files to find out
2000-07-18 22:16:01 +00:00
- which libraries the lib-src programs will want, and
2001-10-19 12:33:10 +00:00
- whether the GNU malloc routines are usable..." >&6;}
2000-07-18 22:16:01 +00:00
### First figure out CFLAGS (which we use for running the compiler here)
### and REAL_CFLAGS (which we use for real compilation).
### The two are the same except on a few systems, where they are made
### different to work around various lossages. For example,
### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
### as implying static linking.
### If the CFLAGS env var is specified, we use that value
### instead of the default.
### It's not important that this name contain the PID; you can't run
### two configures in the same directory and have anything work
### anyway.
tempcname="conftest.c"
echo '
#include "'${srcdir}'/src/'${opsysfile}'"
#include "'${srcdir}'/src/'${machfile}'"
#ifndef LIBS_MACHINE
#define LIBS_MACHINE
#endif
#ifndef LIBS_SYSTEM
#define LIBS_SYSTEM
#endif
#ifndef C_SWITCH_SYSTEM
#define C_SWITCH_SYSTEM
#endif
#ifndef C_SWITCH_MACHINE
#define C_SWITCH_MACHINE
#endif
configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
configure___ c_switch_system=C_SWITCH_SYSTEM
configure___ c_switch_machine=C_SWITCH_MACHINE
#ifndef LIB_X11_LIB
#define LIB_X11_LIB -lX11
#endif
#ifndef LIBX11_MACHINE
#define LIBX11_MACHINE
#endif
#ifndef LIBX11_SYSTEM
#define LIBX11_SYSTEM
#endif
configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
#ifdef UNEXEC
configure___ unexec=UNEXEC
#else
configure___ unexec=unexec.o
#endif
#ifdef SYSTEM_MALLOC
configure___ system_malloc=yes
#else
configure___ system_malloc=no
#endif
2000-09-14 15:15:16 +00:00
#ifdef USE_MMAP_FOR_BUFFERS
configure___ use_mmap_for_buffers=yes
2000-09-06 21:42:35 +00:00
#else
2000-09-14 15:15:16 +00:00
configure___ use_mmap_for_buffers=no
2000-09-06 21:42:35 +00:00
#endif
2000-07-18 22:16:01 +00:00
#ifndef C_DEBUG_SWITCH
#define C_DEBUG_SWITCH -g
#endif
#ifndef C_OPTIMIZE_SWITCH
#ifdef __GNUC__
#define C_OPTIMIZE_SWITCH -O2
#else
#define C_OPTIMIZE_SWITCH -O
#endif
#endif
#ifndef C_WARNINGS_SWITCH
#define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
#endif
2000-07-18 22:16:01 +00:00
#ifndef LD_SWITCH_MACHINE
#define LD_SWITCH_MACHINE
#endif
#ifndef LD_SWITCH_SYSTEM
#define LD_SWITCH_SYSTEM
#endif
#ifndef LD_SWITCH_X_SITE_AUX
#define LD_SWITCH_X_SITE_AUX
2001-10-19 12:33:10 +00:00
#endif
2000-07-18 22:16:01 +00:00
configure___ ld_switch_system=LD_SWITCH_SYSTEM
configure___ ld_switch_machine=LD_SWITCH_MACHINE
#ifdef THIS_IS_CONFIGURE
/* Get the CFLAGS for tests in configure. */
#ifdef __GNUC__
configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
#else
configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
#endif
#else /* not THIS_IS_CONFIGURE */
/* Get the CFLAGS for real compilation. */
#ifdef __GNUC__
configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
2000-07-18 22:16:01 +00:00
#else
configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
#endif
#endif /* not THIS_IS_CONFIGURE */
' > ${tempcname}
# The value of CPP is a quoted variable reference, so we need to do this
# to get its actual value...
CPP=`eval "echo $CPP"`
eval `${CPP} -Isrc ${tempcname} \
| sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
if test "x$SPECIFIED_CFLAGS" = x; then
eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
| sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
else
REAL_CFLAGS="$CFLAGS"
fi
rm ${tempcname}
ac_link="$ac_link $ld_switch_machine $ld_switch_system"
### Make sure subsequent tests use flags consistent with the build flags.
if test x"${OVERRIDE_CPPFLAGS}" != x; then
CPPFLAGS="${OVERRIDE_CPPFLAGS}"
else
CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
fi
2002-11-08 12:32:10 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --enable-largefile was given.
2000-08-03 20:24:26 +00:00
if test "${enable_largefile+set}" = set; then
2006-12-20 19:57:39 +00:00
enableval=$enable_largefile;
fi
2000-08-03 20:24:26 +00:00
2001-10-19 12:33:10 +00:00
if test "$enable_largefile" != no; then
2000-08-03 20:24:26 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_sys_largefile_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2000-08-03 20:24:26 +00:00
ac_cv_sys_largefile_CC=no
2001-10-19 12:33:10 +00:00
if test "$GCC" != yes; then
ac_save_CC=$CC
while :; do
2006-12-20 19:57:39 +00:00
# IRIX 6.2 and later do not support large files by default,
# so use the C compiler's -n32 option if that helps.
2005-07-06 12:07:32 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2000-08-03 20:24:26 +00:00
#include <sys/types.h>
2001-10-19 12:33:10 +00:00
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
2000-08-03 20:24:26 +00:00
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
2006-12-20 19:57:39 +00:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-10-19 12:33:10 +00:00
break
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext
CC="$CC -n32"
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-10-19 12:33:10 +00:00
ac_cv_sys_largefile_CC=' -n32'; break
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext
2005-07-06 12:07:32 +00:00
break
2001-10-19 12:33:10 +00:00
done
CC=$ac_save_CC
rm -f conftest.$ac_ext
fi
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
2001-10-19 12:33:10 +00:00
if test "$ac_cv_sys_largefile_CC" != no; then
CC=$CC$ac_cv_sys_largefile_CC
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2000-08-03 20:24:26 +00:00
#include <sys/types.h>
2001-10-19 12:33:10 +00:00
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
2000-08-03 20:24:26 +00:00
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_sys_file_offset_bits=no; break
2000-08-03 20:24:26 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2000-08-03 20:24:26 +00:00
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
2001-10-19 12:33:10 +00:00
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-10-19 12:33:10 +00:00
ac_cv_sys_file_offset_bits=64; break
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006-12-22 19:23:19 +00:00
ac_cv_sys_file_offset_bits=unknown
2001-10-19 12:33:10 +00:00
break
done
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
2006-12-22 19:23:19 +00:00
case $ac_cv_sys_file_offset_bits in #(
no | unknown) ;;
*)
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2000-08-03 20:24:26 +00:00
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2002-11-07 17:33:03 +00:00
_ACEOF
2006-12-22 19:23:19 +00:00
;;
esac
2001-10-19 12:33:10 +00:00
rm -f conftest*
2006-12-22 19:23:19 +00:00
if test $ac_cv_sys_file_offset_bits = unknown; then
{ echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2006-12-20 19:57:39 +00:00
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_sys_large_files+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
1999-10-07 13:06:22 +00:00
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_sys_large_files=no; break
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2000-08-03 20:24:26 +00:00
#define _LARGE_FILES 1
2001-10-19 12:33:10 +00:00
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
main ()
{
2000-08-03 20:24:26 +00:00
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2001-10-19 12:33:10 +00:00
ac_cv_sys_large_files=1; break
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006-12-22 19:23:19 +00:00
ac_cv_sys_large_files=unknown
2001-10-19 12:33:10 +00:00
break
done
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
2006-12-22 19:23:19 +00:00
case $ac_cv_sys_large_files in #(
no | unknown) ;;
*)
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2000-08-03 20:24:26 +00:00
#define _LARGE_FILES $ac_cv_sys_large_files
2002-11-07 17:33:03 +00:00
_ACEOF
2006-12-22 19:23:19 +00:00
;;
esac
2001-10-19 12:33:10 +00:00
rm -f conftest*
2006-12-22 19:23:19 +00:00
fi
2001-10-19 12:33:10 +00:00
fi
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
2006-05-18 16:58:44 +00:00
2006-11-26 22:15:51 +00:00
### The standard library on x86-64 GNU/Linux distributions can
### be located in either /usr/lib64 or /usr/lib.
case "${canonical}" in
x86_64-*-linux-gnu* )
if test -d /usr/lib64; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_X86_64_LIB64_DIR 1
_ACEOF
fi
esac
2006-05-18 16:58:44 +00:00
2002-04-08 06:17:17 +00:00
if test "${with_sound}" != "no"; then
# Sound support for GNU/Linux and the free BSDs.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
2002-04-10 22:14:09 +00:00
2003-07-23 11:16:30 +00:00
int
main ()
{
;
return 0;
}
2002-11-07 17:33:03 +00:00
_ACEOF
2003-07-23 11:16:30 +00:00
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-28 01:08:07 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-28 01:08:07 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_cv_header_stdc=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_header_stdc=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-11-07 17:33:03 +00:00
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
#include <string.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2002-11-08 12:32:10 +00:00
$EGREP "memchr" >/dev/null 2>&1; then
2002-11-07 17:33:03 +00:00
:
else
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
#include <stdlib.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2002-11-08 12:32:10 +00:00
$EGREP "free" >/dev/null 2>&1; then
2002-11-07 17:33:03 +00:00
:
else
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
:
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
#include <ctype.h>
2006-12-20 19:57:39 +00:00
#include <stdlib.h>
2002-11-07 17:33:03 +00:00
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
2003-07-23 11:16:30 +00:00
# define ISLOWER(c) \
2005-07-06 12:07:32 +00:00
(('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z'))
2002-11-07 17:33:03 +00:00
# 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))
2005-07-06 12:07:32 +00:00
|| toupper (i) != TOUPPER (i))
2006-12-20 19:57:39 +00:00
return 2;
return 0;
2002-11-07 17:33:03 +00:00
}
_ACEOF
rm -f conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>&5
2002-11-07 17:33:03 +00:00
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2006-12-20 19:57:39 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_try") 2>&5
2002-11-07 17:33:03 +00:00
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
:
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
( exit $ac_status )
ac_cv_header_stdc=no
fi
2006-12-20 19:57:39 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-11-07 17:33:03 +00:00
fi
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
2002-11-07 17:33:03 +00:00
if test $ac_cv_header_stdc = yes; then
cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF
fi
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2005-07-06 12:07:32 +00:00
inttypes.h stdint.h unistd.h
2002-04-10 22:14:09 +00:00
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-08-03 20:24:26 +00:00
else
2002-05-10 08:36:08 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
eval "$as_ac_Header=yes"
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_Header=no"
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
else
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
2002-04-10 22:14:09 +00:00
#include <$ac_header>
2001-10-19 12:33:10 +00:00
_ACEOF
2002-11-07 17:33:03 +00:00
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-10 22:14:09 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2000-08-03 20:24:26 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
2000-08-03 20:24:26 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2000-08-03 20:24:26 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-08-03 20:24:26 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
done
# Emulation library used on NetBSD.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-08-03 20:24:26 +00:00
else
2002-04-10 22:14:09 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lossaudio $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
2000-08-03 20:24:26 +00:00
#endif
2002-04-10 22:14:09 +00:00
char _oss_ioctl ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return _oss_ioctl ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
2002-04-10 22:14:09 +00:00
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_ossaudio__oss_ioctl=yes
2000-08-03 20:24:26 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_ossaudio__oss_ioctl=no
2000-08-03 20:24:26 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
2000-08-03 20:24:26 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
LIBSOUND=-lossaudio
else
LIBSOUND=
fi
2002-11-07 17:33:03 +00:00
2006-05-18 16:58:44 +00:00
ALSA_REQUIRED=1.0.0
ALSA_MODULES="alsa >= $ALSA_REQUIRED"
if test "X${with_pkg_config_prog}" != X; then
PKG_CONFIG="${with_pkg_config_prog}"
fi
succeeded=no
if test -z "$PKG_CONFIG"; then
# Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006-05-18 16:58:44 +00:00
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $PKG_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2006-05-18 16:58:44 +00:00
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2006-05-18 16:58:44 +00:00
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
echo "${ECHO_T}$PKG_CONFIG" >&6; }
2006-05-18 16:58:44 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2006-05-18 16:58:44 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-05-18 16:58:44 +00:00
fi
if test "$PKG_CONFIG" = "no" ; then
HAVE_ALSA=no
else
PKG_CONFIG_MIN_VERSION=0.9.0
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
2006-05-18 16:58:44 +00:00
2006-07-14 12:04:46 +00:00
if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
2006-05-18 16:58:44 +00:00
succeeded=yes
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
2006-05-18 16:58:44 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
echo "${ECHO_T}$ALSA_LIBS" >&6; }
2006-05-18 16:58:44 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2006-05-18 16:58:44 +00:00
ALSA_CFLAGS=""
ALSA_LIBS=""
## If we have a custom action on failure, don't print errors, but
## do set a variable so people can do so.
ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
fi
else
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
echo "*** See http://www.freedesktop.org/software/pkgconfig"
fi
fi
if test $succeeded = yes; then
HAVE_ALSA=yes
else
HAVE_ALSA=no
fi
if test $HAVE_ALSA = yes; then
2006-12-20 19:57:39 +00:00
SAVE_CFLAGS="$CFLAGS"
SAVE_LDFLAGS="$LDFLAGS"
CFLAGS="$ALSA_CFLAGS $CFLAGS"
LDFLAGS="$ALSA_LIBS $LDFLAGS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <asoundlib.h>
int
main ()
{
snd_lib_error_set_handler (0);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-12-20 19:57:39 +00:00
emacs_alsa_normal=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
emacs_alsa_normal=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test "$emacs_alsa_normal" != yes; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <alsa/asoundlib.h>
int
main ()
{
snd_lib_error_set_handler (0);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-12-20 19:57:39 +00:00
emacs_alsa_subdir=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
emacs_alsa_subdir=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test "$emacs_alsa_subdir" != yes; then
{ { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
{ (exit 1); exit 1; }; }
fi
ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
fi
CFLAGS="$SAVE_CFLAGS"
LDFLAGS="$SAVE_LDFLAGS"
2006-05-18 16:58:44 +00:00
LIBSOUND="$LIBSOUND $ALSA_LIBS"
CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
cat >>confdefs.h <<\_ACEOF
#define HAVE_ALSA 1
_ACEOF
2006-12-20 19:57:39 +00:00
2006-05-18 16:58:44 +00:00
fi
2000-08-03 20:24:26 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-11-21 20:38:07 +00:00
2003-06-06 10:16:42 +00:00
2003-06-26 21:09:11 +00:00
2005-04-20 10:59:21 +00:00
2002-11-07 17:33:03 +00:00
2000-08-03 20:24:26 +00:00
2002-04-10 22:14:09 +00:00
for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
2003-05-24 19:31:42 +00:00
termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
2005-04-20 10:59:21 +00:00
sys/utsname.h pwd.h
2002-04-10 22:14:09 +00:00
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2000-08-03 20:24:26 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <$ac_header>
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-10 22:14:09 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2000-05-26 15:56:42 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
2000-05-26 15:56:42 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2000-05-26 15:56:42 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-05-26 15:56:42 +00:00
2002-04-10 22:14:09 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
done
2002-11-21 20:38:07 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/personality.h>
int
main ()
{
personality (PER_LINUX32)
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
emacs_cv_personality_linux32=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_personality_linux32=no
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
if test $emacs_cv_personality_linux32 = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_PERSONALITY_LINUX32 1
_ACEOF
fi
2002-11-21 20:38:07 +00:00
for ac_header in term.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-21 20:38:07 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-21 20:38:07 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-11-21 20:38:07 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-21 20:38:07 +00:00
eval "$as_ac_Header=yes"
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-21 20:38:07 +00:00
eval "$as_ac_Header=no"
fi
2006-12-20 19:57:39 +00:00
2002-11-21 20:38:07 +00:00
rm -f conftest.err conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-21 20:38:07 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_header_stdc+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
2003-07-23 11:16:30 +00:00
int
main ()
{
;
return 0;
}
2002-04-10 22:14:09 +00:00
_ACEOF
2003-07-23 11:16:30 +00:00
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-28 01:08:07 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-28 01:08:07 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-10 22:14:09 +00:00
ac_cv_header_stdc=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_header_stdc=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <string.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2002-11-08 12:32:10 +00:00
$EGREP "memchr" >/dev/null 2>&1; then
2002-04-10 22:14:09 +00:00
:
else
ac_cv_header_stdc=no
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
rm -f conftest*
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <stdlib.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2002-11-08 12:32:10 +00:00
$EGREP "free" >/dev/null 2>&1; then
2002-04-10 22:14:09 +00:00
:
else
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
:
2000-06-02 15:46:19 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <ctype.h>
2006-12-20 19:57:39 +00:00
#include <stdlib.h>
2002-04-10 22:14:09 +00:00
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
2003-07-23 11:16:30 +00:00
# define ISLOWER(c) \
2005-07-06 12:07:32 +00:00
(('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z'))
2002-04-10 22:14:09 +00:00
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2001-10-19 12:33:10 +00:00
int
main ()
{
2002-04-10 22:14:09 +00:00
int i;
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
2005-07-06 12:07:32 +00:00
|| toupper (i) != TOUPPER (i))
2006-12-20 19:57:39 +00:00
return 2;
return 0;
2001-10-19 12:33:10 +00:00
}
_ACEOF
2002-04-10 22:14:09 +00:00
rm -f conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-10 22:14:09 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2006-12-20 19:57:39 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_try") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); }; }; then
2002-04-10 22:14:09 +00:00
:
2000-06-02 15:46:19 +00:00
else
2002-04-10 22:14:09 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
( exit $ac_status )
2002-04-10 22:14:09 +00:00
ac_cv_header_stdc=no
2000-06-02 15:46:19 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2000-06-02 15:46:19 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
fi
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_stdc = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define STDC_HEADERS 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-06-02 15:46:19 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_header_time+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-10-07 13:06:22 +00:00
#include <sys/types.h>
2002-04-10 22:14:09 +00:00
#include <sys/time.h>
1999-10-07 13:06:22 +00:00
#include <time.h>
2001-10-19 12:33:10 +00:00
int
main ()
{
2002-04-10 22:14:09 +00:00
if ((struct tm *) 0)
return 0;
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-10 22:14:09 +00:00
ac_cv_header_time=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_header_time=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_time = yes; then
2001-10-19 12:33:10 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define TIME_WITH_SYS_TIME 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
2002-11-28 01:08:07 +00:00
if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-28 01:08:07 +00:00
$ac_includes_default
int
main ()
{
#ifndef sys_siglist
2006-12-22 19:23:19 +00:00
(void) sys_siglist;
2002-04-10 22:14:09 +00:00
#endif
2001-10-19 12:33:10 +00:00
2002-11-28 01:08:07 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-28 01:08:07 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-28 01:08:07 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-28 01:08:07 +00:00
ac_cv_have_decl_sys_siglist=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_have_decl_sys_siglist=no
2002-11-28 01:08:07 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-11-28 01:08:07 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
2002-11-28 01:08:07 +00:00
if test $ac_cv_have_decl_sys_siglist = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SYS_SIGLIST 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SYS_SIGLIST 0
_ACEOF
fi
if test $ac_cv_have_decl_sys_siglist != yes; then
# For Tru64, at least:
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
2002-11-28 01:08:07 +00:00
if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-28 01:08:07 +00:00
$ac_includes_default
2001-10-19 12:33:10 +00:00
int
main ()
{
2002-11-28 01:08:07 +00:00
#ifndef __sys_siglist
2006-12-22 19:23:19 +00:00
(void) __sys_siglist;
2002-11-28 01:08:07 +00:00
#endif
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-28 01:08:07 +00:00
ac_cv_have_decl___sys_siglist=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_have_decl___sys_siglist=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
2002-11-28 01:08:07 +00:00
if test $ac_cv_have_decl___sys_siglist = yes; then
2001-10-19 12:33:10 +00:00
2002-11-28 01:08:07 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL___SYS_SIGLIST 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL___SYS_SIGLIST 0
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
2002-11-28 01:08:07 +00:00
1999-10-07 13:06:22 +00:00
fi
2002-11-28 01:08:07 +00:00
if test $ac_cv_have_decl___sys_siglist = yes; then
cat >>confdefs.h <<\_ACEOF
#define sys_siglist __sys_siglist
_ACEOF
fi
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_header_sys_wait_h+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <sys/types.h>
#include <sys/wait.h>
#ifndef WEXITSTATUS
2006-12-20 19:57:39 +00:00
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
2002-04-10 22:14:09 +00:00
#endif
#ifndef WIFEXITED
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1999-10-07 13:06:22 +00:00
#endif
2001-10-19 12:33:10 +00:00
int
main ()
{
2002-04-10 22:14:09 +00:00
int s;
wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
2002-04-10 22:14:09 +00:00
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-10 22:14:09 +00:00
ac_cv_header_sys_wait_h=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_header_sys_wait_h=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_sys_wait_h = yes; then
2001-10-19 12:33:10 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_SYS_WAIT_H 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
fi
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for struct utimbuf" >&5
echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${emacs_cv_struct_utimbuf+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#else
#include <time.h>
2002-04-10 22:14:09 +00:00
#endif
#endif
#ifdef HAVE_UTIME_H
#include <utime.h>
#endif
2001-10-19 12:33:10 +00:00
int
main ()
{
2002-04-10 22:14:09 +00:00
static struct utimbuf x; x.actime = x.modtime;
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
2002-04-10 22:14:09 +00:00
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-10 22:14:09 +00:00
emacs_cv_struct_utimbuf=yes
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_struct_utimbuf=no
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
2002-04-10 22:14:09 +00:00
if test $emacs_cv_struct_utimbuf = yes; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_STRUCT_UTIMBUF 1
2002-11-07 17:33:03 +00:00
_ACEOF
fi
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_type_signal+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2002-04-10 22:14:09 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
2002-04-10 22:14:09 +00:00
#include <signal.h>
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return *(signal (0, 0)) (0) == 1;
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
2002-04-10 22:14:09 +00:00
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-12-20 19:57:39 +00:00
ac_cv_type_signal=int
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_type_signal=void
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define RETSIGTYPE $ac_cv_type_signal
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for speed_t" >&5
echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${emacs_cv_speed_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2002-04-10 22:14:09 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <termios.h>
int
main ()
{
speed_t x = 1;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-10 22:14:09 +00:00
emacs_cv_speed_t=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_speed_t=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
2002-04-10 22:14:09 +00:00
if test $emacs_cv_speed_t = yes; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_SPEED_T 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for struct timeval" >&5
echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${emacs_cv_struct_timeval+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#else
#include <time.h>
#endif
#endif
2001-10-19 12:33:10 +00:00
int
main ()
{
2002-04-10 22:14:09 +00:00
static struct timeval x; x.tv_sec = x.tv_usec;
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2005-07-06 12:07:32 +00:00
emacs_cv_struct_timeval=yes
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_struct_timeval=no
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
2002-04-10 22:14:09 +00:00
HAVE_TIMEVAL=$emacs_cv_struct_timeval
if test $emacs_cv_struct_timeval = yes; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_TIMEVAL 1
2002-11-07 17:33:03 +00:00
_ACEOF
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for struct exception" >&5
echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${emacs_cv_struct_exception+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <math.h>
2001-10-19 12:33:10 +00:00
int
main ()
{
2002-04-10 22:14:09 +00:00
static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
2001-10-19 12:33:10 +00:00
;
return 0;
1999-10-07 13:06:22 +00:00
}
2001-10-19 12:33:10 +00:00
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-10 22:14:09 +00:00
emacs_cv_struct_exception=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_struct_exception=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
2002-04-10 22:14:09 +00:00
HAVE_EXCEPTION=$emacs_cv_struct_exception
if test $emacs_cv_struct_exception != yes; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define NO_MATHERR 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
fi
2003-12-24 16:46:28 +00:00
for ac_header in sys/socket.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2003-12-24 16:46:28 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2003-12-24 16:46:28 +00:00
else
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2003-12-24 16:46:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-12-24 16:46:28 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-12-24 16:46:28 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-12-24 16:46:28 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2003-12-24 16:46:28 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2003-12-24 16:46:28 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2003-12-24 16:46:28 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2003-12-24 16:46:28 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2003-12-24 16:46:28 +00:00
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
2003-12-24 16:46:28 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2003-12-24 16:46:28 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2003-12-24 16:46:28 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-12-24 16:46:28 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2003-12-24 16:46:28 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2003-12-24 16:46:28 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-12-24 16:46:28 +00:00
;;
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2003-12-24 16:46:28 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2003-12-24 16:46:28 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2003-12-24 16:46:28 +00:00
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
for ac_header in net/if.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2003-12-24 16:46:28 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-12-24 16:46:28 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-12-24 16:46:28 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-12-24 16:46:28 +00:00
eval "$as_ac_Header=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_Header=no"
2003-12-24 16:46:28 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-12-24 16:46:28 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2003-12-24 16:46:28 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_struct_tm+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <sys/types.h>
#include <time.h>
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-22 19:23:19 +00:00
struct tm tm;
int *p = &tm.tm_sec;
return !p;
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-12-24 10:46:12 +00:00
ac_cv_struct_tm=time.h
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_struct_tm=sys/time.h
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_struct_tm = sys/time.h; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define TM_IN_SYS_TIME 1
2002-11-07 17:33:03 +00:00
_ACEOF
fi
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <sys/types.h>
#include <$ac_cv_struct_tm>
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
int
main ()
{
static struct tm ac_aggr;
if (ac_aggr.tm_zone)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-10 22:14:09 +00:00
ac_cv_member_struct_tm_tm_zone=yes
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-08 12:32:10 +00:00
#include <sys/types.h>
#include <$ac_cv_struct_tm>
int
main ()
{
static struct tm ac_aggr;
if (sizeof ac_aggr.tm_zone)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-08 12:32:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-08 12:32:10 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-08 12:32:10 +00:00
ac_cv_member_struct_tm_tm_zone=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_member_struct_tm_tm_zone=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-11-08 12:32:10 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_member_struct_tm_tm_zone = yes; then
2001-10-19 12:33:10 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_STRUCT_TM_TM_ZONE 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
2002-04-10 22:14:09 +00:00
fi
1999-10-07 13:06:22 +00:00
2002-04-10 22:14:09 +00:00
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_TM_ZONE 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether tzname is declared" >&5
echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
if test "${ac_cv_have_decl_tzname+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <time.h>
int
main ()
{
2006-12-20 19:57:39 +00:00
#ifndef tzname
2006-12-22 19:23:19 +00:00
(void) tzname;
2006-12-20 19:57:39 +00:00
#endif
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
2006-12-20 19:57:39 +00:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-12-20 19:57:39 +00:00
ac_cv_have_decl_tzname=yes
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_have_decl_tzname=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
if test $ac_cv_have_decl_tzname = yes; then
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_TZNAME 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_TZNAME 0
_ACEOF
2002-04-10 22:14:09 +00:00
fi
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for tzname" >&5
echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
if test "${ac_cv_var_tzname+set}" = set; then
2002-04-10 22:14:09 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <time.h>
2006-12-20 19:57:39 +00:00
#if !HAVE_DECL_TZNAME
extern char *tzname[];
#endif
2002-04-14 01:42:18 +00:00
2002-04-10 22:14:09 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return tzname[0][0];
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
2006-12-20 19:57:39 +00:00
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2006-12-20 19:57:39 +00:00
ac_cv_var_tzname=yes
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_var_tzname=no
fi
2002-11-08 12:32:10 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-12-20 19:57:39 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
if test $ac_cv_var_tzname = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_TZNAME 1
_ACEOF
fi
fi
{ echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <time.h>
int
main ()
{
static struct tm ac_aggr;
if (ac_aggr.tm_gmtoff)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-12-20 19:57:39 +00:00
ac_cv_member_struct_tm_tm_gmtoff=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <time.h>
int
main ()
{
static struct tm ac_aggr;
if (sizeof ac_aggr.tm_gmtoff)
2002-11-08 12:32:10 +00:00
return 0;
2002-04-29 23:03:27 +00:00
;
return 0;
}
_ACEOF
2002-11-08 12:32:10 +00:00
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-29 23:03:27 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-08 12:32:10 +00:00
ac_cv_member_struct_tm_tm_gmtoff=yes
2002-04-29 23:03:27 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_member_struct_tm_tm_gmtoff=no
2002-04-29 23:03:27 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-11-08 12:32:10 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-29 23:03:27 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
2002-11-08 12:32:10 +00:00
if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_TM_GMTOFF 1
_ACEOF
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
2003-09-23 12:41:52 +00:00
if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-12-24 16:46:28 +00:00
$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#if HAVE_NET_IF_H
2003-09-23 12:41:52 +00:00
#include <net/if.h>
2003-12-24 16:46:28 +00:00
#endif
2003-09-23 12:41:52 +00:00
int
main ()
{
static struct ifreq ac_aggr;
if (ac_aggr.ifr_flags)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-09-23 12:41:52 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-09-23 12:41:52 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-23 12:41:52 +00:00
ac_cv_member_struct_ifreq_ifr_flags=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-23 12:41:52 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-12-24 16:46:28 +00:00
$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#if HAVE_NET_IF_H
2003-09-23 12:41:52 +00:00
#include <net/if.h>
2003-12-24 16:46:28 +00:00
#endif
2003-09-23 12:41:52 +00:00
int
main ()
{
static struct ifreq ac_aggr;
if (sizeof ac_aggr.ifr_flags)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-09-23 12:41:52 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-09-23 12:41:52 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-23 12:41:52 +00:00
ac_cv_member_struct_ifreq_ifr_flags=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_member_struct_ifreq_ifr_flags=no
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
2003-09-23 12:41:52 +00:00
if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
_ACEOF
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
2003-09-23 12:41:52 +00:00
if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-12-24 16:46:28 +00:00
$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#if HAVE_NET_IF_H
2003-09-23 12:41:52 +00:00
#include <net/if.h>
2003-12-24 16:46:28 +00:00
#endif
2003-09-23 12:41:52 +00:00
int
main ()
{
static struct ifreq ac_aggr;
if (ac_aggr.ifr_hwaddr)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-09-23 12:41:52 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-09-23 12:41:52 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-23 12:41:52 +00:00
ac_cv_member_struct_ifreq_ifr_hwaddr=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-23 12:41:52 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-12-24 16:46:28 +00:00
$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#if HAVE_NET_IF_H
2003-09-23 12:41:52 +00:00
#include <net/if.h>
2003-12-24 16:46:28 +00:00
#endif
2003-09-23 12:41:52 +00:00
int
main ()
{
static struct ifreq ac_aggr;
if (sizeof ac_aggr.ifr_hwaddr)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-09-23 12:41:52 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-09-23 12:41:52 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-23 12:41:52 +00:00
ac_cv_member_struct_ifreq_ifr_hwaddr=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_member_struct_ifreq_ifr_hwaddr=no
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
2003-09-23 12:41:52 +00:00
if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
_ACEOF
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
2003-09-23 12:41:52 +00:00
if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-12-24 16:46:28 +00:00
$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#if HAVE_NET_IF_H
2003-09-23 12:41:52 +00:00
#include <net/if.h>
2003-12-24 16:46:28 +00:00
#endif
2003-09-23 12:41:52 +00:00
int
main ()
{
static struct ifreq ac_aggr;
if (ac_aggr.ifr_netmask)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-09-23 12:41:52 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-09-23 12:41:52 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-23 12:41:52 +00:00
ac_cv_member_struct_ifreq_ifr_netmask=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-23 12:41:52 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-12-24 16:46:28 +00:00
$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#if HAVE_NET_IF_H
2003-09-23 12:41:52 +00:00
#include <net/if.h>
2003-12-24 16:46:28 +00:00
#endif
2003-09-23 12:41:52 +00:00
int
main ()
{
static struct ifreq ac_aggr;
if (sizeof ac_aggr.ifr_netmask)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-09-23 12:41:52 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-09-23 12:41:52 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-23 12:41:52 +00:00
ac_cv_member_struct_ifreq_ifr_netmask=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_member_struct_ifreq_ifr_netmask=no
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
2003-09-23 12:41:52 +00:00
if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
_ACEOF
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
2003-09-23 12:41:52 +00:00
if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-12-24 16:46:28 +00:00
$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#if HAVE_NET_IF_H
2003-09-23 12:41:52 +00:00
#include <net/if.h>
2003-12-24 16:46:28 +00:00
#endif
2003-09-23 12:41:52 +00:00
int
main ()
{
static struct ifreq ac_aggr;
if (ac_aggr.ifr_broadaddr)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-09-23 12:41:52 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-09-23 12:41:52 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-23 12:41:52 +00:00
ac_cv_member_struct_ifreq_ifr_broadaddr=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-23 12:41:52 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-12-24 16:46:28 +00:00
$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#if HAVE_NET_IF_H
2003-09-23 12:41:52 +00:00
#include <net/if.h>
2003-12-24 16:46:28 +00:00
#endif
2003-09-23 12:41:52 +00:00
int
main ()
{
static struct ifreq ac_aggr;
if (sizeof ac_aggr.ifr_broadaddr)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-09-23 12:41:52 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-09-23 12:41:52 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-23 12:41:52 +00:00
ac_cv_member_struct_ifreq_ifr_broadaddr=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_member_struct_ifreq_ifr_broadaddr=no
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
2003-09-23 12:41:52 +00:00
if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
_ACEOF
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
2003-09-23 12:41:52 +00:00
if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-12-24 16:46:28 +00:00
$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#if HAVE_NET_IF_H
2003-09-23 12:41:52 +00:00
#include <net/if.h>
2003-12-24 16:46:28 +00:00
#endif
2003-09-23 12:41:52 +00:00
int
main ()
{
static struct ifreq ac_aggr;
if (ac_aggr.ifr_addr)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-09-23 12:41:52 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-09-23 12:41:52 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-23 12:41:52 +00:00
ac_cv_member_struct_ifreq_ifr_addr=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-23 12:41:52 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-12-24 16:46:28 +00:00
$ac_includes_default
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#if HAVE_NET_IF_H
2003-09-23 12:41:52 +00:00
#include <net/if.h>
2003-12-24 16:46:28 +00:00
#endif
2003-09-23 12:41:52 +00:00
int
main ()
{
static struct ifreq ac_aggr;
if (sizeof ac_aggr.ifr_addr)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-09-23 12:41:52 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-09-23 12:41:52 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-23 12:41:52 +00:00
ac_cv_member_struct_ifreq_ifr_addr=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_member_struct_ifreq_ifr_addr=no
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-23 12:41:52 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
2003-09-23 12:41:52 +00:00
if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
_ACEOF
fi
2002-04-29 23:03:27 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for function prototypes" >&5
echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
if test "$ac_cv_prog_cc_c89" != no; then
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
2002-04-10 22:14:09 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define PROTOTYPES 1
2002-11-07 17:33:03 +00:00
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define __PROTOTYPES 1
_ACEOF
2002-04-10 22:14:09 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for working volatile" >&5
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_c_volatile+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
int
main ()
{
volatile int x;
2006-12-20 19:57:39 +00:00
int * volatile y = (int *) 0;
return !x && !y;
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-10 22:14:09 +00:00
ac_cv_c_volatile=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_c_volatile=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_c_volatile = no; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define volatile
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_c_const+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
/* Ultrix mips cc rejects this. */
typedef int charset[2];
2006-12-22 19:23:19 +00:00
const charset cs;
2002-04-10 22:14:09 +00:00
/* SunOS 4.1.1 cc rejects this. */
2006-12-22 19:23:19 +00:00
char const *const *pcpcc;
char **ppc;
2002-04-10 22:14:09 +00:00
/* 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";
2006-12-22 19:23:19 +00:00
pcpcc = &g + (g ? g-g : 0);
2002-04-10 22:14:09 +00:00
/* HPUX 7.0 cc rejects these. */
2006-12-22 19:23:19 +00:00
++pcpcc;
ppc = (char**) pcpcc;
pcpcc = (char const *const *) ppc;
2002-04-10 22:14:09 +00:00
{ /* SCO 3.2v4 cc rejects this. */
char *t;
char const *s = 0 ? (char *) 0 : (char const *) 0;
*t++ = 0;
2006-12-20 19:57:39 +00:00
if (s) return 0;
2002-04-10 22:14:09 +00:00
}
{ /* 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;
2006-12-20 19:57:39 +00:00
if (!foo) return 0;
2002-04-10 22:14:09 +00:00
}
2006-12-22 19:23:19 +00:00
return !cs[0] && !zero.x;
2002-04-10 22:14:09 +00:00
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-10 22:14:09 +00:00
ac_cv_c_const=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_c_const=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_c_const = no; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define const
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for void * support" >&5
echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${emacs_cv_void_star+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
int
main ()
{
void * foo;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-10 22:14:09 +00:00
emacs_cv_void_star=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_void_star=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
echo "${ECHO_T}$emacs_cv_void_star" >&6; }
2002-04-10 22:14:09 +00:00
if test $emacs_cv_void_star = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define POINTER_TYPE void
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define POINTER_TYPE char
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-11-28 01:08:07 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2002-04-10 22:14:09 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2002-11-07 17:33:03 +00:00
cat >conftest.make <<\_ACEOF
2006-12-20 19:57:39 +00:00
SHELL = /bin/sh
2002-04-10 22:14:09 +00:00
all:
2006-12-20 19:57:39 +00:00
@echo '@@@%%%=$(MAKE)=@@@%%%'
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2006-12-20 19:57:39 +00:00
case `${MAKE-make} -f conftest.make 2>/dev/null` in
*@@@%%%=?*=@@@%%%*)
eval ac_cv_prog_make_${ac_make}_set=yes;;
*)
eval ac_cv_prog_make_${ac_make}_set=no;;
esac
2006-12-19 19:48:48 +00:00
rm -f conftest.make
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
2002-04-10 22:14:09 +00:00
SET_MAKE=
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2002-04-10 22:14:09 +00:00
SET_MAKE="MAKE=${MAKE-make}"
fi
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for long file names" >&5
echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_sys_long_file_names+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_sys_long_file_names=yes
# Test for long file names in all the places we know might matter:
# . the current directory, where building will happen
# $prefix/lib where we will be installing things
# $exec_prefix/lib likewise
# $TMPDIR if set, where it might want to write temporary files
# /tmp where it might want to write temporary files
# /var/tmp likewise
# /usr/tmp likewise
2006-12-20 19:57:39 +00:00
for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
# Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
# in the usual case where exec_prefix is '${prefix}'.
case $ac_dir in #(
. | /* | ?:[\\/]*) ;; #(
*) continue;;
esac
test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
2002-04-10 22:14:09 +00:00
ac_xdir=$ac_dir/cf$$
2006-12-20 19:57:39 +00:00
(umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
2002-04-10 22:14:09 +00:00
ac_tf1=$ac_xdir/conftest9012345
ac_tf2=$ac_xdir/conftest9012346
2006-12-20 19:57:39 +00:00
touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
2002-04-10 22:14:09 +00:00
ac_cv_sys_long_file_names=no
2006-12-20 19:57:39 +00:00
rm -f -r "$ac_xdir" 2>/dev/null
test $ac_cv_sys_long_file_names = no && break
2002-04-10 22:14:09 +00:00
done
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_sys_long_file_names = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_LONG_FILE_NAMES 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
#### Choose a window system.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for X" >&5
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
# Check whether --with-x was given.
2002-04-10 22:14:09 +00:00
if test "${with_x+set}" = set; then
2006-12-20 19:57:39 +00:00
withval=$with_x;
fi
2002-04-10 22:14:09 +00:00
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
# The user explicitly disabled X.
have_x=disabled
else
2006-12-20 19:57:39 +00:00
case $x_includes,$x_libraries in #(
*\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
{ (exit 1); exit 1; }; };; #(
*,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
2002-04-10 22:14:09 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# One or both of the vars are not set, and there is no cached value.
ac_x_includes=no ac_x_libraries=no
2006-12-20 19:57:39 +00:00
rm -f -r conftest.dir
2002-04-10 22:14:09 +00:00
if mkdir conftest.dir; then
cd conftest.dir
2002-11-07 17:33:03 +00:00
cat >Imakefile <<'_ACEOF'
2006-12-20 19:57:39 +00:00
incroot:
@echo incroot='${INCROOT}'
usrlibdir:
@echo usrlibdir='${USRLIBDIR}'
libdir:
@echo libdir='${LIBDIR}'
_ACEOF
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
2002-04-10 22:14:09 +00:00
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2006-12-20 19:57:39 +00:00
for ac_var in incroot usrlibdir libdir; do
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
done
2002-04-10 22:14:09 +00:00
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
for ac_extension in a so sl; do
2006-12-20 19:57:39 +00:00
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
test -f "$ac_im_libdir/libX11.$ac_extension"; then
2005-07-06 12:07:32 +00:00
ac_im_usrlibdir=$ac_im_libdir; break
2002-04-10 22:14:09 +00:00
fi
done
# Screen out bogus values from the imake configuration. They are
# bogus both because they are the default anyway, and because
# using them would break gcc on systems where it needs fixed includes.
case $ac_im_incroot in
2006-12-20 19:57:39 +00:00
/usr/include) ac_x_includes= ;;
2002-04-10 22:14:09 +00:00
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
esac
case $ac_im_usrlibdir in
/usr/lib | /lib) ;;
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
esac
fi
cd ..
2006-12-20 19:57:39 +00:00
rm -f -r conftest.dir
2002-04-10 22:14:09 +00:00
fi
# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current release.
ac_x_header_dirs='
/usr/X11/include
/usr/X11R6/include
/usr/X11R5/include
/usr/X11R4/include
/usr/include/X11
/usr/include/X11R6
/usr/include/X11R5
/usr/include/X11R4
/usr/local/X11/include
/usr/local/X11R6/include
/usr/local/X11R5/include
/usr/local/X11R4/include
/usr/local/include/X11
/usr/local/include/X11R6
/usr/local/include/X11R5
/usr/local/include/X11R4
/usr/X386/include
/usr/x386/include
/usr/XFree86/include/X11
/usr/include
/usr/local/include
/usr/unsupported/include
/usr/athena/include
/usr/local/x11r5/include
/usr/lpp/Xamples/include
/usr/openwin/include
/usr/openwin/share/include'
if test "$ac_x_includes" = no; then
2006-12-20 19:57:39 +00:00
# Guess where to find include files, by looking for Xlib.h.
2002-04-10 22:14:09 +00:00
# First, try using that file with no special directory specified.
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-12-20 19:57:39 +00:00
#include <X11/Xlib.h>
2002-04-10 22:14:09 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-10 22:14:09 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-04-10 22:14:09 +00:00
# We can compile using X headers with no special include directory.
ac_x_includes=
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-10 22:14:09 +00:00
for ac_dir in $ac_x_header_dirs; do
2006-12-20 19:57:39 +00:00
if test -r "$ac_dir/X11/Xlib.h"; then
2002-04-10 22:14:09 +00:00
ac_x_includes=$ac_dir
break
fi
done
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
fi # $ac_x_includes = no
if test "$ac_x_libraries" = no; then
# Check for the libraries.
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS=$LIBS
2006-12-22 19:23:19 +00:00
LIBS="-lX11 $LIBS"
2002-04-10 22:14:09 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-12-20 19:57:39 +00:00
#include <X11/Xlib.h>
2002-04-10 22:14:09 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
XrmInitialize ()
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
LIBS=$ac_save_LIBS
2002-04-10 22:14:09 +00:00
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do
# Don't even attempt the hair of trying to link an X program!
for ac_extension in a so sl; do
2006-12-22 19:23:19 +00:00
if test -r "$ac_dir/libX11.$ac_extension"; then
2002-04-10 22:14:09 +00:00
ac_x_libraries=$ac_dir
break 2
fi
done
done
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi # $ac_x_libraries = no
2006-12-20 19:57:39 +00:00
case $ac_x_includes,$ac_x_libraries in #(
no,* | *,no | *\'*)
# Didn't find X, or a directory has "'" in its name.
ac_cv_have_x="have_x=no";; #(
*)
# Record where we found X for the cache.
ac_cv_have_x="have_x=yes\
ac_x_includes='$ac_x_includes'\
ac_x_libraries='$ac_x_libraries'"
esac
2006-12-19 19:48:48 +00:00
fi
2006-12-20 19:57:39 +00:00
;; #(
*) have_x=yes;;
esac
2002-04-10 22:14:09 +00:00
eval "$ac_cv_have_x"
fi # $with_x != no
if test "$have_x" != yes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&6; }
2002-04-10 22:14:09 +00:00
no_x=yes
else
# If each of the values was on the command line, it overrides each guess.
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
# Update the cache value to reflect the command line values.
2006-12-20 19:57:39 +00:00
ac_cv_have_x="have_x=yes\
ac_x_includes='$x_includes'\
ac_x_libraries='$x_libraries'"
{ echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
2002-04-10 22:14:09 +00:00
fi
if test "$no_x" = yes; then
window_system=none
else
window_system=x11
fi
2006-10-23 15:35:40 +00:00
if test "${x_libraries}" != NONE; then
if test -n "${x_libraries}"; then
LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
fi
2002-04-10 22:14:09 +00:00
x_default_search_path=""
2006-10-23 15:35:40 +00:00
x_search_path=${x_libraries}
if test -z "${x_search_path}"; then
x_search_path=/usr/lib
fi
for x_library in `echo ${x_search_path}: | \
sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
2002-04-10 22:14:09 +00:00
x_search_path="\
${x_library}/X11/%L/%T/%N%C%S:\
${x_library}/X11/%l/%T/%N%C%S:\
${x_library}/X11/%T/%N%C%S:\
${x_library}/X11/%L/%T/%N%S:\
${x_library}/X11/%l/%T/%N%S:\
${x_library}/X11/%T/%N%S"
if test x"${x_default_search_path}" = x; then
x_default_search_path=${x_search_path}
else
x_default_search_path="${x_search_path}:${x_default_search_path}"
fi
done
fi
if test "${x_includes}" != NONE && test -n "${x_includes}"; then
C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
fi
if test x"${x_includes}" = x; then
bitmapdir=/usr/include/X11/bitmaps
else
# accumulate include directories that have X11 bitmap subdirectories
bmd_acc="dummyval"
for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
if test -d "${bmd}/X11/bitmaps"; then
bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
fi
if test -d "${bmd}/bitmaps"; then
bmd_acc="${bmd_acc}:${bmd}/bitmaps"
fi
done
if test ${bmd_acc} != "dummyval"; then
bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
fi
fi
2005-05-13 08:55:10 +00:00
HAVE_CARBON=no
2005-10-04 09:19:24 +00:00
if test "${with_carbon}" != no; then
if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
2005-05-13 08:55:10 +00:00
if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
2005-05-13 08:55:10 +00:00
else
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
2005-05-13 08:55:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <Carbon/Carbon.h>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2005-05-13 08:55:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2005-05-13 08:55:10 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2005-05-13 08:55:10 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2005-05-13 08:55:10 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2005-05-13 08:55:10 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
2005-05-13 08:55:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <Carbon/Carbon.h>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2005-05-13 08:55:10 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2005-05-13 08:55:10 +00:00
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
2005-05-13 08:55:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2005-05-13 08:55:10 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2005-05-13 08:55:10 +00:00
{ echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2005-05-13 08:55:10 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2005-05-13 08:55:10 +00:00
{ echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
2005-05-13 08:55:10 +00:00
{ echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2005-05-13 08:55:10 +00:00
;;
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
2005-05-13 08:55:10 +00:00
if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
2005-05-13 08:55:10 +00:00
fi
if test $ac_cv_header_Carbon_Carbon_h = yes; then
HAVE_CARBON=yes
fi
2005-10-04 09:19:24 +00:00
fi
if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
if test "${with_carbon+set}" != set \
&& test "${carbon_appdir_x+set}" != set; then
2006-11-08 08:03:01 +00:00
for var in with_x with_x_toolkit with_gtk with_xim \
with_xpm with_jpeg with_tiff with_gif with_png; do
if eval test \"\${$var+set}\" = set; then
HAVE_CARBON=no
break
fi
done
2005-05-13 08:55:10 +00:00
fi
fi
2005-10-04 09:19:24 +00:00
if test "${HAVE_CARBON}" = yes; then
window_system=mac
fi
case "${window_system}" in
x11 )
HAVE_X_WINDOWS=yes
HAVE_X11=yes
case "${with_x_toolkit}" in
athena | lucid ) USE_X_TOOLKIT=LUCID ;;
motif ) USE_X_TOOLKIT=MOTIF ;;
gtk ) with_gtk=yes
USE_X_TOOLKIT=none ;;
no ) USE_X_TOOLKIT=none ;;
* ) USE_X_TOOLKIT=maybe ;;
esac
;;
mac | none )
HAVE_X_WINDOWS=no
HAVE_X11=no
USE_X_TOOLKIT=none
;;
esac
### If we're using X11, we should use the X menu package.
HAVE_MENUS=no
case ${HAVE_X11} in
yes ) HAVE_MENUS=yes ;;
esac
if test "${opsys}" = "hpux9"; then
case "${x_libraries}" in
*X11R4* )
opsysfile="s/hpux9-x11r4.h"
;;
esac
fi
if test "${opsys}" = "hpux9shr"; then
case "${x_libraries}" in
*X11R4* )
opsysfile="s/hpux9shxr4.h"
;;
esac
fi
2005-05-13 08:55:10 +00:00
2002-04-10 22:14:09 +00:00
### Compute the unexec source name from the object name.
UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
# Do the opsystem or machine files prohibit the use of the GNU malloc?
# Assume not, until told otherwise.
GNU_MALLOC=yes
doug_lea_malloc=yes
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for malloc_get_state" >&5
echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_func_malloc_get_state+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define malloc_get_state innocuous_malloc_get_state
2002-04-10 22:14:09 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char malloc_get_state (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef malloc_get_state
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char malloc_get_state ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_malloc_get_state || defined __stub___malloc_get_state
2002-04-10 22:14:09 +00:00
choke me
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return malloc_get_state ();
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_func_malloc_get_state=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_func_malloc_get_state=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_func_malloc_get_state = yes; then
:
else
doug_lea_malloc=no
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for malloc_set_state" >&5
echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_func_malloc_set_state+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define malloc_set_state innocuous_malloc_set_state
2002-04-10 22:14:09 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char malloc_set_state (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef malloc_set_state
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char malloc_set_state ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_malloc_set_state || defined __stub___malloc_set_state
2002-04-10 22:14:09 +00:00
choke me
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return malloc_set_state ();
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_func_malloc_set_state=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_func_malloc_set_state=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_func_malloc_set_state = yes; then
:
else
doug_lea_malloc=no
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
extern void (* __after_morecore_hook)();
int
main ()
{
__after_morecore_hook = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
emacs_cv_var___after_morecore_hook=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_var___after_morecore_hook=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
2002-04-10 22:14:09 +00:00
if test $emacs_cv_var___after_morecore_hook = no; then
doug_lea_malloc=no
fi
if test "${system_malloc}" = "yes"; then
GNU_MALLOC=no
GNU_MALLOC_reason="
(The GNU allocators don't work with this system configuration.)"
fi
if test "$doug_lea_malloc" = "yes" ; then
if test "$GNU_MALLOC" = yes ; then
GNU_MALLOC_reason="
(Using Doug Lea's new malloc from the GNU C Library.)"
fi
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define DOUG_LEA_MALLOC 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
if test x"${REL_ALLOC}" = x; then
REL_ALLOC=${GNU_MALLOC}
fi
2002-11-07 17:33:03 +00:00
for ac_header in stdlib.h unistd.h
2002-04-10 22:14:09 +00:00
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-04-10 22:14:09 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-04-10 22:14:09 +00:00
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-10 22:14:09 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2005-06-06 20:18:11 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
done
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
for ac_func in getpagesize
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2002-04-10 22:14:09 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2002-04-10 22:14:09 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2002-04-10 22:14:09 +00:00
choke me
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
done
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for working mmap" >&5
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
ac_cv_func_mmap_fixed_mapped=no
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
$ac_includes_default
2002-11-07 17:33:03 +00:00
/* malloc might have been renamed as rpl_malloc. */
#undef malloc
2002-04-10 22:14:09 +00:00
/* Thanks to Mike Haertel and Jim Avera for this test.
Here is a matrix of mmap possibilities:
mmap private not fixed
mmap private fixed at somewhere currently unmapped
mmap private fixed at somewhere already mapped
mmap shared not fixed
mmap shared fixed at somewhere currently unmapped
mmap shared fixed at somewhere already mapped
For private mappings, we should verify that changes cannot be read()
back from the file, nor mmap's back from the file at a different
address. (There have been systems where private was not correctly
implemented like the infamous i386 svr4.0, and systems where the
VM page cache was not coherent with the file system buffer cache
like early versions of FreeBSD and possibly contemporary NetBSD.)
For shared mappings, we should conversely verify that changes get
2002-11-07 17:33:03 +00:00
propagated back to all the places they're supposed to be.
2002-04-10 22:14:09 +00:00
Grep wants private fixed already mapped.
The main things grep needs to know about mmap are:
* does it exist and is it safe to write into the mmap'd area
* how to use it (BSD variants) */
#include <fcntl.h>
#include <sys/mman.h>
2006-12-22 19:23:19 +00:00
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
2002-04-10 22:14:09 +00:00
char *malloc ();
#endif
/* This mess was copied from the GNU getpagesize.h. */
2006-12-22 19:23:19 +00:00
#ifndef HAVE_GETPAGESIZE
2002-04-10 22:14:09 +00:00
/* Assume that all systems that can run configure have sys/param.h. */
2006-12-22 19:23:19 +00:00
# ifndef HAVE_SYS_PARAM_H
2002-04-10 22:14:09 +00:00
# define HAVE_SYS_PARAM_H 1
# endif
# ifdef _SC_PAGESIZE
# define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
2006-12-22 19:23:19 +00:00
# ifdef HAVE_SYS_PARAM_H
2002-04-10 22:14:09 +00:00
# include <sys/param.h>
# ifdef EXEC_PAGESIZE
# define getpagesize() EXEC_PAGESIZE
# else /* no EXEC_PAGESIZE */
# ifdef NBPG
# define getpagesize() NBPG * CLSIZE
# ifndef CLSIZE
# define CLSIZE 1
# endif /* no CLSIZE */
# else /* no NBPG */
# ifdef NBPC
# define getpagesize() NBPC
# else /* no NBPC */
# ifdef PAGESIZE
# define getpagesize() PAGESIZE
# endif /* PAGESIZE */
# endif /* no NBPC */
# endif /* no NBPG */
# endif /* no EXEC_PAGESIZE */
# else /* no HAVE_SYS_PARAM_H */
# define getpagesize() 8192 /* punt totally */
# endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */
#endif /* no HAVE_GETPAGESIZE */
int
main ()
{
char *data, *data2, *data3;
int i, pagesize;
int fd;
pagesize = getpagesize ();
/* First, make a file with some known garbage in it. */
data = (char *) malloc (pagesize);
if (!data)
2006-12-20 19:57:39 +00:00
return 1;
2002-04-10 22:14:09 +00:00
for (i = 0; i < pagesize; ++i)
*(data + i) = rand ();
umask (0);
fd = creat ("conftest.mmap", 0600);
if (fd < 0)
2006-12-20 19:57:39 +00:00
return 1;
2002-04-10 22:14:09 +00:00
if (write (fd, data, pagesize) != pagesize)
2006-12-20 19:57:39 +00:00
return 1;
2002-04-10 22:14:09 +00:00
close (fd);
/* Next, try to mmap the file at a fixed address which already has
something else allocated at it. If we can, also make sure that
we see the same garbage. */
fd = open ("conftest.mmap", O_RDWR);
if (fd < 0)
2006-12-20 19:57:39 +00:00
return 1;
2002-04-10 22:14:09 +00:00
data2 = (char *) malloc (2 * pagesize);
if (!data2)
2006-12-20 19:57:39 +00:00
return 1;
data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
2002-04-10 22:14:09 +00:00
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
2005-07-06 12:07:32 +00:00
MAP_PRIVATE | MAP_FIXED, fd, 0L))
2006-12-20 19:57:39 +00:00
return 1;
2002-04-10 22:14:09 +00:00
for (i = 0; i < pagesize; ++i)
if (*(data + i) != *(data2 + i))
2006-12-20 19:57:39 +00:00
return 1;
2002-04-10 22:14:09 +00:00
/* Finally, make sure that changes to the mapped area do not
percolate back to the file as seen by read(). (This is a bug on
some variants of i386 svr4.0.) */
for (i = 0; i < pagesize; ++i)
*(data2 + i) = *(data2 + i) + 1;
data3 = (char *) malloc (pagesize);
if (!data3)
2006-12-20 19:57:39 +00:00
return 1;
2002-04-10 22:14:09 +00:00
if (read (fd, data3, pagesize) != pagesize)
2006-12-20 19:57:39 +00:00
return 1;
2002-04-10 22:14:09 +00:00
for (i = 0; i < pagesize; ++i)
if (*(data + i) != *(data3 + i))
2006-12-20 19:57:39 +00:00
return 1;
2002-04-10 22:14:09 +00:00
close (fd);
2006-12-20 19:57:39 +00:00
return 0;
2002-04-10 22:14:09 +00:00
}
_ACEOF
rm -f conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>&5
2002-04-10 22:14:09 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-10 22:14:09 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2006-12-20 19:57:39 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_try") 2>&5
2002-04-10 22:14:09 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-10 22:14:09 +00:00
(exit $ac_status); }; }; then
ac_cv_func_mmap_fixed_mapped=yes
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
( exit $ac_status )
2002-04-10 22:14:09 +00:00
ac_cv_func_mmap_fixed_mapped=no
fi
2006-12-20 19:57:39 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_func_mmap_fixed_mapped = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_MMAP 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
rm -f conftest.mmap
if test $use_mmap_for_buffers = yes; then
REL_ALLOC=no
fi
LIBS="$libsrc_libs $LIBS"
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char dnet_ntoa ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return dnet_ntoa ();
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_dnet_dnet_ntoa=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_dnet_dnet_ntoa=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_LIBDNET 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
LIBS="-ldnet $LIBS"
fi
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_Xbsd_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lXbsd $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return main ();
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_Xbsd_main=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_Xbsd_main=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_Xbsd_main = yes; then
LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
fi
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthreads $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char cma_open ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return cma_open ();
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_pthreads_cma_open=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_pthreads_cma_open=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_pthreads_cma_open = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_LIBPTHREADS 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
LIBS="-lpthreads $LIBS"
fi
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test -d /usr/X386/include; then
HAVE_XFREE386=yes
: ${C_SWITCH_X_SITE="-I/usr/X386/include"}
else
HAVE_XFREE386=no
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
echo "${ECHO_T}$HAVE_XFREE386" >&6; }
2002-04-10 22:14:09 +00:00
2003-05-21 12:59:28 +00:00
case ${host_os} in
aix*)
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
2003-05-21 12:59:28 +00:00
if test "${gdb_cv_bigtoc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $GCC in
yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
*) gdb_cv_bigtoc=-bbigtoc ;;
esac
LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-05-21 12:59:28 +00:00
int
main ()
{
int i;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2003-05-21 12:59:28 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-05-21 12:59:28 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2003-05-21 12:59:28 +00:00
:
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
gdb_cv_bigtoc=
2003-05-21 12:59:28 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2003-05-21 12:59:28 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
2003-05-21 12:59:28 +00:00
;;
esac
2002-09-20 13:07:44 +00:00
# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
# used for the tests that follow. We set them back to REAL_CFLAGS and
# REAL_CPPFLAGS later on.
2002-04-10 22:14:09 +00:00
REAL_CPPFLAGS="$CPPFLAGS"
if test "${HAVE_X11}" = "yes"; then
DEFS="$C_SWITCH_X_SITE $DEFS"
LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
LIBS="$LIBX $LIBS"
CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
# On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
# This is handled by LD_SWITCH_X_SITE_AUX during the real build,
# but it's more convenient here to set LD_RUN_PATH
# since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
export LD_RUN_PATH
fi
if test "${opsys}" = "gnu-linux"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
int
main ()
{
XOpenDisplay ("foo");
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2003-12-24 10:46:12 +00:00
xlinux_first_failure=no
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
xlinux_first_failure=yes
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
if test "${xlinux_first_failure}" = "yes"; then
OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
OLD_CPPFLAGS="$CPPFLAGS"
OLD_LIBS="$LIBS"
LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
LIBS="$LIBS -b i486-linuxaout"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
int
main ()
{
XOpenDisplay ("foo");
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
xlinux_second_failure=no
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
xlinux_second_failure=yes
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
if test "${xlinux_second_failure}" = "yes"; then
# If we get the same failure with -b, there is no use adding -b.
# So take it out. This plays safe.
LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
CPPFLAGS="$OLD_CPPFLAGS"
LIBS="$OLD_LIBS"
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2002-04-10 22:14:09 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
2002-04-10 22:14:09 +00:00
fi
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2002-04-10 22:14:09 +00:00
fi
fi
# Reportedly, some broken Solaris systems have XKBlib.h but are missing
# header files included from there.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for Xkb" >&5
echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <X11/Xlib.h>
#include <X11/XKBlib.h>
int
main ()
{
XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
emacs_xkb=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_xkb=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_xkb" >&5
echo "${ECHO_T}$emacs_xkb" >&6; }
2002-04-10 22:14:09 +00:00
if test $emacs_xkb = yes; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_XKBGETKEYBOARD 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
for ac_func in XrmSetDatabase XScreenResourceString \
XScreenNumberOfScreen XSetWMProtocols
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2002-04-10 22:14:09 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2002-04-10 22:14:09 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2002-04-10 22:14:09 +00:00
choke me
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
done
fi
if test "${window_system}" = "x11"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking X11 version 6" >&5
echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${emacs_cv_x11_version_6+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <X11/Xlib.h>
int
main ()
{
#if XlibSpecificationRelease < 6
fail;
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
emacs_cv_x11_version_6=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_x11_version_6=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
if test $emacs_cv_x11_version_6 = yes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: 6 or newer" >&5
echo "${ECHO_T}6 or newer" >&6; }
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_X11R6 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: before 6" >&5
echo "${ECHO_T}before 6" >&6; }
2002-04-10 22:14:09 +00:00
fi
fi
if test "${window_system}" = "x11"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking X11 version 5" >&5
echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${emacs_cv_x11_version_5+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <X11/Xlib.h>
int
main ()
{
#if XlibSpecificationRelease < 5
fail;
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
emacs_cv_x11_version_5=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_x11_version_5=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
if test $emacs_cv_x11_version_5 = yes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: 5 or newer" >&5
echo "${ECHO_T}5 or newer" >&6; }
2002-04-10 22:14:09 +00:00
HAVE_X11R5=yes
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_X11R5 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
else
HAVE_X11R5=no
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: before 5" >&5
echo "${ECHO_T}before 5" >&6; }
2002-04-10 22:14:09 +00:00
fi
fi
2003-01-19 21:50:03 +00:00
HAVE_GTK=no
2006-12-19 06:49:01 +00:00
if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
USE_X_TOOLKIT=none
fi
2003-01-19 21:50:03 +00:00
if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
2003-01-20 05:35:31 +00:00
if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
2003-01-19 21:50:03 +00:00
{ { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
{ (exit 1); exit 1; }; };
fi
GLIB_REQUIRED=2.4
GTK_REQUIRED=2.4
2003-01-19 21:50:03 +00:00
GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
if test "X${with_pkg_config_prog}" != X; then
PKG_CONFIG="${with_pkg_config_prog}"
fi
succeeded=no
if test -z "$PKG_CONFIG"; then
# Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2003-01-19 21:50:03 +00:00
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $PKG_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2003-01-19 21:50:03 +00:00
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2003-01-19 21:50:03 +00:00
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
echo "${ECHO_T}$PKG_CONFIG" >&6; }
2003-01-19 21:50:03 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2003-01-19 21:50:03 +00:00
fi
2006-12-20 19:57:39 +00:00
2003-01-19 21:50:03 +00:00
fi
if test "$PKG_CONFIG" = "no" ; then
2006-05-18 16:58:44 +00:00
{ { echo "$as_me:$LINENO: error:
*** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
echo "$as_me: error:
*** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
{ (exit 1); exit 1; }; }
2003-01-19 21:50:03 +00:00
else
PKG_CONFIG_MIN_VERSION=0.9.0
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
2003-01-19 21:50:03 +00:00
2006-07-14 12:04:46 +00:00
if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
2003-01-19 21:50:03 +00:00
succeeded=yes
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
echo "${ECHO_T}$GTK_CFLAGS" >&6; }
2003-01-19 21:50:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking GTK_LIBS" >&5
echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
echo "${ECHO_T}$GTK_LIBS" >&6; }
2003-01-19 21:50:03 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2003-01-19 21:50:03 +00:00
GTK_CFLAGS=""
GTK_LIBS=""
## If we have a custom action on failure, don't print errors, but
## do set a variable so people can do so.
GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
echo $GTK_PKG_ERRORS
fi
else
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
echo "*** See http://www.freedesktop.org/software/pkgconfig"
fi
fi
if test $succeeded = yes; then
:
else
{ { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
{ (exit 1); exit 1; }; }
fi
C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
CFLAGS="$CFLAGS $GTK_CFLAGS"
LIBS="$GTK_LIBS $LIBS"
2006-12-19 06:49:01 +00:00
GTK_COMPILES=no
2006-12-19 06:49:01 +00:00
for ac_func in gtk_main
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
2006-12-19 06:49:01 +00:00
GTK_COMPILES=yes
fi
done
2006-12-19 06:49:01 +00:00
if test "${GTK_COMPILES}" != "yes"; then
{ { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
{ (exit 1); exit 1; }; };
fi
HAVE_GTK=yes
cat >>confdefs.h <<\_ACEOF
2006-12-19 06:49:01 +00:00
#define HAVE_GTK 1
_ACEOF
2006-12-19 06:49:01 +00:00
USE_X_TOOLKIT=none
if test "$with_toolkit_scroll_bars" != no; then
with_toolkit_scroll_bars=yes
fi
2006-12-19 06:49:01 +00:00
HAVE_GTK_MULTIDISPLAY=no
for ac_func in gdk_display_open
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
2006-12-19 06:49:01 +00:00
HAVE_GTK_MULTIDISPLAY=yes
fi
done
2006-12-19 06:49:01 +00:00
if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
2006-12-19 06:49:01 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_GTK_MULTIDISPLAY 1
_ACEOF
2006-12-19 06:49:01 +00:00
fi
HAVE_GTK_FILE_SELECTION=no
for ac_func in gtk_file_selection_new
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
2006-12-19 06:49:01 +00:00
HAVE_GTK_FILE_SELECTION=yes
fi
done
2006-12-19 06:49:01 +00:00
HAVE_GTK_FILE_CHOOSER=no
2006-12-19 06:49:01 +00:00
for ac_func in gtk_file_chooser_dialog_new
do
2006-12-19 06:49:01 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-12-19 06:49:01 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-12-19 06:49:01 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2006-12-19 06:49:01 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2006-12-19 06:49:01 +00:00
choke me
#endif
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2006-12-19 06:49:01 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2006-12-19 06:49:01 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2006-12-19 06:49:01 +00:00
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2006-12-19 06:49:01 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2006-12-19 06:49:01 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2006-12-19 06:49:01 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
HAVE_GTK_FILE_CHOOSER=yes
fi
done
if test "$HAVE_GTK_FILE_SELECTION" = yes \
&& test "$HAVE_GTK_FILE_CHOOSER" = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_GTK_FILE_BOTH 1
_ACEOF
fi
if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
HAVE_GTK_AND_PTHREAD=no
for ac_header in pthread.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2006-12-19 06:49:01 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2006-12-19 06:49:01 +00:00
else
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2006-12-19 06:49:01 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2006-12-19 06:49:01 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
2005-07-06 12:07:32 +00:00
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
;;
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
if test "$ac_cv_header_pthread_h"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char pthread_self ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return pthread_self ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_lib_pthread_pthread_self=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_pthread_pthread_self=no
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
if test $ac_cv_lib_pthread_pthread_self = yes; then
HAVE_GTK_AND_PTHREAD=yes
fi
fi
if test "$HAVE_GTK_AND_PTHREAD" = yes; then
GTK_LIBS="$GTK_LIBS -lpthread"
cat >>confdefs.h <<\_ACEOF
#define HAVE_GTK_AND_PTHREAD 1
_ACEOF
fi
fi
2003-01-19 21:50:03 +00:00
fi
2007-01-26 16:33:30 +00:00
### Link with -lXft if available to work around a bug.
HAVE_XFT=maybe
if test "${HAVE_GTK}" = "yes"; then
if test "X${with_pkg_config_prog}" != X; then
PKG_CONFIG="${with_pkg_config_prog}"
fi
succeeded=no
if test -z "$PKG_CONFIG"; then
# Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $PKG_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
echo "${ECHO_T}$PKG_CONFIG" >&6; }
else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
fi
if test "$PKG_CONFIG" = "no" ; then
HAVE_XFT=no
else
PKG_CONFIG_MIN_VERSION=0.9.0
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
{ echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
succeeded=yes
{ echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
2007-01-26 16:33:30 +00:00
{ echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
echo "${ECHO_T}$XFT_CFLAGS" >&6; }
{ echo "$as_me:$LINENO: checking XFT_LIBS" >&5
echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
2007-01-26 16:33:30 +00:00
{ echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
echo "${ECHO_T}$XFT_LIBS" >&6; }
else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
XFT_CFLAGS=""
XFT_LIBS=""
## If we have a custom action on failure, don't print errors, but
## do set a variable so people can do so.
XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
fi
else
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
echo "*** See http://www.freedesktop.org/software/pkgconfig"
fi
fi
if test $succeeded = yes; then
:
else
HAVE_XFT=no
fi
if test "$HAVE_XFT" != no; then
OLD_CFLAGS="$CPPFLAGS"
OLD_CFLAGS="$CFLAGS"
OLD_LIBS="$LIBS"
CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
CFLAGS="$CFLAGS $XFT_CFLAGS"
LIBS="$XFT_LIBS $LIBS"
if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
else
# Is the header compilable?
{ echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <X11/Xft/Xft.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present?
{ echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <X11/Xft/Xft.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
;;
esac
{ echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
fi
if test $ac_cv_header_X11_Xft_Xft_h = yes; then
{ echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lXft $XFT_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char XftFontOpen ();
int
main ()
{
return XftFontOpen ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_lib_Xft_XftFontOpen=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_lib_Xft_XftFontOpen=no
fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
if test $ac_cv_lib_Xft_XftFontOpen = yes; then
HAVE_XFT=yes
fi
fi
if test "${HAVE_XFT}" = "yes"; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_XFT 1
_ACEOF
C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
else
CFLAGS="$OLD_CPPFLAGS"
CFLAGS="$OLD_CFLAGS"
LIBS="$OLD_LIBS"
fi
fi
fi
2002-04-10 22:14:09 +00:00
if test x"${USE_X_TOOLKIT}" = xmaybe; then
if test x"${HAVE_X11R5}" = xyes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <X11/Intrinsic.h>
#include <X11/Xaw/Simple.h>
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
emacs_cv_x11_version_5_with_xaw=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_x11_version_5_with_xaw=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
if test $emacs_cv_x11_version_5_with_xaw = yes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
2002-04-10 22:14:09 +00:00
USE_X_TOOLKIT=LUCID
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
2002-04-10 22:14:09 +00:00
USE_X_TOOLKIT=none
fi
else
USE_X_TOOLKIT=none
fi
fi
X_TOOLKIT_TYPE=$USE_X_TOOLKIT
if test "${USE_X_TOOLKIT}" != "none"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking X11 toolkit version" >&5
echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <X11/Intrinsic.h>
int
main ()
{
#if XtSpecificationRelease < 6
fail;
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
emacs_cv_x11_toolkit_version_6=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_x11_toolkit_version_6=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
if test $emacs_cv_x11_toolkit_version_6 = yes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: 6 or newer" >&5
echo "${ECHO_T}6 or newer" >&6; }
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_X11XTR6 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: before 6" >&5
echo "${ECHO_T}before 6" >&6; }
2002-04-10 22:14:09 +00:00
fi
OLDLIBS="$LIBS"
if test x$HAVE_X11XTR6 = xyes; then
LIBS="-lXt -lSM -lICE $LIBS"
else
LIBS="-lXt $LIBS"
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lXmu $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char XmuConvertStandardSelection ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return XmuConvertStandardSelection ();
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_Xmu_XmuConvertStandardSelection=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_LIBXMU 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
LIBS="-lXmu $LIBS"
fi
test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
fi
# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
if test "${HAVE_X11}" = "yes"; then
if test "${USE_X_TOOLKIT}" != "none"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lXext $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char XShapeQueryExtension ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return XShapeQueryExtension ();
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_Xext_XShapeQueryExtension=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_Xext_XShapeQueryExtension=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_LIBXEXT 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
LIBS="-lXext $LIBS"
fi
fi
fi
if test "${USE_X_TOOLKIT}" = "MOTIF"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${emacs_cv_motif_version_2_1+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <Xm/Xm.h>
int
main ()
{
#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
int x = 5;
#else
Motif version prior to 2.1.
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-10 22:14:09 +00:00
emacs_cv_motif_version_2_1=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_motif_version_2_1=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
2002-04-10 22:14:09 +00:00
HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
if test $emacs_cv_motif_version_2_1 = yes; then
HAVE_LIBXP=no
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_MOTIF_2_1 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lXp $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char XpCreateContext ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return XpCreateContext ();
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_Xp_XpCreateContext=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_Xp_XpCreateContext=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_Xp_XpCreateContext = yes; then
HAVE_LIBXP=yes
fi
2001-10-19 12:33:10 +00:00
2002-04-10 22:14:09 +00:00
if test ${HAVE_LIBXP} = yes; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_LIBXP 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
2002-04-10 22:14:09 +00:00
fi
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
if test "${emacs_cv_lesstif+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# We put this in CFLAGS temporarily to precede other -I options
# that might be in CFLAGS temporarily.
# We put this in CPPFLAGS where it precedes the other -I options.
OLD_CPPFLAGS=$CPPFLAGS
OLD_CFLAGS=$CFLAGS
CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
int
main ()
{
int x = 5;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
emacs_cv_lesstif=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_lesstif=no
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
if test $emacs_cv_lesstif = yes; then
# Make sure this -I option remains in CPPFLAGS after it is set
# back to REAL_CPPFLAGS.
# There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
# have those other -I options anyway. Ultimately, having this
# directory ultimately in CPPFLAGS will be enough.
REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
else
CFLAGS=$OLD_CFLAGS
CPPFLAGS=$OLD_CPPFLAGS
fi
2002-04-10 22:14:09 +00:00
fi
fi
### Is -lXaw3d available?
HAVE_XAW3D=no
if test "${HAVE_X11}" = "yes"; then
2006-04-01 13:51:18 +00:00
if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2002-11-21 20:38:07 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <X11/Xaw3d/Scrollbar.h>
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-21 20:38:07 +00:00
ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-21 20:38:07 +00:00
ac_cv_header_X11_Xaw3d_Scrollbar_h=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lXaw3d $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char XawScrollbarSetThumb ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return XawScrollbarSetThumb ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
HAVE_XAW3D=yes
1999-10-07 13:06:22 +00:00
fi
2001-10-19 12:33:10 +00:00
1999-10-07 13:06:22 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
if test "${HAVE_XAW3D}" = "yes"; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_XAW3D 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
fi
1999-10-07 13:06:22 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
USE_TOOLKIT_SCROLL_BARS=no
if test "${with_toolkit_scroll_bars}" != "no"; then
if test "${USE_X_TOOLKIT}" != "none"; then
if test "${USE_X_TOOLKIT}" = "MOTIF"; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define USE_TOOLKIT_SCROLL_BARS 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
HAVE_XAW3D=no
USE_TOOLKIT_SCROLL_BARS=yes
elif test "${HAVE_XAW3D}" = "yes"; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define USE_TOOLKIT_SCROLL_BARS 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
USE_TOOLKIT_SCROLL_BARS=yes
1999-10-07 13:06:22 +00:00
fi
2003-01-19 21:50:03 +00:00
elif test "${HAVE_GTK}" = "yes"; then
cat >>confdefs.h <<\_ACEOF
#define USE_TOOLKIT_SCROLL_BARS 1
2005-05-13 08:55:10 +00:00
_ACEOF
USE_TOOLKIT_SCROLL_BARS=yes
elif test "${HAVE_CARBON}" = "yes"; then
cat >>confdefs.h <<\_ACEOF
#define USE_TOOLKIT_SCROLL_BARS 1
2003-01-19 21:50:03 +00:00
_ACEOF
USE_TOOLKIT_SCROLL_BARS=yes
1999-10-07 13:06:22 +00:00
fi
fi
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <X11/Xlib.h>
#include <X11/Xresource.h>
int
main ()
{
XIMProc callback;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
HAVE_XIM=yes
cat >>confdefs.h <<\_ACEOF
#define HAVE_XIM 1
_ACEOF
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
HAVE_XIM=no
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
if test "${with_xim}" != "no"; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define USE_XIM 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
2003-07-28 18:04:15 +00:00
fi
if test "${HAVE_XIM}" != "no"; then
2003-06-29 12:05:01 +00:00
late_CFLAGS=$CFLAGS
if test "$GCC" = yes; then
CFLAGS="$CFLAGS --pedantic-errors"
fi
2003-06-26 21:09:11 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-06-26 21:09:11 +00:00
#include <X11/Xlib.h>
#include <X11/Xresource.h>
int
main ()
{
Display *display;
XrmDatabase db;
char *res_name;
char *res_class;
XIMProc callback;
XPointer *client_data;
2003-06-29 12:05:01 +00:00
#ifndef __GNUC__
/* If we're not using GCC, it's probably not XFree86, and this is
probably right, but we can't use something like --pedantic-errors. */
extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
char*, XIMProc, XPointer*);
#endif
2003-06-26 21:09:11 +00:00
(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
client_data);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-06-26 21:09:11 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-06-26 21:09:11 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-06-26 21:09:11 +00:00
emacs_cv_arg6_star=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
2003-06-26 21:09:11 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-06-26 21:09:11 +00:00
if test "$emacs_cv_arg6_star" = yes; then
2003-07-22 17:31:46 +00:00
cat >>confdefs.h <<\_ACEOF
2003-06-26 21:09:11 +00:00
#define XRegisterIMInstantiateCallback_arg6 XPointer*
_ACEOF
else
2003-07-22 17:31:46 +00:00
cat >>confdefs.h <<\_ACEOF
2003-06-26 21:09:11 +00:00
#define XRegisterIMInstantiateCallback_arg6 XPointer
_ACEOF
fi
2003-06-29 12:05:01 +00:00
CFLAGS=$late_CFLAGS
2002-04-10 22:14:09 +00:00
fi
### Use -lXpm if available, unless `--with-xpm=no'.
HAVE_XPM=no
if test "${HAVE_X11}" = "yes"; then
if test "${with_xpm}" != "no"; then
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_X11_xpm_h+set}" = set; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_header_X11_xpm_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <X11/xpm.h>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <X11/xpm.h>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-10 22:14:09 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
2005-06-06 20:18:11 +00:00
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_X11_xpm_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_X11_xpm_h=$ac_header_preproc
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_X11_xpm_h = yes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lXpm -lX11 $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
2002-04-10 22:14:09 +00:00
char XpmReadFileToPixmap ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return XpmReadFileToPixmap ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_Xpm_XpmReadFileToPixmap=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
HAVE_XPM=yes
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
if test "${HAVE_XPM}" = "yes"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include "X11/xpm.h"
#ifndef XpmReturnAllocPixels
no_return_alloc_pixels
2001-10-19 12:33:10 +00:00
#endif
1999-10-07 13:06:22 +00:00
2002-04-10 22:14:09 +00:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2002-11-08 12:32:10 +00:00
$EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
2002-04-10 22:14:09 +00:00
HAVE_XPM=no
else
HAVE_XPM=yes
fi
rm -f conftest*
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
if test "${HAVE_XPM}" = "yes"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
2002-04-10 22:14:09 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
2002-04-10 22:14:09 +00:00
fi
fi
fi
if test "${HAVE_XPM}" = "yes"; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_XPM 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
fi
### Use -ljpeg if available, unless `--with-jpeg=no'.
HAVE_JPEG=no
if test "${HAVE_X11}" = "yes"; then
if test "${with_jpeg}" != "no"; then
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_jerror_h+set}" = set; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for jerror.h" >&5
echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_header_jerror_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
2001-10-19 12:33:10 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking jerror.h usability" >&5
echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <jerror.h>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking jerror.h presence" >&5
echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <jerror.h>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-10 22:14:09 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for jerror.h" >&5
echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_jerror_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_jerror_h=$ac_header_preproc
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_jerror_h = yes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-ljpeg $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char jpeg_destroy_compress ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return jpeg_destroy_compress ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_jpeg_jpeg_destroy_compress=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_jpeg_jpeg_destroy_compress=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
HAVE_JPEG=yes
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
2002-11-07 17:33:03 +00:00
1999-10-07 13:06:22 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
if test "${HAVE_JPEG}" = "yes"; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_JPEG 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-21 20:38:07 +00:00
#include <jpeglib.h>
2002-04-10 22:14:09 +00:00
version=JPEG_LIB_VERSION
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2002-11-08 12:32:10 +00:00
$EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_JPEG 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
2002-04-10 22:14:09 +00:00
echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
HAVE_JPEG=no
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
rm -f conftest*
1999-10-07 13:06:22 +00:00
2002-04-10 22:14:09 +00:00
fi
fi
2001-10-19 12:33:10 +00:00
2002-04-10 22:14:09 +00:00
### Use -lpng if available, unless `--with-png=no'.
HAVE_PNG=no
if test "${HAVE_X11}" = "yes"; then
if test "${with_png}" != "no"; then
2003-07-22 17:31:46 +00:00
# Debian unstable as of July 2003 has multiple libpngs, and puts png.h
# in /usr/include/libpng.
for ac_header in png.h libpng/png.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2001-10-19 12:33:10 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
2003-07-22 17:31:46 +00:00
#include <$ac_header>
2002-11-07 17:33:03 +00:00
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-07-22 17:31:46 +00:00
#include <$ac_header>
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2003-07-22 17:31:46 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2003-07-22 17:31:46 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2003-07-22 17:31:46 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2003-07-22 17:31:46 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2003-07-22 17:31:46 +00:00
1999-10-07 13:06:22 +00:00
fi
2003-07-22 17:31:46 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
2002-11-07 17:33:03 +00:00
fi
2003-07-22 17:31:46 +00:00
done
if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpng -lz -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
2002-04-10 22:14:09 +00:00
char png_get_channels ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return png_get_channels ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_png_png_get_channels=yes
2000-09-06 21:42:35 +00:00
else
2002-04-10 22:14:09 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_png_png_get_channels=no
2000-09-06 21:42:35 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
2000-09-06 21:42:35 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_png_png_get_channels = yes; then
HAVE_PNG=yes
2000-09-06 21:42:35 +00:00
fi
2001-10-19 12:33:10 +00:00
2003-07-22 17:31:46 +00:00
fi
2002-04-10 22:14:09 +00:00
fi
if test "${HAVE_PNG}" = "yes"; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_PNG 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-09-06 21:42:35 +00:00
2002-04-10 22:14:09 +00:00
fi
2000-09-06 21:42:35 +00:00
fi
2002-04-10 22:14:09 +00:00
### Use -ltiff if available, unless `--with-tiff=no'.
HAVE_TIFF=no
if test "${HAVE_X11}" = "yes"; then
if test "${with_tiff}" != "no"; then
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_tiffio_h+set}" = set; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for tiffio.h" >&5
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_header_tiffio_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking tiffio.h usability" >&5
echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <tiffio.h>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking tiffio.h presence" >&5
echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <tiffio.h>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-10 22:14:09 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for tiffio.h" >&5
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_tiffio_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_tiffio_h=$ac_header_preproc
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_tiffio_h = yes; then
tifflibs="-lz -lm"
# At least one tiff package requires the jpeg library.
if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-09-06 21:42:35 +00:00
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
2002-04-10 22:14:09 +00:00
LIBS="-ltiff $tifflibs $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
2002-04-10 22:14:09 +00:00
char TIFFGetVersion ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return TIFFGetVersion ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_tiff_TIFFGetVersion=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_tiff_TIFFGetVersion=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
HAVE_TIFF=yes
fi
fi
2000-09-06 21:42:35 +00:00
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
fi
if test "${HAVE_TIFF}" = "yes"; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_TIFF 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
2000-09-06 21:42:35 +00:00
fi
2002-04-10 22:14:09 +00:00
### Use -lgif if available, unless `--with-gif=no'.
HAVE_GIF=no
if test "${HAVE_X11}" = "yes"; then
if test "${with_gif}" != "no"; then
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_gif_lib_h+set}" = set; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for gif_lib.h" >&5
echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_header_gif_lib_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <gif_lib.h>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <gif_lib.h>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-10 22:14:09 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for gif_lib.h" >&5
echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_gif_lib_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_gif_lib_h=$ac_header_preproc
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_gif_lib_h = yes; then
# EGifPutExtensionLast only exists from version libungif-4.1.0b1.
# Earlier versions can crash Emacs.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-09-06 21:42:35 +00:00
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
2002-04-10 22:14:09 +00:00
LIBS="-lungif $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2000-09-06 21:42:35 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char EGifPutExtensionLast ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return EGifPutExtensionLast ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2003-12-24 10:46:12 +00:00
ac_cv_lib_ungif_EGifPutExtensionLast=yes
else
2002-04-10 22:14:09 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_ungif_EGifPutExtensionLast=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
HAVE_GIF=yes
fi
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
fi
if test "${HAVE_GIF}" = "yes"; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_GIF 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
fi
if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
else
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <malloc/malloc.h>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <malloc/malloc.h>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
;;
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_malloc_malloc_h=$ac_header_preproc
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
fi
if test $ac_cv_header_malloc_malloc_h = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_MALLOC_MALLOC_H 1
_ACEOF
fi
2005-05-13 08:55:10 +00:00
### Use Mac OS X Carbon API to implement GUI.
if test "${HAVE_CARBON}" = "yes"; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_CARBON 1
2002-11-07 17:33:03 +00:00
_ACEOF
2003-01-07 17:53:56 +00:00
## Specify the install directory
carbon_appdir=
if test "${carbon_appdir_x}" != ""; then
case ${carbon_appdir_x} in
y | ye | yes) carbon_appdir=/Applications ;;
* ) carbon_appdir=${carbon_appdir_x} ;;
esac
fi
2003-01-22 19:57:26 +00:00
# We also have mouse menus.
HAVE_MENUS=yes
fi
2002-04-10 22:14:09 +00:00
### Use session management (-lSM -lICE) if available
HAVE_X_SM=no
if test "${HAVE_X11}" = "yes"; then
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
2001-10-19 12:33:10 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <X11/SM/SMlib.h>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <X11/SM/SMlib.h>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-10 22:14:09 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
2000-09-06 21:42:35 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_X11_SM_SMlib_h = yes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-09-06 21:42:35 +00:00
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
2003-11-16 18:33:00 +00:00
LIBS="-lSM -lICE $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
2002-04-10 22:14:09 +00:00
char SmcOpenConnection ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return SmcOpenConnection ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_SM_SmcOpenConnection=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_SM_SmcOpenConnection=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
HAVE_X_SM=yes
2000-09-06 21:42:35 +00:00
fi
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
if test "${HAVE_X_SM}" = "yes"; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_X_SM 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-09-06 21:42:35 +00:00
2002-04-10 22:14:09 +00:00
case "$LIBS" in
*-lSM*) ;;
*) LIBS="-lSM -lICE $LIBS" ;;
esac
2000-09-06 21:42:35 +00:00
fi
2002-04-10 22:14:09 +00:00
fi
2000-09-06 21:42:35 +00:00
2002-04-10 22:14:09 +00:00
# If netdb.h doesn't declare h_errno, we must declare it by hand.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <netdb.h>
2001-10-19 12:33:10 +00:00
int
main ()
{
2002-04-10 22:14:09 +00:00
return h_errno;
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
emacs_cv_netdb_declares_h_errno=yes
2000-09-06 21:42:35 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_netdb_declares_h_errno=no
2000-09-06 21:42:35 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
2002-04-10 22:14:09 +00:00
if test $emacs_cv_netdb_declares_h_errno = yes; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_H_ERRNO 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-09-06 21:42:35 +00:00
2002-04-10 22:14:09 +00:00
fi
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_working_alloca_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <alloca.h>
2001-10-19 12:33:10 +00:00
int
main ()
{
2002-04-10 22:14:09 +00:00
char *p = (char *) alloca (2 * sizeof (int));
2006-12-20 19:57:39 +00:00
if (p) return 0;
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_working_alloca_h=yes
2000-09-06 21:42:35 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_working_alloca_h=no
2000-09-06 21:42:35 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_working_alloca_h = yes; then
2000-09-06 21:42:35 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_ALLOCA_H 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for alloca" >&5
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_func_alloca_works+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
# include <malloc.h>
# define alloca _alloca
# else
2006-12-22 19:23:19 +00:00
# ifdef HAVE_ALLOCA_H
2002-04-10 22:14:09 +00:00
# include <alloca.h>
# else
# ifdef _AIX
#pragma alloca
# else
# ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
# endif
# endif
# endif
# endif
#endif
2001-10-19 12:33:10 +00:00
int
main ()
{
2002-04-10 22:14:09 +00:00
char *p = (char *) alloca (1);
2006-12-20 19:57:39 +00:00
if (p) return 0;
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_func_alloca_works=yes
2001-01-10 12:50:09 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_func_alloca_works=no
2001-01-10 12:50:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
2001-01-10 12:50:09 +00:00
2002-04-10 22:14:09 +00:00
if test $ac_cv_func_alloca_works = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_ALLOCA 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
else
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble. Some versions do not even contain alloca or
# contain a buggy version. If you still want to use their alloca,
# use ar to extract alloca.o from them instead of compiling alloca.c.
2006-12-20 19:57:39 +00:00
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
2002-04-10 22:14:09 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define C_ALLOCA 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_os_cray+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-12-20 19:57:39 +00:00
#if defined CRAY && ! defined CRAY2
2002-04-10 22:14:09 +00:00
webecray
#else
wenotbecray
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2002-11-08 12:32:10 +00:00
$EGREP "webecray" >/dev/null 2>&1; then
2002-04-10 22:14:09 +00:00
ac_cv_os_cray=yes
else
ac_cv_os_cray=no
fi
rm -f conftest*
2001-01-10 12:50:09 +00:00
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-09-06 21:42:35 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2000-09-06 21:42:35 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
2000-09-06 21:42:35 +00:00
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2000-09-06 21:42:35 +00:00
choke me
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
2000-09-06 21:42:35 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define CRAY_STACKSEG_END $ac_func
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
break
2000-09-06 21:42:35 +00:00
fi
2002-04-10 22:14:09 +00:00
done
2000-09-06 21:42:35 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_c_stack_direction+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-04-10 22:14:09 +00:00
else
if test "$cross_compiling" = yes; then
ac_cv_c_stack_direction=0
2000-09-06 21:42:35 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-12-20 19:57:39 +00:00
$ac_includes_default
2001-10-19 12:33:10 +00:00
int
2002-04-10 22:14:09 +00:00
find_stack_direction ()
2001-10-19 12:33:10 +00:00
{
2002-04-10 22:14:09 +00:00
static char *addr = 0;
auto char dummy;
if (addr == 0)
{
addr = &dummy;
return find_stack_direction ();
}
2000-09-06 21:42:35 +00:00
else
2002-04-10 22:14:09 +00:00
return (&dummy > addr) ? 1 : -1;
}
1999-10-07 13:06:22 +00:00
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return find_stack_direction () < 0;
2001-10-19 12:33:10 +00:00
}
_ACEOF
2002-04-10 22:14:09 +00:00
rm -f conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-10 22:14:09 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2006-12-20 19:57:39 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_try") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); }; }; then
2002-04-10 22:14:09 +00:00
ac_cv_c_stack_direction=1
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
( exit $ac_status )
2002-04-10 22:14:09 +00:00
ac_cv_c_stack_direction=-1
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
2002-04-10 22:14:09 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define STACK_DIRECTION $ac_cv_c_stack_direction
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
# fmod, logb, and frexp are found in -lm on most systems.
# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_m_sqrt+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char sqrt ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return sqrt ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_m_sqrt=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_m_sqrt=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_m_sqrt = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_LIBM 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
LIBS="-lm $LIBS"
1999-10-07 13:06:22 +00:00
fi
2002-11-07 17:33:03 +00:00
2003-05-21 12:59:28 +00:00
# Check for mail-locking functions in a "mail" library. Probably this should
# have the same check as for liblockfile below.
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_mail_maillock+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lmail $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char maillock ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return maillock ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_mail_maillock=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_mail_maillock=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_mail_maillock = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_LIBMAIL 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
2002-04-10 22:14:09 +00:00
LIBS="-lmail $LIBS"
1999-10-07 13:06:22 +00:00
2002-04-10 22:14:09 +00:00
fi
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
2002-04-10 22:14:09 +00:00
LIBS="-llockfile $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
2002-04-10 22:14:09 +00:00
char maillock ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return maillock ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_lockfile_maillock=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_lockfile_maillock=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_lockfile_maillock = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_LIBLOCKFILE 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
LIBS="-llockfile $LIBS"
fi
# If we have the shared liblockfile, assume we must use it for mail
# locking (e.g. Debian). If we couldn't link against liblockfile
# (no liblockfile.a installed), ensure that we don't need to.
if test "$ac_cv_lib_lockfile_maillock" = no; then
# Extract the first word of "liblockfile.so", so it can be a program name with args.
set dummy liblockfile.so; ac_word=$2
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_prog_liblockfile+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$liblockfile"; then
ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
else
2002-11-07 17:33:03 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002-11-08 12:32:10 +00:00
as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
for as_dir in $as_dummy
2002-11-07 17:33:03 +00:00
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2006-12-22 19:23:19 +00:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-11-07 17:33:03 +00:00
ac_cv_prog_liblockfile="yes"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
2002-04-10 22:14:09 +00:00
done
2006-12-20 19:57:39 +00:00
IFS=$as_save_IFS
2002-04-10 22:14:09 +00:00
test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
2001-10-19 12:33:10 +00:00
fi
fi
2002-04-10 22:14:09 +00:00
liblockfile=$ac_cv_prog_liblockfile
if test -n "$liblockfile"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $liblockfile" >&5
echo "${ECHO_T}$liblockfile" >&6; }
2002-04-10 22:14:09 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
if test $ac_cv_prog_liblockfile = yes; then
2002-11-07 17:33:03 +00:00
{ { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
2002-04-10 22:14:09 +00:00
This probably means that movemail could lose mail.
There may be a \`development' package to install containing liblockfile." >&5
echo "$as_me: error: Shared liblockfile found but can't link against it.
This probably means that movemail could lose mail.
There may be a \`development' package to install containing liblockfile." >&2;}
{ (exit 1); exit 1; }; }
else :
2003-05-21 12:59:28 +00:00
fi
2002-04-10 22:14:09 +00:00
fi
2001-10-19 12:33:10 +00:00
2002-04-10 22:14:09 +00:00
for ac_func in touchlock
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2001-01-10 15:24:55 +00:00
else
2002-04-10 22:14:09 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2002-04-10 22:14:09 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
2002-04-10 22:14:09 +00:00
char $ac_func ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2002-04-10 22:14:09 +00:00
choke me
2002-11-28 01:08:07 +00:00
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
eval "$as_ac_var=yes"
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-01-10 15:24:55 +00:00
fi
2002-04-10 22:14:09 +00:00
done
2001-01-10 15:24:55 +00:00
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
for ac_header in maillock.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
1999-10-07 13:06:22 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <$ac_header>
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-10 22:14:09 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-06-23 15:43:44 +00:00
1999-10-07 13:06:22 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
done
2002-11-07 17:33:03 +00:00
2002-11-21 20:38:07 +00:00
2002-11-07 17:33:03 +00:00
2003-06-06 10:16:42 +00:00
2002-11-28 01:08:07 +00:00
2003-05-24 19:31:42 +00:00
2004-11-06 16:53:38 +00:00
2006-12-04 08:17:50 +00:00
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
for ac_func in gethostname getdomainname dup2 \
rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
2002-04-10 22:14:09 +00:00
random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
2003-06-06 10:16:42 +00:00
utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
2002-04-10 22:14:09 +00:00
__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
sendto recvfrom getsockopt setsockopt getsockname getpeername \
2006-12-04 08:17:50 +00:00
gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
2002-04-10 22:14:09 +00:00
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2002-04-10 22:14:09 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
2002-04-10 22:14:09 +00:00
char $ac_func ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2002-04-10 22:14:09 +00:00
choke me
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
eval "$as_ac_var=yes"
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
done
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
for ac_header in sys/un.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-04-10 22:14:09 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <$ac_header>
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-05-10 08:36:08 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-05-10 08:36:08 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
2002-05-10 08:36:08 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-05-10 08:36:08 +00:00
done
2002-11-07 17:33:03 +00:00
2005-07-06 12:07:32 +00:00
2006-12-22 19:23:19 +00:00
for ac_header in $ac_header_list
2002-05-10 08:36:08 +00:00
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-05-10 08:36:08 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-05-10 08:36:08 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <$ac_header>
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2000-01-18 11:01:12 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
done
2002-11-07 17:33:03 +00:00
2006-12-22 19:23:19 +00:00
for ac_func in $ac_func_list
2002-04-10 22:14:09 +00:00
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2002-04-10 22:14:09 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
2002-04-10 22:14:09 +00:00
char $ac_func ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2002-04-10 22:14:09 +00:00
choke me
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
eval "$as_ac_var=yes"
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2000-01-18 11:01:12 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-01-18 11:01:12 +00:00
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
done
1999-10-07 13:06:22 +00:00
2006-12-22 19:23:19 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for working mktime" >&5
echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_func_working_mktime+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
ac_cv_func_working_mktime=no
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
/* Test program from Paul Eggert and Tony Leneis. */
2006-12-22 19:23:19 +00:00
#ifdef TIME_WITH_SYS_TIME
2002-04-10 22:14:09 +00:00
# include <sys/time.h>
# include <time.h>
#else
2006-12-22 19:23:19 +00:00
# ifdef HAVE_SYS_TIME_H
2002-04-10 22:14:09 +00:00
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
1999-10-07 13:06:22 +00:00
2006-12-22 19:23:19 +00:00
#include <stdlib.h>
2005-07-06 12:07:32 +00:00
2006-12-22 19:23:19 +00:00
#ifdef HAVE_UNISTD_H
2002-04-10 22:14:09 +00:00
# include <unistd.h>
#endif
1999-10-07 13:06:22 +00:00
2006-12-22 19:23:19 +00:00
#ifndef HAVE_ALARM
2002-04-10 22:14:09 +00:00
# define alarm(X) /* empty */
#endif
2002-03-05 10:54:56 +00:00
2002-04-10 22:14:09 +00:00
/* Work around redefinition to rpl_putenv by other config tests. */
#undef putenv
2002-03-05 10:54:56 +00:00
2002-04-10 22:14:09 +00:00
static time_t time_t_max;
2005-07-06 12:07:32 +00:00
static time_t time_t_min;
2002-03-05 10:54:56 +00:00
2002-04-10 22:14:09 +00:00
/* Values we'll use to set the TZ environment variable. */
2005-07-06 12:07:32 +00:00
static char *tz_strings[] = {
(char *) 0, "TZ=GMT0", "TZ=JST-9",
2002-04-10 22:14:09 +00:00
"TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
};
#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Return 0 if mktime fails to convert a date in the spring-forward gap.
2002-04-10 22:14:09 +00:00
Based on a problem report from Andreas Jaeger. */
2006-12-20 19:57:39 +00:00
static int
2002-04-10 22:14:09 +00:00
spring_forward_gap ()
{
/* glibc (up to about 1998-10-07) failed this test. */
struct tm tm;
/* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
instead of "TZ=America/Vancouver" in order to detect the bug even
on systems that don't support the Olson extension, or don't have the
full zoneinfo tables installed. */
putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
tm.tm_year = 98;
tm.tm_mon = 3;
tm.tm_mday = 5;
tm.tm_hour = 2;
tm.tm_min = 0;
tm.tm_sec = 0;
tm.tm_isdst = -1;
2006-12-20 19:57:39 +00:00
return mktime (&tm) != (time_t) -1;
2002-04-10 22:14:09 +00:00
}
2006-12-20 19:57:39 +00:00
static int
2005-07-06 12:07:32 +00:00
mktime_test1 (now)
2002-04-10 22:14:09 +00:00
time_t now;
{
struct tm *lt;
2006-12-20 19:57:39 +00:00
return ! (lt = localtime (&now)) || mktime (lt) == now;
2005-07-06 12:07:32 +00:00
}
2006-12-20 19:57:39 +00:00
static int
2005-07-06 12:07:32 +00:00
mktime_test (now)
time_t now;
{
2006-12-20 19:57:39 +00:00
return (mktime_test1 (now)
&& mktime_test1 ((time_t) (time_t_max - now))
&& mktime_test1 ((time_t) (time_t_min + now)));
2002-04-10 22:14:09 +00:00
}
2006-12-20 19:57:39 +00:00
static int
2002-04-10 22:14:09 +00:00
irix_6_4_bug ()
{
/* Based on code from Ariel Faigon. */
struct tm tm;
tm.tm_year = 96;
tm.tm_mon = 3;
tm.tm_mday = 0;
tm.tm_hour = 0;
tm.tm_min = 0;
tm.tm_sec = 0;
tm.tm_isdst = -1;
mktime (&tm);
2006-12-20 19:57:39 +00:00
return tm.tm_mon == 2 && tm.tm_mday == 31;
2002-04-10 22:14:09 +00:00
}
2006-12-20 19:57:39 +00:00
static int
2002-04-10 22:14:09 +00:00
bigtime_test (j)
int j;
{
struct tm tm;
time_t now;
tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
now = mktime (&tm);
if (now != (time_t) -1)
{
struct tm *lt = localtime (&now);
if (! (lt
&& lt->tm_year == tm.tm_year
&& lt->tm_mon == tm.tm_mon
&& lt->tm_mday == tm.tm_mday
&& lt->tm_hour == tm.tm_hour
&& lt->tm_min == tm.tm_min
&& lt->tm_sec == tm.tm_sec
&& lt->tm_yday == tm.tm_yday
&& lt->tm_wday == tm.tm_wday
&& ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
== (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
2006-12-20 19:57:39 +00:00
return 0;
2002-04-10 22:14:09 +00:00
}
2006-12-20 19:57:39 +00:00
return 1;
2002-04-10 22:14:09 +00:00
}
2006-12-22 19:23:19 +00:00
static int
year_2050_test ()
{
/* The correct answer for 2050-02-01 00:00:00 in Pacific time,
ignoring leap seconds. */
unsigned long int answer = 2527315200UL;
struct tm tm;
time_t t;
tm.tm_year = 2050 - 1900;
tm.tm_mon = 2 - 1;
tm.tm_mday = 1;
tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
tm.tm_isdst = -1;
/* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
instead of "TZ=America/Vancouver" in order to detect the bug even
on systems that don't support the Olson extension, or don't have the
full zoneinfo tables installed. */
putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
t = mktime (&tm);
/* Check that the result is either a failure, or close enough
to the correct answer that we can assume the discrepancy is
due to leap seconds. */
return (t == (time_t) -1
|| (0 < t && answer - 120 <= t && t <= answer + 120));
}
2002-04-10 22:14:09 +00:00
int
main ()
{
time_t t, delta;
int i, j;
/* This test makes some buggy mktime implementations loop.
Give up after 60 seconds; a mktime slower than that
isn't worth using anyway. */
alarm (60);
for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
continue;
time_t_max--;
2005-07-06 12:07:32 +00:00
if ((time_t) -1 < 0)
for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
continue;
2002-04-10 22:14:09 +00:00
delta = time_t_max / 997; /* a suitable prime number */
for (i = 0; i < N_STRINGS; i++)
{
if (tz_strings[i])
putenv (tz_strings[i]);
2001-10-19 12:33:10 +00:00
2002-04-10 22:14:09 +00:00
for (t = 0; t <= time_t_max - delta; t += delta)
2006-12-20 19:57:39 +00:00
if (! mktime_test (t))
return 1;
if (! (mktime_test ((time_t) 1)
&& mktime_test ((time_t) (60 * 60))
&& mktime_test ((time_t) (60 * 60 * 24))))
return 1;
2002-04-10 22:14:09 +00:00
for (j = 1; 0 < j; j *= 2)
2006-12-20 19:57:39 +00:00
if (! bigtime_test (j))
return 1;
if (! bigtime_test (j - 1))
return 1;
2002-04-10 22:14:09 +00:00
}
2006-12-22 19:23:19 +00:00
return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
2001-10-19 12:33:10 +00:00
}
_ACEOF
2002-04-10 22:14:09 +00:00
rm -f conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-10 22:14:09 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2006-12-20 19:57:39 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_try") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); }; }; then
2002-04-10 22:14:09 +00:00
ac_cv_func_working_mktime=yes
2001-10-19 12:33:10 +00:00
else
2002-04-10 22:14:09 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
( exit $ac_status )
2002-04-10 22:14:09 +00:00
ac_cv_func_working_mktime=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_func_working_mktime = no; then
2006-12-20 19:57:39 +00:00
case " $LIBOBJS " in
2005-07-06 12:07:32 +00:00
*" mktime.$ac_objext "* ) ;;
2006-12-20 19:57:39 +00:00
*) LIBOBJS="$LIBOBJS mktime.$ac_objext"
;;
2005-07-06 12:07:32 +00:00
esac
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
if test "$ac_cv_func_working_mktime" = no; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define BROKEN_MKTIME 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
fi
2001-10-19 12:33:10 +00:00
2002-04-10 22:14:09 +00:00
ac_have_func=no # yes means we've found a way to get the load average.
2002-11-08 12:32:10 +00:00
# Make sure getloadavg.c is where it belongs, at configure-time.
test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
{ { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
{ (exit 1); exit 1; }; }
2002-04-10 22:14:09 +00:00
ac_save_LIBS=$LIBS
# Check for getloadavg, but be sure not to touch the cache variable.
2006-12-20 19:57:39 +00:00
({ echo "$as_me:$LINENO: checking for getloadavg" >&5
echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_func_getloadavg+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define getloadavg innocuous_getloadavg
2002-04-10 22:14:09 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char getloadavg (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef getloadavg
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
2002-04-10 22:14:09 +00:00
char getloadavg ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_getloadavg || defined __stub___getloadavg
2002-04-10 22:14:09 +00:00
choke me
2002-11-28 01:08:07 +00:00
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return getloadavg ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_func_getloadavg=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_func_getloadavg=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_func_getloadavg = yes; then
exit 0
else
exit 1
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
) && ac_have_func=yes
1999-10-07 13:06:22 +00:00
2002-04-10 22:14:09 +00:00
# On HPUX9, an unprivileged user can get load averages through this function.
2001-10-19 12:33:10 +00:00
2002-04-10 22:14:09 +00:00
for ac_func in pstat_getdynamic
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2002-04-10 22:14:09 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
2002-04-10 22:14:09 +00:00
char $ac_func ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2002-04-10 22:14:09 +00:00
choke me
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2002-04-10 22:14:09 +00:00
;
return 0;
}
_ACEOF
2002-04-10 22:14:09 +00:00
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
done
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
# Solaris has libkstat which does not require root.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
2002-04-10 22:14:09 +00:00
LIBS="-lkstat $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
2002-04-10 22:14:09 +00:00
char kstat_open ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return kstat_open ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_kstat_kstat_open=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_kstat_kstat_open=no
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_kstat_kstat_open = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_LIBKSTAT 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
LIBS="-lkstat $LIBS"
fi
2002-04-10 22:14:09 +00:00
test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
# Some systems with -lutil have (and need) -lkvm as well, some do not.
# On Solaris, -lkvm requires nlist from -lelf, so check that first
# to get the right answer into the cache.
# For kstat on solaris, we need libelf to force the definition of SVR4 below.
if test $ac_have_func = no; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lelf $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char elf_begin ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return elf_begin ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_elf_elf_begin=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_elf_elf_begin=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_elf_elf_begin = yes; then
LIBS="-lelf $LIBS"
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
fi
if test $ac_have_func = no; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lkvm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char kvm_open ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return kvm_open ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_kvm_kvm_open=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_kvm_kvm_open=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_kvm_kvm_open = yes; then
LIBS="-lkvm $LIBS"
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
# Check for the 4.4BSD definition of getloadavg.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_util_getloadavg+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lutil $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char getloadavg ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return getloadavg ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2003-12-24 10:46:12 +00:00
ac_cv_lib_util_getloadavg=yes
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_util_getloadavg=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_util_getloadavg = yes; then
LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
1999-10-07 13:06:22 +00:00
fi
2001-10-19 12:33:10 +00:00
2002-04-10 22:14:09 +00:00
fi
1999-10-07 13:06:22 +00:00
2002-04-10 22:14:09 +00:00
if test $ac_have_func = no; then
# There is a commonly available library for RS/6000 AIX.
# Since it is not a standard part of AIX, it might be installed locally.
ac_getloadavg_LIBS=$LIBS
LIBS="-L/usr/local/lib $LIBS"
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lgetloadavg $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-10 22:14:09 +00:00
#ifdef __cplusplus
extern "C"
#endif
char getloadavg ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return getloadavg ();
2002-04-10 22:14:09 +00:00
;
return 0;
}
2001-10-19 12:33:10 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_getloadavg_getloadavg=yes
1999-10-07 13:06:22 +00:00
else
2002-04-10 22:14:09 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_getloadavg_getloadavg=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-04-10 22:14:09 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_getloadavg_getloadavg = yes; then
LIBS="-lgetloadavg $LIBS"
else
LIBS=$ac_getloadavg_LIBS
1999-10-07 13:06:22 +00:00
fi
fi
2002-04-10 22:14:09 +00:00
# Make sure it is really in the library, if we think we found it,
# otherwise set up the replacement function.
for ac_func in getloadavg
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1999-10-07 13:06:22 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
1999-10-07 13:06:22 +00:00
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
1999-10-07 13:06:22 +00:00
choke me
2002-11-28 01:08:07 +00:00
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
2002-04-10 22:14:09 +00:00
else
2006-12-20 19:57:39 +00:00
case " $LIBOBJS " in
2005-07-06 12:07:32 +00:00
*" getloadavg.$ac_objext "* ) ;;
2006-12-20 19:57:39 +00:00
*) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
;;
2005-07-06 12:07:32 +00:00
esac
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define C_GETLOADAVG 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
2002-04-10 22:14:09 +00:00
# Figure out what our getloadavg.c needs.
ac_have_func=no
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
1999-10-07 13:06:22 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <sys/dg_sys_info.h>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <sys/dg_sys_info.h>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-10 22:14:09 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_sys_dg_sys_info_h = yes; then
ac_have_func=yes
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define DGUX 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
2002-04-10 22:14:09 +00:00
LIBS="-ldgc $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
2002-04-10 22:14:09 +00:00
char dg_sys_info ();
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return dg_sys_info ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-10 22:14:09 +00:00
ac_cv_lib_dgc_dg_sys_info=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_dgc_dg_sys_info=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_lib_dgc_dg_sys_info = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_LIBDGC 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
2002-04-10 22:14:09 +00:00
LIBS="-ldgc $LIBS"
1999-10-07 13:06:22 +00:00
fi
2002-04-10 22:14:09 +00:00
fi
2001-10-19 12:33:10 +00:00
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_locale_h+set}" = set; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for locale.h" >&5
echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_header_locale_h+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
2001-10-19 12:33:10 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking locale.h usability" >&5
echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <locale.h>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking locale.h presence" >&5
echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <locale.h>
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-10 22:14:09 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for locale.h" >&5
echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_locale_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_locale_h=$ac_header_preproc
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
2002-04-10 22:14:09 +00:00
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
for ac_func in setlocale
1999-10-07 13:06:22 +00:00
do
2001-10-19 12:33:10 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1999-10-07 13:06:22 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
1999-10-07 13:06:22 +00:00
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
1999-10-07 13:06:22 +00:00
choke me
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
fi
done
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
# Irix 4.0.5F has the header but not the library.
if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
ac_have_func=yes
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define SVR4 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
if test $ac_have_func = no; then
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <inq_stats/cpustats.h>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <inq_stats/cpustats.h>
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_inq_stats_cpustats_h = yes; then
ac_have_func=yes
1999-10-07 13:06:22 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define UMAX 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define UMAX4_3 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
fi
if test $ac_have_func = no; then
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
2001-10-19 12:33:10 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <sys/cpustats.h>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <sys/cpustats.h>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-10 22:14:09 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-10 22:14:09 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2002-04-10 22:14:09 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2002-04-10 22:14:09 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_sys_cpustats_h=$ac_header_preproc
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test $ac_cv_header_sys_cpustats_h = yes; then
2002-11-07 17:33:03 +00:00
ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define UMAX 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
2002-04-10 22:14:09 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
fi
if test $ac_have_func = no; then
for ac_header in mach/mach.h
2002-04-08 06:17:17 +00:00
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-04-08 06:17:17 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-08 06:17:17 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-08 06:17:17 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-08 06:17:17 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
2002-11-07 17:33:03 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
fi
for ac_header in nlist.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
else
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
2002-04-08 06:17:17 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-04-10 22:14:09 +00:00
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
2000-04-16 14:54:52 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2000-04-16 14:54:52 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2002-04-10 22:14:09 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-04-16 14:54:52 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-10 22:14:09 +00:00
#include <nlist.h>
2000-04-16 14:54:52 +00:00
2001-10-19 12:33:10 +00:00
int
main ()
{
2002-04-10 22:14:09 +00:00
static struct nlist ac_aggr;
if (ac_aggr.n_un.n_name)
return 0;
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
2002-04-10 22:14:09 +00:00
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2005-07-06 12:07:32 +00:00
ac_cv_member_struct_nlist_n_un_n_name=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-08 12:32:10 +00:00
#include <nlist.h>
int
main ()
{
static struct nlist ac_aggr;
if (sizeof ac_aggr.n_un.n_name)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-08 12:32:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-08 12:32:10 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-08 12:32:10 +00:00
ac_cv_member_struct_nlist_n_un_n_name=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_member_struct_nlist_n_un_n_name=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000-04-16 14:54:52 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-11-08 12:32:10 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
2000-04-16 14:54:52 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-10 22:14:09 +00:00
#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-04-16 14:54:52 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define NLIST_NAME_UNION 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-04-16 14:54:52 +00:00
2002-04-10 22:14:09 +00:00
fi
2000-04-16 14:54:52 +00:00
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
done
2000-04-16 14:54:52 +00:00
2002-04-10 22:14:09 +00:00
fi
done
2000-04-16 14:54:52 +00:00
2002-11-07 17:33:03 +00:00
2002-04-10 22:14:09 +00:00
# Some definitions of getloadavg require that the program be installed setgid.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-08 12:32:10 +00:00
#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
2002-04-10 22:14:09 +00:00
#ifdef LDAV_PRIVILEGED
Yowza Am I SETGID yet
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2002-11-08 12:32:10 +00:00
$EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
2002-04-10 22:14:09 +00:00
ac_cv_func_getloadavg_setgid=yes
else
ac_cv_func_getloadavg_setgid=no
fi
rm -f conftest*
2000-04-16 14:54:52 +00:00
2002-04-10 22:14:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
2002-04-10 22:14:09 +00:00
if test $ac_cv_func_getloadavg_setgid = yes; then
NEED_SETGID=true
2000-04-16 14:54:52 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-10 22:14:09 +00:00
#define GETLOADAVG_PRIVILEGED 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-10 22:14:09 +00:00
2000-04-16 14:54:52 +00:00
else
2002-04-10 22:14:09 +00:00
NEED_SETGID=false
2000-04-16 14:54:52 +00:00
fi
2002-04-10 22:14:09 +00:00
if test $ac_cv_func_getloadavg_setgid = yes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
2002-04-10 22:14:09 +00:00
if test "${ac_cv_group_kmem+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# On Solaris, /dev/kmem is a symlink. Get info on the real file.
ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
# If we got an error (system does not support symlinks), try without -L.
test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
ac_cv_group_kmem=`echo $ac_ls_output \
2005-07-06 12:07:32 +00:00
| sed -ne 's/[ ][ ]*/ /g;
2002-04-10 22:14:09 +00:00
s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
/ /s/.* //;p;'`
2000-04-16 14:54:52 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
2002-04-10 22:14:09 +00:00
KMEM_GROUP=$ac_cv_group_kmem
2000-04-16 14:54:52 +00:00
fi
2002-04-10 22:14:09 +00:00
if test "x$ac_save_LIBS" = x; then
GETLOADAVG_LIBS=$LIBS
else
GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
2000-04-16 14:54:52 +00:00
fi
2002-04-10 22:14:09 +00:00
LIBS=$ac_save_LIBS
2000-04-16 14:54:52 +00:00
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
2002-04-14 01:42:18 +00:00
if test "${ac_cv_sys_largefile_source+set}" = set; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-06-21 14:26:56 +00:00
else
2002-04-14 01:42:18 +00:00
while :; do
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-14 01:42:18 +00:00
#include <stdio.h>
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-22 19:23:19 +00:00
return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
2002-04-14 01:42:18 +00:00
;
return 0;
}
_ACEOF
2006-12-22 19:23:19 +00:00
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
2006-12-20 19:57:39 +00:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2006-12-22 19:23:19 +00:00
(eval "$ac_link") 2>conftest.er1
2002-04-14 01:42:18 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_sys_largefile_source=no; break
2002-04-14 01:42:18 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
2002-04-14 01:42:18 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-14 01:42:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-14 01:42:18 +00:00
#define _LARGEFILE_SOURCE 1
#include <stdio.h>
int
main ()
{
2006-12-22 19:23:19 +00:00
return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
2002-04-14 01:42:18 +00:00
;
return 0;
}
_ACEOF
2006-12-22 19:23:19 +00:00
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
2006-12-20 19:57:39 +00:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2006-12-22 19:23:19 +00:00
(eval "$ac_link") 2>conftest.er1
2002-04-14 01:42:18 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2002-04-14 01:42:18 +00:00
ac_cv_sys_largefile_source=1; break
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
2002-04-14 01:42:18 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
ac_cv_sys_largefile_source=unknown
2002-04-14 01:42:18 +00:00
break
done
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
2006-12-22 19:23:19 +00:00
case $ac_cv_sys_largefile_source in #(
no | unknown) ;;
*)
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2002-04-14 01:42:18 +00:00
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
2002-11-07 17:33:03 +00:00
_ACEOF
2006-12-22 19:23:19 +00:00
;;
esac
2002-04-14 01:42:18 +00:00
rm -f conftest*
2000-06-21 14:26:56 +00:00
2002-04-14 01:42:18 +00:00
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
# in glibc 2.1.3, but that breaks too many other things.
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
2006-12-22 19:23:19 +00:00
if test $ac_cv_sys_largefile_source != unknown; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-04-14 01:42:18 +00:00
#define HAVE_FSEEKO 1
2002-11-07 17:33:03 +00:00
_ACEOF
2002-04-14 01:42:18 +00:00
2000-06-21 14:26:56 +00:00
fi
2002-11-07 17:33:03 +00:00
2005-07-26 21:44:41 +00:00
# Configure getopt.
# getopt.m4 serial 10
# The getopt module assume you want GNU getopt, with getopt_long etc,
# rather than vanilla POSIX getopt. This means your your code should
# always include <getopt.h> for the getopt prototypes.
# Prerequisites of lib/getopt*.
2005-07-26 21:44:41 +00:00
GETOPT_H=
for ac_header in getopt.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2005-07-26 21:44:41 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2005-07-26 21:44:41 +00:00
else
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2005-07-26 21:44:41 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2005-07-26 21:44:41 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2005-07-26 21:44:41 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2005-07-26 21:44:41 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2005-07-26 21:44:41 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2005-07-26 21:44:41 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2005-07-26 21:44:41 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2005-07-26 21:44:41 +00:00
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
2005-07-26 21:44:41 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2005-07-26 21:44:41 +00:00
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2005-07-26 21:44:41 +00:00
;;
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2005-07-26 21:44:41 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
eval "$as_ac_Header=\$ac_header_preproc"
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2005-07-26 21:44:41 +00:00
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
else
GETOPT_H=getopt.h
fi
done
if test -z "$GETOPT_H"; then
for ac_func in getopt_long_only
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2005-07-26 21:44:41 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2005-07-26 21:44:41 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2005-07-26 21:44:41 +00:00
choke me
#endif
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2005-07-26 21:44:41 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2005-07-26 21:44:41 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2005-07-26 21:44:41 +00:00
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2005-07-26 21:44:41 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-26 21:44:41 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2005-07-26 21:44:41 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
else
GETOPT_H=getopt.h
fi
done
fi
if test -z "$GETOPT_H"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether optreset is declared" >&5
echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
2005-07-26 21:44:41 +00:00
if test "${ac_cv_have_decl_optreset+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <getopt.h>
int
main ()
{
#ifndef optreset
2006-12-22 19:23:19 +00:00
(void) optreset;
2005-07-26 21:44:41 +00:00
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2005-07-26 21:44:41 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2005-07-26 21:44:41 +00:00
ac_cv_have_decl_optreset=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_have_decl_optreset=no
2005-07-26 21:44:41 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005-07-26 21:44:41 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
2005-07-26 21:44:41 +00:00
if test $ac_cv_have_decl_optreset = yes; then
GETOPT_H=getopt.h
fi
fi
if test -z "$GETOPT_H"; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
2005-07-26 21:44:41 +00:00
if test "${gl_cv_func_gnu_getopt+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
2005-07-26 21:44:41 +00:00
if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <getopt.h>
int
main ()
{
#ifndef getopt_clip
2006-12-22 19:23:19 +00:00
(void) getopt_clip;
2005-07-26 21:44:41 +00:00
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2005-07-26 21:44:41 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2005-07-26 21:44:41 +00:00
ac_cv_have_decl_getopt_clip=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_have_decl_getopt_clip=no
2005-07-26 21:44:41 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005-07-26 21:44:41 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
2005-07-26 21:44:41 +00:00
if test $ac_cv_have_decl_getopt_clip = yes; then
gl_cv_func_gnu_getopt=no
else
gl_cv_func_gnu_getopt=yes
fi
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <getopt.h>
int
main ()
{
char *myargv[3];
myargv[0] = "conftest";
myargv[1] = "-+";
myargv[2] = 0;
return getopt (2, myargv, "+a") != '?';
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>&5
2005-07-26 21:44:41 +00:00
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2006-12-20 19:57:39 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_try") 2>&5
2005-07-26 21:44:41 +00:00
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
gl_cv_func_gnu_getopt=yes
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
gl_cv_func_gnu_getopt=no
fi
2006-12-20 19:57:39 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2005-07-26 21:44:41 +00:00
fi
2006-12-20 19:57:39 +00:00
2005-07-26 21:44:41 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
2005-07-26 21:44:41 +00:00
if test "$gl_cv_func_gnu_getopt" = "no"; then
GETOPT_H=getopt.h
fi
fi
if test -n "$GETOPT_H"; then
GETOPT_H=getopt.h
cat >>confdefs.h <<\_ACEOF
#define __GETOPT_PREFIX rpl_
_ACEOF
:
GETOPTOBJS='getopt.o getopt1.o'
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
2002-11-28 01:08:07 +00:00
if test "${ac_cv_func_getpgrp_void+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Use it with a single arg.
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-28 01:08:07 +00:00
$ac_includes_default
int
main ()
{
getpgrp (0);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-28 01:08:07 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-28 01:08:07 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-28 01:08:07 +00:00
ac_cv_func_getpgrp_void=no
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_func_getpgrp_void=yes
2002-11-28 01:08:07 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-11-28 01:08:07 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
2002-11-28 01:08:07 +00:00
if test $ac_cv_func_getpgrp_void = yes; then
cat >>confdefs.h <<\_ACEOF
#define GETPGRP_VOID 1
_ACEOF
fi
2003-06-06 10:16:42 +00:00
for ac_func in strftime
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2003-06-06 10:16:42 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2003-06-06 10:16:42 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2003-06-06 10:16:42 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2003-06-06 10:16:42 +00:00
choke me
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2003-06-06 10:16:42 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2003-06-06 10:16:42 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-06-06 10:16:42 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2003-06-06 10:16:42 +00:00
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2003-06-06 10:16:42 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2003-06-06 10:16:42 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2003-06-06 10:16:42 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
else
# strftime is in -lintl on SCO UNIX.
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
2003-06-06 10:16:42 +00:00
if test "${ac_cv_lib_intl_strftime+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-06-06 10:16:42 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2003-06-06 10:16:42 +00:00
#ifdef __cplusplus
extern "C"
#endif
char strftime ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return strftime ();
2003-06-06 10:16:42 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2003-06-06 10:16:42 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-06-06 10:16:42 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2003-06-06 10:16:42 +00:00
ac_cv_lib_intl_strftime=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_intl_strftime=no
2003-06-06 10:16:42 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2003-06-06 10:16:42 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
2003-06-06 10:16:42 +00:00
if test $ac_cv_lib_intl_strftime = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRFTIME 1
_ACEOF
LIBS="-lintl $LIBS"
fi
fi
done
2002-04-14 01:42:18 +00:00
# UNIX98 PTYs.
for ac_func in grantpt
2001-10-19 12:33:10 +00:00
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-06-21 14:26:56 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2001-10-19 12:33:10 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2001-10-19 12:33:10 +00:00
choke me
#endif
2000-06-21 14:26:56 +00:00
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-06-21 14:26:56 +00:00
fi
2001-10-19 12:33:10 +00:00
done
2002-11-07 17:33:03 +00:00
2002-04-14 01:42:18 +00:00
# PTY-related GNU extensions.
2000-06-21 14:26:56 +00:00
2002-04-14 01:42:18 +00:00
for ac_func in getpt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-06-21 14:26:56 +00:00
else
2002-04-14 01:42:18 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2000-05-20 15:55:53 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
2000-05-20 15:55:53 +00:00
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2000-05-20 15:55:53 +00:00
choke me
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2006-12-22 19:23:19 +00:00
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2006-12-22 19:23:19 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-05-20 15:55:53 +00:00
fi
done
2002-11-07 17:33:03 +00:00
1999-10-07 13:06:22 +00:00
# Check this now, so that we will NOT find the above functions in ncurses.
# That is because we have not set up to link ncurses in lib-src.
# It's better to believe a function is not available
# than to expect to find it in ncurses.
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
1999-10-07 13:06:22 +00:00
LIBS="-lncurses $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char tparm ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return tparm ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
ac_cv_lib_ncurses_tparm=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_ncurses_tparm=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
2001-10-19 12:33:10 +00:00
if test $ac_cv_lib_ncurses_tparm = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define HAVE_LIBNCURSES 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
LIBS="-lncurses $LIBS"
fi
2002-11-07 17:33:03 +00:00
# Do we need the Hesiod library to provide the support routines?
if test "$with_hesiod" = yes ; then
# Don't set $LIBS here -- see comments above.
resolv=no
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for res_send" >&5
echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
if test "${ac_cv_func_res_send+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define res_send innocuous_res_send
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char res_send (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef res_send
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char res_send ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_res_send || defined __stub___res_send
choke me
2002-11-28 01:08:07 +00:00
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return res_send ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_func_res_send=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_func_res_send=no
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
if test $ac_cv_func_res_send = yes; then
:
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for __res_send" >&5
echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
if test "${ac_cv_func___res_send+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define __res_send innocuous___res_send
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char __res_send (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef __res_send
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char __res_send ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub___res_send || defined __stub_____res_send
choke me
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return __res_send ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_func___res_send=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_func___res_send=no
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
if test $ac_cv_func___res_send = yes; then
:
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
if test "${ac_cv_lib_resolv_res_send+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lresolv $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char res_send ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return res_send ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_lib_resolv_res_send=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_resolv_res_send=no
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
if test $ac_cv_lib_resolv_res_send = yes; then
resolv=yes
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
if test "${ac_cv_lib_resolv___res_send+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lresolv $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char __res_send ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return __res_send ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_lib_resolv___res_send=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_resolv___res_send=no
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
if test $ac_cv_lib_resolv___res_send = yes; then
resolv=yes
fi
fi
fi
fi
if test "$resolv" = yes ; then
RESOLVLIB=-lresolv
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_LIBRESOLV 1
2002-11-07 17:33:03 +00:00
_ACEOF
else
RESOLVLIB=
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
if test "${ac_cv_func_hes_getmailhost+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define hes_getmailhost innocuous_hes_getmailhost
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char hes_getmailhost (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef hes_getmailhost
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char hes_getmailhost ();
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
choke me
2002-11-28 01:08:07 +00:00
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return hes_getmailhost ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_func_hes_getmailhost=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_func_hes_getmailhost=no
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
if test $ac_cv_func_hes_getmailhost = yes; then
:
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lhesiod $RESOLVLIB $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char hes_getmailhost ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return hes_getmailhost ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ac_cv_lib_hesiod_hes_getmailhost=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_hesiod_hes_getmailhost=no
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_LIBHESIOD 1
2002-11-07 17:33:03 +00:00
_ACEOF
else
:
fi
fi
fi
# These tell us which Kerberos-related libraries to use.
if test "${with_kerberos+set}" = set; then
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_lib_com_err_com_err+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcom_err $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char com_err ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return com_err ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
ac_cv_lib_com_err_com_err=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_com_err_com_err=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
2001-10-19 12:33:10 +00:00
if test $ac_cv_lib_com_err_com_err = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define HAVE_LIBCOM_ERR 1
2002-11-07 17:33:03 +00:00
_ACEOF
LIBS="-lcom_err $LIBS"
fi
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lk5crypto $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char mit_des_cbc_encrypt ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return mit_des_cbc_encrypt ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
2001-10-19 12:33:10 +00:00
if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define HAVE_LIBK5CRYPTO 1
2002-11-07 17:33:03 +00:00
_ACEOF
LIBS="-lk5crypto $LIBS"
fi
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcrypto $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char mit_des_cbc_encrypt ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return mit_des_cbc_encrypt ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_crypto_mit_des_cbc_encrypt=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
2001-10-19 12:33:10 +00:00
if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define HAVE_LIBCRYPTO 1
2002-11-07 17:33:03 +00:00
_ACEOF
LIBS="-lcrypto $LIBS"
fi
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lkrb5 $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char krb5_init_context ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return krb5_init_context ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
ac_cv_lib_krb5_krb5_init_context=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_krb5_krb5_init_context=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
2001-10-19 12:33:10 +00:00
if test $ac_cv_lib_krb5_krb5_init_context = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define HAVE_LIBKRB5 1
2002-11-07 17:33:03 +00:00
_ACEOF
LIBS="-lkrb5 $LIBS"
fi
if test "${with_kerberos5+set}" != set; then
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldes425 $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char des_cbc_encrypt ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return des_cbc_encrypt ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
ac_cv_lib_des425_des_cbc_encrypt=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_des425_des_cbc_encrypt=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
2001-10-19 12:33:10 +00:00
if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define HAVE_LIBDES425 1
2002-11-07 17:33:03 +00:00
_ACEOF
LIBS="-ldes425 $LIBS"
else
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldes $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char des_cbc_encrypt ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return des_cbc_encrypt ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
ac_cv_lib_des_des_cbc_encrypt=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_des_des_cbc_encrypt=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
2001-10-19 12:33:10 +00:00
if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define HAVE_LIBDES 1
2002-11-07 17:33:03 +00:00
_ACEOF
LIBS="-ldes $LIBS"
fi
fi
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lkrb4 $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char krb_get_cred ();
int
2006-12-22 19:23:19 +00:00
main ()
{
return krb_get_cred ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
2006-12-20 19:57:39 +00:00
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2006-12-22 19:23:19 +00:00
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2006-12-22 19:23:19 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
ac_cv_lib_krb4_krb_get_cred=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_krb4_krb_get_cred=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
2001-10-19 12:33:10 +00:00
if test $ac_cv_lib_krb4_krb_get_cred = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define HAVE_LIBKRB4 1
2002-11-07 17:33:03 +00:00
_ACEOF
LIBS="-lkrb4 $LIBS"
else
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lkrb $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char krb_get_cred ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return krb_get_cred ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
ac_cv_lib_krb_krb_get_cred=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_krb_krb_get_cred=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
2001-10-19 12:33:10 +00:00
if test $ac_cv_lib_krb_krb_get_cred = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define HAVE_LIBKRB 1
2002-11-07 17:33:03 +00:00
_ACEOF
LIBS="-lkrb $LIBS"
fi
fi
fi
if test "${with_kerberos5+set}" = set; then
2001-10-19 12:33:10 +00:00
for ac_header in krb5.h
do
2001-10-19 12:33:10 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
fi
2002-11-07 17:33:03 +00:00
done
else
2001-10-19 12:33:10 +00:00
for ac_header in des.h
do
2001-10-19 12:33:10 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
else
2001-10-19 12:33:10 +00:00
for ac_header in kerberosIV/des.h
do
2001-10-19 12:33:10 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
else
2001-10-19 12:33:10 +00:00
for ac_header in kerberos/des.h
do
2001-10-19 12:33:10 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
fi
2002-11-07 17:33:03 +00:00
done
2002-04-10 22:14:09 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-05-10 08:36:08 +00:00
done
2002-04-10 22:14:09 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-05-10 08:36:08 +00:00
done
2002-04-10 22:14:09 +00:00
2002-11-07 17:33:03 +00:00
2002-05-10 08:36:08 +00:00
for ac_header in krb.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-05-10 08:36:08 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
else
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
2002-05-10 08:36:08 +00:00
else
2002-11-07 17:33:03 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
else
2001-10-19 12:33:10 +00:00
for ac_header in kerberosIV/krb.h
do
2001-10-19 12:33:10 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
else
2001-10-19 12:33:10 +00:00
for ac_header in kerberos/krb.h
do
2001-10-19 12:33:10 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2003-12-24 10:46:12 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2003-12-24 10:46:12 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
fi
2002-11-07 17:33:03 +00:00
done
fi
2002-11-07 17:33:03 +00:00
done
fi
2002-11-07 17:33:03 +00:00
done
fi
2001-10-19 12:33:10 +00:00
for ac_header in com_err.h
do
2001-10-19 12:33:10 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2005-07-06 12:07:32 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2001-10-19 12:33:10 +00:00
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
fi
2002-11-07 17:33:03 +00:00
done
fi
1999-10-07 13:06:22 +00:00
# Solaris requires -lintl if you want strerror (which calls dgettext)
# to return localized messages.
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
ac_check_lib_save_LIBS=$LIBS
1999-10-07 13:06:22 +00:00
LIBS="-lintl $LIBS"
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char dgettext ();
int
main ()
{
2006-12-20 19:57:39 +00:00
return dgettext ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
ac_cv_lib_intl_dgettext=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_lib_intl_dgettext=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
2001-10-19 12:33:10 +00:00
if test $ac_cv_lib_intl_dgettext = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define HAVE_LIBINTL 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
LIBS="-lintl $LIBS"
fi
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${emacs_cv_localtime_cache+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
if test x$ac_cv_func_tzset = xyes; then
if test "$cross_compiling" = yes; then
# If we have tzset, assume the worst when cross-compiling.
emacs_cv_localtime_cache=yes
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-10-07 13:06:22 +00:00
#include <time.h>
extern char **environ;
unset_TZ ()
{
char **from, **to;
for (to = from = environ; (*to = *from); from++)
if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
to++;
}
char TZ_GMT0[] = "TZ=GMT0";
char TZ_PST8[] = "TZ=PST8";
main()
{
time_t now = time ((time_t *) 0);
int hour_GMT0, hour_unset;
if (putenv (TZ_GMT0) != 0)
exit (1);
hour_GMT0 = localtime (&now)->tm_hour;
unset_TZ ();
hour_unset = localtime (&now)->tm_hour;
if (putenv (TZ_PST8) != 0)
exit (1);
if (localtime (&now)->tm_hour == hour_GMT0)
exit (1);
unset_TZ ();
if (localtime (&now)->tm_hour != hour_unset)
exit (1);
exit (0);
}
2001-10-19 12:33:10 +00:00
_ACEOF
rm -f conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2006-12-20 19:57:39 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_try") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); }; }; then
1999-10-07 13:06:22 +00:00
emacs_cv_localtime_cache=no
else
2001-10-19 12:33:10 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
( exit $ac_status )
2001-10-19 12:33:10 +00:00
emacs_cv_localtime_cache=yes
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
1999-10-07 13:06:22 +00:00
else
# If we lack tzset, report that localtime does not cache TZ,
# since we can't invalidate the cache if we don't have tzset.
emacs_cv_localtime_cache=no
fi
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
1999-10-07 13:06:22 +00:00
if test $emacs_cv_localtime_cache = yes; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
1999-10-07 13:06:22 +00:00
#define LOCALTIME_CACHE 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
fi
if test "x$HAVE_TIMEVAL" = xyes; then
2001-10-19 12:33:10 +00:00
for ac_func in gettimeofday
2000-06-23 15:43:44 +00:00
do
2001-10-19 12:33:10 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-06-23 15:43:44 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2000-06-23 15:43:44 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
2000-06-23 15:43:44 +00:00
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2000-06-23 15:43:44 +00:00
choke me
2002-11-28 01:08:07 +00:00
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-06-23 15:43:44 +00:00
fi
done
2002-04-14 01:42:18 +00:00
if test $ac_cv_func_gettimeofday = yes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-10-07 13:06:22 +00:00
2000-06-19 10:59:57 +00:00
#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#else
#include <time.h>
#endif
#endif
2001-10-19 12:33:10 +00:00
int
main ()
{
2000-06-19 10:59:57 +00:00
struct timeval time;
2002-04-14 01:42:18 +00:00
gettimeofday (&time, 0);
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-22 19:23:19 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
2006-12-20 19:57:39 +00:00
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2006-12-22 19:23:19 +00:00
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2006-12-22 19:23:19 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1999-10-07 13:06:22 +00:00
emacs_cv_gettimeofday_two_arguments=yes
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_gettimeofday_two_arguments=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
2002-04-14 01:42:18 +00:00
if test $emacs_cv_gettimeofday_two_arguments = no; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
1999-10-07 13:06:22 +00:00
#define GETTIMEOFDAY_ONE_ARGUMENT 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
2002-04-14 01:42:18 +00:00
fi
1999-10-07 13:06:22 +00:00
fi
fi
ok_so_far=yes
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_func_socket+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define socket innocuous_socket
1999-10-07 13:06:22 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char socket (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef socket
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char socket ();
1999-10-07 13:06:22 +00:00
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_socket || defined __stub___socket
1999-10-07 13:06:22 +00:00
choke me
2002-11-28 01:08:07 +00:00
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return socket ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
ac_cv_func_socket=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_func_socket=no
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
echo "${ECHO_T}$ac_cv_func_socket" >&6; }
2001-10-19 12:33:10 +00:00
if test $ac_cv_func_socket = yes; then
1999-10-07 13:06:22 +00:00
:
else
2001-10-19 12:33:10 +00:00
ok_so_far=no
1999-10-07 13:06:22 +00:00
fi
if test $ok_so_far = yes; then
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_netinet_in_h+set}" = set; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for netinet/in.h" >&5
echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_header_netinet_in_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <netinet/in.h>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-10-07 13:06:22 +00:00
#include <netinet/in.h>
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for netinet/in.h" >&5
echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_netinet_in_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_netinet_in_h=$ac_header_preproc
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
2002-11-07 17:33:03 +00:00
fi
2001-10-19 12:33:10 +00:00
if test $ac_cv_header_netinet_in_h = yes; then
1999-10-07 13:06:22 +00:00
:
else
2001-10-19 12:33:10 +00:00
ok_so_far=no
1999-10-07 13:06:22 +00:00
fi
2002-11-07 17:33:03 +00:00
1999-10-07 13:06:22 +00:00
fi
if test $ok_so_far = yes; then
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_arpa_inet_h+set}" = set; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_header_arpa_inet_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <arpa/inet.h>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-10-07 13:06:22 +00:00
#include <arpa/inet.h>
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
1999-10-07 13:06:22 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
if test "${ac_cv_header_arpa_inet_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_arpa_inet_h=$ac_header_preproc
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
2002-11-07 17:33:03 +00:00
fi
2001-10-19 12:33:10 +00:00
if test $ac_cv_header_arpa_inet_h = yes; then
1999-10-07 13:06:22 +00:00
:
else
2001-10-19 12:33:10 +00:00
ok_so_far=no
1999-10-07 13:06:22 +00:00
fi
2002-11-07 17:33:03 +00:00
1999-10-07 13:06:22 +00:00
fi
if test $ok_so_far = yes; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
1999-10-07 13:06:22 +00:00
#define HAVE_INET_SOCKETS 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
fi
2003-09-13 23:31:33 +00:00
2003-12-24 16:46:28 +00:00
for ac_header in sys/ioctl.h
2003-09-13 23:31:33 +00:00
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2003-09-13 23:31:33 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2003-09-13 23:31:33 +00:00
else
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2003-09-13 23:31:33 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-09-13 23:31:33 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-09-13 23:31:33 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-13 23:31:33 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2003-09-13 23:31:33 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2003-09-13 23:31:33 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2003-09-13 23:31:33 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2003-09-13 23:31:33 +00:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2003-09-13 23:31:33 +00:00
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
2006-12-20 19:57:39 +00:00
2003-09-13 23:31:33 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2003-09-13 23:31:33 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2003-09-13 23:31:33 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-13 23:31:33 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2003-09-13 23:31:33 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2003-09-13 23:31:33 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-09-13 23:31:33 +00:00
;;
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2003-09-13 23:31:33 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2003-09-13 23:31:33 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2003-09-13 23:31:33 +00:00
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
1999-10-07 13:06:22 +00:00
if test -f /usr/lpp/X11/bin/smt.exp; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
1999-10-07 13:06:22 +00:00
#define HAVE_AIX_SMT_EXP 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
1999-11-08 16:26:25 +00:00
if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
1999-11-08 16:26:25 +00:00
#define HAVE_DEV_PTMX 1
2002-11-07 17:33:03 +00:00
_ACEOF
1999-11-08 16:26:25 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
1999-11-08 16:26:25 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_type_pid_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-02-12 16:37:27 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
$ac_includes_default
2006-12-20 19:57:39 +00:00
typedef pid_t ac__type_new_;
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
if ((ac__type_new_ *) 0)
2001-10-19 12:33:10 +00:00
return 0;
2006-12-20 19:57:39 +00:00
if (sizeof (ac__type_new_))
2001-10-19 12:33:10 +00:00
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2000-02-12 16:37:27 +00:00
ac_cv_type_pid_t=yes
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_type_pid_t=no
2000-02-12 16:37:27 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000-02-12 16:37:27 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
2001-10-19 12:33:10 +00:00
if test $ac_cv_type_pid_t = yes; then
:
else
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2000-02-12 16:37:27 +00:00
#define pid_t int
2002-11-07 17:33:03 +00:00
_ACEOF
2000-02-12 16:37:27 +00:00
fi
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
for ac_header in vfork.h
2001-10-19 12:33:10 +00:00
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-04-10 22:14:09 +00:00
else
2002-11-07 17:33:03 +00:00
# Is the header compilable?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-07 17:33:03 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-07 17:33:03 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-07 17:33:03 +00:00
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_header_compiler=no
2002-11-07 17:33:03 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
2002-11-07 17:33:03 +00:00
# Is the header present?
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2002-11-07 17:33:03 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
#include <$ac_header>
_ACEOF
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-08 12:32:10 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2001-10-19 12:33:10 +00:00
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-11-07 17:33:03 +00:00
ac_header_preproc=yes
2000-02-12 16:37:27 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
ac_header_preproc=no
2000-02-12 16:37:27 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
rm -f conftest.err conftest.$ac_ext
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
2002-11-07 17:33:03 +00:00
# So? What about this header?
2005-07-06 12:07:32 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-07-23 11:16:30 +00:00
;;
2005-07-06 12:07:32 +00:00
no:yes:* )
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-07-23 11:16:30 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2005-07-06 12:07:32 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2006-12-20 19:57:39 +00:00
2003-07-23 11:16:30 +00:00
;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2002-11-07 17:33:03 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2005-07-06 12:07:32 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2000-02-12 16:37:27 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_Header'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2002-11-07 17:33:03 +00:00
fi
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-02-12 16:37:27 +00:00
2000-09-06 21:42:35 +00:00
fi
2002-11-07 17:33:03 +00:00
2001-10-19 12:33:10 +00:00
done
2000-09-06 21:42:35 +00:00
2002-11-07 17:33:03 +00:00
2001-10-19 12:33:10 +00:00
for ac_func in fork vfork
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2001-10-19 12:33:10 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-09-06 12:22:09 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2005-07-06 12:07:32 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2000-09-06 12:22:09 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2003-07-23 11:16:30 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
2005-07-06 12:07:32 +00:00
2003-07-23 11:16:30 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
2005-07-06 12:07:32 +00:00
#undef $ac_func
2006-12-20 19:57:39 +00:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2001-10-19 12:33:10 +00:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
2000-09-06 12:22:09 +00:00
/* 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. */
2006-12-20 19:57:39 +00:00
#if defined __stub_$ac_func || defined __stub___$ac_func
2000-09-06 12:22:09 +00:00
choke me
#endif
2003-07-23 11:16:30 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
return $ac_func ();
2001-10-19 12:33:10 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2001-10-19 12:33:10 +00:00
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
eval "$as_ac_var=no"
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
ac_res=`eval echo '${'$as_ac_var'}'`
{ echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
2001-10-19 12:33:10 +00:00
if test `eval echo '${'$as_ac_var'}'` = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
2001-10-19 12:33:10 +00:00
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
2000-09-06 12:22:09 +00:00
fi
2001-10-19 12:33:10 +00:00
done
2000-09-06 12:22:09 +00:00
2001-10-19 12:33:10 +00:00
if test "x$ac_cv_func_fork" = xyes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for working fork" >&5
echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_func_fork_works+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-09-06 12:22:09 +00:00
else
2001-10-19 12:33:10 +00:00
if test "$cross_compiling" = yes; then
ac_cv_func_fork_works=cross
else
cat >conftest.$ac_ext <<_ACEOF
2006-12-20 19:57:39 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
/* By Ruediger Kuhlmann. */
return fork () < 0;
;
return 0;
}
2001-10-19 12:33:10 +00:00
_ACEOF
rm -f conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2006-12-20 19:57:39 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_try") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); }; }; then
ac_cv_func_fork_works=yes
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
( exit $ac_status )
2001-10-19 12:33:10 +00:00
ac_cv_func_fork_works=no
fi
2006-12-20 19:57:39 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
2001-10-19 12:33:10 +00:00
2002-11-08 12:32:10 +00:00
else
ac_cv_func_fork_works=$ac_cv_func_fork
2001-10-19 12:33:10 +00:00
fi
if test "x$ac_cv_func_fork_works" = xcross; then
case $host in
*-*-amigaos* | *-*-msdosdjgpp*)
# Override, as these systems have only a dummy fork() stub
ac_cv_func_fork_works=no
;;
*)
ac_cv_func_fork_works=yes
;;
esac
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
2000-09-06 12:22:09 +00:00
fi
2000-09-06 21:42:35 +00:00
ac_cv_func_vfork_works=$ac_cv_func_vfork
2001-10-19 12:33:10 +00:00
if test "x$ac_cv_func_vfork" = xyes; then
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for working vfork" >&5
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_func_vfork_works+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
ac_cv_func_vfork_works=cross
2000-09-06 12:22:09 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2000-09-06 21:42:35 +00:00
/* Thanks to Paul Eggert for this test. */
2006-12-20 19:57:39 +00:00
$ac_includes_default
2003-07-23 11:16:30 +00:00
#include <sys/wait.h>
2006-12-22 19:23:19 +00:00
#ifdef HAVE_VFORK_H
2001-10-19 12:33:10 +00:00
# include <vfork.h>
2000-09-06 21:42:35 +00:00
#endif
/* On some sparc systems, changes by the child to local and incoming
2001-10-19 12:33:10 +00:00
argument registers are propagated back to the parent. The compiler
is told about this with #include <vfork.h>, but some compilers
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
static variable whose address is put into a register that is
clobbered by the vfork. */
2003-07-23 11:16:30 +00:00
static void
2000-09-06 12:22:09 +00:00
#ifdef __cplusplus
2000-09-06 21:42:35 +00:00
sparc_address_test (int arg)
2001-10-19 12:33:10 +00:00
# else
2000-09-06 21:42:35 +00:00
sparc_address_test (arg) int arg;
2000-09-06 12:22:09 +00:00
#endif
{
2000-09-06 21:42:35 +00:00
static pid_t child;
if (!child) {
child = vfork ();
if (child < 0) {
perror ("vfork");
_exit(2);
}
if (!child) {
arg = getpid();
write(-1, "", 0);
_exit (arg);
}
}
}
2001-10-19 12:33:10 +00:00
int
main ()
{
2000-09-06 21:42:35 +00:00
pid_t parent = getpid ();
pid_t child;
2000-09-06 12:22:09 +00:00
2003-07-23 11:16:30 +00:00
sparc_address_test (0);
2000-09-06 12:22:09 +00:00
2000-09-06 21:42:35 +00:00
child = vfork ();
2000-09-06 12:22:09 +00:00
2000-09-06 21:42:35 +00:00
if (child == 0) {
2001-10-19 12:33:10 +00:00
/* Here is another test for sparc vfork register problems. This
test uses lots of local variables, at least as many local
variables as main has allocated so far including compiler
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
reuse the register of parent for one of the local variables,
since it will think that parent can't possibly be used any more
in this routine. Assigning to the local variable will thus
munge parent in the parent process. */
2000-09-06 21:42:35 +00:00
pid_t
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
/* Convince the compiler that p..p7 are live; otherwise, it might
use the same hardware register for all 8 local variables. */
if (p != p1 || p != p2 || p != p3 || p != p4
|| p != p5 || p != p6 || p != p7)
_exit(1);
2000-09-06 12:22:09 +00:00
2001-10-19 12:33:10 +00:00
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
from child file descriptors. If the child closes a descriptor
before it execs or exits, this munges the parent's descriptor
as well. Test for this by closing stdout in the child. */
2000-09-06 21:42:35 +00:00
_exit(close(fileno(stdout)) != 0);
} else {
int status;
struct stat st;
while (wait(&status) != child)
;
2006-12-20 19:57:39 +00:00
return (
2000-09-06 21:42:35 +00:00
/* Was there some problem with vforking? */
child < 0
/* Did the child fail? (This shouldn't happen.) */
|| status
/* Did the vfork/compiler bug occur? */
|| parent != getpid()
2000-09-06 12:22:09 +00:00
2000-09-06 21:42:35 +00:00
/* Did the file descriptor bug occur? */
|| fstat(fileno(stdout), &st) != 0
);
}
}
2001-10-19 12:33:10 +00:00
_ACEOF
rm -f conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2006-12-20 19:57:39 +00:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_try") 2>&5
2001-10-19 12:33:10 +00:00
ac_status=$?
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001-10-19 12:33:10 +00:00
(exit $ac_status); }; }; then
2000-09-06 21:42:35 +00:00
ac_cv_func_vfork_works=yes
2000-09-06 12:22:09 +00:00
else
2001-10-19 12:33:10 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-11-07 17:33:03 +00:00
( exit $ac_status )
2001-10-19 12:33:10 +00:00
ac_cv_func_vfork_works=no
fi
2006-12-20 19:57:39 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2000-09-06 12:22:09 +00:00
fi
2006-12-20 19:57:39 +00:00
2000-09-06 12:22:09 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
2000-09-06 12:22:09 +00:00
2001-10-19 12:33:10 +00:00
fi;
if test "x$ac_cv_func_fork_works" = xcross; then
2005-07-06 12:07:32 +00:00
ac_cv_func_vfork_works=$ac_cv_func_vfork
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
2000-09-06 12:22:09 +00:00
fi
2001-10-19 12:33:10 +00:00
if test "x$ac_cv_func_vfork_works" = xyes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2001-10-19 12:33:10 +00:00
#define HAVE_WORKING_VFORK 1
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
else
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2000-09-06 21:42:35 +00:00
#define vfork fork
2002-11-07 17:33:03 +00:00
_ACEOF
2000-09-06 12:22:09 +00:00
fi
2001-10-19 12:33:10 +00:00
if test "x$ac_cv_func_fork_works" = xyes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2001-10-19 12:33:10 +00:00
#define HAVE_WORKING_FORK 1
2002-11-07 17:33:03 +00:00
_ACEOF
2000-09-06 12:22:09 +00:00
2001-10-19 12:33:10 +00:00
fi
2000-02-12 16:37:27 +00:00
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
2003-01-07 17:53:56 +00:00
if test "${emacs_cv_langinfo_codeset+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-01-07 17:53:56 +00:00
#include <langinfo.h>
int
main ()
{
char* cs = nl_langinfo(CODESET);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link") 2>conftest.er1
2003-01-07 17:53:56 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-01-07 17:53:56 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
2003-01-07 17:53:56 +00:00
emacs_cv_langinfo_codeset=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_langinfo_codeset=no
2003-01-07 17:53:56 +00:00
fi
2006-12-20 19:57:39 +00:00
2006-12-22 19:23:19 +00:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2005-07-06 12:07:32 +00:00
conftest$ac_exeext conftest.$ac_ext
2003-01-07 17:53:56 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
2003-01-07 17:53:56 +00:00
if test $emacs_cv_langinfo_codeset = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_LANGINFO_CODESET 1
_ACEOF
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
2001-10-19 12:33:10 +00:00
if test "${ac_cv_type_size_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-07-24 09:45:16 +00:00
else
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-19 12:33:10 +00:00
$ac_includes_default
2006-12-20 19:57:39 +00:00
typedef size_t ac__type_new_;
2001-10-19 12:33:10 +00:00
int
main ()
{
2006-12-20 19:57:39 +00:00
if ((ac__type_new_ *) 0)
2001-10-19 12:33:10 +00:00
return 0;
2006-12-20 19:57:39 +00:00
if (sizeof (ac__type_new_))
2001-10-19 12:33:10 +00:00
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2001-10-19 12:33:10 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-07 17:33:03 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2000-07-24 09:45:16 +00:00
ac_cv_type_size_t=yes
else
2001-10-19 12:33:10 +00:00
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_type_size_t=no
2000-07-24 09:45:16 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000-07-24 09:45:16 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
2001-10-19 12:33:10 +00:00
if test $ac_cv_type_size_t = yes; then
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<_ACEOF
#define HAVE_SIZE_T 1
_ACEOF
2000-07-24 09:45:16 +00:00
fi
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for mbstate_t" >&5
echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
2003-06-06 10:16:42 +00:00
if test "${ac_cv_type_mbstate_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-06-06 10:16:42 +00:00
$ac_includes_default
# include <wchar.h>
int
main ()
{
mbstate_t x; return sizeof x;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2003-06-06 10:16:42 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-06-06 10:16:42 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-06-06 10:16:42 +00:00
ac_cv_type_mbstate_t=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
ac_cv_type_mbstate_t=no
2003-06-06 10:16:42 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-06-06 10:16:42 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
2003-06-06 10:16:42 +00:00
if test $ac_cv_type_mbstate_t = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_MBSTATE_T 1
_ACEOF
else
cat >>confdefs.h <<\_ACEOF
#define mbstate_t int
_ACEOF
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for C restrict keyword" >&5
echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
2002-11-21 20:38:07 +00:00
if test "${emacs_cv_c_restrict+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-21 20:38:07 +00:00
void fred (int *restrict x);
int
main ()
{
2002-04-14 01:42:18 +00:00
2002-11-21 20:38:07 +00:00
;
return 0;
}
2002-11-07 17:33:03 +00:00
_ACEOF
2002-11-21 20:38:07 +00:00
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-21 20:38:07 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-21 20:38:07 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-21 20:38:07 +00:00
emacs_cv_c_restrict=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-21 20:38:07 +00:00
void fred (int *__restrict x);
int
main ()
{
2002-11-07 17:33:03 +00:00
2002-11-21 20:38:07 +00:00
;
return 0;
}
2002-11-07 17:33:03 +00:00
_ACEOF
2002-11-21 20:38:07 +00:00
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-21 20:38:07 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-21 20:38:07 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-21 20:38:07 +00:00
emacs_cv_c_restrict=__restrict
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_c_restrict=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
2002-11-21 20:38:07 +00:00
case "$emacs_cv_c_restrict" in
yes) emacs_restrict=restrict;;
no) emacs_restrict="";;
*) emacs_restrict="$emacs_cv_c_restrict";;
esac
if test "$emacs_restrict" != __restrict; then
2002-04-14 01:42:18 +00:00
2002-11-21 20:38:07 +00:00
cat >>confdefs.h <<_ACEOF
#define __restrict $emacs_restrict
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
2002-11-21 20:38:07 +00:00
if test "${emacs_cv_c_restrict_arr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-11-21 20:38:07 +00:00
void fred (int x[__restrict]);
int
main ()
{
2002-04-14 01:42:18 +00:00
2002-11-21 20:38:07 +00:00
;
return 0;
}
2002-11-07 17:33:03 +00:00
_ACEOF
2002-11-21 20:38:07 +00:00
rm -f conftest.$ac_objext
2006-12-20 19:57:39 +00:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
2002-11-21 20:38:07 +00:00
ac_status=$?
2005-07-06 12:07:32 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-11-21 20:38:07 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-12-22 19:23:19 +00:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-11-21 20:38:07 +00:00
emacs_cv_c_restrict_arr=yes
else
echo "$as_me: failed program was:" >&5
2003-07-23 11:16:30 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2006-12-20 19:57:39 +00:00
emacs_cv_c_restrict_arr=no
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-11-21 20:38:07 +00:00
fi
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
2002-11-21 20:38:07 +00:00
if test "$emacs_cv_c_restrict_arr" = yes; then
2002-04-14 01:42:18 +00:00
2002-11-07 17:33:03 +00:00
cat >>confdefs.h <<\_ACEOF
2002-11-21 20:38:07 +00:00
#define __restrict_arr __restrict
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
fi
2002-11-07 17:33:03 +00:00
2002-11-21 20:38:07 +00:00
# Set up the CFLAGS for real compilation, so we can substitute it.
CFLAGS="$REAL_CFLAGS"
CPPFLAGS="$REAL_CPPFLAGS"
#### Find out which version of Emacs this is.
version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
| sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
if test x"${version}" = x; then
{ { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
{ (exit 1); exit 1; }; }
fi
### Specify what sort of things we'll be editing into Makefile and config.h.
### Use configuration here uncanonicalized to avoid exceeding size limits.
2003-01-07 17:53:56 +00:00
2002-11-21 20:38:07 +00:00
cat >>confdefs.h <<_ACEOF
#define EMACS_CONFIGURATION "${canonical}"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define config_machfile "${machfile}"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define config_opsysfile "${opsysfile}"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define UNEXEC_SRC ${UNEXEC_SRC}
_ACEOF
if test "${HAVE_X_WINDOWS}" = "yes" ; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_X_WINDOWS 1
_ACEOF
fi
if test "${USE_X_TOOLKIT}" != "none" ; then
cat >>confdefs.h <<\_ACEOF
#define USE_X_TOOLKIT 1
_ACEOF
fi
if test "${HAVE_X11}" = "yes" ; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_X11 1
_ACEOF
fi
if test "${HAVE_XFREE386}" = "yes" ; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_XFREE386 1
_ACEOF
fi
if test "${HAVE_MENUS}" = "yes" ; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_MENUS 1
_ACEOF
fi
if test "${GNU_MALLOC}" = "yes" ; then
cat >>confdefs.h <<\_ACEOF
#define GNU_MALLOC 1
_ACEOF
fi
if test "${REL_ALLOC}" = "yes" ; then
cat >>confdefs.h <<\_ACEOF
#define REL_ALLOC 1
_ACEOF
fi
2002-11-07 17:33:03 +00:00
1999-10-07 13:06:22 +00:00
#### Report on what we decided to do.
2003-01-19 21:50:03 +00:00
#### Report GTK as a toolkit, even if it doesn't use Xt.
#### It makes printing result more understandable as using GTK sets
#### toolkit_scroll_bars to yes by default.
if test "${HAVE_GTK}" = "yes"; then
USE_X_TOOLKIT=GTK
fi
1999-10-07 13:06:22 +00:00
echo "
Configured for \`${canonical}'.
Where should the build process find the source code? ${srcdir}
What operating system and machine description files should Emacs use?
\`${opsysfile}' and \`${machfile}'
What compiler should emacs be built with? ${CC} ${CFLAGS}
Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
2000-09-06 21:42:35 +00:00
Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
2000-09-14 15:15:16 +00:00
Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
1999-10-07 13:06:22 +00:00
What window system should Emacs use? ${window_system}
What toolkit should Emacs use? ${USE_X_TOOLKIT}"
1999-10-07 13:06:22 +00:00
if test -n "${x_includes}"; then
echo " Where do we find X Windows header files? ${x_includes}"
else
echo " Where do we find X Windows header files? Standard dirs"
fi
if test -n "${x_libraries}"; then
echo " Where do we find X Windows libraries? ${x_libraries}"
else
echo " Where do we find X Windows libraries? Standard dirs"
fi
echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
echo " Does Emacs use -lXpm? ${HAVE_XPM}"
echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
echo " Does Emacs use -lungif? ${HAVE_GIF}"
echo " Does Emacs use -lpng? ${HAVE_PNG}"
echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
echo
if test $USE_XASSERTS = yes; then
echo " Compiling with asserts turned on."
CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
echo
fi
1999-10-07 13:06:22 +00:00
# Remove any trailing slashes in these variables.
test "${prefix}" != NONE &&
prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
test "${exec_prefix}" != NONE &&
exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
2001-02-23 13:32:13 +00:00
## Check if the C preprocessor will convert `..' to `. .'. If so, set
## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
## from Makefile.c can correctly provide the arg `-traditional' to the
## C preprocessor.
2001-10-19 12:33:10 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-07-23 11:16:30 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-02-23 13:32:13 +00:00
yes..yes
2001-10-19 12:33:10 +00:00
_ACEOF
2001-02-23 13:32:13 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2002-11-08 12:32:10 +00:00
$EGREP "yes..yes" >/dev/null 2>&1; then
2001-02-23 13:32:13 +00:00
CPP_NEED_TRADITIONAL=no
else
CPP_NEED_TRADITIONAL=yes
fi
rm -f conftest*
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
ac_config_commands="$ac_config_commands default"
2001-10-19 12:33:10 +00:00
cat >confcache <<\_ACEOF
1999-10-07 13:06:22 +00:00
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
2001-10-19 12:33:10 +00:00
# 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.
1999-10-07 13:06:22 +00:00
#
2001-10-19 12:33:10 +00:00
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
1999-10-07 13:06:22 +00:00
#
2002-11-08 12:32:10 +00:00
# `ac_cv_env_foo' variables (set or unset) will be overridden when
2001-10-19 12:33:10 +00:00
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.
_ACEOF
1999-10-07 13:06:22 +00:00
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
2006-12-20 19:57:39 +00:00
# So, we kill variables containing newlines.
1999-10-07 13:06:22 +00:00
# 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.
2006-12-20 19:57:39 +00:00
(
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
eval ac_val=\$$ac_var
case $ac_val in #(
*${as_nl}*)
case $ac_var in #(
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
esac
case $ac_var in #(
_ | IFS | as_nl) ;; #(
*) $as_unset $ac_var ;;
esac ;;
esac
done
2001-10-19 12:33:10 +00:00
(set) 2>&1 |
2006-12-20 19:57:39 +00:00
case $as_nl`(ac_space=' '; set) 2>&1` in #(
*${as_nl}ac_space=\ *)
2001-10-19 12:33:10 +00:00
# `set' does not quote correctly, so add quotes (double-quote
# substitution turns \\\\ into \\, and sed turns \\ into \).
sed -n \
2005-07-06 12:07:32 +00:00
"s/'/'\\\\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2006-12-20 19:57:39 +00:00
;; #(
2001-10-19 12:33:10 +00:00
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
2006-12-20 19:57:39 +00:00
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2001-10-19 12:33:10 +00:00
;;
2006-12-20 19:57:39 +00:00
esac |
sort
) |
2001-10-19 12:33:10 +00:00
sed '
2006-12-20 19:57:39 +00:00
/^ac_cv_env_/b end
2001-10-19 12:33:10 +00:00
t clear
2006-12-20 19:57:39 +00:00
:clear
2001-10-19 12:33:10 +00:00
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
t end
2006-12-20 19:57:39 +00:00
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
:end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
if test -w "$cache_file"; then
test "x$cache_file" != "x/dev/null" &&
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
echo "$as_me: updating cache $cache_file" >&6;}
2001-10-19 12:33:10 +00:00
cat confcache >$cache_file
1999-10-07 13:06:22 +00:00
else
2006-12-20 19:57:39 +00:00
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1999-10-07 13:06:22 +00:00
fi
fi
rm -f confcache
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
DEFS=-DHAVE_CONFIG_H
2002-11-08 12:32:10 +00:00
ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
# 1. Remove the extension, and $U if already installed.
2006-12-20 19:57:39 +00:00
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ac_i=`echo "$ac_i" | sed "$ac_script"`
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
# will be set to the directory where LIBOBJS objects are built.
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2002-11-08 12:32:10 +00:00
done
LIBOBJS=$ac_libobjs
LTLIBOBJS=$ac_ltlibobjs
2002-11-07 17:33:03 +00:00
1999-10-07 13:06:22 +00:00
: ${CONFIG_STATUS=./config.status}
2001-10-19 12:33:10 +00:00
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
2002-11-07 17:33:03 +00:00
# Generated by $as_me.
1999-10-07 13:06:22 +00:00
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
2001-10-19 12:33:10 +00:00
# configure, is in config.log if it exists.
1999-10-07 13:06:22 +00:00
2001-10-19 12:33:10 +00:00
debug=false
2003-07-23 11:16:30 +00:00
ac_cs_recheck=false
ac_cs_silent=false
2001-10-19 12:33:10 +00:00
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
2002-11-07 17:33:03 +00:00
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
2006-12-22 19:23:19 +00:00
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
2001-10-19 12:33:10 +00:00
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
2002-11-08 12:32:10 +00:00
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
2006-12-20 19:57:39 +00:00
setopt NO_GLOB_SUBST
else
2006-12-22 19:23:19 +00:00
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;;
esac
2001-10-19 12:33:10 +00:00
fi
2006-12-22 19:23:19 +00:00
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
rm -f conf$$.sh
fi
2002-11-07 17:33:03 +00:00
# Support unset when possible.
2005-07-06 12:07:32 +00:00
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2002-11-07 17:33:03 +00:00
as_unset=unset
else
as_unset=false
fi
2002-11-08 12:32:10 +00:00
2006-12-20 19:57:39 +00:00
# IFS
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" "" $as_nl"
# Find who we are. Look in the path if we contain no directory separator.
case $0 in
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS
;;
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.
if test "x$as_myself" = x; then
as_myself=$0
fi
if test ! -f "$as_myself"; then
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
{ (exit 1); exit 1; }
fi
2002-11-08 12:32:10 +00:00
# Work around bugs in pre-3.0 UWIN ksh.
2006-12-20 19:57:39 +00:00
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
2002-11-08 12:32:10 +00:00
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
2003-07-23 11:16:30 +00:00
for as_var in \
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
LC_TELEPHONE LC_TIME
2002-11-08 12:32:10 +00:00
do
2005-07-06 12:07:32 +00:00
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2002-11-08 12:32:10 +00:00
eval $as_var=C; export $as_var
else
2006-12-20 19:57:39 +00:00
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2002-11-08 12:32:10 +00:00
fi
done
# Required to use basename.
2006-12-20 19:57:39 +00:00
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2002-11-08 12:32:10 +00:00
as_expr=expr
else
as_expr=false
fi
2006-12-20 19:57:39 +00:00
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2002-11-08 12:32:10 +00:00
as_basename=basename
else
as_basename=false
fi
2002-11-07 17:33:03 +00:00
2001-10-19 12:33:10 +00:00
# Name of the executable.
2006-12-20 19:57:39 +00:00
as_me=`$as_basename -- "$0" ||
2002-11-07 17:33:03 +00:00
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
2006-12-20 19:57:39 +00:00
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2002-11-07 17:33:03 +00:00
echo X/"$0" |
2006-12-20 19:57:39 +00:00
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
# CDPATH.
$as_unset CDPATH
2006-12-19 19:48:48 +00:00
2002-11-07 17:33:03 +00:00
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
2006-12-20 19:57:39 +00:00
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2002-11-07 17:33:03 +00:00
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
2006-12-20 19:57:39 +00:00
# line-number line after each line using $LINENO; the second 'sed'
# does the real work. The second script uses 'N' to pair each
# line-number line with the line containing $LINENO, and appends
# trailing '-' during substitution so that $LINENO is not a special
# case at line end.
2002-11-07 17:33:03 +00:00
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2006-12-20 19:57:39 +00:00
# scripts with optimization help from Paolo Bonzini. Blame Lee
# E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
2002-11-07 17:33:03 +00:00
sed '
2006-12-20 19:57:39 +00:00
s/[$]LINENO.*/&-/
t lineno
b
:lineno
2002-11-07 17:33:03 +00:00
N
2006-12-20 19:57:39 +00:00
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2002-11-07 17:33:03 +00:00
t loop
2006-12-20 19:57:39 +00:00
s/-\n.*//
2002-11-07 17:33:03 +00:00
' >$as_me.lineno &&
2006-12-20 19:57:39 +00:00
chmod +x "$as_me.lineno" ||
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2002-11-07 17:33:03 +00:00
{ (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
2006-12-20 19:57:39 +00:00
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
2002-11-07 17:33:03 +00:00
# Exit status is that of the last command.
exit
}
2006-12-20 19:57:39 +00:00
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
as_dirname=dirname
else
as_dirname=false
fi
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
case `echo 'x\c'` in
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
*) ECHO_C='\c';;
esac;;
*)
ECHO_N='-n';;
2002-11-07 17:33:03 +00:00
esac
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2001-10-19 12:33:10 +00:00
as_expr=expr
else
as_expr=false
fi
rm -f conf$$ conf$$.exe conf$$.file
2006-12-20 19:57:39 +00:00
if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file
else
rm -f conf$$.dir
mkdir conf$$.dir
fi
2001-10-19 12:33:10 +00:00
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
2006-12-20 19:57:39 +00:00
as_ln_s='ln -s'
# ... but there are two gotchas:
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
# In both cases, we have to default to `cp -p'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2001-10-19 12:33:10 +00:00
as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'
fi
2006-12-20 19:57:39 +00:00
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
2001-10-19 12:33:10 +00:00
2002-11-08 12:32:10 +00:00
if mkdir -p . 2>/dev/null; then
as_mkdir_p=:
else
2005-07-06 12:07:32 +00:00
test -d ./-p && rmdir ./-p
2002-11-08 12:32:10 +00:00
as_mkdir_p=false
fi
2006-12-22 19:23:19 +00:00
if test -x / >/dev/null 2>&1; then
as_test_x='test -x'
2006-12-20 19:57:39 +00:00
else
2006-12-22 19:23:19 +00:00
if ls -dL / >/dev/null 2>&1; then
as_ls_L_option=L
else
as_ls_L_option=
fi
as_test_x='
eval sh -c '\''
if test -d "$1"; then
test -d "$1/.";
else
case $1 in
-*)set "./$1";;
esac;
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
???[sx]*):;;*)false;;esac;fi
'\'' sh
'
2006-12-20 19:57:39 +00:00
fi
2006-12-22 19:23:19 +00:00
as_executable_p=$as_test_x
2001-10-19 12:33:10 +00:00
2002-11-07 17:33:03 +00:00
# Sed expression to map a string onto a valid CPP name.
2005-07-06 12:07:32 +00:00
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2002-11-07 17:33:03 +00:00
# Sed expression to map a string onto a valid variable name.
2005-07-06 12:07:32 +00:00
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2001-10-19 12:33:10 +00:00
exec 6>&1
2006-12-20 19:57:39 +00:00
# Save the log message, to keep $[0] and so on meaningful, and to
2002-11-07 17:33:03 +00:00
# report actual input values of CONFIG_FILES etc. instead of their
2006-12-20 19:57:39 +00:00
# values after options handling.
ac_log="
2002-11-07 17:33:03 +00:00
This file was extended by $as_me, which was
2006-12-22 19:23:19 +00:00
generated by GNU Autoconf 2.61. Invocation command line was
2002-11-07 17:33:03 +00:00
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS
CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@
2006-12-20 19:57:39 +00:00
on `(hostname || uname -n) 2>/dev/null | sed 1q`
"
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
cat >>$CONFIG_STATUS <<_ACEOF
2001-10-19 12:33:10 +00:00
# Files that config.status was made for.
2006-12-20 19:57:39 +00:00
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"
2006-12-19 19:48:48 +00:00
2006-12-20 19:57:39 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
2002-11-07 17:33:03 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF
2001-10-19 12:33:10 +00:00
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
2006-12-22 19:23:19 +00:00
-V, --version print version number and configuration settings, then exit
2003-07-23 11:16:30 +00:00
-q, --quiet do not print progress messages
2001-10-19 12:33:10 +00:00
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same conditions
--file=FILE[:TEMPLATE]
2005-07-06 12:07:32 +00:00
instantiate the configuration file FILE
2001-10-19 12:33:10 +00:00
--header=FILE[:TEMPLATE]
2005-07-06 12:07:32 +00:00
instantiate the configuration header FILE
2001-10-19 12:33:10 +00:00
Configuration files:
$config_files
Configuration headers:
$config_headers
Configuration commands:
$config_commands
Report bugs to <bug-autoconf@gnu.org>."
2006-12-19 19:48:48 +00:00
2006-12-20 19:57:39 +00:00
_ACEOF
2002-11-07 17:33:03 +00:00
cat >>$CONFIG_STATUS <<_ACEOF
2001-10-19 12:33:10 +00:00
ac_cs_version="\\
config.status
2006-12-22 19:23:19 +00:00
configured by $0, generated by GNU Autoconf 2.61,
2006-12-20 19:57:39 +00:00
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2001-10-19 12:33:10 +00:00
2007-01-23 00:57:48 +00:00
Copyright (C) 2006 Free Software Foundation, Inc.
2001-10-19 12:33:10 +00:00
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
2006-12-20 19:57:39 +00:00
ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
2002-11-07 17:33:03 +00:00
_ACEOF
2001-10-19 12:33:10 +00:00
2002-11-07 17:33:03 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF
2001-10-19 12:33:10 +00:00
# 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.
ac_need_defaults=:
while test $# != 0
1999-10-07 13:06:22 +00:00
do
2001-10-19 12:33:10 +00:00
case $1 in
--*=*)
2006-12-20 19:57:39 +00:00
ac_option=`expr "X$1" : 'X\([^=]*\)='`
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2002-11-08 12:32:10 +00:00
ac_shift=:
;;
2006-12-20 19:57:39 +00:00
*)
2002-11-08 12:32:10 +00:00
ac_option=$1
ac_optarg=$2
ac_shift=shift
2001-10-19 12:33:10 +00:00
;;
esac
2002-11-08 12:32:10 +00:00
case $ac_option in
2001-10-19 12:33:10 +00:00
# Handling of the options.
2003-07-23 11:16:30 +00:00
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
ac_cs_recheck=: ;;
2006-12-20 19:57:39 +00:00
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
echo "$ac_cs_version"; exit ;;
--debug | --debu | --deb | --de | --d | -d )
2001-10-19 12:33:10 +00:00
debug=: ;;
--file | --fil | --fi | --f )
2002-11-08 12:32:10 +00:00
$ac_shift
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2001-10-19 12:33:10 +00:00
ac_need_defaults=false;;
--header | --heade | --head | --hea )
2002-11-08 12:32:10 +00:00
$ac_shift
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2001-10-19 12:33:10 +00:00
ac_need_defaults=false;;
2006-12-20 19:57:39 +00:00
--he | --h)
# Conflict between --help and --header
{ echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; };;
--help | --hel | -h )
echo "$ac_cs_usage"; exit ;;
2003-07-23 11:16:30 +00:00
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil | --si | --s)
ac_cs_silent=: ;;
2001-10-19 12:33:10 +00:00
# This is an error.
2006-12-20 19:57:39 +00:00
-*) { echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2
2001-10-19 12:33:10 +00:00
{ (exit 1); exit 1; }; } ;;
2006-12-20 19:57:39 +00:00
*) ac_config_targets="$ac_config_targets $1"
ac_need_defaults=false ;;
2001-10-19 12:33:10 +00:00
1999-10-07 13:06:22 +00:00
esac
2001-10-19 12:33:10 +00:00
shift
1999-10-07 13:06:22 +00:00
done
2003-07-23 11:16:30 +00:00
ac_configure_extra_args=
if $ac_cs_silent; then
exec 6>/dev/null
ac_configure_extra_args="$ac_configure_extra_args --silent"
fi
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
if \$ac_cs_recheck; then
2006-12-20 19:57:39 +00:00
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
CONFIG_SHELL=$SHELL
export CONFIG_SHELL
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2003-07-23 11:16:30 +00:00
fi
2001-10-19 12:33:10 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF
exec 5>>config.log
{
echo
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
echo "$ac_log"
} >&5
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
_ACEOF
2002-11-07 17:33:03 +00:00
cat >>$CONFIG_STATUS <<_ACEOF
2001-10-19 12:33:10 +00:00
#
2006-12-20 19:57:39 +00:00
# INIT-COMMANDS
2001-10-19 12:33:10 +00:00
#
GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
2002-11-07 17:33:03 +00:00
_ACEOF
2006-12-19 19:48:48 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF
2006-12-20 19:57:39 +00:00
# Handling of arguments.
2001-10-19 12:33:10 +00:00
for ac_config_target in $ac_config_targets
do
2006-12-20 19:57:39 +00:00
case $ac_config_target in
"src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
"oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
"lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
"src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
"lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
"lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
"lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
"leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
"default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
2002-11-07 17:33:03 +00:00
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
{ (exit 1); exit 1; }; };;
esac
1999-10-07 13:06:22 +00:00
done
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
# 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
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1999-10-07 13:06:22 +00:00
fi
2001-10-19 12:33:10 +00:00
2003-07-23 11:16:30 +00:00
# Have a temporary directory for convenience. Make it in the build tree
2006-12-20 19:57:39 +00:00
# simply because there is no reason against having it here, and in addition,
2003-07-23 11:16:30 +00:00
# creating and moving files from /tmp can sometimes cause problems.
2006-12-20 19:57:39 +00:00
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
2001-10-19 12:33:10 +00:00
$debug ||
{
2006-12-20 19:57:39 +00:00
tmp=
trap 'exit_status=$?
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
2001-10-19 12:33:10 +00:00
trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
2003-07-23 11:16:30 +00:00
2001-10-19 12:33:10 +00:00
{
2006-12-20 19:57:39 +00:00
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2001-10-19 12:33:10 +00:00
test -n "$tmp" && test -d "$tmp"
} ||
{
2006-12-20 19:57:39 +00:00
tmp=./conf$$-$RANDOM
(umask 077 && mkdir "$tmp")
2001-10-19 12:33:10 +00:00
} ||
{
2003-07-23 11:16:30 +00:00
echo "$me: cannot create a temporary directory in ." >&2
2001-10-19 12:33:10 +00:00
{ (exit 1); exit 1; }
}
#
2006-12-20 19:57:39 +00:00
# Set up the sed scripts for CONFIG_FILES section.
2001-10-19 12:33:10 +00:00
#
# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
2006-12-20 19:57:39 +00:00
if test -n "$CONFIG_FILES"; then
_ACEOF
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
SHELL!$SHELL$ac_delim
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
exec_prefix!$exec_prefix$ac_delim
prefix!$prefix$ac_delim
program_transform_name!$program_transform_name$ac_delim
bindir!$bindir$ac_delim
sbindir!$sbindir$ac_delim
libexecdir!$libexecdir$ac_delim
datarootdir!$datarootdir$ac_delim
datadir!$datadir$ac_delim
sysconfdir!$sysconfdir$ac_delim
sharedstatedir!$sharedstatedir$ac_delim
localstatedir!$localstatedir$ac_delim
includedir!$includedir$ac_delim
oldincludedir!$oldincludedir$ac_delim
docdir!$docdir$ac_delim
infodir!$infodir$ac_delim
htmldir!$htmldir$ac_delim
dvidir!$dvidir$ac_delim
pdfdir!$pdfdir$ac_delim
psdir!$psdir$ac_delim
libdir!$libdir$ac_delim
localedir!$localedir$ac_delim
mandir!$mandir$ac_delim
DEFS!$DEFS$ac_delim
ECHO_C!$ECHO_C$ac_delim
ECHO_N!$ECHO_N$ac_delim
ECHO_T!$ECHO_T$ac_delim
LIBS!$LIBS$ac_delim
build_alias!$build_alias$ac_delim
host_alias!$host_alias$ac_delim
target_alias!$target_alias$ac_delim
MAINT!$MAINT$ac_delim
build!$build$ac_delim
build_cpu!$build_cpu$ac_delim
build_vendor!$build_vendor$ac_delim
build_os!$build_os$ac_delim
host!$host$ac_delim
host_cpu!$host_cpu$ac_delim
host_vendor!$host_vendor$ac_delim
host_os!$host_os$ac_delim
CC!$CC$ac_delim
CFLAGS!$CFLAGS$ac_delim
LDFLAGS!$LDFLAGS$ac_delim
CPPFLAGS!$CPPFLAGS$ac_delim
ac_ct_CC!$ac_ct_CC$ac_delim
EXEEXT!$EXEEXT$ac_delim
OBJEXT!$OBJEXT$ac_delim
CPP!$CPP$ac_delim
GREP!$GREP$ac_delim
EGREP!$EGREP$ac_delim
LN_S!$LN_S$ac_delim
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
INSTALL_DATA!$INSTALL_DATA$ac_delim
RANLIB!$RANLIB$ac_delim
INSTALL_INFO!$INSTALL_INFO$ac_delim
GZIP_PROG!$GZIP_PROG$ac_delim
LIBSOUND!$LIBSOUND$ac_delim
PKG_CONFIG!$PKG_CONFIG$ac_delim
ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
ALSA_LIBS!$ALSA_LIBS$ac_delim
CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
SET_MAKE!$SET_MAKE$ac_delim
XMKMF!$XMKMF$ac_delim
GTK_CFLAGS!$GTK_CFLAGS$ac_delim
GTK_LIBS!$GTK_LIBS$ac_delim
2007-01-26 16:33:30 +00:00
XFT_CFLAGS!$XFT_CFLAGS$ac_delim
XFT_LIBS!$XFT_LIBS$ac_delim
2006-12-20 19:57:39 +00:00
ALLOCA!$ALLOCA$ac_delim
liblockfile!$liblockfile$ac_delim
LIBOBJS!$LIBOBJS$ac_delim
NEED_SETGID!$NEED_SETGID$ac_delim
KMEM_GROUP!$KMEM_GROUP$ac_delim
GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
GETOPT_H!$GETOPT_H$ac_delim
GETOPTOBJS!$GETOPTOBJS$ac_delim
version!$version$ac_delim
configuration!$configuration$ac_delim
canonical!$canonical$ac_delim
srcdir!$srcdir$ac_delim
lispdir!$lispdir$ac_delim
locallisppath!$locallisppath$ac_delim
lisppath!$lisppath$ac_delim
x_default_search_path!$x_default_search_path$ac_delim
etcdir!$etcdir$ac_delim
archlibdir!$archlibdir$ac_delim
bitmapdir!$bitmapdir$ac_delim
gamedir!$gamedir$ac_delim
gameuser!$gameuser$ac_delim
c_switch_system!$c_switch_system$ac_delim
c_switch_machine!$c_switch_machine$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
{ (exit 1); exit 1; }; }
else
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
2006-12-19 06:49:01 +00:00
fi
2006-12-20 19:57:39 +00:00
done
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
ac_eof=`expr $ac_eof + 1`
fi
cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
s/^/s,@/; s/!/@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
2007-01-26 16:33:30 +00:00
LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
2006-12-20 19:57:39 +00:00
C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
machfile!$machfile$ac_delim
opsysfile!$opsysfile$ac_delim
carbon_appdir!$carbon_appdir$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
2007-01-26 16:33:30 +00:00
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
2006-12-20 19:57:39 +00:00
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
{ (exit 1); exit 1; }; }
else
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
fi
done
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
ac_eof=`expr $ac_eof + 1`
fi
2006-12-19 06:49:01 +00:00
2006-12-20 19:57:39 +00:00
cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
s/^/s,@/; s/!/@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
:end
s/|#_!!_#|//g
CEOF$ac_eof
2002-11-07 17:33:03 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
# 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).
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@srcdir@:*/:/
s/^\([^=]*=[ ]*\):*/\1/
s/:*$//
s/^[^=]*=[ ]*$//
}'
fi
2002-11-07 17:33:03 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF
2006-12-20 19:57:39 +00:00
fi # test -n "$CONFIG_FILES"
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
do
case $ac_tag in
:[FHLC]) ac_mode=$ac_tag; continue;;
esac
case $ac_mode$ac_tag in
:[FHL]*:*);;
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
{ (exit 1); exit 1; }; };;
:[FH]-) ac_tag=-:-;;
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
esac
ac_save_IFS=$IFS
IFS=:
set x $ac_tag
IFS=$ac_save_IFS
shift
ac_file=$1
shift
case $ac_mode in
:L) ac_source=$1;;
:[FH])
ac_file_inputs=
for ac_f
do
case $ac_f in
-) ac_f="$tmp/stdin";;
*) # Look for the file first in the build tree, then in the source tree
# (if the path is not absolute). The absolute path cannot be DOS-style,
# because $ac_f cannot contain `:'.
test -f "$ac_f" ||
case $ac_f in
[\\/$]*) false;;
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
esac ||
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
{ (exit 1); exit 1; }; };;
esac
ac_file_inputs="$ac_file_inputs $ac_f"
done
# 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. */
configure_input="Generated from "`IFS=:
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
if test x"$ac_file" != x-; then
configure_input="$ac_file. $configure_input"
{ echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
fi
case $ac_tag in
*:-:* | *:-) cat >"$tmp/stdin";;
esac
;;
1999-10-07 13:06:22 +00:00
esac
2006-12-20 19:57:39 +00:00
ac_dir=`$as_dirname -- "$ac_file" ||
2002-11-07 17:33:03 +00:00
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2005-07-06 12:07:32 +00:00
X"$ac_file" : 'X\(//\)[^/]' \| \
X"$ac_file" : 'X\(//\)$' \| \
2006-12-20 19:57:39 +00:00
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
2001-10-19 12:33:10 +00:00
echo X"$ac_file" |
2006-12-20 19:57:39 +00:00
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
{ as_dir="$ac_dir"
case $as_dir in #(
-*) as_dir=./$as_dir;;
esac
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2002-11-08 12:32:10 +00:00
as_dirs=
2006-12-20 19:57:39 +00:00
while :; do
case $as_dir in #(
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
*) as_qdir=$as_dir;;
esac
as_dirs="'$as_qdir' $as_dirs"
as_dir=`$as_dirname -- "$as_dir" ||
2002-11-08 12:32:10 +00:00
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2005-07-06 12:07:32 +00:00
X"$as_dir" : 'X\(//\)[^/]' \| \
X"$as_dir" : 'X\(//\)$' \| \
2006-12-20 19:57:39 +00:00
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2002-11-08 12:32:10 +00:00
echo X"$as_dir" |
2006-12-20 19:57:39 +00:00
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
test -d "$as_dir" && break
2002-11-08 12:32:10 +00:00
done
2006-12-20 19:57:39 +00:00
test -z "$as_dirs" || eval "mkdir $as_dirs"
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&2;}
2002-11-08 12:32:10 +00:00
{ (exit 1); exit 1; }; }; }
2002-11-07 17:33:03 +00:00
ac_builddir=.
2002-04-10 22:14:09 +00:00
2006-12-20 19:57:39 +00:00
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
2002-11-07 17:33:03 +00:00
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2006-12-20 19:57:39 +00:00
# A ".." for each directory in $ac_dir_suffix.
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
case $ac_top_builddir_sub in
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
2002-11-07 17:33:03 +00:00
case $srcdir in
2006-12-20 19:57:39 +00:00
.) # We are building in place.
2002-11-07 17:33:03 +00:00
ac_srcdir=.
2006-12-20 19:57:39 +00:00
ac_top_srcdir=$ac_top_builddir_sub
ac_abs_top_srcdir=$ac_pwd ;;
[\\/]* | ?:[\\/]* ) # Absolute name.
2002-11-07 17:33:03 +00:00
ac_srcdir=$srcdir$ac_dir_suffix;
2006-12-20 19:57:39 +00:00
ac_top_srcdir=$srcdir
ac_abs_top_srcdir=$srcdir ;;
*) # Relative name.
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_build_prefix$srcdir
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2002-11-07 17:33:03 +00:00
esac
2006-12-20 19:57:39 +00:00
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2005-07-06 12:07:32 +00:00
2002-11-07 17:33:03 +00:00
2006-12-20 19:57:39 +00:00
case $ac_mode in
:F)
#
# CONFIG_FILE
#
1999-10-07 13:06:22 +00:00
2001-10-19 12:33:10 +00:00
case $INSTALL in
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2006-12-20 19:57:39 +00:00
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1999-10-07 13:06:22 +00:00
esac
2006-12-20 19:57:39 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
2006-12-20 19:57:39 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
2006-12-19 06:49:01 +00:00
2006-12-20 19:57:39 +00:00
case `sed -n '/datarootdir/ {
p
q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p
' $ac_file_inputs` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
2006-12-19 06:49:01 +00:00
_ACEOF
2006-12-20 19:57:39 +00:00
cat >>$CONFIG_STATUS <<_ACEOF
ac_datarootdir_hack='
s&@datadir@&$datadir&g
s&@docdir@&$docdir&g
s&@infodir@&$infodir&g
s&@localedir@&$localedir&g
s&@mandir@&$mandir&g
s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF
# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
2002-11-07 17:33:03 +00:00
cat >>$CONFIG_STATUS <<_ACEOF
2001-10-19 12:33:10 +00:00
sed "$ac_vpsub
$extrasub
2002-11-07 17:33:03 +00:00
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
2001-10-19 12:33:10 +00:00
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2006-12-20 19:57:39 +00:00
s&@configure_input@&$configure_input&;t t
s&@top_builddir@&$ac_top_builddir_sub&;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&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
$ac_datarootdir_hack
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined. Please make sure it is defined." >&5
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined. Please make sure it is defined." >&2;}
rm -f "$tmp/stdin"
2001-10-19 12:33:10 +00:00
case $ac_file in
2006-12-20 19:57:39 +00:00
-) cat "$tmp/out"; rm -f "$tmp/out";;
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
1999-10-07 13:06:22 +00:00
esac
2006-12-20 19:57:39 +00:00
;;
:H)
#
# CONFIG_HEADER
#
_ACEOF
# Transform confdefs.h into a sed script `conftest.defines', that
# substitutes the proper values into config.h.in to produce config.h.
rm -f conftest.defines conftest.tail
# First, append a space to every undef/define line, to ease matching.
echo 's/$/ /' >conftest.defines
# Then, protect against being on the right side of a sed subst, or in
# an unquoted here document, in config.status. If some macros were
# called several times there might be several #defines for the same
# symbol, which is useless. But do not sort them, since the last
# AC_DEFINE must be honored.
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
# NAME is the cpp macro being defined, VALUE is the value it is being given.
# PARAMS is the parameter list in the macro definition--in most cases, it's
# just an empty string.
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
ac_dB='\\)[ (].*,\\1define\\2'
ac_dC=' '
ac_dD=' ,'
uniq confdefs.h |
sed -n '
t rset
:rset
s/^[ ]*#[ ]*define[ ][ ]*//
t ok
d
:ok
s/[\\&,]/\\&/g
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
' >>conftest.defines
# Remove the space that was appended to ease matching.
# Then replace #undef with comments. This is necessary, for
1999-10-07 13:06:22 +00:00
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
2006-12-20 19:57:39 +00:00
# (The regexp can be short, since the line contains either #define or #undef.)
echo 's/ $//
s,^[ #]*u.*,/* & */,' >>conftest.defines
# Break up conftest.defines:
ac_max_sed_lines=50
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
# et cetera.
ac_in='$ac_file_inputs'
ac_out='"$tmp/out1"'
ac_nxt='"$tmp/out2"'
while :
2001-10-19 12:33:10 +00:00
do
2006-12-20 19:57:39 +00:00
# Write a here document:
cat >>$CONFIG_STATUS <<_ACEOF
# First, check the format of the line:
cat >"\$tmp/defines.sed" <<\\CEOF
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
b
:def
_ACEOF
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
2001-10-19 12:33:10 +00:00
echo 'CEOF
2006-12-20 19:57:39 +00:00
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
grep . conftest.tail >/dev/null || break
2001-10-19 12:33:10 +00:00
rm -f conftest.defines
mv conftest.tail conftest.defines
done
2006-12-20 19:57:39 +00:00
rm -f conftest.defines conftest.tail
2001-10-19 12:33:10 +00:00
2006-12-20 19:57:39 +00:00
echo "ac_result=$ac_in" >>$CONFIG_STATUS
2002-11-07 17:33:03 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF
2001-10-19 12:33:10 +00:00
if test x"$ac_file" != x-; then
2006-12-20 19:57:39 +00:00
echo "/* $configure_input */" >"$tmp/config.h"
cat "$ac_result" >>"$tmp/config.h"
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
2002-11-07 17:33:03 +00:00
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
2001-10-19 12:33:10 +00:00
echo "$as_me: $ac_file is unchanged" >&6;}
else
rm -f $ac_file
2006-12-20 19:57:39 +00:00
mv "$tmp/config.h" $ac_file
1999-10-07 13:06:22 +00:00
fi
2001-10-19 12:33:10 +00:00
else
2006-12-20 19:57:39 +00:00
echo "/* $configure_input */"
cat "$ac_result"
1999-10-07 13:06:22 +00:00
fi
2006-12-20 19:57:39 +00:00
rm -f "$tmp/out12"
;;
2006-12-19 19:48:48 +00:00
2006-12-20 19:57:39 +00:00
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
echo "$as_me: executing $ac_file commands" >&6;}
;;
esac
2002-11-07 17:33:03 +00:00
2006-12-19 19:48:48 +00:00
2006-12-20 19:57:39 +00:00
case $ac_file$ac_mode in
"default":C)
1999-10-07 13:06:22 +00:00
### Make the necessary directories, if they don't exist.
for dir in etc lisp ; do
test -d ${dir} || mkdir ${dir}
done
# Build src/Makefile from ${srcdir}/src/Makefile.c
# and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
# This must be done after src/config.h is built, since we rely on that file.
# Now get this: Some word that is part of the ${srcdir} directory name
# or the ${configuration} value might, just might, happen to be an
# identifier like `sun4' or `i386' or something, and be predefined by
# the C preprocessor to some helpful value like 1, or maybe the empty
# string. Needless to say consequent macro substitutions are less
# than conducive to the makefile finding the correct directory.
undefs="`echo $top_srcdir $configuration $canonical |
sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
-e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
`"
echo creating src/epaths.h
2001-10-24 12:37:32 +00:00
${MAKE-make} epaths-force
1999-10-07 13:06:22 +00:00
2000-11-20 19:17:00 +00:00
# As of 2000-11-19, newest development versions of GNU cpp preprocess
# `..' to `. .' unless invoked with -traditional
2001-02-23 13:32:13 +00:00
if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
2000-11-20 19:17:00 +00:00
CPPFLAGS="$CPPFLAGS -traditional"
fi
1999-10-07 13:06:22 +00:00
echo creating lib-src/Makefile
( cd lib-src
rm -f junk.c junk1.c junk2.c
sed -e '/start of cpp stuff/q' \
< Makefile.c > junk1.c
sed -e '1,/start of cpp stuff/d'\
2001-09-11 08:31:16 +00:00
-e 's,/\*\*/#\(.*\)$,/* \1 */,' \
1999-10-07 13:06:22 +00:00
< Makefile.c > junk.c
2001-10-19 12:33:10 +00:00
$CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
1999-10-07 13:06:22 +00:00
sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
cat junk1.c junk2.c > Makefile.new
rm -f junk.c junk1.c junk2.c
chmod 444 Makefile.new
mv -f Makefile.new Makefile
)
echo creating src/Makefile
( cd src
rm -f junk.c junk1.c junk2.c
sed -e '/start of cpp stuff/q' \
< Makefile.c > junk1.c
sed -e '1,/start of cpp stuff/d'\
2001-09-11 08:31:16 +00:00
-e 's,/\*\*/#\(.*\)$,/* \1 */,' \
1999-10-07 13:06:22 +00:00
< Makefile.c > junk.c
2001-10-19 12:33:10 +00:00
$CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
1999-10-07 13:06:22 +00:00
sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
cat junk1.c junk2.c > Makefile.new
rm -f junk.c junk1.c junk2.c
chmod 444 Makefile.new
mv -f Makefile.new Makefile
)
2001-10-19 12:33:10 +00:00
if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
1999-10-07 13:06:22 +00:00
echo creating src/.gdbinit
2001-10-19 12:33:10 +00:00
echo source $srcdir/src/.gdbinit > src/.gdbinit
1999-10-07 13:06:22 +00:00
fi
# This is how we know whether to re-run configure in certain cases.
touch src/config.stamp
2001-10-19 12:33:10 +00:00
;;
2006-12-20 19:57:39 +00:00
2001-10-19 12:33:10 +00:00
esac
2006-12-20 19:57:39 +00:00
done # for ac_tag
2001-10-19 12:33:10 +00:00
1999-10-07 13:06:22 +00:00
2001-10-19 12:33:10 +00:00
{ (exit 0); exit 0; }
2002-11-07 17:33:03 +00:00
_ACEOF
1999-10-07 13:06:22 +00:00
chmod +x $CONFIG_STATUS
2001-10-19 12:33:10 +00:00
ac_clean_files=$ac_clean_files_save
2002-11-07 17:33:03 +00:00
2001-10-19 12:33:10 +00:00
# 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
# output is simply discarded. So we exec the FD to /dev/null,
# 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.
if test "$no_create" != yes; then
ac_cs_success=:
2003-07-23 11:16:30 +00:00
ac_config_status_args=
test "$silent" = yes &&
ac_config_status_args="$ac_config_status_args --quiet"
2001-10-19 12:33:10 +00:00
exec 5>/dev/null
2003-07-23 11:16:30 +00:00
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2001-10-19 12:33:10 +00:00
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.
$ac_cs_success || { (exit 1); exit 1; }
fi
2000-11-21 12:50:59 +00:00
2002-11-07 17:33:03 +00:00