1 |
#! /bin/sh |
#! /bin/sh |
2 |
|
|
3 |
# Guess values for system-dependent variables and create Makefiles. |
# Guess values for system-dependent variables and create Makefiles. |
4 |
# Generated by GNU Autoconf 2.56. |
# Generated automatically using autoconf version 2.13 |
5 |
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 |
# |
# |
|
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
|
|
# Free Software Foundation, Inc. |
|
7 |
# This configure script is free software; the Free Software Foundation |
# This configure script is free software; the Free Software Foundation |
8 |
# gives unlimited permission to copy, distribute and modify it. |
# gives unlimited permission to copy, distribute and modify it. |
|
## --------------------- ## |
|
|
## M4sh Initialization. ## |
|
|
## --------------------- ## |
|
|
|
|
|
# Be Bourne compatible |
|
|
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+"$@"}'='"$@"' |
|
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
|
|
set -o posix |
|
|
fi |
|
|
|
|
|
# Support unset when possible. |
|
|
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
|
|
as_unset=unset |
|
|
else |
|
|
as_unset=false |
|
|
fi |
|
|
|
|
|
|
|
|
# Work around bugs in pre-3.0 UWIN ksh. |
|
|
$as_unset ENV MAIL MAILPATH |
|
|
PS1='$ ' |
|
|
PS2='> ' |
|
|
PS4='+ ' |
|
|
|
|
|
# NLS nuisances. |
|
|
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 |
|
|
do |
|
|
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
|
eval $as_var=C; export $as_var |
|
|
else |
|
|
$as_unset $as_var |
|
|
fi |
|
|
done |
|
|
|
|
|
# Required to use basename. |
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
|
as_expr=expr |
|
|
else |
|
|
as_expr=false |
|
|
fi |
|
|
|
|
|
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
|
|
as_basename=basename |
|
|
else |
|
|
as_basename=false |
|
|
fi |
|
|
|
|
|
|
|
|
# Name of the executable. |
|
|
as_me=`$as_basename "$0" || |
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
|
X"$0" : 'X\(//\)$' \| \ |
|
|
X"$0" : 'X\(/\)$' \| \ |
|
|
. : '\(.\)' 2>/dev/null || |
|
|
echo X/"$0" | |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
|
|
/^X\/\(\/\/\)$/{ s//\1/; q; } |
|
|
/^X\/\(\/\).*/{ s//\1/; q; } |
|
|
s/.*/./; q'` |
|
|
|
|
|
|
|
|
# PATH needs CR, and LINENO needs CR and PATH. |
|
|
# Avoid depending upon Character Ranges. |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
as_cr_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 |
|
|
|
|
|
|
|
|
as_lineno_1=$LINENO |
|
|
as_lineno_2=$LINENO |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" || { |
|
|
# Find who we are. Look in the path if we contain no path at all |
|
|
# relative or not. |
|
|
case $0 in |
|
|
*[\\/]* ) as_myself=$0 ;; |
|
|
*) 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 |
|
|
|
|
|
;; |
|
|
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_me: error: cannot find myself; rerun with an absolute path" >&2 |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
|
case $CONFIG_SHELL in |
|
|
'') |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for as_base in sh bash ksh sh5; do |
|
|
case $as_dir in |
|
|
/*) |
|
|
if ("$as_dir/$as_base" -c ' |
|
|
as_lineno_1=$LINENO |
|
|
as_lineno_2=$LINENO |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
|
|
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
|
|
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
|
|
CONFIG_SHELL=$as_dir/$as_base |
|
|
export CONFIG_SHELL |
|
|
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
|
|
fi;; |
|
|
esac |
|
|
done |
|
|
done |
|
|
;; |
|
|
esac |
|
|
|
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
|
# uniformly replaced by the line number. The first 'sed' inserts a |
|
|
# line-number line before each line; the second 'sed' does the real |
|
|
# work. The second script uses 'N' to pair each line-number line |
|
|
# with the numbered line, and appends trailing '-' during |
|
|
# substitution so that $LINENO is not a special case at line end. |
|
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
|
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
|
|
sed '=' <$as_myself | |
|
|
sed ' |
|
|
N |
|
|
s,$,-, |
|
|
: loop |
|
|
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
|
|
t loop |
|
|
s,-$,, |
|
|
s,^['$as_cr_digits']*\n,, |
|
|
' >$as_me.lineno && |
|
|
chmod +x $as_me.lineno || |
|
|
{ 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 |
|
|
# original and so on. Autoconf is especially sensible to this). |
|
|
. ./$as_me.lineno |
|
|
# Exit status is that of the last command. |
|
|
exit |
|
|
} |
|
|
|
|
|
|
|
|
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
|
|
*c*,-n*) ECHO_N= ECHO_C=' |
|
|
' ECHO_T=' ' ;; |
|
|
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
|
|
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
|
|
esac |
|
|
|
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
|
as_expr=expr |
|
|
else |
|
|
as_expr=false |
|
|
fi |
|
|
|
|
|
rm -f conf$$ conf$$.exe conf$$.file |
|
|
echo >conf$$.file |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
|
# We could just check for DJGPP; but this test a) works b) is more generic |
|
|
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
|
|
if test -f conf$$.exe; then |
|
|
# Don't use ln at all; we don't have any links |
|
|
as_ln_s='cp -p' |
|
|
else |
|
|
as_ln_s='ln -s' |
|
|
fi |
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
|
as_ln_s=ln |
|
|
else |
|
|
as_ln_s='cp -p' |
|
|
fi |
|
|
rm -f conf$$ conf$$.exe conf$$.file |
|
|
|
|
|
if mkdir -p . 2>/dev/null; then |
|
|
as_mkdir_p=: |
|
|
else |
|
|
as_mkdir_p=false |
|
|
fi |
|
|
|
|
|
as_executable_p="test -f" |
|
|
|
|
|
# Sed expression to map a string onto a valid CPP name. |
|
|
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
|
|
|
|
|
# Sed expression to map a string onto a valid variable name. |
|
|
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
|
|
|
|
9 |
|
|
10 |
# IFS |
# Defaults: |
11 |
# We need space, tab and new line, in precisely that order. |
ac_help= |
|
as_nl=' |
|
|
' |
|
|
IFS=" $as_nl" |
|
|
|
|
|
# CDPATH. |
|
|
$as_unset CDPATH |
|
|
|
|
|
|
|
|
# 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` |
|
|
|
|
|
exec 6>&1 |
|
|
|
|
|
# |
|
|
# Initializations. |
|
|
# |
|
12 |
ac_default_prefix=/usr/local |
ac_default_prefix=/usr/local |
13 |
ac_config_libobj_dir=. |
# Any additions from configure.in: |
14 |
cross_compiling=no |
ac_help="$ac_help |
15 |
subdirs= |
--enable-maxpage=XXXX will compile in a page table of size XXX (eg '--enable-maxpage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each) " |
16 |
MFLAGS= |
ac_help="$ac_help |
17 |
MAKEFLAGS= |
--enable-holepage=XXXX will compile in a XXX-sized hole between the heap and relocatable memory area (eg '--enable-holepage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each) " |
18 |
SHELL=${CONFIG_SHELL-/bin/sh} |
ac_help="$ac_help |
19 |
|
--enable-vssize=XXXX will compile in a value stack of size XXX " |
20 |
# Maximum number of lines to put in a shell here document. |
ac_help="$ac_help |
21 |
# This variable seems obsolete. It should probably be removed, and |
--enable-bdssize=XXXX will compile in a binding stack of size XXX " |
22 |
# only ac_max_sed_lines should be used. |
ac_help="$ac_help |
23 |
: ${ac_max_here_lines=38} |
--enable-ihssize=XXXX will compile in a invocation history stack of size XXX " |
24 |
|
ac_help="$ac_help |
25 |
# Identity of this package. |
--enable-frssize=XXXX will compile in a frame stack of size XXX " |
26 |
PACKAGE_NAME= |
ac_help="$ac_help |
27 |
PACKAGE_TARNAME= |
--enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs " |
28 |
PACKAGE_VERSION= |
ac_help="$ac_help |
29 |
PACKAGE_STRING= |
--enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems " |
30 |
PACKAGE_BUGREPORT= |
ac_help="$ac_help |
31 |
|
--enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh " |
32 |
# Factoring default headers for most tests. |
ac_help="$ac_help |
33 |
ac_includes_default="\ |
--enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh " |
34 |
#include <stdio.h> |
ac_help="$ac_help |
35 |
#if HAVE_SYS_TYPES_H |
--enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info " |
36 |
# include <sys/types.h> |
ac_help="$ac_help |
37 |
#endif |
--enable-emacsdir=XXXX will manually specify the location for elisp files " |
38 |
#if HAVE_SYS_STAT_H |
ac_help="$ac_help |
39 |
# include <sys/stat.h> |
--enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes) " |
40 |
#endif |
ac_help="$ac_help |
41 |
#if STDC_HEADERS |
--enable-japi=yes will compile in support for the JAPI graphical interface if present on your system" |
42 |
# include <stdlib.h> |
ac_help="$ac_help |
43 |
# include <stddef.h> |
--enable-xdr=yes will compile in support for XDR" |
44 |
#else |
ac_help="$ac_help |
45 |
# if HAVE_STDLIB_H |
--enable-dlopen uses dlopen for loading objects, which can then not be retained in saved images |
46 |
# include <stdlib.h> |
" |
47 |
# endif |
ac_help="$ac_help |
48 |
#endif |
--enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files |
49 |
#if HAVE_STRING_H |
" |
50 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
ac_help="$ac_help |
51 |
# include <memory.h> |
--enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files |
52 |
# endif |
" |
53 |
# include <string.h> |
ac_help="$ac_help |
54 |
#endif |
--enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files |
55 |
#if HAVE_STRINGS_H |
" |
56 |
# include <strings.h> |
ac_help="$ac_help |
57 |
#endif |
--enable-custreloc uses custom gcl code if available for loading and relocationing object files |
58 |
#if HAVE_INTTYPES_H |
" |
59 |
# include <inttypes.h> |
ac_help="$ac_help |
60 |
#else |
--enable-debug builds gcl with -g in CFLAGS to enable running under gdb |
61 |
# if HAVE_STDINT_H |
" |
62 |
# include <stdint.h> |
ac_help="$ac_help |
63 |
# endif |
--enable-gprof builds gcl with -pg in CFLAGS to enable profiling with gprof |
64 |
#endif |
" |
65 |
#if HAVE_UNISTD_H |
ac_help="$ac_help |
66 |
# include <unistd.h> |
--enable-static will link your GCL against static as opposed to shared system libraries " |
67 |
#endif" |
ac_help="$ac_help |
68 |
|
--enable-pic builds gcl with -fPIC in CFLAGS |
69 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os PROCESSOR_FLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP AWK MAKEINFO EGREP GMP GMPDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS BUILD_BFD LITTLE_END HAVE_LONG_LONG FLISP SYSTEM CLSTANDARD PAGEWIDTH RL_OBJS RL_LIB NO_PROFILE HAVE_SETENV HAVE_PUTENV USE_CLEANUP ENDIAN_ALREADY_DEFINED HAVE_SV_ONSTACK HAVE_SIGSYS HAVE_SIGEMT EMACS EMACS_SITE_LISP EMACS_DEFAULT_EL INFO_DIR TCLSH TK_CONFIG_PREFIX TK_LIBRARY TCL_LIBRARY TK_XINCLUDES TK_INCLUDE TCL_INCLUDE TK_LIB_SPEC TK_BUILD_LIB_SPEC TK_XLIBSW TCL_LIB_SPEC TCL_DL_LIBS TCL_LIBS NOTIFY BROKEN_O4_OPT FINAL_CFLAGS NIFLAGS O3FLAGS O2FLAGS EXTRA_LOBJS LEADING_UNDERSCORE GNU_LD use LIBOBJS LTLIBOBJS' |
" |
70 |
ac_subst_files='' |
ac_help="$ac_help |
71 |
|
--enable-oldgmp will link against gmp2 instead of gmp3 |
72 |
|
" |
73 |
|
ac_help="$ac_help |
74 |
|
--enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source |
75 |
|
" |
76 |
|
ac_help="$ac_help |
77 |
|
--with-x use the X Window System" |
78 |
|
ac_help="$ac_help |
79 |
|
--enable-readine enables command line completion via the readline library " |
80 |
|
ac_help="$ac_help |
81 |
|
--enable-ansi builds a large gcl aiming for ansi compliance, |
82 |
|
--disable-ansi builds the smaller traditional CLtL1 image" |
83 |
|
|
84 |
# Initialize some variables set by options. |
# Initialize some variables set by options. |
|
ac_init_help= |
|
|
ac_init_version=false |
|
85 |
# The variables have the same names as the options, with |
# The variables have the same names as the options, with |
86 |
# dashes changed to underlines. |
# dashes changed to underlines. |
87 |
cache_file=/dev/null |
build=NONE |
88 |
|
cache_file=./config.cache |
89 |
exec_prefix=NONE |
exec_prefix=NONE |
90 |
|
host=NONE |
91 |
no_create= |
no_create= |
92 |
|
nonopt=NONE |
93 |
no_recursion= |
no_recursion= |
94 |
prefix=NONE |
prefix=NONE |
95 |
program_prefix=NONE |
program_prefix=NONE |
98 |
silent= |
silent= |
99 |
site= |
site= |
100 |
srcdir= |
srcdir= |
101 |
|
target=NONE |
102 |
verbose= |
verbose= |
103 |
x_includes=NONE |
x_includes=NONE |
104 |
x_libraries=NONE |
x_libraries=NONE |
|
|
|
|
# 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. |
|
105 |
bindir='${exec_prefix}/bin' |
bindir='${exec_prefix}/bin' |
106 |
sbindir='${exec_prefix}/sbin' |
sbindir='${exec_prefix}/sbin' |
107 |
libexecdir='${exec_prefix}/libexec' |
libexecdir='${exec_prefix}/libexec' |
115 |
infodir='${prefix}/info' |
infodir='${prefix}/info' |
116 |
mandir='${prefix}/man' |
mandir='${prefix}/man' |
117 |
|
|
118 |
|
# Initialize some other variables. |
119 |
|
subdirs= |
120 |
|
MFLAGS= MAKEFLAGS= |
121 |
|
SHELL=${CONFIG_SHELL-/bin/sh} |
122 |
|
# Maximum number of lines to put in a shell here document. |
123 |
|
ac_max_here_lines=12 |
124 |
|
|
125 |
ac_prev= |
ac_prev= |
126 |
for ac_option |
for ac_option |
127 |
do |
do |
128 |
|
|
129 |
# If the previous option needs an argument, assign it. |
# If the previous option needs an argument, assign it. |
130 |
if test -n "$ac_prev"; then |
if test -n "$ac_prev"; then |
131 |
eval "$ac_prev=\$ac_option" |
eval "$ac_prev=\$ac_option" |
133 |
continue |
continue |
134 |
fi |
fi |
135 |
|
|
136 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
case "$ac_option" in |
137 |
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
138 |
|
*) ac_optarg= ;; |
139 |
|
esac |
140 |
|
|
141 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
# Accept the important Cygnus configure options, so we can diagnose typos. |
142 |
|
|
143 |
case $ac_option in |
case "$ac_option" in |
144 |
|
|
145 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
146 |
ac_prev=bindir ;; |
ac_prev=bindir ;; |
147 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
148 |
bindir=$ac_optarg ;; |
bindir="$ac_optarg" ;; |
149 |
|
|
150 |
-build | --build | --buil | --bui | --bu) |
-build | --build | --buil | --bui | --bu) |
151 |
ac_prev=build_alias ;; |
ac_prev=build ;; |
152 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
153 |
build_alias=$ac_optarg ;; |
build="$ac_optarg" ;; |
154 |
|
|
155 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
156 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
157 |
ac_prev=cache_file ;; |
ac_prev=cache_file ;; |
158 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
159 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
160 |
cache_file=$ac_optarg ;; |
cache_file="$ac_optarg" ;; |
|
|
|
|
--config-cache | -C) |
|
|
cache_file=config.cache ;; |
|
161 |
|
|
162 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
163 |
ac_prev=datadir ;; |
ac_prev=datadir ;; |
164 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
165 |
| --da=*) |
| --da=*) |
166 |
datadir=$ac_optarg ;; |
datadir="$ac_optarg" ;; |
167 |
|
|
168 |
-disable-* | --disable-*) |
-disable-* | --disable-*) |
169 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
170 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
171 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
172 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
173 |
{ (exit 1); exit 1; }; } |
fi |
174 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
175 |
eval "enable_$ac_feature=no" ;; |
eval "enable_${ac_feature}=no" ;; |
176 |
|
|
177 |
-enable-* | --enable-*) |
-enable-* | --enable-*) |
178 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
179 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
180 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
181 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
182 |
{ (exit 1); exit 1; }; } |
fi |
183 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
184 |
case $ac_option in |
case "$ac_option" in |
185 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
*=*) ;; |
186 |
*) ac_optarg=yes ;; |
*) ac_optarg=yes ;; |
187 |
esac |
esac |
188 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
eval "enable_${ac_feature}='$ac_optarg'" ;; |
189 |
|
|
190 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
191 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
194 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
195 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
196 |
| --exec=* | --exe=* | --ex=*) |
| --exec=* | --exe=* | --ex=*) |
197 |
exec_prefix=$ac_optarg ;; |
exec_prefix="$ac_optarg" ;; |
198 |
|
|
199 |
-gas | --gas | --ga | --g) |
-gas | --gas | --ga | --g) |
200 |
# Obsolete; use --with-gas. |
# Obsolete; use --with-gas. |
201 |
with_gas=yes ;; |
with_gas=yes ;; |
202 |
|
|
203 |
-help | --help | --hel | --he | -h) |
-help | --help | --hel | --he) |
204 |
ac_init_help=long ;; |
# Omit some internal or obsolete options to make the list less imposing. |
205 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
# This message is too long to be a string in the A/UX 3.1 sh. |
206 |
ac_init_help=recursive ;; |
cat << EOF |
207 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
Usage: configure [options] [host] |
208 |
ac_init_help=short ;; |
Options: [defaults in brackets after descriptions] |
209 |
|
Configuration: |
210 |
|
--cache-file=FILE cache test results in FILE |
211 |
|
--help print this message |
212 |
|
--no-create do not create output files |
213 |
|
--quiet, --silent do not print \`checking...' messages |
214 |
|
--version print the version of autoconf that created configure |
215 |
|
Directory and file names: |
216 |
|
--prefix=PREFIX install architecture-independent files in PREFIX |
217 |
|
[$ac_default_prefix] |
218 |
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
219 |
|
[same as prefix] |
220 |
|
--bindir=DIR user executables in DIR [EPREFIX/bin] |
221 |
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
222 |
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
223 |
|
--datadir=DIR read-only architecture-independent data in DIR |
224 |
|
[PREFIX/share] |
225 |
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
226 |
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
227 |
|
[PREFIX/com] |
228 |
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
229 |
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
230 |
|
--includedir=DIR C header files in DIR [PREFIX/include] |
231 |
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
232 |
|
--infodir=DIR info documentation in DIR [PREFIX/info] |
233 |
|
--mandir=DIR man documentation in DIR [PREFIX/man] |
234 |
|
--srcdir=DIR find the sources in DIR [configure dir or ..] |
235 |
|
--program-prefix=PREFIX prepend PREFIX to installed program names |
236 |
|
--program-suffix=SUFFIX append SUFFIX to installed program names |
237 |
|
--program-transform-name=PROGRAM |
238 |
|
run sed PROGRAM on installed program names |
239 |
|
EOF |
240 |
|
cat << EOF |
241 |
|
Host type: |
242 |
|
--build=BUILD configure for building on BUILD [BUILD=HOST] |
243 |
|
--host=HOST configure for HOST [guessed] |
244 |
|
--target=TARGET configure for TARGET [TARGET=HOST] |
245 |
|
Features and packages: |
246 |
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
247 |
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
248 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
249 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
250 |
|
--x-includes=DIR X include files are in DIR |
251 |
|
--x-libraries=DIR X library files are in DIR |
252 |
|
EOF |
253 |
|
if test -n "$ac_help"; then |
254 |
|
echo "--enable and --with options recognized:$ac_help" |
255 |
|
fi |
256 |
|
exit 0 ;; |
257 |
|
|
258 |
-host | --host | --hos | --ho) |
-host | --host | --hos | --ho) |
259 |
ac_prev=host_alias ;; |
ac_prev=host ;; |
260 |
-host=* | --host=* | --hos=* | --ho=*) |
-host=* | --host=* | --hos=* | --ho=*) |
261 |
host_alias=$ac_optarg ;; |
host="$ac_optarg" ;; |
262 |
|
|
263 |
-includedir | --includedir | --includedi | --included | --include \ |
-includedir | --includedir | --includedi | --included | --include \ |
264 |
| --includ | --inclu | --incl | --inc) |
| --includ | --inclu | --incl | --inc) |
265 |
ac_prev=includedir ;; |
ac_prev=includedir ;; |
266 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
267 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
268 |
includedir=$ac_optarg ;; |
includedir="$ac_optarg" ;; |
269 |
|
|
270 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
271 |
ac_prev=infodir ;; |
ac_prev=infodir ;; |
272 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
273 |
infodir=$ac_optarg ;; |
infodir="$ac_optarg" ;; |
274 |
|
|
275 |
-libdir | --libdir | --libdi | --libd) |
-libdir | --libdir | --libdi | --libd) |
276 |
ac_prev=libdir ;; |
ac_prev=libdir ;; |
277 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
278 |
libdir=$ac_optarg ;; |
libdir="$ac_optarg" ;; |
279 |
|
|
280 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
281 |
| --libexe | --libex | --libe) |
| --libexe | --libex | --libe) |
282 |
ac_prev=libexecdir ;; |
ac_prev=libexecdir ;; |
283 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
284 |
| --libexe=* | --libex=* | --libe=*) |
| --libexe=* | --libex=* | --libe=*) |
285 |
libexecdir=$ac_optarg ;; |
libexecdir="$ac_optarg" ;; |
286 |
|
|
287 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
288 |
| --localstate | --localstat | --localsta | --localst \ |
| --localstate | --localstat | --localsta | --localst \ |
291 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
292 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
293 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
294 |
localstatedir=$ac_optarg ;; |
localstatedir="$ac_optarg" ;; |
295 |
|
|
296 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
297 |
ac_prev=mandir ;; |
ac_prev=mandir ;; |
298 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
299 |
mandir=$ac_optarg ;; |
mandir="$ac_optarg" ;; |
300 |
|
|
301 |
-nfp | --nfp | --nf) |
-nfp | --nfp | --nf) |
302 |
# Obsolete; use --without-fp. |
# Obsolete; use --without-fp. |
303 |
with_fp=no ;; |
with_fp=no ;; |
304 |
|
|
305 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
306 |
| --no-cr | --no-c | -n) |
| --no-cr | --no-c) |
307 |
no_create=yes ;; |
no_create=yes ;; |
308 |
|
|
309 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
317 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
318 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
319 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
320 |
oldincludedir=$ac_optarg ;; |
oldincludedir="$ac_optarg" ;; |
321 |
|
|
322 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
323 |
ac_prev=prefix ;; |
ac_prev=prefix ;; |
324 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
325 |
prefix=$ac_optarg ;; |
prefix="$ac_optarg" ;; |
326 |
|
|
327 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
328 |
| --program-pre | --program-pr | --program-p) |
| --program-pre | --program-pr | --program-p) |
329 |
ac_prev=program_prefix ;; |
ac_prev=program_prefix ;; |
330 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
331 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
332 |
program_prefix=$ac_optarg ;; |
program_prefix="$ac_optarg" ;; |
333 |
|
|
334 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
335 |
| --program-suf | --program-su | --program-s) |
| --program-suf | --program-su | --program-s) |
336 |
ac_prev=program_suffix ;; |
ac_prev=program_suffix ;; |
337 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
338 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
339 |
program_suffix=$ac_optarg ;; |
program_suffix="$ac_optarg" ;; |
340 |
|
|
341 |
-program-transform-name | --program-transform-name \ |
-program-transform-name | --program-transform-name \ |
342 |
| --program-transform-nam | --program-transform-na \ |
| --program-transform-nam | --program-transform-na \ |
353 |
| --program-transfo=* | --program-transf=* \ |
| --program-transfo=* | --program-transf=* \ |
354 |
| --program-trans=* | --program-tran=* \ |
| --program-trans=* | --program-tran=* \ |
355 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| --progr-tra=* | --program-tr=* | --program-t=*) |
356 |
program_transform_name=$ac_optarg ;; |
program_transform_name="$ac_optarg" ;; |
357 |
|
|
358 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
359 |
| -silent | --silent | --silen | --sile | --sil) |
| -silent | --silent | --silen | --sile | --sil) |
363 |
ac_prev=sbindir ;; |
ac_prev=sbindir ;; |
364 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
365 |
| --sbi=* | --sb=*) |
| --sbi=* | --sb=*) |
366 |
sbindir=$ac_optarg ;; |
sbindir="$ac_optarg" ;; |
367 |
|
|
368 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
369 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
374 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
375 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
376 |
| --sha=* | --sh=*) |
| --sha=* | --sh=*) |
377 |
sharedstatedir=$ac_optarg ;; |
sharedstatedir="$ac_optarg" ;; |
378 |
|
|
379 |
-site | --site | --sit) |
-site | --site | --sit) |
380 |
ac_prev=site ;; |
ac_prev=site ;; |
381 |
-site=* | --site=* | --sit=*) |
-site=* | --site=* | --sit=*) |
382 |
site=$ac_optarg ;; |
site="$ac_optarg" ;; |
383 |
|
|
384 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
385 |
ac_prev=srcdir ;; |
ac_prev=srcdir ;; |
386 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
387 |
srcdir=$ac_optarg ;; |
srcdir="$ac_optarg" ;; |
388 |
|
|
389 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
390 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| --syscon | --sysco | --sysc | --sys | --sy) |
391 |
ac_prev=sysconfdir ;; |
ac_prev=sysconfdir ;; |
392 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
393 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
394 |
sysconfdir=$ac_optarg ;; |
sysconfdir="$ac_optarg" ;; |
395 |
|
|
396 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
-target | --target | --targe | --targ | --tar | --ta | --t) |
397 |
ac_prev=target_alias ;; |
ac_prev=target ;; |
398 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
399 |
target_alias=$ac_optarg ;; |
target="$ac_optarg" ;; |
400 |
|
|
401 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
402 |
verbose=yes ;; |
verbose=yes ;; |
403 |
|
|
404 |
-version | --version | --versio | --versi | --vers | -V) |
-version | --version | --versio | --versi | --vers) |
405 |
ac_init_version=: ;; |
echo "configure generated by autoconf version 2.13" |
406 |
|
exit 0 ;; |
407 |
|
|
408 |
-with-* | --with-*) |
-with-* | --with-*) |
409 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
410 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
411 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
412 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
413 |
{ (exit 1); exit 1; }; } |
fi |
414 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
415 |
case $ac_option in |
case "$ac_option" in |
416 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
*=*) ;; |
417 |
*) ac_optarg=yes ;; |
*) ac_optarg=yes ;; |
418 |
esac |
esac |
419 |
eval "with_$ac_package='$ac_optarg'" ;; |
eval "with_${ac_package}='$ac_optarg'" ;; |
420 |
|
|
421 |
-without-* | --without-*) |
-without-* | --without-*) |
422 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
423 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
424 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
425 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
426 |
{ (exit 1); exit 1; }; } |
fi |
427 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
428 |
eval "with_$ac_package=no" ;; |
eval "with_${ac_package}=no" ;; |
429 |
|
|
430 |
--x) |
--x) |
431 |
# Obsolete; use --with-x. |
# Obsolete; use --with-x. |
436 |
ac_prev=x_includes ;; |
ac_prev=x_includes ;; |
437 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
438 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
439 |
x_includes=$ac_optarg ;; |
x_includes="$ac_optarg" ;; |
440 |
|
|
441 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
442 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
443 |
ac_prev=x_libraries ;; |
ac_prev=x_libraries ;; |
444 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
445 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
446 |
x_libraries=$ac_optarg ;; |
x_libraries="$ac_optarg" ;; |
447 |
|
|
448 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
|
Try \`$0 --help' for more information." >&2 |
|
|
{ (exit 1); exit 1; }; } |
|
449 |
;; |
;; |
450 |
|
|
|
*=*) |
|
|
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; }; } |
|
|
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
|
|
eval "$ac_envvar='$ac_optarg'" |
|
|
export $ac_envvar ;; |
|
|
|
|
451 |
*) |
*) |
452 |
# FIXME: should be removed in autoconf 3.0. |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
453 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
454 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
fi |
455 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
if test "x$nonopt" != xNONE; then |
456 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
457 |
|
fi |
458 |
|
nonopt="$ac_option" |
459 |
;; |
;; |
460 |
|
|
461 |
esac |
esac |
462 |
done |
done |
463 |
|
|
464 |
if test -n "$ac_prev"; then |
if test -n "$ac_prev"; then |
465 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
|
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
|
|
{ (exit 1); exit 1; }; } |
|
466 |
fi |
fi |
467 |
|
|
468 |
# Be sure to have absolute paths. |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
469 |
for ac_var in exec_prefix prefix |
|
470 |
do |
# File descriptor usage: |
471 |
eval ac_val=$`echo $ac_var` |
# 0 standard input |
472 |
case $ac_val in |
# 1 file creation |
473 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
# 2 errors and warnings |
474 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
# 3 some systems may open it to /dev/tty |
475 |
{ (exit 1); exit 1; }; };; |
# 4 used on the Kubota Titan |
476 |
esac |
# 6 checking for... messages and results |
477 |
done |
# 5 compiler messages saved in config.log |
478 |
|
if test "$silent" = yes; then |
479 |
|
exec 6>/dev/null |
480 |
|
else |
481 |
|
exec 6>&1 |
482 |
|
fi |
483 |
|
exec 5>./config.log |
484 |
|
|
485 |
|
echo "\ |
486 |
|
This file contains any messages produced by compilers while |
487 |
|
running configure, to aid debugging if configure makes a mistake. |
488 |
|
" 1>&5 |
489 |
|
|
490 |
# Be sure to have absolute paths. |
# Strip out --no-create and --no-recursion so they do not pile up. |
491 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
# Also quote any args containing shell metacharacters. |
492 |
localstatedir libdir includedir oldincludedir infodir mandir |
ac_configure_args= |
493 |
|
for ac_arg |
494 |
do |
do |
495 |
eval ac_val=$`echo $ac_var` |
case "$ac_arg" in |
496 |
case $ac_val in |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
497 |
[\\/$]* | ?:[\\/]* ) ;; |
| --no-cr | --no-c) ;; |
498 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
499 |
{ (exit 1); exit 1; }; };; |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
500 |
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
501 |
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
502 |
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
503 |
esac |
esac |
504 |
done |
done |
505 |
|
|
506 |
# There might be people who depend on the old broken behavior: `$host' |
# NLS nuisances. |
507 |
# used to hold the argument of --host etc. |
# Only set these to C if already set. These must not be set unconditionally |
508 |
# FIXME: To remove some day. |
# because not all systems understand e.g. LANG=C (notably SCO). |
509 |
build=$build_alias |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
510 |
host=$host_alias |
# Non-C LC_CTYPE values break the ctype check. |
511 |
target=$target_alias |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
512 |
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
513 |
# FIXME: To remove some day. |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
514 |
if test "x$host_alias" != x; then |
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
|
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 |
|
|
|
|
|
ac_tool_prefix= |
|
|
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|
515 |
|
|
516 |
test "$silent" = yes && exec 6>/dev/null |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
517 |
|
rm -rf conftest* confdefs.h |
518 |
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
519 |
|
echo > confdefs.h |
520 |
|
|
521 |
|
# A filename unique to this package, relative to the directory that |
522 |
|
# configure is in, which we can look for to find out if srcdir is correct. |
523 |
|
ac_unique_file= |
524 |
|
|
525 |
# Find the source files, if location was not specified. |
# Find the source files, if location was not specified. |
526 |
if test -z "$srcdir"; then |
if test -z "$srcdir"; then |
527 |
ac_srcdir_defaulted=yes |
ac_srcdir_defaulted=yes |
528 |
# Try the directory containing this script, then its parent. |
# Try the directory containing this script, then its parent. |
529 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
ac_prog=$0 |
530 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
531 |
X"$0" : 'X\(//\)[^/]' \| \ |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
|
X"$0" : 'X\(//\)$' \| \ |
|
|
X"$0" : 'X\(/\)' \| \ |
|
|
. : '\(.\)' 2>/dev/null || |
|
|
echo X"$0" | |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
/^X\(\/\/\)$/{ s//\1/; q; } |
|
|
/^X\(\/\).*/{ s//\1/; q; } |
|
|
s/.*/./; q'` |
|
532 |
srcdir=$ac_confdir |
srcdir=$ac_confdir |
533 |
if test ! -r $srcdir/$ac_unique_file; then |
if test ! -r $srcdir/$ac_unique_file; then |
534 |
srcdir=.. |
srcdir=.. |
538 |
fi |
fi |
539 |
if test ! -r $srcdir/$ac_unique_file; then |
if test ! -r $srcdir/$ac_unique_file; then |
540 |
if test "$ac_srcdir_defaulted" = yes; then |
if test "$ac_srcdir_defaulted" = yes; then |
541 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
|
{ (exit 1); exit 1; }; } |
|
542 |
else |
else |
543 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
|
{ (exit 1); exit 1; }; } |
|
544 |
fi |
fi |
545 |
fi |
fi |
546 |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
|
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
|
|
{ (exit 1); exit 1; }; } |
|
|
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
|
|
ac_env_build_alias_set=${build_alias+set} |
|
|
ac_env_build_alias_value=$build_alias |
|
|
ac_cv_env_build_alias_set=${build_alias+set} |
|
|
ac_cv_env_build_alias_value=$build_alias |
|
|
ac_env_host_alias_set=${host_alias+set} |
|
|
ac_env_host_alias_value=$host_alias |
|
|
ac_cv_env_host_alias_set=${host_alias+set} |
|
|
ac_cv_env_host_alias_value=$host_alias |
|
|
ac_env_target_alias_set=${target_alias+set} |
|
|
ac_env_target_alias_value=$target_alias |
|
|
ac_cv_env_target_alias_set=${target_alias+set} |
|
|
ac_cv_env_target_alias_value=$target_alias |
|
|
ac_env_CC_set=${CC+set} |
|
|
ac_env_CC_value=$CC |
|
|
ac_cv_env_CC_set=${CC+set} |
|
|
ac_cv_env_CC_value=$CC |
|
|
ac_env_CFLAGS_set=${CFLAGS+set} |
|
|
ac_env_CFLAGS_value=$CFLAGS |
|
|
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
|
|
ac_cv_env_CFLAGS_value=$CFLAGS |
|
|
ac_env_LDFLAGS_set=${LDFLAGS+set} |
|
|
ac_env_LDFLAGS_value=$LDFLAGS |
|
|
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
|
|
ac_cv_env_LDFLAGS_value=$LDFLAGS |
|
|
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
|
|
ac_env_CPPFLAGS_value=$CPPFLAGS |
|
|
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
|
|
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
|
|
ac_env_CPP_set=${CPP+set} |
|
|
ac_env_CPP_value=$CPP |
|
|
ac_cv_env_CPP_set=${CPP+set} |
|
|
ac_cv_env_CPP_value=$CPP |
|
|
|
|
|
# |
|
|
# 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. |
|
|
cat <<_ACEOF |
|
|
\`configure' configures this package to adapt to many kinds of systems. |
|
|
|
|
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
|
|
|
|
|
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|
|
VAR=VALUE. See below for descriptions of some of the useful variables. |
|
|
|
|
|
Defaults for the options are specified in brackets. |
|
|
|
|
|
Configuration: |
|
|
-h, --help display this help and exit |
|
|
--help=short display options specific to this package |
|
|
--help=recursive display the short help of all the included packages |
|
|
-V, --version display version information and exit |
|
|
-q, --quiet, --silent do not print \`checking...' messages |
|
|
--cache-file=FILE cache test results in FILE [disabled] |
|
|
-C, --config-cache alias for \`--cache-file=config.cache' |
|
|
-n, --no-create do not create output files |
|
|
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|
|
|
|
|
_ACEOF |
|
|
|
|
|
cat <<_ACEOF |
|
|
Installation directories: |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX |
|
|
[$ac_default_prefix] |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
|
[PREFIX] |
|
|
|
|
|
By default, \`make install' will install all the files in |
|
|
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
|
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|
|
for instance \`--prefix=\$HOME'. |
|
|
|
|
|
For better control, use the options below. |
|
|
|
|
|
Fine tuning of the installation directories: |
|
|
--bindir=DIR user executables [EPREFIX/bin] |
|
|
--sbindir=DIR system admin executables [EPREFIX/sbin] |
|
|
--libexecdir=DIR program executables [EPREFIX/libexec] |
|
|
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
|
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
|
--libdir=DIR object code libraries [EPREFIX/lib] |
|
|
--includedir=DIR C header files [PREFIX/include] |
|
|
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
|
--infodir=DIR info documentation [PREFIX/info] |
|
|
--mandir=DIR man documentation [PREFIX/man] |
|
|
_ACEOF |
|
|
|
|
|
cat <<\_ACEOF |
|
|
|
|
|
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] |
|
|
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
|
|
_ACEOF |
|
|
fi |
|
|
|
|
|
if test -n "$ac_init_help"; then |
|
|
|
|
|
cat <<\_ACEOF |
|
|
|
|
|
Optional Features: |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
|
--enable-maxpage=XXXX will compile in a page table of size XXX (eg '--enable-maxpage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each) |
|
|
--enable-holepage=XXXX will compile in a XXX-sized hole between the heap and relocatable memory area (eg '--enable-holepage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each) |
|
|
--enable-vssize=XXXX will compile in a value stack of size XXX |
|
|
--enable-bdssize=XXXX will compile in a binding stack of size XXX |
|
|
--enable-ihssize=XXXX will compile in a invocation history stack of size XXX |
|
|
--enable-frssize=XXXX will compile in a frame stack of size XXX |
|
|
--enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs |
|
|
--enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems |
|
|
--enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh |
|
|
--enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh |
|
|
--enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info |
|
|
--enable-emacsdir=XXXX will manually specify the location for elisp files |
|
|
--enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes) |
|
|
--enable-japi=yes will compile in support for the JAPI graphical interface if present on your system |
|
|
--enable-xdr=yes will compile in support for XDR |
|
|
--enable-dlopen uses dlopen for loading objects, which can then not be retained in saved images |
|
|
|
|
|
--enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files |
|
|
|
|
|
--enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files |
|
|
|
|
|
--enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files |
|
|
|
|
|
--enable-custreloc uses custom gcl code if available for loading and relocationing object files |
|
|
|
|
|
--enable-debug builds gcl with -g in CFLAGS to enable running under gdb |
|
|
|
|
|
--enable-gprof builds gcl with -pg in CFLAGS to enable profiling with gprof |
|
|
|
|
|
--enable-static will link your GCL against static as opposed to shared system libraries |
|
|
--enable-pic builds gcl with -fPIC in CFLAGS |
|
|
|
|
|
--enable-oldgmp will link against gmp2 instead of gmp3 |
|
|
|
|
|
--enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source |
|
|
|
|
|
--enable-readine enables command line completion via the readline library |
|
|
--enable-ansi builds a large gcl aiming for ansi compliance, |
|
|
--disable-ansi builds the smaller traditional CLtL1 image |
|
|
|
|
|
Optional Packages: |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
|
--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> |
|
|
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
|
|
headers in a nonstandard directory <include dir> |
|
|
CPP C preprocessor |
|
|
|
|
|
Use these variables to override the choices made by `configure' or to help |
|
|
it to find libraries and programs with nonstandard names/locations. |
|
|
|
|
|
_ACEOF |
|
|
fi |
|
|
|
|
|
if test "$ac_init_help" = "recursive"; then |
|
|
# If there are subdirs, report their specific --help. |
|
|
ac_popdir=`pwd` |
|
|
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
|
test -d $ac_dir || continue |
|
|
ac_builddir=. |
|
|
|
|
|
if test "$ac_dir" != .; then |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
|
# A "../" for each directory in $ac_dir_suffix. |
|
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
|
|
else |
|
|
ac_dir_suffix= ac_top_builddir= |
|
|
fi |
|
|
|
|
|
case $srcdir in |
|
|
.) # No --srcdir option. We are building in place. |
|
|
ac_srcdir=. |
|
|
if test -z "$ac_top_builddir"; then |
|
|
ac_top_srcdir=. |
|
|
else |
|
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
|
fi ;; |
|
|
[\\/]* | ?:[\\/]* ) # Absolute path. |
|
|
ac_srcdir=$srcdir$ac_dir_suffix; |
|
|
ac_top_srcdir=$srcdir ;; |
|
|
*) # Relative path. |
|
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
|
|
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
|
|
esac |
|
|
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
|
|
# absolute. |
|
|
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
|
|
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
|
|
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
|
|
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
|
|
|
|
|
cd $ac_dir |
|
|
# Check for guested configure; otherwise get Cygnus style configure. |
|
|
if test -f $ac_srcdir/configure.gnu; then |
|
|
echo |
|
|
$SHELL $ac_srcdir/configure.gnu --help=recursive |
|
|
elif test -f $ac_srcdir/configure; then |
|
|
echo |
|
|
$SHELL $ac_srcdir/configure --help=recursive |
|
|
elif test -f $ac_srcdir/configure.ac || |
|
|
test -f $ac_srcdir/configure.in; then |
|
|
echo |
|
|
$ac_configure --help |
|
|
else |
|
|
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
|
fi |
|
|
cd $ac_popdir |
|
|
done |
|
|
fi |
|
|
|
|
|
test -n "$ac_init_help" && exit 0 |
|
|
if $ac_init_version; then |
|
|
cat <<\_ACEOF |
|
|
|
|
|
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
|
|
Free Software Foundation, Inc. |
|
|
This configure script is free software; the Free Software Foundation |
|
|
gives unlimited permission to copy, distribute and modify it. |
|
|
_ACEOF |
|
|
exit 0 |
|
|
fi |
|
|
exec 5>config.log |
|
|
cat >&5 <<_ACEOF |
|
|
This file contains any messages produced by compilers while |
|
|
running configure, to aid debugging if configure makes a mistake. |
|
|
|
|
|
It was created by $as_me, which was |
|
|
generated by GNU Autoconf 2.56. Invocation command line was |
|
|
|
|
|
$ $0 $@ |
|
|
|
|
|
_ACEOF |
|
|
{ |
|
|
cat <<_ASUNAME |
|
|
## --------- ## |
|
|
## Platform. ## |
|
|
## --------- ## |
|
|
|
|
|
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` |
|
|
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
|
|
/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` |
|
|
|
|
|
_ASUNAME |
|
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
echo "PATH: $as_dir" |
|
|
done |
|
|
|
|
|
} >&5 |
|
|
|
|
|
cat >&5 <<_ACEOF |
|
|
|
|
|
|
|
|
## ----------- ## |
|
|
## Core tests. ## |
|
|
## ----------- ## |
|
|
|
|
|
_ACEOF |
|
|
|
|
|
|
|
|
# Keep a trace of the command line. |
|
|
# Strip out --no-create and --no-recursion so they do not pile up. |
|
|
# Strip out --silent because we don't want to record it for future runs. |
|
|
# Also quote any args containing shell meta-characters. |
|
|
# Make two passes to allow for proper duplicate-argument suppression. |
|
|
ac_configure_args= |
|
|
ac_configure_args0= |
|
|
ac_configure_args1= |
|
|
ac_sep= |
|
|
ac_must_keep_next=false |
|
|
for ac_pass in 1 2 |
|
|
do |
|
|
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 ;; |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
|
|
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 |
|
|
ac_must_keep_next=false # Got value, back to normal. |
|
|
else |
|
|
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 |
|
|
fi |
|
|
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
|
|
# Get rid of the leading space. |
|
|
ac_sep=" " |
|
|
;; |
|
|
esac |
|
|
done |
|
|
done |
|
|
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
|
|
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
|
|
|
|
|
# When interrupted or exit'd, cleanup temporary files, and complete |
|
|
# config.log. We remove comments because anyway the quotes in there |
|
|
# would cause problems or look ugly. |
|
|
# WARNING: Be sure not to use single quotes in there, as some shells, |
|
|
# such as our DU 5.0 friend, will then `close' the trap. |
|
|
trap 'exit_status=$? |
|
|
# Save into config.log some information that might help in debugging. |
|
|
{ |
|
|
echo |
|
|
|
|
|
cat <<\_ASBOX |
|
|
## ---------------- ## |
|
|
## Cache variables. ## |
|
|
## ---------------- ## |
|
|
_ASBOX |
|
|
echo |
|
|
# The following way of writing the cache mishandles newlines in values, |
|
|
{ |
|
|
(set) 2>&1 | |
|
|
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
|
|
*ac_space=\ *) |
|
|
sed -n \ |
|
|
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
|
|
;; |
|
|
*) |
|
|
sed -n \ |
|
|
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
|
|
;; |
|
|
esac; |
|
|
} |
|
|
echo |
|
|
|
|
|
cat <<\_ASBOX |
|
|
## ----------------- ## |
|
|
## Output variables. ## |
|
|
## ----------------- ## |
|
|
_ASBOX |
|
|
echo |
|
|
for ac_var in $ac_subst_vars |
|
|
do |
|
|
eval ac_val=$`echo $ac_var` |
|
|
echo "$ac_var='"'"'$ac_val'"'"'" |
|
|
done | sort |
|
|
echo |
|
|
|
|
|
if test -n "$ac_subst_files"; then |
|
|
cat <<\_ASBOX |
|
|
## ------------- ## |
|
|
## Output files. ## |
|
|
## ------------- ## |
|
|
_ASBOX |
|
|
echo |
|
|
for ac_var in $ac_subst_files |
|
|
do |
|
|
eval ac_val=$`echo $ac_var` |
|
|
echo "$ac_var='"'"'$ac_val'"'"'" |
|
|
done | sort |
|
|
echo |
|
|
fi |
|
|
|
|
|
if test -s confdefs.h; then |
|
|
cat <<\_ASBOX |
|
|
## ----------- ## |
|
|
## confdefs.h. ## |
|
|
## ----------- ## |
|
|
_ASBOX |
|
|
echo |
|
|
sed "/^$/d" confdefs.h | sort |
|
|
echo |
|
|
fi |
|
|
test "$ac_signal" != 0 && |
|
|
echo "$as_me: caught signal $ac_signal" |
|
|
echo "$as_me: exit $exit_status" |
|
|
} >&5 |
|
|
rm -f core core.* *.core && |
|
|
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
|
|
exit $exit_status |
|
|
' 0 |
|
|
for ac_signal in 1 2 13 15; do |
|
|
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
|
|
done |
|
|
ac_signal=0 |
|
|
|
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
|
rm -rf conftest* confdefs.h |
|
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
|
|
echo >confdefs.h |
|
|
|
|
|
# Predefined preprocessor variables. |
|
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define PACKAGE_NAME "$PACKAGE_NAME" |
|
|
_ACEOF |
|
|
|
|
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
|
_ACEOF |
|
547 |
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
# Let the site file select an alternate cache file if it wants to. |
|
548 |
# Prefer explicitly selected file to automatically selected ones. |
# Prefer explicitly selected file to automatically selected ones. |
549 |
if test -z "$CONFIG_SITE"; then |
if test -z "$CONFIG_SITE"; then |
550 |
if test "x$prefix" != xNONE; then |
if test "x$prefix" != xNONE; then |
555 |
fi |
fi |
556 |
for ac_site_file in $CONFIG_SITE; do |
for ac_site_file in $CONFIG_SITE; do |
557 |
if test -r "$ac_site_file"; then |
if test -r "$ac_site_file"; then |
558 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
echo "loading site script $ac_site_file" |
|
echo "$as_me: loading site script $ac_site_file" >&6;} |
|
|
sed 's/^/| /' "$ac_site_file" >&5 |
|
559 |
. "$ac_site_file" |
. "$ac_site_file" |
560 |
fi |
fi |
561 |
done |
done |
562 |
|
|
563 |
if test -r "$cache_file"; then |
if test -r "$cache_file"; then |
564 |
# Some versions of bash will fail to source /dev/null (special |
echo "loading cache $cache_file" |
565 |
# files actually), so we avoid doing that. |
. $cache_file |
|
if test -f "$cache_file"; then |
|
|
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
|
|
echo "$as_me: loading cache $cache_file" >&6;} |
|
|
case $cache_file in |
|
|
[\\/]* | ?:[\\/]* ) . $cache_file;; |
|
|
*) . ./$cache_file;; |
|
|
esac |
|
|
fi |
|
566 |
else |
else |
567 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
echo "creating cache $cache_file" |
568 |
echo "$as_me: creating cache $cache_file" >&6;} |
> $cache_file |
|
>$cache_file |
|
|
fi |
|
|
|
|
|
# Check that the precious variables saved in the cache have kept the same |
|
|
# value. |
|
|
ac_cache_corrupted=false |
|
|
for ac_var in `(set) 2>&1 | |
|
|
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
|
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|
|
eval ac_new_set=\$ac_env_${ac_var}_set |
|
|
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
|
|
eval ac_new_val="\$ac_env_${ac_var}_value" |
|
|
case $ac_old_set,$ac_new_set in |
|
|
set,) |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|
|
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
|
ac_cache_corrupted=: ;; |
|
|
,set) |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
|
|
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 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
|
|
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|
|
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
|
|
echo "$as_me: former value: $ac_old_val" >&2;} |
|
|
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
|
|
echo "$as_me: current value: $ac_new_val" >&2;} |
|
|
ac_cache_corrupted=: |
|
|
fi;; |
|
|
esac |
|
|
# Pass precious variables to config.status. |
|
|
if test "$ac_new_set" = set; then |
|
|
case $ac_new_val in |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
|
|
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
*) 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'" ;; |
|
|
esac |
|
|
fi |
|
|
done |
|
|
if $ac_cache_corrupted; then |
|
|
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
|
|
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
|
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
|
|
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
569 |
fi |
fi |
570 |
|
|
571 |
ac_ext=c |
ac_ext=c |
572 |
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
573 |
ac_cpp='$CPP $CPPFLAGS' |
ac_cpp='$CPP $CPPFLAGS' |
574 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
575 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
576 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
cross_compiling=$ac_cv_prog_cc_cross |
577 |
|
|
578 |
|
ac_exeext= |
579 |
|
ac_objext=o |
580 |
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
581 |
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
582 |
|
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
583 |
|
ac_n= ac_c=' |
584 |
|
' ac_t=' ' |
585 |
|
else |
586 |
|
ac_n=-n ac_c= ac_t= |
587 |
|
fi |
588 |
|
else |
589 |
|
ac_n= ac_c='\c' ac_t= |
590 |
|
fi |
|
|
|
|
|
|
|
|
|
591 |
|
|
592 |
|
|
|
ac_config_headers="$ac_config_headers h/gclincl.h" |
|
593 |
|
|
594 |
|
|
595 |
VERSION=`cat majvers`.`cat minvers` |
VERSION=`cat majvers`.`cat minvers` |
605 |
# Check whether --enable-maxpage or --disable-maxpage was given. |
# Check whether --enable-maxpage or --disable-maxpage was given. |
606 |
if test "${enable_maxpage+set}" = set; then |
if test "${enable_maxpage+set}" = set; then |
607 |
enableval="$enable_maxpage" |
enableval="$enable_maxpage" |
608 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
609 |
#define MAXPAGE $enable_maxpage |
#define MAXPAGE $enable_maxpage |
610 |
_ACEOF |
EOF |
611 |
|
|
612 |
|
fi |
613 |
|
|
|
fi; |
|
614 |
|
|
615 |
# Check whether --enable-holepage or --disable-holepage was given. |
# Check whether --enable-holepage or --disable-holepage was given. |
616 |
if test "${enable_holepage+set}" = set; then |
if test "${enable_holepage+set}" = set; then |
617 |
enableval="$enable_holepage" |
enableval="$enable_holepage" |
618 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
619 |
#define HOLEPAGE $enable_holepage |
#define HOLEPAGE $enable_holepage |
620 |
_ACEOF |
EOF |
621 |
|
|
622 |
|
fi |
623 |
|
|
|
fi; |
|
624 |
|
|
625 |
# Check whether --enable-vssize or --disable-vssize was given. |
# Check whether --enable-vssize or --disable-vssize was given. |
626 |
if test "${enable_vssize+set}" = set; then |
if test "${enable_vssize+set}" = set; then |
627 |
enableval="$enable_vssize" |
enableval="$enable_vssize" |
628 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
629 |
#define VSSIZE $enable_vssize |
#define VSSIZE $enable_vssize |
630 |
_ACEOF |
EOF |
631 |
|
|
632 |
|
fi |
633 |
|
|
|
fi; |
|
634 |
|
|
635 |
# Check whether --enable-bdssize or --disable-bdssize was given. |
# Check whether --enable-bdssize or --disable-bdssize was given. |
636 |
if test "${enable_bdssize+set}" = set; then |
if test "${enable_bdssize+set}" = set; then |
637 |
enableval="$enable_bdssize" |
enableval="$enable_bdssize" |
638 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
639 |
#define BDSSIZE $enable_bdssize |
#define BDSSIZE $enable_bdssize |
640 |
_ACEOF |
EOF |
641 |
|
|
642 |
|
fi |
643 |
|
|
|
fi; |
|
644 |
|
|
645 |
# Check whether --enable-ihssize or --disable-ihssize was given. |
# Check whether --enable-ihssize or --disable-ihssize was given. |
646 |
if test "${enable_ihssize+set}" = set; then |
if test "${enable_ihssize+set}" = set; then |
647 |
enableval="$enable_ihssize" |
enableval="$enable_ihssize" |
648 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
649 |
#define IHSSIZE $enable_ihssize |
#define IHSSIZE $enable_ihssize |
650 |
_ACEOF |
EOF |
651 |
|
|
652 |
|
fi |
653 |
|
|
|
fi; |
|
654 |
|
|
655 |
# Check whether --enable-frssize or --disable-frssize was given. |
# Check whether --enable-frssize or --disable-frssize was given. |
656 |
if test "${enable_frssize+set}" = set; then |
if test "${enable_frssize+set}" = set; then |
657 |
enableval="$enable_frssize" |
enableval="$enable_frssize" |
658 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
659 |
#define FRSSIZE $enable_frssize |
#define FRSSIZE $enable_frssize |
660 |
_ACEOF |
EOF |
661 |
|
|
662 |
|
fi |
663 |
|
|
|
fi; |
|
664 |
|
|
665 |
# Check whether --enable-machine or --disable-machine was given. |
# Check whether --enable-machine or --disable-machine was given. |
666 |
if test "${enable_machine+set}" = set; then |
if test "${enable_machine+set}" = set; then |
668 |
enable_machine=$enableval |
enable_machine=$enableval |
669 |
else |
else |
670 |
enable_machine="" |
enable_machine="" |
671 |
fi; |
fi |
672 |
|
|
673 |
|
|
674 |
#AC_ARG_ENABLE(gmp,[ --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes)] , |
#AC_ARG_ENABLE(gmp,[ --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes)] , |
675 |
#[use_gmp=$enableval],[use_gmp="yes"]) |
#[use_gmp=$enableval],[use_gmp="yes"]) |
682 |
enable_notify=$enableval |
enable_notify=$enableval |
683 |
else |
else |
684 |
enable_notify="yes" |
enable_notify="yes" |
685 |
fi; |
fi |
686 |
|
|
687 |
|
|
688 |
# Check whether --enable-tkconfig or --disable-tkconfig was given. |
# Check whether --enable-tkconfig or --disable-tkconfig was given. |
689 |
if test "${enable_tkconfig+set}" = set; then |
if test "${enable_tkconfig+set}" = set; then |
691 |
TK_CONFIG_PREFIX=$enableval |
TK_CONFIG_PREFIX=$enableval |
692 |
else |
else |
693 |
TK_CONFIG_PREFIX="unknown" |
TK_CONFIG_PREFIX="unknown" |
694 |
fi; |
fi |
695 |
|
|
696 |
|
|
697 |
|
|
698 |
# Check whether --enable-tclconfig or --disable-tclconfig was given. |
# Check whether --enable-tclconfig or --disable-tclconfig was given. |
701 |
TCL_CONFIG_PREFIX=$enableval |
TCL_CONFIG_PREFIX=$enableval |
702 |
else |
else |
703 |
TCL_CONFIG_PREFIX="unknown" |
TCL_CONFIG_PREFIX="unknown" |
704 |
fi; |
fi |
705 |
|
|
706 |
|
|
707 |
# Check whether --enable-infodir or --disable-infodir was given. |
# Check whether --enable-infodir or --disable-infodir was given. |
708 |
if test "${enable_infodir+set}" = set; then |
if test "${enable_infodir+set}" = set; then |
710 |
INFO_DIR=$enableval |
INFO_DIR=$enableval |
711 |
else |
else |
712 |
INFO_DIR="unknown" |
INFO_DIR="unknown" |
713 |
fi; |
fi |
714 |
|
|
715 |
INFO_DIR=`eval echo $INFO_DIR/` |
INFO_DIR=`eval echo $INFO_DIR/` |
716 |
|
|
717 |
# Check whether --enable-emacsdir or --disable-emacsdir was given. |
# Check whether --enable-emacsdir or --disable-emacsdir was given. |
720 |
EMACS_SITE_LISP=$enableval |
EMACS_SITE_LISP=$enableval |
721 |
else |
else |
722 |
EMACS_SITE_LISP="unknown" |
EMACS_SITE_LISP="unknown" |
723 |
fi; |
fi |
724 |
|
|
725 |
EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP` |
EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP` |
726 |
|
|
727 |
# Check whether --enable-common-binary or --disable-common-binary was given. |
# Check whether --enable-common-binary or --disable-common-binary was given. |
730 |
use_common_binary=$enableval |
use_common_binary=$enableval |
731 |
else |
else |
732 |
use_common_binary="yes" |
use_common_binary="yes" |
733 |
fi; |
fi |
734 |
|
|
735 |
|
|
736 |
# Check whether --enable-japi or --disable-japi was given. |
# Check whether --enable-japi or --disable-japi was given. |
737 |
if test "${enable_japi+set}" = set; then |
if test "${enable_japi+set}" = set; then |
739 |
try_japi=$enableval |
try_japi=$enableval |
740 |
else |
else |
741 |
try_japi="no" |
try_japi="no" |
742 |
fi; |
fi |
743 |
|
|
744 |
|
|
745 |
# Check whether --enable-xdr or --disable-xdr was given. |
# Check whether --enable-xdr or --disable-xdr was given. |
746 |
if test "${enable_xdr+set}" = set; then |
if test "${enable_xdr+set}" = set; then |
748 |
try_xdr=$enableval |
try_xdr=$enableval |
749 |
else |
else |
750 |
try_xdr="no" |
try_xdr="no" |
751 |
fi; |
fi |
752 |
|
|
753 |
|
|
754 |
# |
# |
755 |
# Host information |
# Host information |
756 |
# |
# |
757 |
|
|
758 |
|
|
766 |
ac_aux_dir=$ac_dir |
ac_aux_dir=$ac_dir |
767 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
ac_install_sh="$ac_aux_dir/install.sh -c" |
768 |
break |
break |
|
elif test -f $ac_dir/shtool; then |
|
|
ac_aux_dir=$ac_dir |
|
|
ac_install_sh="$ac_aux_dir/shtool install -c" |
|
|
break |
|
769 |
fi |
fi |
770 |
done |
done |
771 |
if test -z "$ac_aux_dir"; then |
if test -z "$ac_aux_dir"; then |
772 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
773 |
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
fi |
774 |
{ (exit 1); exit 1; }; } |
ac_config_guess=$ac_aux_dir/config.guess |
775 |
fi |
ac_config_sub=$ac_aux_dir/config.sub |
776 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
777 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
|
|
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
|
778 |
|
|
779 |
# Make sure we can run config.sub. |
# Make sure we can run config.sub. |
780 |
$ac_config_sub sun4 >/dev/null 2>&1 || |
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
781 |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
782 |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
fi |
783 |
{ (exit 1); exit 1; }; } |
|
784 |
|
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
785 |
echo "$as_me:$LINENO: checking build system type" >&5 |
echo "configure:786: checking host system type" >&5 |
786 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
787 |
if test "${ac_cv_build+set}" = set; then |
host_alias=$host |
788 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
case "$host_alias" in |
789 |
else |
NONE) |
790 |
ac_cv_build_alias=$build_alias |
case $nonopt in |
791 |
test -z "$ac_cv_build_alias" && |
NONE) |
792 |
ac_cv_build_alias=`$ac_config_guess` |
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
793 |
test -z "$ac_cv_build_alias" && |
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
794 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
fi ;; |
795 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
*) host_alias=$nonopt ;; |
796 |
{ (exit 1); exit 1; }; } |
esac ;; |
797 |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
esac |
|
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
|
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
|
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
echo "${ECHO_T}$ac_cv_build" >&6 |
|
|
build=$ac_cv_build |
|
|
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
|
if test "${ac_cv_host+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_cv_host_alias=$host_alias |
|
|
test -z "$ac_cv_host_alias" && |
|
|
ac_cv_host_alias=$ac_cv_build_alias |
|
|
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
|
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
|
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
|
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
echo "${ECHO_T}$ac_cv_host" >&6 |
|
|
host=$ac_cv_host |
|
|
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
798 |
|
|
799 |
|
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
800 |
|
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
801 |
|
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
802 |
|
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
803 |
|
echo "$ac_t""$host" 1>&6 |
804 |
|
|
805 |
canonical=$host |
canonical=$host |
806 |
my_host_kernel=`echo $host_os | awk '{j=split($1,A,"-");print A[1]}'` |
my_host_kernel=`echo $host_os | awk '{j=split($1,A,"-");print A[1]}'` |
807 |
my_host_system=`echo $host_os | awk '{j=split($1,A,"-");if (j>=2) print A[2]}'` |
my_host_system=`echo $host_os | awk '{j=split($1,A,"-");if (j>=2) print A[2]}'` |
808 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
809 |
#define HOST_CPU "`echo $host_cpu | awk '{print toupper($0)}'`" |
#define HOST_CPU "`echo $host_cpu | awk '{print toupper($0)}'`" |
810 |
_ACEOF |
EOF |
811 |
|
|
812 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
813 |
#define HOST_KERNEL "`echo $my_host_kernel | awk '{print toupper($0)}'`" |
#define HOST_KERNEL "`echo $my_host_kernel | awk '{print toupper($0)}'`" |
814 |
_ACEOF |
EOF |
815 |
|
|
816 |
if test "$my_host_system" != "" ; then |
if test "$my_host_system" != "" ; then |
817 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
818 |
#define HOST_SYSTEM "`echo $my_host_system | awk '{print toupper($0)}'`" |
#define HOST_SYSTEM "`echo $my_host_system | awk '{print toupper($0)}'`" |
819 |
_ACEOF |
EOF |
820 |
|
|
821 |
fi |
fi |
822 |
## host=CPU-COMPANY-SYSTEM |
## host=CPU-COMPANY-SYSTEM |
823 |
echo "$as_me:$LINENO: result: host=$host" >&5 |
echo "$ac_t""host=$host" 1>&6 |
|
echo "${ECHO_T}host=$host" >&6 |
|
824 |
|
|
825 |
PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""} |
PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""} |
826 |
|
|
873 |
|
|
874 |
powerpc-*-darwin*) |
powerpc-*-darwin*) |
875 |
use=powerpc-macosx;; |
use=powerpc-macosx;; |
876 |
|
|
877 |
alpha-dec-osf) |
alpha-dec-osf) |
878 |
use=alpha-osf1;; |
use=alpha-osf1;; |
879 |
|
|
904 |
IRIX3*) |
IRIX3*) |
905 |
use=sgi4d;; |
use=sgi4d;; |
906 |
esac ;; |
esac ;; |
907 |
|
|
908 |
|
|
909 |
m68k-apple-aux*) |
m68k-apple-aux*) |
910 |
use=mac2;; |
use=mac2;; |
990 |
# 'ld -Z' means disable W^X |
# 'ld -Z' means disable W^X |
991 |
TLDFLAGS="$TLDFLAGS -Z" |
TLDFLAGS="$TLDFLAGS -Z" |
992 |
use=FreeBSD;; |
use=FreeBSD;; |
993 |
|
|
994 |
esac |
esac |
995 |
|
|
996 |
|
|
1008 |
def_pic="no"; |
def_pic="no"; |
1009 |
def_static="no"; |
def_static="no"; |
1010 |
def_debug="no"; |
def_debug="no"; |
1011 |
case $use in |
case $use in |
1012 |
*linux) |
*linux) |
1013 |
ln -snf linux.defs h/$use.defs; |
ln -snf linux.defs h/$use.defs; |
1014 |
case $use in |
case $use in |
1017 |
mips*) |
mips*) |
1018 |
def_dlopen="yes" ; def_statsysbfd="no" ;; |
def_dlopen="yes" ; def_statsysbfd="no" ;; |
1019 |
# def_static -- Function descriptors are currently realized at runtime in a non-reproducible fashion |
# def_static -- Function descriptors are currently realized at runtime in a non-reproducible fashion |
1020 |
# on these architectures -- CM |
# on these architectures -- CM |
1021 |
ia64*) |
ia64*) |
1022 |
def_dlopen="yes" ; def_statsysbfd="no" ; def_static="no" ;; |
def_dlopen="yes" ; def_statsysbfd="no" ; def_static="no" ;; |
1023 |
hppa*) |
hppa*) |
1034 |
# Check whether --enable-dlopen or --disable-dlopen was given. |
# Check whether --enable-dlopen or --disable-dlopen was given. |
1035 |
if test "${enable_dlopen+set}" = set; then |
if test "${enable_dlopen+set}" = set; then |
1036 |
enableval="$enable_dlopen" |
enableval="$enable_dlopen" |
1037 |
|
: |
1038 |
else |
else |
1039 |
enable_dlopen="$def_dlopen" |
enable_dlopen="$def_dlopen" |
1040 |
fi; |
fi |
1041 |
|
|
1042 |
# Check whether --enable-statsysbfd or --disable-statsysbfd was given. |
# Check whether --enable-statsysbfd or --disable-statsysbfd was given. |
1043 |
if test "${enable_statsysbfd+set}" = set; then |
if test "${enable_statsysbfd+set}" = set; then |
1044 |
enableval="$enable_statsysbfd" |
enableval="$enable_statsysbfd" |
1045 |
|
: |
1046 |
else |
else |
1047 |
enable_statsysbfd="$def_statsysbfd" |
enable_statsysbfd="$def_statsysbfd" |
1048 |
fi; |
fi |
1049 |
|
|
1050 |
# Check whether --enable-dynsysbfd or --disable-dynsysbfd was given. |
# Check whether --enable-dynsysbfd or --disable-dynsysbfd was given. |
1051 |
if test "${enable_dynsysbfd+set}" = set; then |
if test "${enable_dynsysbfd+set}" = set; then |
1052 |
enableval="$enable_dynsysbfd" |
enableval="$enable_dynsysbfd" |
1053 |
|
: |
1054 |
else |
else |
1055 |
enable_dynsysbfd="no" |
enable_dynsysbfd="no" |
1056 |
fi; |
fi |
1057 |
|
|
1058 |
# Check whether --enable-locbfd or --disable-locbfd was given. |
# Check whether --enable-locbfd or --disable-locbfd was given. |
1059 |
if test "${enable_locbfd+set}" = set; then |
if test "${enable_locbfd+set}" = set; then |
1060 |
enableval="$enable_locbfd" |
enableval="$enable_locbfd" |
1061 |
|
: |
1062 |
else |
else |
1063 |
enable_locbfd="$def_locbfd" |
enable_locbfd="$def_locbfd" |
1064 |
fi; |
fi |
1065 |
|
|
1066 |
# Check whether --enable-custreloc or --disable-custreloc was given. |
# Check whether --enable-custreloc or --disable-custreloc was given. |
1067 |
if test "${enable_custreloc+set}" = set; then |
if test "${enable_custreloc+set}" = set; then |
1068 |
enableval="$enable_custreloc" |
enableval="$enable_custreloc" |
1069 |
|
: |
1070 |
else |
else |
1071 |
enable_custreloc="$def_custreloc" |
enable_custreloc="$def_custreloc" |
1072 |
fi; |
fi |
1073 |
|
|
1074 |
# Check whether --enable-debug or --disable-debug was given. |
# Check whether --enable-debug or --disable-debug was given. |
1075 |
if test "${enable_debug+set}" = set; then |
if test "${enable_debug+set}" = set; then |
1076 |
enableval="$enable_debug" |
enableval="$enable_debug" |
1077 |
|
: |
1078 |
else |
else |
1079 |
enable_debug="$def_debug" |
enable_debug="$def_debug" |
1080 |
fi; |
fi |
1081 |
|
|
1082 |
# Check whether --enable-gprof or --disable-gprof was given. |
# Check whether --enable-gprof or --disable-gprof was given. |
1083 |
if test "${enable_gprof+set}" = set; then |
if test "${enable_gprof+set}" = set; then |
1084 |
enableval="$enable_gprof" |
enableval="$enable_gprof" |
1085 |
|
: |
1086 |
else |
else |
1087 |
enable_gprof="no" |
enable_gprof="no" |
1088 |
fi; |
fi |
1089 |
|
|
1090 |
# Check whether --enable-static or --disable-static was given. |
# Check whether --enable-static or --disable-static was given. |
1091 |
if test "${enable_static+set}" = set; then |
if test "${enable_static+set}" = set; then |
1092 |
enableval="$enable_static" |
enableval="$enable_static" |
1093 |
enable_static=$enableval |
enable_static=$enableval |
1094 |
else |
else |
1095 |
enable_static="$def_static" |
enable_static="$def_static" |
1096 |
fi; |
fi |
1097 |
|
|
1098 |
# Check whether --enable-pic or --disable-pic was given. |
# Check whether --enable-pic or --disable-pic was given. |
1099 |
if test "${enable_pic+set}" = set; then |
if test "${enable_pic+set}" = set; then |
1100 |
enableval="$enable_pic" |
enableval="$enable_pic" |
1101 |
|
: |
1102 |
else |
else |
1103 |
enable_pic="$def_pic" |
enable_pic="$def_pic" |
1104 |
fi; |
fi |
1105 |
|
|
1106 |
|
|
1107 |
# Check whether --enable-oldgmp or --disable-oldgmp was given. |
# Check whether --enable-oldgmp or --disable-oldgmp was given. |
1108 |
if test "${enable_oldgmp+set}" = set; then |
if test "${enable_oldgmp+set}" = set; then |
1109 |
enableval="$enable_oldgmp" |
enableval="$enable_oldgmp" |
1110 |
|
: |
1111 |
else |
else |
1112 |
enable_oldgmp="$def_oldgmp" |
enable_oldgmp="$def_oldgmp" |
1113 |
fi; |
fi |
1114 |
|
|
1115 |
|
|
1116 |
# Check whether --enable-dynsysgmp or --disable-dynsysgmp was given. |
# Check whether --enable-dynsysgmp or --disable-dynsysgmp was given. |
1117 |
if test "${enable_dynsysgmp+set}" = set; then |
if test "${enable_dynsysgmp+set}" = set; then |
1118 |
enableval="$enable_dynsysgmp" |
enableval="$enable_dynsysgmp" |
1119 |
|
: |
1120 |
else |
else |
1121 |
enable_dynsysgmp="yes" |
enable_dynsysgmp="yes" |
1122 |
fi; |
fi |
1123 |
|
|
1124 |
|
|
1125 |
load_opt="0" |
load_opt="0" |
1126 |
if test "$enable_dlopen" = "yes" ; then |
if test "$enable_dlopen" = "yes" ; then |
1171 |
## |
## |
1172 |
#if test "$use" = "unknown" ; then |
#if test "$use" = "unknown" ; then |
1173 |
#types=`echo h/*.defs` | sed -e "s:h/::g" -e "s:\.defs:g"` |
#types=`echo h/*.defs` | sed -e "s:h/::g" -e "s:\.defs:g"` |
1174 |
#echo got canonical=$canonical, but was not recognized. |
#echo got canonical=$canonical, but was not recognized. |
1175 |
#echo Unable to guess type to use. Try one of |
#echo Unable to guess type to use. Try one of |
1176 |
#exit(1) |
#exit(1) |
1177 |
#fi |
#fi |
1178 |
|
|
1179 |
echo "$as_me:$LINENO: result: use=$use" >&5 |
echo "$ac_t""use=$use" 1>&6 |
|
echo "${ECHO_T}use=$use" >&6 |
|
1180 |
|
|
1181 |
|
|
1182 |
# |
# |
1192 |
LDFLAGS=" " |
LDFLAGS=" " |
1193 |
fi |
fi |
1194 |
|
|
1195 |
ac_ext=c |
# Extract the first word of "gcc", so it can be a program name with args. |
|
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 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
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 |
|
|
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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
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 |
|
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
CC=$ac_cv_prog_CC |
|
|
if test -n "$CC"; then |
|
|
echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
echo "${ECHO_T}$CC" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
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. |
|
1196 |
set dummy gcc; ac_word=$2 |
set dummy gcc; ac_word=$2 |
1197 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1198 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:1199: checking for $ac_word" >&5 |
1199 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1200 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&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 |
|
|
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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_ac_ct_CC="gcc" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
if test -n "$ac_ct_CC"; then |
|
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
CC=$ac_ct_CC |
|
|
else |
|
|
CC="$ac_cv_prog_CC" |
|
|
fi |
|
|
|
|
|
if test -z "$CC"; then |
|
|
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. |
|
|
set dummy ${ac_tool_prefix}cc; 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_prog_CC+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1201 |
else |
else |
1202 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1203 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1204 |
else |
else |
1205 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1206 |
for as_dir in $PATH |
ac_dummy="$PATH" |
1207 |
do |
for ac_dir in $ac_dummy; do |
1208 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
1209 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
1210 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_CC="gcc" |
1211 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
1212 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
fi |
1213 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
1214 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1215 |
fi |
fi |
1216 |
fi |
fi |
1217 |
CC=$ac_cv_prog_CC |
CC="$ac_cv_prog_CC" |
1218 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1219 |
echo "$as_me:$LINENO: result: $CC" >&5 |
echo "$ac_t""$CC" 1>&6 |
|
echo "${ECHO_T}$CC" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
fi |
|
|
if test -z "$ac_cv_prog_CC"; then |
|
|
ac_ct_CC=$CC |
|
|
# Extract the first word of "cc", so it can be a program name with args. |
|
|
set dummy cc; 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_prog_ac_ct_CC+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1220 |
else |
else |
1221 |
if test -n "$ac_ct_CC"; then |
echo "$ac_t""no" 1>&6 |
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
else |
|
|
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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_ac_ct_CC="cc" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
if test -n "$ac_ct_CC"; then |
|
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
CC=$ac_ct_CC |
|
|
else |
|
|
CC="$ac_cv_prog_CC" |
|
1222 |
fi |
fi |
1223 |
|
|
|
fi |
|
1224 |
if test -z "$CC"; then |
if test -z "$CC"; then |
1225 |
# Extract the first word of "cc", so it can be a program name with args. |
# Extract the first word of "cc", so it can be a program name with args. |
1226 |
set dummy cc; ac_word=$2 |
set dummy cc; ac_word=$2 |
1227 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1228 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:1229: checking for $ac_word" >&5 |
1229 |
if test "${ac_cv_prog_CC+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1230 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1231 |
else |
else |
1232 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1233 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1234 |
else |
else |
1235 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1236 |
ac_prog_rejected=no |
ac_prog_rejected=no |
1237 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
ac_dummy="$PATH" |
1238 |
for as_dir in $PATH |
for ac_dir in $ac_dummy; do |
1239 |
do |
test -z "$ac_dir" && ac_dir=. |
1240 |
IFS=$as_save_IFS |
if test -f $ac_dir/$ac_word; then |
1241 |
test -z "$as_dir" && as_dir=. |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
1242 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_prog_rejected=yes |
1243 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
continue |
1244 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
fi |
1245 |
ac_prog_rejected=yes |
ac_cv_prog_CC="cc" |
1246 |
continue |
break |
1247 |
fi |
fi |
1248 |
ac_cv_prog_CC="cc" |
done |
1249 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
IFS="$ac_save_ifs" |
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1250 |
if test $ac_prog_rejected = yes; then |
if test $ac_prog_rejected = yes; then |
1251 |
# We found a bogon in the path, so make sure we never use it. |
# We found a bogon in the path, so make sure we never use it. |
1252 |
set dummy $ac_cv_prog_CC |
set dummy $ac_cv_prog_CC |
1253 |
shift |
shift |
1254 |
if test $# != 0; then |
if test $# -gt 0; then |
1255 |
# We chose a different compiler from the bogus one. |
# We chose a different compiler from the bogus one. |
1256 |
# However, it has the same basename, so the bogon will be chosen |
# However, it has the same basename, so the bogon will be chosen |
1257 |
# first if we set CC to just the basename; use the full file name. |
# first if we set CC to just the basename; use the full file name. |
1258 |
shift |
shift |
1259 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
set dummy "$ac_dir/$ac_word" "$@" |
1260 |
|
shift |
1261 |
|
ac_cv_prog_CC="$@" |
1262 |
fi |
fi |
1263 |
fi |
fi |
1264 |
fi |
fi |
1265 |
fi |
fi |
1266 |
CC=$ac_cv_prog_CC |
CC="$ac_cv_prog_CC" |
1267 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1268 |
echo "$as_me:$LINENO: result: $CC" >&5 |
echo "$ac_t""$CC" 1>&6 |
|
echo "${ECHO_T}$CC" >&6 |
|
1269 |
else |
else |
1270 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1271 |
fi |
fi |
1272 |
|
|
1273 |
fi |
if test -z "$CC"; then |
1274 |
if test -z "$CC"; then |
case "`uname -s`" in |
1275 |
if test -n "$ac_tool_prefix"; then |
*win32* | *WIN32*) |
1276 |
for ac_prog in cl |
# Extract the first word of "cl", so it can be a program name with args. |
1277 |
do |
set dummy cl; ac_word=$2 |
1278 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1279 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
echo "configure:1280: checking for $ac_word" >&5 |
1280 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1281 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
if test "${ac_cv_prog_CC+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1282 |
else |
else |
1283 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1284 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1285 |
else |
else |
1286 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1287 |
for as_dir in $PATH |
ac_dummy="$PATH" |
1288 |
do |
for ac_dir in $ac_dummy; do |
1289 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
1290 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
1291 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_CC="cl" |
1292 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
1293 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
fi |
1294 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
1295 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1296 |
fi |
fi |
1297 |
fi |
fi |
1298 |
CC=$ac_cv_prog_CC |
CC="$ac_cv_prog_CC" |
1299 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1300 |
echo "$as_me:$LINENO: result: $CC" >&5 |
echo "$ac_t""$CC" 1>&6 |
|
echo "${ECHO_T}$CC" >&6 |
|
1301 |
else |
else |
1302 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1303 |
fi |
fi |
1304 |
|
;; |
1305 |
test -n "$CC" && break |
esac |
|
done |
|
|
fi |
|
|
if test -z "$CC"; then |
|
|
ac_ct_CC=$CC |
|
|
for ac_prog in cl |
|
|
do |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
set dummy $ac_prog; 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_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 |
|
|
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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_ac_ct_CC="$ac_prog" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
1306 |
fi |
fi |
1307 |
done |
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
if test -n "$ac_ct_CC"; then |
|
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
test -n "$ac_ct_CC" && break |
|
|
done |
|
|
|
|
|
CC=$ac_ct_CC |
|
|
fi |
|
|
|
|
1308 |
fi |
fi |
1309 |
|
|
1310 |
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1311 |
|
echo "configure:1312: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1312 |
|
|
1313 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
ac_ext=c |
1314 |
See \`config.log' for more details." >&5 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1315 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
ac_cpp='$CPP $CPPFLAGS' |
1316 |
See \`config.log' for more details." >&2;} |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1317 |
{ (exit 1); exit 1; }; } |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1318 |
|
cross_compiling=$ac_cv_prog_cc_cross |
|
# Provide some information about the compiler. |
|
|
echo "$as_me:$LINENO:" \ |
|
|
"checking for C compiler version" >&5 |
|
|
ac_compiler=`set X $ac_compile; echo $2` |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
|
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
|
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
|
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } |
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
1319 |
|
|
1320 |
int |
cat > conftest.$ac_ext << EOF |
|
main () |
|
|
{ |
|
1321 |
|
|
1322 |
; |
#line 1323 "configure" |
1323 |
return 0; |
#include "confdefs.h" |
|
} |
|
|
_ACEOF |
|
|
ac_clean_files_save=$ac_clean_files |
|
|
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
|
|
# 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. |
|
|
echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
|
|
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
|
|
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
|
|
(eval $ac_link_default) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; then |
|
|
# Find the output, starting from the most likely. This scheme is |
|
|
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
|
|
# resort. |
|
|
|
|
|
# Be careful to initialize this variable, since it used to be cached. |
|
|
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
|
|
ac_cv_exeext= |
|
|
# b.out is created by i960 compilers. |
|
|
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
|
|
do |
|
|
test -f "$ac_file" || continue |
|
|
case $ac_file in |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
|
|
;; |
|
|
conftest.$ac_ext ) |
|
|
# This is the source file. |
|
|
;; |
|
|
[ab].out ) |
|
|
# We found the default executable, but exeext='' is most |
|
|
# certainly right. |
|
|
break;; |
|
|
*.* ) |
|
|
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
|
# FIXME: I believe we export ac_cv_exeext for Libtool, |
|
|
# but it would be cool to find out if it's true. Does anybody |
|
|
# maintain Libtool? --akim. |
|
|
export ac_cv_exeext |
|
|
break;; |
|
|
* ) |
|
|
break;; |
|
|
esac |
|
|
done |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1324 |
|
|
1325 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
main(){return(0);} |
1326 |
See \`config.log' for more details." >&5 |
EOF |
1327 |
echo "$as_me: error: C compiler cannot create executables |
if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1328 |
See \`config.log' for more details." >&2;} |
ac_cv_prog_cc_works=yes |
1329 |
{ (exit 77); exit 77; }; } |
# If we can't run a trivial program, we are probably using a cross compiler. |
1330 |
fi |
if (./conftest; exit) 2>/dev/null; then |
1331 |
|
ac_cv_prog_cc_cross=no |
|
ac_exeext=$ac_cv_exeext |
|
|
echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
|
echo "${ECHO_T}$ac_file" >&6 |
|
|
|
|
|
# Check the compiler produces executables we can run. If not, either |
|
|
# the compiler is broken, or we cross compile. |
|
|
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
|
|
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
|
|
# 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' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cross_compiling=no |
|
1332 |
else |
else |
1333 |
if test "$cross_compiling" = maybe; then |
ac_cv_prog_cc_cross=yes |
|
cross_compiling=yes |
|
|
else |
|
|
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
|
|
If you meant to cross compile, use \`--host'. |
|
|
See \`config.log' for more details." >&5 |
|
|
echo "$as_me: error: cannot run C compiled programs. |
|
|
If you meant to cross compile, use \`--host'. |
|
|
See \`config.log' for more details." >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
1334 |
fi |
fi |
1335 |
|
else |
1336 |
|
echo "configure: failed program was:" >&5 |
1337 |
|
cat conftest.$ac_ext >&5 |
1338 |
|
ac_cv_prog_cc_works=no |
1339 |
fi |
fi |
1340 |
echo "$as_me:$LINENO: result: yes" >&5 |
rm -fr conftest* |
1341 |
echo "${ECHO_T}yes" >&6 |
ac_ext=c |
1342 |
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1343 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
ac_cpp='$CPP $CPPFLAGS' |
1344 |
ac_clean_files=$ac_clean_files_save |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1345 |
# Check the compiler produces executables we can run. If not, either |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1346 |
# the compiler is broken, or we cross compile. |
cross_compiling=$ac_cv_prog_cc_cross |
1347 |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
|
1348 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1349 |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
if test $ac_cv_prog_cc_works = no; then |
1350 |
echo "${ECHO_T}$cross_compiling" >&6 |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1351 |
|
fi |
1352 |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1353 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
echo "configure:1354: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1354 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1355 |
(eval $ac_link) 2>&5 |
cross_compiling=$ac_cv_prog_cc_cross |
1356 |
ac_status=$? |
|
1357 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1358 |
(exit $ac_status); }; then |
echo "configure:1359: checking whether we are using GNU C" >&5 |
1359 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1360 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
echo $ac_n "(cached) $ac_c" 1>&6 |
1361 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
else |
1362 |
# `rm'. |
cat > conftest.c <<EOF |
1363 |
for ac_file in conftest.exe conftest conftest.*; do |
#ifdef __GNUC__ |
1364 |
test -f "$ac_file" || continue |
yes; |
1365 |
case $ac_file in |
#endif |
1366 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
EOF |
1367 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1368 |
export ac_cv_exeext |
ac_cv_prog_gcc=yes |
|
break;; |
|
|
* ) break;; |
|
|
esac |
|
|
done |
|
1369 |
else |
else |
1370 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
ac_cv_prog_gcc=no |
1371 |
See \`config.log' for more details." >&5 |
fi |
1372 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
fi |
|
See \`config.log' for more details." >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
|
|
|
|
rm -f conftest$ac_cv_exeext |
|
|
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
|
|
echo "${ECHO_T}$ac_cv_exeext" >&6 |
|
|
|
|
|
rm -f conftest.$ac_ext |
|
|
EXEEXT=$ac_cv_exeext |
|
|
ac_exeext=$EXEEXT |
|
|
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
|
|
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
|
|
if test "${ac_cv_objext+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
1373 |
|
|
1374 |
int |
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
|
main () |
|
|
{ |
|
1375 |
|
|
1376 |
; |
if test $ac_cv_prog_gcc = yes; then |
1377 |
return 0; |
GCC=yes |
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.o conftest.obj |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; then |
|
|
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
|
|
case $ac_file in |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
|
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
|
break;; |
|
|
esac |
|
|
done |
|
1378 |
else |
else |
1379 |
echo "$as_me: failed program was:" >&5 |
GCC= |
1380 |
sed 's/^/| /' conftest.$ac_ext >&5 |
fi |
|
|
|
|
{ { 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;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
|
|
|
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
|
|
echo "${ECHO_T}$ac_cv_objext" >&6 |
|
|
OBJEXT=$ac_cv_objext |
|
|
ac_objext=$OBJEXT |
|
|
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 |
|
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
#ifndef __GNUC__ |
|
|
choke me |
|
|
#endif |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_compiler_gnu=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_compiler_gnu=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
|
|
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
|
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
|
|
GCC=`test $ac_compiler_gnu = yes && echo yes` |
|
|
ac_test_CFLAGS=${CFLAGS+set} |
|
|
ac_save_CFLAGS=$CFLAGS |
|
|
CFLAGS="-g" |
|
|
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
|
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_cc_g+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
1381 |
|
|
1382 |
; |
ac_test_CFLAGS="${CFLAGS+set}" |
1383 |
return 0; |
ac_save_CFLAGS="$CFLAGS" |
1384 |
} |
CFLAGS= |
1385 |
_ACEOF |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1386 |
rm -f conftest.$ac_objext |
echo "configure:1387: checking whether ${CC-cc} accepts -g" >&5 |
1387 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1388 |
(eval $ac_compile) 2>&5 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1389 |
ac_status=$? |
else |
1390 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo 'void f(){}' > conftest.c |
1391 |
(exit $ac_status); } && |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
1392 |
ac_cv_prog_cc_g=yes |
ac_cv_prog_cc_g=yes |
1393 |
else |
else |
1394 |
echo "$as_me: failed program was:" >&5 |
ac_cv_prog_cc_g=no |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_prog_cc_g=no |
|
1395 |
fi |
fi |
1396 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
1397 |
|
|
1398 |
fi |
fi |
1399 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
1400 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
1401 |
if test "$ac_test_CFLAGS" = set; then |
if test "$ac_test_CFLAGS" = set; then |
1402 |
CFLAGS=$ac_save_CFLAGS |
CFLAGS="$ac_save_CFLAGS" |
1403 |
elif test $ac_cv_prog_cc_g = yes; then |
elif test $ac_cv_prog_cc_g = yes; then |
1404 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
1405 |
CFLAGS="-g -O2" |
CFLAGS="-g -O2" |
1413 |
CFLAGS= |
CFLAGS= |
1414 |
fi |
fi |
1415 |
fi |
fi |
|
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
|
|
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_cv_prog_cc_stdc=no |
|
|
ac_save_CC=$CC |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stdarg.h> |
|
|
#include <stdio.h> |
|
|
#include <sys/types.h> |
|
|
#include <sys/stat.h> |
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
|
struct buf { int x; }; |
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
static char *e (p, i) |
|
|
char **p; |
|
|
int i; |
|
|
{ |
|
|
return p[i]; |
|
|
} |
|
|
static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
{ |
|
|
char *s; |
|
|
va_list v; |
|
|
va_start (v,p); |
|
|
s = g (p, va_arg (v,int)); |
|
|
va_end (v); |
|
|
return s; |
|
|
} |
|
|
int test (int i, double x); |
|
|
struct s1 {int (*f) (int a);}; |
|
|
struct s2 {int (*f) (double a);}; |
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
|
int argc; |
|
|
char **argv; |
|
|
int |
|
|
main () |
|
|
{ |
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
# Don't try gcc -ansi; that turns off useful extensions and |
|
|
# breaks some systems' header files. |
|
|
# AIX -qlanglvl=ansi |
|
|
# Ultrix and OSF/1 -std1 |
|
|
# HP-UX 10.20 and later -Ae |
|
|
# HP-UX older versions -Aa -D_HPUX_SOURCE |
|
|
# SVR4 -Xc -D__EXTENSIONS__ |
|
|
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
|
do |
|
|
CC="$ac_save_CC $ac_arg" |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_prog_cc_stdc=$ac_arg |
|
|
break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
fi |
|
|
rm -f conftest.$ac_objext |
|
|
done |
|
|
rm -f conftest.$ac_ext conftest.$ac_objext |
|
|
CC=$ac_save_CC |
|
|
|
|
|
fi |
|
1416 |
|
|
1417 |
case "x$ac_cv_prog_cc_stdc" in |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1418 |
x|xno) |
echo "configure:1419: checking how to run the C preprocessor" >&5 |
|
echo "$as_me:$LINENO: result: none needed" >&5 |
|
|
echo "${ECHO_T}none needed" >&6 ;; |
|
|
*) |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
|
|
CC="$CC $ac_cv_prog_cc_stdc" ;; |
|
|
esac |
|
|
|
|
|
# Some people use a C++ compiler to compile C. Since we use `exit', |
|
|
# in C++ we need to declare it. In case someone uses the same compiler |
|
|
# for both compiling C and C++ we need to have the C++ compiler decide |
|
|
# the declaration of exit, since it's the most demanding environment. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#ifndef __cplusplus |
|
|
choke me |
|
|
#endif |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
for ac_declaration in \ |
|
|
''\ |
|
|
'#include <stdlib.h>' \ |
|
|
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
|
|
'extern "C" void std::exit (int); using std::exit;' \ |
|
|
'extern "C" void exit (int) throw ();' \ |
|
|
'extern "C" void exit (int);' \ |
|
|
'void exit (int);' |
|
|
do |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stdlib.h> |
|
|
$ac_declaration |
|
|
int |
|
|
main () |
|
|
{ |
|
|
exit (42); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
: |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
continue |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_declaration |
|
|
int |
|
|
main () |
|
|
{ |
|
|
exit (42); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
rm -f conftest* |
|
|
if test -n "$ac_declaration"; then |
|
|
echo '#ifdef __cplusplus' >>confdefs.h |
|
|
echo $ac_declaration >>confdefs.h |
|
|
echo '#endif' >>confdefs.h |
|
|
fi |
|
|
|
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
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 |
|
|
|
|
|
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 |
|
|
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 |
|
1419 |
# On Suns, sometimes $CPP names a directory. |
# On Suns, sometimes $CPP names a directory. |
1420 |
if test -n "$CPP" && test -d "$CPP"; then |
if test -n "$CPP" && test -d "$CPP"; then |
1421 |
CPP= |
CPP= |
1422 |
fi |
fi |
1423 |
if test -z "$CPP"; then |
if test -z "$CPP"; then |
1424 |
if test "${ac_cv_prog_CPP+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
1425 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1426 |
else |
else |
1427 |
# Double quotes because CPP needs to be expanded |
# This must be in double quotes, not single quotes, because CPP may get |
1428 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
1429 |
do |
CPP="${CC-cc} -E" |
|
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. |
|
1430 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
# On the NeXT, cc -E runs the code through the compiler's parser, |
1431 |
# not just through cpp. "Syntax error" is here to catch this case. |
# not just through cpp. |
1432 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1433 |
#line $LINENO "configure" |
#line 1434 "configure" |
1434 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
1435 |
#include <assert.h> |
#include <assert.h> |
1436 |
Syntax error |
Syntax Error |
1437 |
_ACEOF |
EOF |
1438 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1439 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
{ (eval echo configure:1440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1440 |
ac_status=$? |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1441 |
grep -v '^ *+' conftest.er1 >conftest.err |
if test -z "$ac_err"; then |
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
1442 |
: |
: |
1443 |
else |
else |
1444 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
1445 |
sed 's/^/| /' conftest.$ac_ext >&5 |
echo "configure: failed program was:" >&5 |
1446 |
|
cat conftest.$ac_ext >&5 |
1447 |
# Broken: fails on valid input. |
rm -rf conftest* |
1448 |
continue |
CPP="${CC-cc} -E -traditional-cpp" |
1449 |
fi |
cat > conftest.$ac_ext <<EOF |
1450 |
rm -f conftest.err conftest.$ac_ext |
#line 1451 "configure" |
1451 |
|
#include "confdefs.h" |
|
# OK, works on sane cases. Now check whether non-existent headers |
|
|
# can be detected and how. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <ac_nonexistent.h> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
|
# 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 |
|
|
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 |
|
|
echo "$as_me:$LINENO: result: $CPP" >&5 |
|
|
echo "${ECHO_T}$CPP" >&6 |
|
|
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. |
|
|
# 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 |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
1452 |
#include <assert.h> |
#include <assert.h> |
1453 |
Syntax error |
Syntax Error |
1454 |
_ACEOF |
EOF |
1455 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1456 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
{ (eval echo configure:1457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1457 |
ac_status=$? |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1458 |
grep -v '^ *+' conftest.er1 >conftest.err |
if test -z "$ac_err"; then |
1459 |
rm -f conftest.er1 |
: |
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
1460 |
else |
else |
1461 |
ac_cpp_err=yes |
echo "$ac_err" >&5 |
1462 |
fi |
echo "configure: failed program was:" >&5 |
1463 |
if test -z "$ac_cpp_err"; then |
cat conftest.$ac_ext >&5 |
1464 |
|
rm -rf conftest* |
1465 |
|
CPP="${CC-cc} -nologo -E" |
1466 |
|
cat > conftest.$ac_ext <<EOF |
1467 |
|
#line 1468 "configure" |
1468 |
|
#include "confdefs.h" |
1469 |
|
#include <assert.h> |
1470 |
|
Syntax Error |
1471 |
|
EOF |
1472 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1473 |
|
{ (eval echo configure:1474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1474 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1475 |
|
if test -z "$ac_err"; then |
1476 |
: |
: |
1477 |
else |
else |
1478 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
1479 |
sed 's/^/| /' conftest.$ac_ext >&5 |
echo "configure: failed program was:" >&5 |
1480 |
|
cat conftest.$ac_ext >&5 |
1481 |
# Broken: fails on valid input. |
rm -rf conftest* |
1482 |
continue |
CPP=/lib/cpp |
1483 |
fi |
fi |
1484 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
|
|
|
|
# OK, works on sane cases. Now check whether non-existent headers |
|
|
# can be detected and how. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <ac_nonexistent.h> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
1485 |
fi |
fi |
1486 |
if test -z "$ac_cpp_err"; then |
rm -f conftest* |
|
# 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 |
|
1487 |
fi |
fi |
1488 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
1489 |
|
ac_cv_prog_CPP="$CPP" |
1490 |
done |
fi |
1491 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
CPP="$ac_cv_prog_CPP" |
|
rm -f conftest.err conftest.$ac_ext |
|
|
if $ac_preproc_ok; then |
|
|
: |
|
1492 |
else |
else |
1493 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
ac_cv_prog_CPP="$CPP" |
|
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; }; } |
|
1494 |
fi |
fi |
1495 |
|
echo "$ac_t""$CPP" 1>&6 |
|
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 |
|
1496 |
|
|
1497 |
|
|
1498 |
|
|
1540 |
|
|
1541 |
for ac_prog in gawk nawk awk |
for ac_prog in gawk nawk awk |
1542 |
do |
do |
1543 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1544 |
set dummy $ac_prog; ac_word=$2 |
set dummy $ac_prog; ac_word=$2 |
1545 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1546 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:1547: checking for $ac_word" >&5 |
1547 |
if test "${ac_cv_prog_AWK+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1548 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1549 |
else |
else |
1550 |
if test -n "$AWK"; then |
if test -n "$AWK"; then |
1551 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1552 |
else |
else |
1553 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1554 |
for as_dir in $PATH |
ac_dummy="$PATH" |
1555 |
do |
for ac_dir in $ac_dummy; do |
1556 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
1557 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
1558 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_AWK="$ac_prog" |
1559 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
1560 |
ac_cv_prog_AWK="$ac_prog" |
fi |
1561 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
1562 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1563 |
fi |
fi |
1564 |
fi |
fi |
1565 |
AWK=$ac_cv_prog_AWK |
AWK="$ac_cv_prog_AWK" |
1566 |
if test -n "$AWK"; then |
if test -n "$AWK"; then |
1567 |
echo "$as_me:$LINENO: result: $AWK" >&5 |
echo "$ac_t""$AWK" 1>&6 |
|
echo "${ECHO_T}$AWK" >&6 |
|
1568 |
else |
else |
1569 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1570 |
fi |
fi |
1571 |
|
|
1572 |
test -n "$AWK" && break |
test -n "$AWK" && break |
1573 |
done |
done |
1574 |
test -n "$AWK" || AWK="""" |
test -n "$AWK" || AWK="""" |
1575 |
|
|
1578 |
TCFLAGS="$TCFLAGS -pg" |
TCFLAGS="$TCFLAGS -pg" |
1579 |
TLIBS="$TLIBS -pg" |
TLIBS="$TLIBS -pg" |
1580 |
TFPFLAG="" |
TFPFLAG="" |
1581 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
1582 |
#define GCL_GPROF 1 |
#define GCL_GPROF 1 |
1583 |
_ACEOF |
EOF |
1584 |
|
|
1585 |
echo "$as_me:$LINENO: checking for text start" >&5 |
echo $ac_n "checking for text start""... $ac_c" 1>&6 |
1586 |
echo $ECHO_N "checking for text start... $ECHO_C" >&6 |
echo "configure:1587: checking for text start" >&5 |
1587 |
echo 'int main () {return(0);}' >foo.c |
echo 'int main () {return(0);}' >foo.c |
1588 |
$CC foo.c -o foo |
$CC foo.c -o foo |
1589 |
GCL_GPROF_START=`nm foo | $AWK '/ *T *__*start$/ {print $NF}'` |
GCL_GPROF_START=`nm foo | $AWK '/ *T *__*start$/ {print $NF}'` |
1590 |
rm -f foo.c foo |
rm -f foo.c foo |
1591 |
echo "$as_me:$LINENO: result: $GCL_GPROF_START" >&5 |
echo "$ac_t""$GCL_GPROF_START" 1>&6 |
1592 |
echo "${ECHO_T}$GCL_GPROF_START" >&6 |
cat >> confdefs.h <<EOF |
|
cat >>confdefs.h <<_ACEOF |
|
1593 |
#define GCL_GPROF_START $GCL_GPROF_START |
#define GCL_GPROF_START $GCL_GPROF_START |
1594 |
_ACEOF |
EOF |
1595 |
|
|
1596 |
case "$use" in |
case "$use" in |
1597 |
arm*) |
arm*) |
1598 |
#FIXME report and remove this when done |
#FIXME report and remove this when done |
1599 |
echo "$as_me:$LINENO: result: Reducing optimization on profiling arm build to workaround gcc bug" >&5 |
echo "$ac_t""Reducing optimization on profiling arm build to workaround gcc bug" 1>&6 |
|
echo "${ECHO_T}Reducing optimization on profiling arm build to workaround gcc bug" >&6 |
|
1600 |
enable_debug=yes;; |
enable_debug=yes;; |
1601 |
esac |
esac |
1602 |
fi |
fi |
1619 |
|
|
1620 |
# gcc on ppc cannot compile our new_init.c with full opts --CM |
# gcc on ppc cannot compile our new_init.c with full opts --CM |
1621 |
TONIFLAGS="" |
TONIFLAGS="" |
1622 |
case $use in |
case $use in |
1623 |
*linux) |
*linux) |
1624 |
case $use in |
case $use in |
1625 |
# amd64*) # stack-boundary option does not work |
# amd64*) # stack-boundary option does not work |
1626 |
# TCFLAGS="$TCFLAGS -m64 -mpreferred-stack-boundary=8";; |
# TCFLAGS="$TCFLAGS -m64 -mpreferred-stack-boundary=8";; |
1627 |
alpha*) |
alpha*) |
1628 |
TCFLAGS="$TCFLAGS -mieee";; |
TCFLAGS="$TCFLAGS -mieee";; |
1629 |
# m68k*) |
# m68k*) |
1634 |
if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi |
if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi |
1635 |
;; |
;; |
1636 |
arm*) |
arm*) |
1637 |
TCFLAGS="$TCFLAGS -mlong-calls";; |
TCFLAGS="$TCFLAGS -mlong-calls";; |
1638 |
powerpc*) |
powerpc*) |
1639 |
if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then |
if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then |
1640 |
echo Reducing optimization for buggy gcc-3.2 |
echo Reducing optimization for buggy gcc-3.2 |
1641 |
if test "$enable_debug" != "yes" ; then TONIFLAGS="-O $TFPFLAG" ; fi |
if test "$enable_debug" != "yes" ; then TONIFLAGS="-O $TFPFLAG" ; fi |
1658 |
# for the system. This can usually be done via the "uname" command, but |
# for the system. This can usually be done via the "uname" command, but |
1659 |
# there are a few systems, like Next, where this doesn't work. |
# there are a few systems, like Next, where this doesn't work. |
1660 |
|
|
1661 |
echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5 |
echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6 |
1662 |
echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6 |
echo "configure:1663: checking system version (for dynamic loading)" >&5 |
1663 |
if machine=`uname -m` ; then true; else machine=unknown ; fi |
if machine=`uname -m` ; then true; else machine=unknown ; fi |
1664 |
|
|
1665 |
for ac_prog in makeinfo |
for ac_prog in makeinfo |
1666 |
do |
do |
1667 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1668 |
set dummy $ac_prog; ac_word=$2 |
set dummy $ac_prog; ac_word=$2 |
1669 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1670 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:1671: checking for $ac_word" >&5 |
1671 |
if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then |
1672 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1673 |
else |
else |
1674 |
if test -n "$MAKEINFO"; then |
if test -n "$MAKEINFO"; then |
1675 |
ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
1676 |
else |
else |
1677 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1678 |
for as_dir in $PATH |
ac_dummy="$PATH" |
1679 |
do |
for ac_dir in $ac_dummy; do |
1680 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
1681 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
1682 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_MAKEINFO="$ac_prog" |
1683 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
1684 |
ac_cv_prog_MAKEINFO="$ac_prog" |
fi |
1685 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
1686 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1687 |
fi |
fi |
1688 |
fi |
fi |
1689 |
MAKEINFO=$ac_cv_prog_MAKEINFO |
MAKEINFO="$ac_cv_prog_MAKEINFO" |
1690 |
if test -n "$MAKEINFO"; then |
if test -n "$MAKEINFO"; then |
1691 |
echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
echo "$ac_t""$MAKEINFO" 1>&6 |
|
echo "${ECHO_T}$MAKEINFO" >&6 |
|
1692 |
else |
else |
1693 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1694 |
fi |
fi |
1695 |
|
|
1696 |
test -n "$MAKEINFO" && break |
test -n "$MAKEINFO" && break |
1697 |
done |
done |
1698 |
test -n "$MAKEINFO" || MAKEINFO=""false"" |
test -n "$MAKEINFO" || MAKEINFO=""false"" |
1699 |
|
|
1704 |
else |
else |
1705 |
system=`uname -s`-`uname -r` |
system=`uname -s`-`uname -r` |
1706 |
if test "$?" -ne 0 ; then |
if test "$?" -ne 0 ; then |
1707 |
echo "$as_me:$LINENO: result: unknown (can't find uname command)" >&5 |
echo "$ac_t""unknown (can't find uname command)" 1>&6 |
|
echo "${ECHO_T}unknown (can't find uname command)" >&6 |
|
1708 |
system=unknown |
system=unknown |
1709 |
else |
else |
1710 |
# Special check for weird MP-RAS system (uname returns weird |
# Special check for weird MP-RAS system (uname returns weird |
1711 |
# results, and the version is kept in special file). |
# results, and the version is kept in special file). |
1712 |
|
|
1713 |
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then |
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then |
1714 |
system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'` |
system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'` |
1715 |
fi |
fi |
1716 |
if test "`uname -s`" = "AIX" ; then |
if test "`uname -s`" = "AIX" ; then |
1717 |
system=AIX-`uname -v`.`uname -r` |
system=AIX-`uname -v`.`uname -r` |
1718 |
fi |
fi |
1719 |
echo "$as_me:$LINENO: result: $system" >&5 |
echo "$ac_t""$system" 1>&6 |
|
echo "${ECHO_T}$system" >&6 |
|
|
fi |
|
|
fi |
|
|
|
|
|
#MY_SUBDIRS= |
|
|
|
|
|
# |
|
|
# GMP |
|
|
# |
|
|
|
|
|
rm -f makedefsafter |
|
|
|
|
|
MP_INCLUDE="" |
|
|
if test $use_gmp = yes ; then |
|
|
|
|
|
GMPDIR=gmp3 |
|
|
PATCHED_SYMBOLS="" |
|
|
if test "$enable_dynsysgmp" = "yes" ; then |
|
|
|
|
|
echo "$as_me:$LINENO: checking for egrep" >&5 |
|
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_egrep+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|
|
then ac_cv_prog_egrep='grep -E' |
|
|
else ac_cv_prog_egrep='egrep' |
|
1720 |
fi |
fi |
1721 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|
|
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|
|
EGREP=$ac_cv_prog_egrep |
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
if test "${ac_cv_header_stdc+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stdlib.h> |
|
|
#include <stdarg.h> |
|
|
#include <string.h> |
|
|
#include <float.h> |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
1722 |
|
|
1723 |
; |
# sysconf |
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_header_stdc=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_header_stdc=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
|
|
|
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 |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <string.h> |
|
1724 |
|
|
1725 |
_ACEOF |
ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'` |
1726 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
echo $ac_n "checking for unistd.h""... $ac_c" 1>&6 |
1727 |
$EGREP "memchr" >/dev/null 2>&1; then |
echo "configure:1728: checking for unistd.h" >&5 |
1728 |
: |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1729 |
else |
echo $ac_n "(cached) $ac_c" 1>&6 |
1730 |
ac_cv_header_stdc=no |
else |
1731 |
|
cat > conftest.$ac_ext <<EOF |
1732 |
|
#line 1733 "configure" |
1733 |
|
#include "confdefs.h" |
1734 |
|
#include <unistd.h> |
1735 |
|
EOF |
1736 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1737 |
|
{ (eval echo configure:1738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1738 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1739 |
|
if test -z "$ac_err"; then |
1740 |
|
rm -rf conftest* |
1741 |
|
eval "ac_cv_header_$ac_safe=yes" |
1742 |
|
else |
1743 |
|
echo "$ac_err" >&5 |
1744 |
|
echo "configure: failed program was:" >&5 |
1745 |
|
cat conftest.$ac_ext >&5 |
1746 |
|
rm -rf conftest* |
1747 |
|
eval "ac_cv_header_$ac_safe=no" |
1748 |
fi |
fi |
1749 |
rm -f conftest* |
rm -f conftest* |
|
|
|
1750 |
fi |
fi |
1751 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1752 |
|
echo "$ac_t""yes" 1>&6 |
1753 |
|
echo $ac_n "checking for sysconf in -lc""... $ac_c" 1>&6 |
1754 |
|
echo "configure:1755: checking for sysconf in -lc" >&5 |
1755 |
|
ac_lib_var=`echo c'_'sysconf | sed 'y%./+-%__p_%'` |
1756 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1757 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1758 |
|
else |
1759 |
|
ac_save_LIBS="$LIBS" |
1760 |
|
LIBS="-lc $LIBS" |
1761 |
|
cat > conftest.$ac_ext <<EOF |
1762 |
|
#line 1763 "configure" |
1763 |
|
#include "confdefs.h" |
1764 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1765 |
|
/* We use char because int might match the return type of a gcc2 |
1766 |
|
builtin and then its argument prototype would still apply. */ |
1767 |
|
char sysconf(); |
1768 |
|
|
1769 |
if test $ac_cv_header_stdc = yes; then |
int main() { |
1770 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
sysconf() |
1771 |
cat >conftest.$ac_ext <<_ACEOF |
; return 0; } |
1772 |
#line $LINENO "configure" |
EOF |
1773 |
/* confdefs.h. */ |
if { (eval echo configure:1774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1774 |
_ACEOF |
rm -rf conftest* |
1775 |
cat confdefs.h >>conftest.$ac_ext |
eval "ac_cv_lib_$ac_lib_var=yes" |
1776 |
cat >>conftest.$ac_ext <<_ACEOF |
else |
1777 |
/* end confdefs.h. */ |
echo "configure: failed program was:" >&5 |
1778 |
#include <stdlib.h> |
cat conftest.$ac_ext >&5 |
1779 |
|
rm -rf conftest* |
1780 |
_ACEOF |
eval "ac_cv_lib_$ac_lib_var=no" |
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
$EGREP "free" >/dev/null 2>&1; then |
|
|
: |
|
|
else |
|
|
ac_cv_header_stdc=no |
|
1781 |
fi |
fi |
1782 |
rm -f conftest* |
rm -f conftest* |
1783 |
|
LIBS="$ac_save_LIBS" |
1784 |
|
|
1785 |
fi |
fi |
1786 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1787 |
if test $ac_cv_header_stdc = yes; then |
echo "$ac_t""yes" 1>&6 |
1788 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
echo $ac_n "checking "for _SC_CLK_TCK"""... $ac_c" 1>&6 |
1789 |
if test "$cross_compiling" = yes; then |
echo "configure:1790: checking "for _SC_CLK_TCK"" >&5 |
1790 |
: |
if test "$cross_compiling" = yes; then |
1791 |
|
hz=0 |
1792 |
else |
else |
1793 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1794 |
#line $LINENO "configure" |
#line 1795 "configure" |
1795 |
/* confdefs.h. */ |
#include "confdefs.h" |
1796 |
_ACEOF |
#include <unistd.h> |
1797 |
cat confdefs.h >>conftest.$ac_ext |
#include <stdio.h> |
1798 |
cat >>conftest.$ac_ext <<_ACEOF |
int |
1799 |
/* end confdefs.h. */ |
main() { |
1800 |
#include <ctype.h> |
FILE *fp=fopen("conftest1","w"); |
1801 |
#if ((' ' & 0x0FF) == 0x020) |
fprintf(fp,"%lu\n",sysconf(_SC_CLK_TCK)); |
1802 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
fclose(fp); |
1803 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
return 0; |
1804 |
#else |
} |
1805 |
# define ISLOWER(c) \ |
EOF |
1806 |
(('a' <= (c) && (c) <= 'i') \ |
if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1807 |
|| ('j' <= (c) && (c) <= 'r') \ |
then |
1808 |
|| ('s' <= (c) && (c) <= 'z')) |
hz=`cat conftest1` |
1809 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
cat >> confdefs.h <<EOF |
1810 |
#endif |
#define HZ $hz |
1811 |
|
EOF |
1812 |
|
|
1813 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
int |
|
|
main () |
|
|
{ |
|
|
int i; |
|
|
for (i = 0; i < 256; i++) |
|
|
if (XOR (islower (i), ISLOWER (i)) |
|
|
|| toupper (i) != TOUPPER (i)) |
|
|
exit(2); |
|
|
exit (0); |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
: |
|
1814 |
else |
else |
1815 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
1816 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
1817 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
1818 |
|
hz=0 |
|
( exit $ac_status ) |
|
|
ac_cv_header_stdc=no |
|
|
fi |
|
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
1819 |
fi |
fi |
1820 |
|
rm -fr conftest* |
1821 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
if test $ac_cv_header_stdc = yes; then |
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
#define STDC_HEADERS 1 |
|
|
_ACEOF |
|
1822 |
|
|
1823 |
|
echo "$ac_t""$hz" 1>&6 |
1824 |
|
else |
1825 |
|
echo "$ac_t""no" 1>&6 |
1826 |
fi |
fi |
1827 |
|
|
1828 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
else |
1829 |
|
echo "$ac_t""no" 1>&6 |
1830 |
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
1831 |
|
|
1832 |
|
|
1833 |
|
|
1834 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
#MY_SUBDIRS= |
|
inttypes.h stdint.h unistd.h |
|
|
do |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* 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 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
eval "$as_ac_Header=yes" |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
eval "$as_ac_Header=no" |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
1835 |
|
|
1836 |
fi |
# |
1837 |
|
# GMP |
1838 |
|
# |
1839 |
|
|
1840 |
done |
rm -f makedefsafter |
1841 |
|
|
1842 |
|
MP_INCLUDE="" |
1843 |
|
if test $use_gmp = yes ; then |
1844 |
|
|
1845 |
if test "${ac_cv_header_gmp_h+set}" = set; then |
GMPDIR=gmp3 |
1846 |
echo "$as_me:$LINENO: checking for gmp.h" >&5 |
PATCHED_SYMBOLS="" |
1847 |
echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6 |
if test "$enable_dynsysgmp" = "yes" ; then |
1848 |
if test "${ac_cv_header_gmp_h+set}" = set; then |
ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'` |
1849 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "checking for gmp.h""... $ac_c" 1>&6 |
1850 |
fi |
echo "configure:1851: checking for gmp.h" >&5 |
1851 |
echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1852 |
echo "${ECHO_T}$ac_cv_header_gmp_h" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1853 |
else |
else |
1854 |
# Is the header compilable? |
cat > conftest.$ac_ext <<EOF |
1855 |
echo "$as_me:$LINENO: checking gmp.h usability" >&5 |
#line 1856 "configure" |
1856 |
echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6 |
#include "confdefs.h" |
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
#include <gmp.h> |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 gmp.h presence" >&5 |
|
|
echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
1857 |
#include <gmp.h> |
#include <gmp.h> |
1858 |
_ACEOF |
EOF |
1859 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1860 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
{ (eval echo configure:1861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1861 |
ac_status=$? |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1862 |
grep -v '^ *+' conftest.er1 >conftest.err |
if test -z "$ac_err"; then |
1863 |
rm -f conftest.er1 |
rm -rf conftest* |
1864 |
cat conftest.err >&5 |
eval "ac_cv_header_$ac_safe=yes" |
1865 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
else |
1866 |
(exit $ac_status); } >/dev/null; then |
echo "$ac_err" >&5 |
1867 |
if test -s conftest.err; then |
echo "configure: failed program was:" >&5 |
1868 |
ac_cpp_err=$ac_c_preproc_warn_flag |
cat conftest.$ac_ext >&5 |
1869 |
else |
rm -rf conftest* |
1870 |
ac_cpp_err= |
eval "ac_cv_header_$ac_safe=no" |
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_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 in |
|
|
yes:no ) |
|
|
{ echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
no:yes ) |
|
|
{ echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5 |
|
|
echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5 |
|
|
echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for gmp.h" >&5 |
|
|
echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6 |
|
|
if test "${ac_cv_header_gmp_h+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_cv_header_gmp_h=$ac_header_preproc |
|
1871 |
fi |
fi |
1872 |
echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5 |
rm -f conftest* |
|
echo "${ECHO_T}$ac_cv_header_gmp_h" >&6 |
|
|
|
|
1873 |
fi |
fi |
1874 |
if test $ac_cv_header_gmp_h = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1875 |
echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5 |
echo "$ac_t""yes" 1>&6 |
1876 |
echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6 |
echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6 |
1877 |
if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then |
echo "configure:1878: checking for __gmpz_init in -lgmp" >&5 |
1878 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'` |
1879 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1880 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1881 |
else |
else |
1882 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
1883 |
LIBS="-lgmp $LIBS" |
LIBS="-lgmp $LIBS" |
1884 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1885 |
#line $LINENO "configure" |
#line 1886 "configure" |
1886 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
1887 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
1888 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
1889 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
1890 |
char __gmpz_init (); |
char __gmpz_init(); |
|
int |
|
|
main () |
|
|
{ |
|
|
__gmpz_init (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_gmp___gmpz_init=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_gmp___gmpz_init=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6 |
|
|
if test $ac_cv_lib_gmp___gmpz_init = yes; then |
|
|
echo "$as_me:$LINENO: checking \"for external gmp version\"" >&5 |
|
|
echo $ECHO_N "checking \"for external gmp version\"... $ECHO_C" >&6 |
|
1891 |
|
|
1892 |
if test "$cross_compiling" = yes; then |
int main() { |
1893 |
echo "Cannot use dynamic gmp lib" |
__gmpz_init() |
1894 |
|
; return 0; } |
1895 |
|
EOF |
1896 |
|
if { (eval echo configure:1897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1897 |
|
rm -rf conftest* |
1898 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1899 |
|
else |
1900 |
|
echo "configure: failed program was:" >&5 |
1901 |
|
cat conftest.$ac_ext >&5 |
1902 |
|
rm -rf conftest* |
1903 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
1904 |
|
fi |
1905 |
|
rm -f conftest* |
1906 |
|
LIBS="$ac_save_LIBS" |
1907 |
|
|
1908 |
|
fi |
1909 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1910 |
|
echo "$ac_t""yes" 1>&6 |
1911 |
|
echo $ac_n "checking "for external gmp version"""... $ac_c" 1>&6 |
1912 |
|
echo "configure:1913: checking "for external gmp version"" >&5 |
1913 |
|
if test "$cross_compiling" = yes; then |
1914 |
|
echo "Cannot use dynamic gmp lib" |
1915 |
else |
else |
1916 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1917 |
#line $LINENO "configure" |
#line 1918 "configure" |
1918 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
1919 |
#include <gmp.h> |
#include <gmp.h> |
1920 |
int main() { |
int main() { |
1921 |
#if __GNU_MP_VERSION == 4 |
#if __GNU_MP_VERSION == 4 |
1924 |
return -1; |
return -1; |
1925 |
#endif |
#endif |
1926 |
} |
} |
1927 |
_ACEOF |
EOF |
1928 |
rm -f conftest$ac_exeext |
if { (eval echo configure:1929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1929 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
1930 |
# MPFILES=$GMPDIR/mpn/mul_n.o |
# MPFILES=$GMPDIR/mpn/mul_n.o |
1931 |
# PATCHED_SYMBOLS=__gmpn_toom3_mul_n |
# PATCHED_SYMBOLS=__gmpn_toom3_mul_n |
1932 |
MPFILES= |
MPFILES= |
1941 |
MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -n 1 | $AWK '{print $3}' | tr -d '"'` |
MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -n 1 | $AWK '{print $3}' | tr -d '"'` |
1942 |
rm -f foo.c |
rm -f foo.c |
1943 |
else |
else |
1944 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
1945 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
1946 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
1947 |
|
echo "Cannot use dynamic gmp lib" |
|
( exit $ac_status ) |
|
|
echo "Cannot use dynamic gmp lib" |
|
1948 |
fi |
fi |
1949 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
1950 |
fi |
fi |
1951 |
|
|
1952 |
else |
else |
1953 |
echo "Cannot use dynamic gmp lib" |
echo "$ac_t""no" 1>&6 |
1954 |
|
echo "Cannot use dynamic gmp lib" |
1955 |
fi |
fi |
1956 |
|
|
1957 |
else |
else |
1958 |
echo "Cannot use dynamic gmp lib" |
echo "$ac_t""no" 1>&6 |
1959 |
|
echo "Cannot use dynamic gmp lib" |
1960 |
fi |
fi |
1961 |
|
|
|
|
|
1962 |
fi |
fi |
1963 |
|
|
1964 |
NEED_LOCAL_GMP='' |
NEED_LOCAL_GMP='' |
1965 |
if test "$MP_INCLUDE" = "" ; then |
if test "$MP_INCLUDE" = "" ; then |
1966 |
NEED_LOCAL_GMP=1; |
NEED_LOCAL_GMP=1; |
1967 |
fi |
fi |
1968 |
if test "$PATCHED_SYMBOLS" != "" ; then |
if test "$PATCHED_SYMBOLS" != "" ; then |
1969 |
NEED_LOCAL_GMP=1; |
NEED_LOCAL_GMP=1; |
1970 |
fi |
fi |
1971 |
|
|
1972 |
if test "$NEED_LOCAL_GMP" != "" ; then |
if test "$NEED_LOCAL_GMP" != "" ; then |
1973 |
|
|
1974 |
echo "$as_me:$LINENO: checking use_gmp=yes, doing configure in gmp directory" >&5 |
echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6 |
1975 |
echo $ECHO_N "checking use_gmp=yes, doing configure in gmp directory... $ECHO_C" >&6 |
echo "configure:1976: checking use_gmp=yes, doing configure in gmp directory" >&5 |
1976 |
echo |
echo |
1977 |
echo "#" |
echo "#" |
1978 |
echo "#" |
echo "#" |
1986 |
else |
else |
1987 |
cd $GMPDIR && ./configure && cd .. |
cd $GMPDIR && ./configure && cd .. |
1988 |
fi |
fi |
1989 |
#MY_SUBDIRS="$MY_SUBDIRS $GMPDIR" |
#MY_SUBDIRS="$MY_SUBDIRS $GMPDIR" |
1990 |
|
|
1991 |
echo "#" |
echo "#" |
1992 |
echo "#" |
echo "#" |
2003 |
|
|
2004 |
fi |
fi |
2005 |
|
|
2006 |
echo "$as_me:$LINENO: checking \"for leading underscore in object symbols\"" >&5 |
echo $ac_n "checking "for leading underscore in object symbols"""... $ac_c" 1>&6 |
2007 |
echo $ECHO_N "checking \"for leading underscore in object symbols\"... $ECHO_C" >&6 |
echo "configure:2008: checking "for leading underscore in object symbols"" >&5 |
2008 |
cat>foo.c <<EOFF |
cat>foo.c <<EOFF |
2009 |
#include <math.h> |
#include <math.h> |
2010 |
int main() {double d=0.0;cos(d);return 0;} |
int main() {double d=0.0;cos(d);return 0;} |
2012 |
$CC -c foo.c -o foo.o |
$CC -c foo.c -o foo.o |
2013 |
if nm foo.o |grep " U " | grep "_cos" >/dev/null ; then |
if nm foo.o |grep " U " | grep "_cos" >/dev/null ; then |
2014 |
LEADING_UNDERSCORE=1 |
LEADING_UNDERSCORE=1 |
2015 |
echo "$as_me:$LINENO: result: \"yes\"" >&5 |
echo "$ac_t"""yes"" 1>&6 |
|
echo "${ECHO_T}\"yes\"" >&6 |
|
2016 |
else |
else |
2017 |
LEADING_UNDERSCORE="" |
LEADING_UNDERSCORE="" |
2018 |
echo "$as_me:$LINENO: result: \"no\"" >&5 |
echo "$ac_t"""no"" 1>&6 |
|
echo "${ECHO_T}\"no\"" >&6 |
|
2019 |
fi |
fi |
2020 |
echo "$as_me:$LINENO: checking \"for GNU ld option -Map\"" >&5 |
echo $ac_n "checking "for GNU ld option -Map"""... $ac_c" 1>&6 |
2021 |
echo $ECHO_N "checking \"for GNU ld option -Map\"... $ECHO_C" >&6 |
echo "configure:2022: checking "for GNU ld option -Map"" >&5 |
2022 |
touch map |
touch map |
2023 |
$CC -o foo -Wl,-Map map foo.o >/dev/null 2>&1 |
$CC -o foo -Wl,-Map map foo.o >/dev/null 2>&1 |
2024 |
if test `cat map | wc -l` != "0" ; then |
if test `cat map | wc -l` != "0" ; then |
2025 |
echo "$as_me:$LINENO: result: \"yes\"" >&5 |
echo "$ac_t"""yes"" 1>&6 |
2026 |
echo "${ECHO_T}\"yes\"" >&6 |
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
2027 |
#define HAVE_GNU_LD 1 |
#define HAVE_GNU_LD 1 |
2028 |
_ACEOF |
EOF |
2029 |
|
|
2030 |
GNU_LD=1 |
GNU_LD=1 |
2031 |
else |
else |
2032 |
echo "$as_me:$LINENO: result: \"no\"" >&5 |
echo "$ac_t"""no"" 1>&6 |
|
echo "${ECHO_T}\"no\"" >&6 |
|
2033 |
GNU_LD= |
GNU_LD= |
2034 |
fi |
fi |
2035 |
rm -f foo.c foo.o foo map |
rm -f foo.c foo.o foo map |
2036 |
|
|
2037 |
echo "$as_me:$LINENO: checking \"for size of gmp limbs\"" >&5 |
echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6 |
2038 |
echo $ECHO_N "checking \"for size of gmp limbs\"... $ECHO_C" >&6 |
echo "configure:2039: checking "for size of gmp limbs"" >&5 |
2039 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
2040 |
mpsize=0 |
mpsize=0 |
2041 |
else |
else |
2042 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2043 |
#line $LINENO "configure" |
#line 2044 "configure" |
2044 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
2045 |
#include <stdio.h> |
#include <stdio.h> |
2046 |
#include "$MP_INCLUDE" |
#include "$MP_INCLUDE" |
2047 |
int main() { |
int main() { |
2050 |
fclose(fp); |
fclose(fp); |
2051 |
return 0; |
return 0; |
2052 |
} |
} |
2053 |
_ACEOF |
EOF |
2054 |
rm -f conftest$ac_exeext |
if { (eval echo configure:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2055 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
2056 |
mpsize=`cat conftest1` |
mpsize=`cat conftest1` |
2057 |
else |
else |
2058 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
2059 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
2060 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
2061 |
|
mpsize=0 |
|
( exit $ac_status ) |
|
|
mpsize=0 |
|
2062 |
fi |
fi |
2063 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
2064 |
fi |
fi |
2065 |
|
|
2066 |
if test "$mpsize" = "0" ; then |
if test "$mpsize" = "0" ; then |
2067 |
echo "Cannot determine mpsize" |
echo "Cannot determine mpsize" |
2068 |
exit 1 |
exit 1 |
2069 |
fi |
fi |
2070 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
2071 |
#define MP_LIMB_BYTES $mpsize |
#define MP_LIMB_BYTES $mpsize |
2072 |
_ACEOF |
EOF |
2073 |
|
|
2074 |
echo "$as_me:$LINENO: result: $mpsize" >&5 |
echo "$ac_t""$mpsize" 1>&6 |
|
echo "${ECHO_T}$mpsize" >&6 |
|
2075 |
|
|
2076 |
echo "$as_me:$LINENO: checking \"_SHORT_LIMB\"" >&5 |
echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6 |
2077 |
echo $ECHO_N "checking \"_SHORT_LIMB\"... $ECHO_C" >&6 |
echo "configure:2078: checking "_SHORT_LIMB"" >&5 |
2078 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
2079 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
2080 |
else |
else |
2081 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2082 |
#line $LINENO "configure" |
#line 2083 "configure" |
2083 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
2084 |
#include <stdio.h> |
#include <stdio.h> |
2085 |
#include "$MP_INCLUDE" |
#include "$MP_INCLUDE" |
2086 |
int main() { |
int main() { |
2090 |
return 1; |
return 1; |
2091 |
#endif |
#endif |
2092 |
} |
} |
2093 |
_ACEOF |
EOF |
2094 |
rm -f conftest$ac_exeext |
if { (eval echo configure:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2095 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
2096 |
(eval $ac_link) 2>&5 |
cat >> confdefs.h <<\EOF |
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
2097 |
#define __SHORT_LIMB 1 |
#define __SHORT_LIMB 1 |
2098 |
_ACEOF |
EOF |
2099 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
2100 |
echo "${ECHO_T}yes" >&6 |
else |
2101 |
else |
echo "configure: failed program was:" >&5 |
2102 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
2103 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
2104 |
sed 's/^/| /' conftest.$ac_ext >&5 |
echo "$ac_t""no" 1>&6 |
|
|
|
|
( exit $ac_status ) |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
2105 |
fi |
fi |
2106 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
2107 |
fi |
fi |
2108 |
echo "$as_me:$LINENO: checking \"_LONG_LONG_LIMB\"" >&5 |
|
2109 |
echo $ECHO_N "checking \"_LONG_LONG_LIMB\"... $ECHO_C" >&6 |
echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6 |
2110 |
|
echo "configure:2111: checking "_LONG_LONG_LIMB"" >&5 |
2111 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
2112 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
2113 |
else |
else |
2114 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2115 |
#line $LINENO "configure" |
#line 2116 "configure" |
2116 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
2117 |
#include <stdio.h> |
#include <stdio.h> |
2118 |
#include "$MP_INCLUDE" |
#include "$MP_INCLUDE" |
2119 |
int main() { |
int main() { |
2123 |
return 1; |
return 1; |
2124 |
#endif |
#endif |
2125 |
} |
} |
2126 |
_ACEOF |
EOF |
2127 |
rm -f conftest$ac_exeext |
if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2128 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
2129 |
(eval $ac_link) 2>&5 |
cat >> confdefs.h <<\EOF |
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
2130 |
#define __LONG_LONG_LIMB 1 |
#define __LONG_LONG_LIMB 1 |
2131 |
_ACEOF |
EOF |
2132 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
2133 |
echo "${ECHO_T}yes" >&6 |
else |
2134 |
else |
echo "configure: failed program was:" >&5 |
2135 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
2136 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
2137 |
sed 's/^/| /' conftest.$ac_ext >&5 |
echo "$ac_t""no" 1>&6 |
|
|
|
|
( exit $ac_status ) |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
2138 |
fi |
fi |
2139 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
2140 |
fi |
fi |
2141 |
|
|
2142 |
|
|
2143 |
GMP=1 |
GMP=1 |
2144 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
2145 |
#define GMP 1 |
#define GMP 1 |
2146 |
_ACEOF |
EOF |
|
|
|
|
|
|
2147 |
|
|
2148 |
|
|
2149 |
|
|
2150 |
echo > makedefsafter |
echo > makedefsafter |
2151 |
echo "MPFILES=$MPFILES" >> makedefsafter |
echo "MPFILES=$MPFILES" >> makedefsafter |
2152 |
echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter |
echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter |
2156 |
|
|
2157 |
# |
# |
2158 |
# X windows |
# X windows |
2159 |
# |
# |
|
|
|
|
echo "$as_me:$LINENO: checking for X" >&5 |
|
|
echo $ECHO_N "checking for X... $ECHO_C" >&6 |
|
2160 |
|
|
2161 |
|
# If we find X, set shell vars x_includes and x_libraries to the |
2162 |
|
# paths, otherwise set no_x=yes. |
2163 |
|
# Uses ac_ vars as temps to allow command line to override cache and checks. |
2164 |
|
# --without-x overrides everything else, but does not touch the cache. |
2165 |
|
echo $ac_n "checking for X""... $ac_c" 1>&6 |
2166 |
|
echo "configure:2167: checking for X" >&5 |
2167 |
|
|
2168 |
# Check whether --with-x or --without-x was given. |
# Check whether --with-x or --without-x was given. |
2169 |
if test "${with_x+set}" = set; then |
if test "${with_x+set}" = set; then |
2170 |
withval="$with_x" |
withval="$with_x" |
2171 |
|
: |
2172 |
|
fi |
2173 |
|
|
|
fi; |
|
2174 |
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
2175 |
if test "x$with_x" = xno; then |
if test "x$with_x" = xno; then |
2176 |
# The user explicitly disabled X. |
# The user explicitly disabled X. |
2180 |
# Both variables are already set. |
# Both variables are already set. |
2181 |
have_x=yes |
have_x=yes |
2182 |
else |
else |
2183 |
if test "${ac_cv_have_x+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
2184 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2185 |
else |
else |
2186 |
# One or both of the vars are not set, and there is no cached value. |
# One or both of the vars are not set, and there is no cached value. |
2187 |
ac_x_includes=no ac_x_libraries=no |
ac_x_includes=NO ac_x_libraries=NO |
2188 |
rm -fr conftest.dir |
rm -fr conftestdir |
2189 |
if mkdir conftest.dir; then |
if mkdir conftestdir; then |
2190 |
cd conftest.dir |
cd conftestdir |
2191 |
# Make sure to not put "make" in the Imakefile rules, since we grep it out. |
# Make sure to not put "make" in the Imakefile rules, since we grep it out. |
2192 |
cat >Imakefile <<'_ACEOF' |
cat > Imakefile <<'EOF' |
2193 |
acfindx: |
acfindx: |
2194 |
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
2195 |
_ACEOF |
EOF |
2196 |
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
2197 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
2198 |
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
2199 |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
2200 |
for ac_extension in a so sl; do |
for ac_extension in a so sl; do |
2201 |
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
2202 |
test -f $ac_im_libdir/libX11.$ac_extension; then |
test -f $ac_im_libdir/libX11.$ac_extension; then |
2203 |
ac_im_usrlibdir=$ac_im_libdir; break |
ac_im_usrlibdir=$ac_im_libdir; break |
2204 |
fi |
fi |
2205 |
done |
done |
2206 |
# Screen out bogus values from the imake configuration. They are |
# Screen out bogus values from the imake configuration. They are |
2207 |
# bogus both because they are the default anyway, and because |
# bogus both because they are the default anyway, and because |
2208 |
# using them would break gcc on systems where it needs fixed includes. |
# using them would break gcc on systems where it needs fixed includes. |
2209 |
case $ac_im_incroot in |
case "$ac_im_incroot" in |
2210 |
/usr/include) ;; |
/usr/include) ;; |
2211 |
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
2212 |
esac |
esac |
2213 |
case $ac_im_usrlibdir in |
case "$ac_im_usrlibdir" in |
2214 |
/usr/lib | /lib) ;; |
/usr/lib | /lib) ;; |
2215 |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
2216 |
esac |
esac |
2217 |
fi |
fi |
2218 |
cd .. |
cd .. |
2219 |
rm -fr conftest.dir |
rm -fr conftestdir |
2220 |
fi |
fi |
2221 |
|
|
2222 |
# Standard set of common directories for X headers. |
if test "$ac_x_includes" = NO; then |
2223 |
# Check X11 before X11Rn because it is often a symlink to the current release. |
# Guess where to find include files, by looking for this one X11 .h file. |
2224 |
ac_x_header_dirs=' |
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
|
/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' |
|
2225 |
|
|
|
if test "$ac_x_includes" = no; then |
|
|
# Guess where to find include files, by looking for Intrinsic.h. |
|
2226 |
# First, try using that file with no special directory specified. |
# First, try using that file with no special directory specified. |
2227 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2228 |
#line $LINENO "configure" |
#line 2229 "configure" |
2229 |
/* confdefs.h. */ |
#include "confdefs.h" |
2230 |
_ACEOF |
#include <$x_direct_test_include> |
2231 |
cat confdefs.h >>conftest.$ac_ext |
EOF |
2232 |
cat >>conftest.$ac_ext <<_ACEOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2233 |
/* end confdefs.h. */ |
{ (eval echo configure:2234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2234 |
#include <X11/Intrinsic.h> |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2235 |
_ACEOF |
if test -z "$ac_err"; then |
2236 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
rm -rf conftest* |
|
(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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
2237 |
# We can compile using X headers with no special include directory. |
# We can compile using X headers with no special include directory. |
2238 |
ac_x_includes= |
ac_x_includes= |
2239 |
else |
else |
2240 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
2241 |
sed 's/^/| /' conftest.$ac_ext >&5 |
echo "configure: failed program was:" >&5 |
2242 |
|
cat conftest.$ac_ext >&5 |
2243 |
for ac_dir in $ac_x_header_dirs; do |
rm -rf conftest* |
2244 |
if test -r "$ac_dir/X11/Intrinsic.h"; then |
# Look for the header file in a standard set of common directories. |
2245 |
ac_x_includes=$ac_dir |
# Check X11 before X11Rn because it is often a symlink to the current release. |
2246 |
break |
for ac_dir in \ |
2247 |
fi |
/usr/X11/include \ |
2248 |
done |
/usr/X11R6/include \ |
2249 |
|
/usr/X11R5/include \ |
2250 |
|
/usr/X11R4/include \ |
2251 |
|
\ |
2252 |
|
/usr/include/X11 \ |
2253 |
|
/usr/include/X11R6 \ |
2254 |
|
/usr/include/X11R5 \ |
2255 |
|
/usr/include/X11R4 \ |
2256 |
|
\ |
2257 |
|
/usr/local/X11/include \ |
2258 |
|
/usr/local/X11R6/include \ |
2259 |
|
/usr/local/X11R5/include \ |
2260 |
|
/usr/local/X11R4/include \ |
2261 |
|
\ |
2262 |
|
/usr/local/include/X11 \ |
2263 |
|
/usr/local/include/X11R6 \ |
2264 |
|
/usr/local/include/X11R5 \ |
2265 |
|
/usr/local/include/X11R4 \ |
2266 |
|
\ |
2267 |
|
/usr/X386/include \ |
2268 |
|
/usr/x386/include \ |
2269 |
|
/usr/XFree86/include/X11 \ |
2270 |
|
\ |
2271 |
|
/usr/include \ |
2272 |
|
/usr/local/include \ |
2273 |
|
/usr/unsupported/include \ |
2274 |
|
/usr/athena/include \ |
2275 |
|
/usr/local/x11r5/include \ |
2276 |
|
/usr/lpp/Xamples/include \ |
2277 |
|
\ |
2278 |
|
/usr/openwin/include \ |
2279 |
|
/usr/openwin/share/include \ |
2280 |
|
; \ |
2281 |
|
do |
2282 |
|
if test -r "$ac_dir/$x_direct_test_include"; then |
2283 |
|
ac_x_includes=$ac_dir |
2284 |
|
break |
2285 |
|
fi |
2286 |
|
done |
2287 |
fi |
fi |
2288 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
2289 |
fi # $ac_x_includes = no |
fi # $ac_x_includes = NO |
2290 |
|
|
2291 |
if test "$ac_x_libraries" = no; then |
if test "$ac_x_libraries" = NO; then |
2292 |
# Check for the libraries. |
# Check for the libraries. |
2293 |
|
|
2294 |
|
test -z "$x_direct_test_library" && x_direct_test_library=Xt |
2295 |
|
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
2296 |
|
|
2297 |
# See if we find them without any special options. |
# See if we find them without any special options. |
2298 |
# Don't add to $LIBS permanently. |
# Don't add to $LIBS permanently. |
2299 |
ac_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2300 |
LIBS="-lXt $LIBS" |
LIBS="-l$x_direct_test_library $LIBS" |
2301 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2302 |
#line $LINENO "configure" |
#line 2303 "configure" |
2303 |
/* confdefs.h. */ |
#include "confdefs.h" |
2304 |
_ACEOF |
|
2305 |
cat confdefs.h >>conftest.$ac_ext |
int main() { |
2306 |
cat >>conftest.$ac_ext <<_ACEOF |
${x_direct_test_function}() |
2307 |
/* end confdefs.h. */ |
; return 0; } |
2308 |
#include <X11/Intrinsic.h> |
EOF |
2309 |
int |
if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2310 |
main () |
rm -rf conftest* |
2311 |
{ |
LIBS="$ac_save_LIBS" |
|
XtMalloc (0) |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
LIBS=$ac_save_LIBS |
|
2312 |
# We can link X programs with no special library path. |
# We can link X programs with no special library path. |
2313 |
ac_x_libraries= |
ac_x_libraries= |
2314 |
else |
else |
2315 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
2316 |
sed 's/^/| /' conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
2317 |
|
rm -rf conftest* |
2318 |
LIBS=$ac_save_LIBS |
LIBS="$ac_save_LIBS" |
2319 |
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
# First see if replacing the include by lib works. |
2320 |
|
# Check X11 before X11Rn because it is often a symlink to the current release. |
2321 |
|
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
2322 |
|
/usr/X11/lib \ |
2323 |
|
/usr/X11R6/lib \ |
2324 |
|
/usr/X11R5/lib \ |
2325 |
|
/usr/X11R4/lib \ |
2326 |
|
\ |
2327 |
|
/usr/lib/X11 \ |
2328 |
|
/usr/lib/X11R6 \ |
2329 |
|
/usr/lib/X11R5 \ |
2330 |
|
/usr/lib/X11R4 \ |
2331 |
|
\ |
2332 |
|
/usr/local/X11/lib \ |
2333 |
|
/usr/local/X11R6/lib \ |
2334 |
|
/usr/local/X11R5/lib \ |
2335 |
|
/usr/local/X11R4/lib \ |
2336 |
|
\ |
2337 |
|
/usr/local/lib/X11 \ |
2338 |
|
/usr/local/lib/X11R6 \ |
2339 |
|
/usr/local/lib/X11R5 \ |
2340 |
|
/usr/local/lib/X11R4 \ |
2341 |
|
\ |
2342 |
|
/usr/X386/lib \ |
2343 |
|
/usr/x386/lib \ |
2344 |
|
/usr/XFree86/lib/X11 \ |
2345 |
|
\ |
2346 |
|
/usr/lib \ |
2347 |
|
/usr/local/lib \ |
2348 |
|
/usr/unsupported/lib \ |
2349 |
|
/usr/athena/lib \ |
2350 |
|
/usr/local/x11r5/lib \ |
2351 |
|
/usr/lpp/Xamples/lib \ |
2352 |
|
/lib/usr/lib/X11 \ |
2353 |
|
\ |
2354 |
|
/usr/openwin/lib \ |
2355 |
|
/usr/openwin/share/lib \ |
2356 |
|
; \ |
2357 |
do |
do |
|
# Don't even attempt the hair of trying to link an X program! |
|
2358 |
for ac_extension in a so sl; do |
for ac_extension in a so sl; do |
2359 |
if test -r $ac_dir/libXt.$ac_extension; then |
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
2360 |
ac_x_libraries=$ac_dir |
ac_x_libraries=$ac_dir |
2361 |
break 2 |
break 2 |
2362 |
fi |
fi |
2363 |
done |
done |
2364 |
done |
done |
2365 |
fi |
fi |
2366 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
2367 |
fi # $ac_x_libraries = no |
fi # $ac_x_libraries = NO |
2368 |
|
|
2369 |
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
2370 |
# Didn't find X anywhere. Cache the known absence of X. |
# Didn't find X anywhere. Cache the known absence of X. |
2371 |
ac_cv_have_x="have_x=no" |
ac_cv_have_x="have_x=no" |
2372 |
else |
else |
2375 |
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
2376 |
fi |
fi |
2377 |
fi |
fi |
|
|
|
2378 |
fi |
fi |
2379 |
eval "$ac_cv_have_x" |
eval "$ac_cv_have_x" |
2380 |
fi # $with_x != no |
fi # $with_x != no |
2381 |
|
|
2382 |
if test "$have_x" != yes; then |
if test "$have_x" != yes; then |
2383 |
echo "$as_me:$LINENO: result: $have_x" >&5 |
echo "$ac_t""$have_x" 1>&6 |
|
echo "${ECHO_T}$have_x" >&6 |
|
2384 |
no_x=yes |
no_x=yes |
2385 |
else |
else |
2386 |
# If each of the values was on the command line, it overrides each guess. |
# If each of the values was on the command line, it overrides each guess. |
2389 |
# Update the cache value to reflect the command line values. |
# Update the cache value to reflect the command line values. |
2390 |
ac_cv_have_x="have_x=yes \ |
ac_cv_have_x="have_x=yes \ |
2391 |
ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
2392 |
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
|
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
|
2393 |
fi |
fi |
2394 |
|
|
2395 |
if test "$no_x" = yes; then |
if test "$no_x" = yes; then |
2396 |
# Not all programs may use this symbol, but it does not hurt to define it. |
# Not all programs may use this symbol, but it does not hurt to define it. |
2397 |
|
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
2398 |
#define X_DISPLAY_MISSING 1 |
#define X_DISPLAY_MISSING 1 |
2399 |
_ACEOF |
EOF |
2400 |
|
|
2401 |
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
2402 |
else |
else |
2409 |
X_LIBS="$X_LIBS -L$x_libraries" |
X_LIBS="$X_LIBS -L$x_libraries" |
2410 |
# For Solaris; some versions of Sun CC require a space after -R and |
# For Solaris; some versions of Sun CC require a space after -R and |
2411 |
# others require no space. Words are not sufficient . . . . |
# others require no space. Words are not sufficient . . . . |
2412 |
case `(uname -sr) 2>/dev/null` in |
case "`(uname -sr) 2>/dev/null`" in |
2413 |
"SunOS 5"*) |
"SunOS 5"*) |
2414 |
echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
2415 |
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
echo "configure:2416: checking whether -R must be followed by a space" >&5 |
2416 |
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
2417 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2418 |
#line $LINENO "configure" |
#line 2419 "configure" |
2419 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
2420 |
|
|
2421 |
int |
int main() { |
|
main () |
|
|
{ |
|
2422 |
|
|
2423 |
; |
; return 0; } |
2424 |
return 0; |
EOF |
2425 |
} |
if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2426 |
_ACEOF |
rm -rf conftest* |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
2427 |
ac_R_nospace=yes |
ac_R_nospace=yes |
2428 |
else |
else |
2429 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
2430 |
sed 's/^/| /' conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
2431 |
|
rm -rf conftest* |
2432 |
ac_R_nospace=no |
ac_R_nospace=no |
2433 |
fi |
fi |
2434 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
2435 |
if test $ac_R_nospace = yes; then |
if test $ac_R_nospace = yes; then |
2436 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
2437 |
X_LIBS="$X_LIBS -R$x_libraries" |
X_LIBS="$X_LIBS -R$x_libraries" |
2438 |
else |
else |
2439 |
LIBS="$ac_xsave_LIBS -R $x_libraries" |
LIBS="$ac_xsave_LIBS -R $x_libraries" |
2440 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2441 |
#line $LINENO "configure" |
#line 2442 "configure" |
2442 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
2443 |
|
|
2444 |
int |
int main() { |
|
main () |
|
|
{ |
|
2445 |
|
|
2446 |
; |
; return 0; } |
2447 |
return 0; |
EOF |
2448 |
} |
if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2449 |
_ACEOF |
rm -rf conftest* |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
2450 |
ac_R_space=yes |
ac_R_space=yes |
2451 |
else |
else |
2452 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
2453 |
sed 's/^/| /' conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
2454 |
|
rm -rf conftest* |
2455 |
ac_R_space=no |
ac_R_space=no |
2456 |
fi |
fi |
2457 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
2458 |
if test $ac_R_space = yes; then |
if test $ac_R_space = yes; then |
2459 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
2460 |
X_LIBS="$X_LIBS -R $x_libraries" |
X_LIBS="$X_LIBS -R $x_libraries" |
2461 |
else |
else |
2462 |
echo "$as_me:$LINENO: result: neither works" >&5 |
echo "$ac_t""neither works" 1>&6 |
|
echo "${ECHO_T}neither works" >&6 |
|
2463 |
fi |
fi |
2464 |
fi |
fi |
2465 |
LIBS=$ac_xsave_LIBS |
LIBS="$ac_xsave_LIBS" |
2466 |
esac |
esac |
2467 |
fi |
fi |
2468 |
|
|
2473 |
if test "$ISC" = yes; then |
if test "$ISC" = yes; then |
2474 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
2475 |
else |
else |
2476 |
# Martyn Johnson says this is needed for Ultrix, if the X |
# Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
2477 |
# libraries were built with DECnet support. And Karl Berry says |
# libraries were built with DECnet support. And karl@cs.umb.edu says |
2478 |
# the Alpha needs dnet_stub (dnet does not exist). |
# the Alpha needs dnet_stub (dnet does not exist). |
2479 |
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
2480 |
cat >conftest.$ac_ext <<_ACEOF |
echo "configure:2481: checking for dnet_ntoa in -ldnet" >&5 |
2481 |
#line $LINENO "configure" |
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
2482 |
/* confdefs.h. */ |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2483 |
_ACEOF |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char XOpenDisplay (); |
|
|
int |
|
|
main () |
|
|
{ |
|
|
XOpenDisplay (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
: |
|
2484 |
else |
else |
2485 |
echo "$as_me: failed program was:" >&5 |
ac_save_LIBS="$LIBS" |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
|
|
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
|
|
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 |
|
2486 |
LIBS="-ldnet $LIBS" |
LIBS="-ldnet $LIBS" |
2487 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2488 |
#line $LINENO "configure" |
#line 2489 "configure" |
2489 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
2490 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2491 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
2492 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2493 |
char dnet_ntoa (); |
char dnet_ntoa(); |
2494 |
int |
|
2495 |
main () |
int main() { |
2496 |
{ |
dnet_ntoa() |
2497 |
dnet_ntoa (); |
; return 0; } |
2498 |
; |
EOF |
2499 |
return 0; |
if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2500 |
} |
rm -rf conftest* |
2501 |
_ACEOF |
eval "ac_cv_lib_$ac_lib_var=yes" |
2502 |
rm -f conftest.$ac_objext conftest$ac_exeext |
else |
2503 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
echo "configure: failed program was:" >&5 |
2504 |
(eval $ac_link) 2>&5 |
cat conftest.$ac_ext >&5 |
2505 |
ac_status=$? |
rm -rf conftest* |
2506 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
eval "ac_cv_lib_$ac_lib_var=no" |
2507 |
(exit $ac_status); } && |
fi |
2508 |
{ ac_try='test -s conftest$ac_exeext' |
rm -f conftest* |
2509 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
LIBS="$ac_save_LIBS" |
2510 |
(eval $ac_try) 2>&5 |
|
2511 |
ac_status=$? |
fi |
2512 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2513 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_lib_dnet_dnet_ntoa=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_dnet_dnet_ntoa=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
|
|
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
|
2514 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
2515 |
|
else |
2516 |
|
echo "$ac_t""no" 1>&6 |
2517 |
fi |
fi |
2518 |
|
|
2519 |
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
2520 |
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
2521 |
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
echo "configure:2522: checking for dnet_ntoa in -ldnet_stub" >&5 |
2522 |
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
2523 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2524 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2525 |
else |
else |
2526 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2527 |
LIBS="-ldnet_stub $LIBS" |
LIBS="-ldnet_stub $LIBS" |
2528 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2529 |
#line $LINENO "configure" |
#line 2530 "configure" |
2530 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
2531 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2532 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
2533 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2534 |
char dnet_ntoa (); |
char dnet_ntoa(); |
2535 |
int |
|
2536 |
main () |
int main() { |
2537 |
{ |
dnet_ntoa() |
2538 |
dnet_ntoa (); |
; return 0; } |
2539 |
; |
EOF |
2540 |
return 0; |
if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2541 |
} |
rm -rf conftest* |
2542 |
_ACEOF |
eval "ac_cv_lib_$ac_lib_var=yes" |
2543 |
rm -f conftest.$ac_objext conftest$ac_exeext |
else |
2544 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
echo "configure: failed program was:" >&5 |
2545 |
(eval $ac_link) 2>&5 |
cat conftest.$ac_ext >&5 |
2546 |
ac_status=$? |
rm -rf conftest* |
2547 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
eval "ac_cv_lib_$ac_lib_var=no" |
2548 |
(exit $ac_status); } && |
fi |
2549 |
{ ac_try='test -s conftest$ac_exeext' |
rm -f conftest* |
2550 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
LIBS="$ac_save_LIBS" |
2551 |
(eval $ac_try) 2>&5 |
|
2552 |
ac_status=$? |
fi |
2553 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2554 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_lib_dnet_stub_dnet_ntoa=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_dnet_stub_dnet_ntoa=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
|
|
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
|
2555 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
2556 |
|
else |
2557 |
|
echo "$ac_t""no" 1>&6 |
2558 |
fi |
fi |
2559 |
|
|
2560 |
fi |
fi |
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS="$ac_xsave_LIBS" |
|
2561 |
|
|
2562 |
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
2563 |
# to get the SysV transport functions. |
# to get the SysV transport functions. |
2564 |
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
# chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
2565 |
# needs -lnsl. |
# needs -lnsl. |
2566 |
# The nsl library prevents programs from opening the X display |
# The nsl library prevents programs from opening the X display |
2567 |
# on Irix 5.2, according to T.E. Dickey. |
# on Irix 5.2, according to dickey@clark.net. |
2568 |
# The functions gethostbyname, getservbyname, and inet_addr are |
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
2569 |
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
echo "configure:2570: checking for gethostbyname" >&5 |
2570 |
echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
2571 |
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2572 |
if test "${ac_cv_func_gethostbyname+set}" = set; then |
else |
2573 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
cat > conftest.$ac_ext <<EOF |
2574 |
else |
#line 2575 "configure" |
2575 |
cat >conftest.$ac_ext <<_ACEOF |
#include "confdefs.h" |
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
2576 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2577 |
which can conflict with char gethostbyname (); below. */ |
which can conflict with char gethostbyname(); below. */ |
2578 |
#include <assert.h> |
#include <assert.h> |
2579 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
2580 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
2581 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2582 |
char gethostbyname (); |
char gethostbyname(); |
2583 |
|
|
2584 |
|
int main() { |
2585 |
|
|
2586 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2587 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2588 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2589 |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
2590 |
choke me |
choke me |
2591 |
#else |
#else |
2592 |
char (*f) () = gethostbyname; |
gethostbyname(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
2593 |
#endif |
#endif |
2594 |
|
|
2595 |
int |
; return 0; } |
2596 |
main () |
EOF |
2597 |
{ |
if { (eval echo configure:2598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2598 |
|
rm -rf conftest* |
2599 |
; |
eval "ac_cv_func_gethostbyname=yes" |
2600 |
return 0; |
else |
2601 |
} |
echo "configure: failed program was:" >&5 |
2602 |
_ACEOF |
cat conftest.$ac_ext >&5 |
2603 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -rf conftest* |
2604 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
eval "ac_cv_func_gethostbyname=no" |
2605 |
(eval $ac_link) 2>&5 |
fi |
2606 |
ac_status=$? |
rm -f conftest* |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_gethostbyname=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_gethostbyname=no |
|
2607 |
fi |
fi |
2608 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
2609 |
|
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
2610 |
|
echo "$ac_t""yes" 1>&6 |
2611 |
|
: |
2612 |
|
else |
2613 |
|
echo "$ac_t""no" 1>&6 |
2614 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
|
2615 |
|
|
2616 |
if test $ac_cv_func_gethostbyname = no; then |
if test $ac_cv_func_gethostbyname = no; then |
2617 |
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
2618 |
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
echo "configure:2619: checking for gethostbyname in -lnsl" >&5 |
2619 |
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
2620 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2621 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2622 |
else |
else |
2623 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2624 |
LIBS="-lnsl $LIBS" |
LIBS="-lnsl $LIBS" |
2625 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2626 |
#line $LINENO "configure" |
#line 2627 "configure" |
2627 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
2628 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2629 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
2630 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2631 |
char gethostbyname (); |
char gethostbyname(); |
|
int |
|
|
main () |
|
|
{ |
|
|
gethostbyname (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_nsl_gethostbyname=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_nsl_gethostbyname=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
|
|
if test $ac_cv_lib_nsl_gethostbyname = yes; then |
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
|
|
fi |
|
2632 |
|
|
2633 |
if test $ac_cv_lib_nsl_gethostbyname = no; then |
int main() { |
2634 |
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
gethostbyname() |
2635 |
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
; return 0; } |
2636 |
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
EOF |
2637 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2638 |
else |
rm -rf conftest* |
2639 |
ac_check_lib_save_LIBS=$LIBS |
eval "ac_cv_lib_$ac_lib_var=yes" |
2640 |
LIBS="-lbsd $LIBS" |
else |
2641 |
cat >conftest.$ac_ext <<_ACEOF |
echo "configure: failed program was:" >&5 |
2642 |
#line $LINENO "configure" |
cat conftest.$ac_ext >&5 |
2643 |
/* confdefs.h. */ |
rm -rf conftest* |
2644 |
_ACEOF |
eval "ac_cv_lib_$ac_lib_var=no" |
2645 |
cat confdefs.h >>conftest.$ac_ext |
fi |
2646 |
cat >>conftest.$ac_ext <<_ACEOF |
rm -f conftest* |
2647 |
/* end confdefs.h. */ |
LIBS="$ac_save_LIBS" |
2648 |
|
|
2649 |
/* Override any gcc2 internal prototype to avoid an error. */ |
fi |
2650 |
#ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2651 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
2652 |
#endif |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
2653 |
/* We use char because int might match the return type of a gcc2 |
else |
2654 |
builtin and then its argument prototype would still apply. */ |
echo "$ac_t""no" 1>&6 |
|
char gethostbyname (); |
|
|
int |
|
|
main () |
|
|
{ |
|
|
gethostbyname (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_bsd_gethostbyname=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_bsd_gethostbyname=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
|
|
if test $ac_cv_lib_bsd_gethostbyname = yes; then |
|
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
|
2655 |
fi |
fi |
2656 |
|
|
|
fi |
|
2657 |
fi |
fi |
2658 |
|
|
2659 |
# lieder@skyler.mavd.honeywell.com says without -lsocket, |
# lieder@skyler.mavd.honeywell.com says without -lsocket, |
2660 |
# socket/setsockopt and other routines are undefined under SCO ODT |
# socket/setsockopt and other routines are undefined under SCO ODT |
2661 |
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
2662 |
# on later versions), says Simon Leinen: it contains gethostby* |
# on later versions), says simon@lia.di.epfl.ch: it contains |
2663 |
# variants that don't use the name server (or something). -lsocket |
# gethostby* variants that don't use the nameserver (or something). |
2664 |
# must be given before -lnsl if both are needed. We assume that |
# -lsocket must be given before -lnsl if both are needed. |
2665 |
# if connect needs -lnsl, so does gethostbyname. |
# We assume that if connect needs -lnsl, so does gethostbyname. |
2666 |
echo "$as_me:$LINENO: checking for connect" >&5 |
echo $ac_n "checking for connect""... $ac_c" 1>&6 |
2667 |
echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
echo "configure:2668: checking for connect" >&5 |
2668 |
if test "${ac_cv_func_connect+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
2669 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2670 |
else |
else |
2671 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2672 |
#line $LINENO "configure" |
#line 2673 "configure" |
2673 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
2674 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2675 |
which can conflict with char connect (); below. */ |
which can conflict with char connect(); below. */ |
2676 |
#include <assert.h> |
#include <assert.h> |
2677 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
2678 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
2679 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2680 |
char connect (); |
char connect(); |
2681 |
|
|
2682 |
|
int main() { |
2683 |
|
|
2684 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2685 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2686 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2687 |
#if defined (__stub_connect) || defined (__stub___connect) |
#if defined (__stub_connect) || defined (__stub___connect) |
2688 |
choke me |
choke me |
2689 |
#else |
#else |
2690 |
char (*f) () = connect; |
connect(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
2691 |
#endif |
#endif |
2692 |
|
|
2693 |
int |
; return 0; } |
2694 |
main () |
EOF |
2695 |
{ |
if { (eval echo configure:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2696 |
|
rm -rf conftest* |
2697 |
; |
eval "ac_cv_func_connect=yes" |
2698 |
return 0; |
else |
2699 |
} |
echo "configure: failed program was:" >&5 |
2700 |
_ACEOF |
cat conftest.$ac_ext >&5 |
2701 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -rf conftest* |
2702 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
eval "ac_cv_func_connect=no" |
2703 |
(eval $ac_link) 2>&5 |
fi |
2704 |
ac_status=$? |
rm -f conftest* |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_connect=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_connect=no |
|
2705 |
fi |
fi |
2706 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
2707 |
|
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
2708 |
|
echo "$ac_t""yes" 1>&6 |
2709 |
|
: |
2710 |
|
else |
2711 |
|
echo "$ac_t""no" 1>&6 |
2712 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_connect" >&6 |
|
2713 |
|
|
2714 |
if test $ac_cv_func_connect = no; then |
if test $ac_cv_func_connect = no; then |
2715 |
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
2716 |
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
echo "configure:2717: checking for connect in -lsocket" >&5 |
2717 |
if test "${ac_cv_lib_socket_connect+set}" = set; then |
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
2718 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2719 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2720 |
else |
else |
2721 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2722 |
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
2723 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2724 |
#line $LINENO "configure" |
#line 2725 "configure" |
2725 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
2726 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2727 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
2728 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2729 |
char connect (); |
char connect(); |
2730 |
int |
|
2731 |
main () |
int main() { |
2732 |
{ |
connect() |
2733 |
connect (); |
; return 0; } |
2734 |
; |
EOF |
2735 |
return 0; |
if { (eval echo configure:2736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2736 |
} |
rm -rf conftest* |
2737 |
_ACEOF |
eval "ac_cv_lib_$ac_lib_var=yes" |
2738 |
rm -f conftest.$ac_objext conftest$ac_exeext |
else |
2739 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
echo "configure: failed program was:" >&5 |
2740 |
(eval $ac_link) 2>&5 |
cat conftest.$ac_ext >&5 |
2741 |
ac_status=$? |
rm -rf conftest* |
2742 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
eval "ac_cv_lib_$ac_lib_var=no" |
2743 |
(exit $ac_status); } && |
fi |
2744 |
{ ac_try='test -s conftest$ac_exeext' |
rm -f conftest* |
2745 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
LIBS="$ac_save_LIBS" |
2746 |
(eval $ac_try) 2>&5 |
|
2747 |
ac_status=$? |
fi |
2748 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2749 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_lib_socket_connect=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_socket_connect=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
|
|
if test $ac_cv_lib_socket_connect = yes; then |
|
2750 |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
2751 |
|
else |
2752 |
|
echo "$ac_t""no" 1>&6 |
2753 |
fi |
fi |
2754 |
|
|
2755 |
fi |
fi |
2756 |
|
|
2757 |
# Guillermo Gomez says -lposix is necessary on A/UX. |
# gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
2758 |
echo "$as_me:$LINENO: checking for remove" >&5 |
echo $ac_n "checking for remove""... $ac_c" 1>&6 |
2759 |
echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
echo "configure:2760: checking for remove" >&5 |
2760 |
if test "${ac_cv_func_remove+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
2761 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2762 |
else |
else |
2763 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2764 |
#line $LINENO "configure" |
#line 2765 "configure" |
2765 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
2766 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2767 |
which can conflict with char remove (); below. */ |
which can conflict with char remove(); below. */ |
2768 |
#include <assert.h> |
#include <assert.h> |
2769 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
2770 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
2771 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2772 |
char remove (); |
char remove(); |
2773 |
|
|
2774 |
|
int main() { |
2775 |
|
|
2776 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2777 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2778 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2779 |
#if defined (__stub_remove) || defined (__stub___remove) |
#if defined (__stub_remove) || defined (__stub___remove) |
2780 |
choke me |
choke me |
2781 |
#else |
#else |
2782 |
char (*f) () = remove; |
remove(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
2783 |
#endif |
#endif |
2784 |
|
|
2785 |
int |
; return 0; } |
2786 |
main () |
EOF |
2787 |
{ |
if { (eval echo configure:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2788 |
|
rm -rf conftest* |
2789 |
; |
eval "ac_cv_func_remove=yes" |
2790 |
return 0; |
else |
2791 |
} |
echo "configure: failed program was:" >&5 |
2792 |
_ACEOF |
cat conftest.$ac_ext >&5 |
2793 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -rf conftest* |
2794 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
eval "ac_cv_func_remove=no" |
2795 |
(eval $ac_link) 2>&5 |
fi |
2796 |
ac_status=$? |
rm -f conftest* |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_remove=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_remove=no |
|
2797 |
fi |
fi |
2798 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
2799 |
|
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
2800 |
|
echo "$ac_t""yes" 1>&6 |
2801 |
|
: |
2802 |
|
else |
2803 |
|
echo "$ac_t""no" 1>&6 |
2804 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_remove" >&6 |
|
2805 |
|
|
2806 |
if test $ac_cv_func_remove = no; then |
if test $ac_cv_func_remove = no; then |
2807 |
echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
2808 |
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
echo "configure:2809: checking for remove in -lposix" >&5 |
2809 |
if test "${ac_cv_lib_posix_remove+set}" = set; then |
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
2810 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2811 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2812 |
else |
else |
2813 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2814 |
LIBS="-lposix $LIBS" |
LIBS="-lposix $LIBS" |
2815 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2816 |
#line $LINENO "configure" |
#line 2817 "configure" |
2817 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
2818 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2819 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
2820 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2821 |
char remove (); |
char remove(); |
2822 |
int |
|
2823 |
main () |
int main() { |
2824 |
{ |
remove() |
2825 |
remove (); |
; return 0; } |
2826 |
; |
EOF |
2827 |
return 0; |
if { (eval echo configure:2828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2828 |
} |
rm -rf conftest* |
2829 |
_ACEOF |
eval "ac_cv_lib_$ac_lib_var=yes" |
2830 |
rm -f conftest.$ac_objext conftest$ac_exeext |
else |
2831 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
echo "configure: failed program was:" >&5 |
2832 |
(eval $ac_link) 2>&5 |
cat conftest.$ac_ext >&5 |
2833 |
ac_status=$? |
rm -rf conftest* |
2834 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
eval "ac_cv_lib_$ac_lib_var=no" |
2835 |
(exit $ac_status); } && |
fi |
2836 |
{ ac_try='test -s conftest$ac_exeext' |
rm -f conftest* |
2837 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
LIBS="$ac_save_LIBS" |
2838 |
(eval $ac_try) 2>&5 |
|
2839 |
ac_status=$? |
fi |
2840 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2841 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_lib_posix_remove=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_posix_remove=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
|
|
if test $ac_cv_lib_posix_remove = yes; then |
|
2842 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
2843 |
|
else |
2844 |
|
echo "$ac_t""no" 1>&6 |
2845 |
fi |
fi |
2846 |
|
|
2847 |
fi |
fi |
2848 |
|
|
2849 |
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
2850 |
echo "$as_me:$LINENO: checking for shmat" >&5 |
echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
2851 |
echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
echo "configure:2852: checking for shmat" >&5 |
2852 |
if test "${ac_cv_func_shmat+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
2853 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2854 |
else |
else |
2855 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2856 |
#line $LINENO "configure" |
#line 2857 "configure" |
2857 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
2858 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2859 |
which can conflict with char shmat (); below. */ |
which can conflict with char shmat(); below. */ |
2860 |
#include <assert.h> |
#include <assert.h> |
2861 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
2862 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
2863 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2864 |
char shmat (); |
char shmat(); |
2865 |
|
|
2866 |
|
int main() { |
2867 |
|
|
2868 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2869 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2870 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2871 |
#if defined (__stub_shmat) || defined (__stub___shmat) |
#if defined (__stub_shmat) || defined (__stub___shmat) |
2872 |
choke me |
choke me |
2873 |
#else |
#else |
2874 |
char (*f) () = shmat; |
shmat(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
2875 |
#endif |
#endif |
2876 |
|
|
2877 |
int |
; return 0; } |
2878 |
main () |
EOF |
2879 |
{ |
if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2880 |
|
rm -rf conftest* |
2881 |
; |
eval "ac_cv_func_shmat=yes" |
2882 |
return 0; |
else |
2883 |
} |
echo "configure: failed program was:" >&5 |
2884 |
_ACEOF |
cat conftest.$ac_ext >&5 |
2885 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -rf conftest* |
2886 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
eval "ac_cv_func_shmat=no" |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_shmat=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_shmat=no |
|
2887 |
fi |
fi |
2888 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
2889 |
|
fi |
2890 |
|
|
2891 |
|
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
2892 |
|
echo "$ac_t""yes" 1>&6 |
2893 |
|
: |
2894 |
|
else |
2895 |
|
echo "$ac_t""no" 1>&6 |
2896 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
|
2897 |
|
|
2898 |
if test $ac_cv_func_shmat = no; then |
if test $ac_cv_func_shmat = no; then |
2899 |
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
2900 |
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
echo "configure:2901: checking for shmat in -lipc" >&5 |
2901 |
if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
2902 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2903 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2904 |
else |
else |
2905 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2906 |
LIBS="-lipc $LIBS" |
LIBS="-lipc $LIBS" |
2907 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2908 |
#line $LINENO "configure" |
#line 2909 "configure" |
2909 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
2910 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2911 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
2912 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2913 |
char shmat (); |
char shmat(); |
2914 |
int |
|
2915 |
main () |
int main() { |
2916 |
{ |
shmat() |
2917 |
shmat (); |
; return 0; } |
2918 |
; |
EOF |
2919 |
return 0; |
if { (eval echo configure:2920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2920 |
} |
rm -rf conftest* |
2921 |
_ACEOF |
eval "ac_cv_lib_$ac_lib_var=yes" |
2922 |
rm -f conftest.$ac_objext conftest$ac_exeext |
else |
2923 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
echo "configure: failed program was:" >&5 |
2924 |
(eval $ac_link) 2>&5 |
cat conftest.$ac_ext >&5 |
2925 |
ac_status=$? |
rm -rf conftest* |
2926 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
eval "ac_cv_lib_$ac_lib_var=no" |
2927 |
(exit $ac_status); } && |
fi |
2928 |
{ ac_try='test -s conftest$ac_exeext' |
rm -f conftest* |
2929 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
LIBS="$ac_save_LIBS" |
2930 |
(eval $ac_try) 2>&5 |
|
2931 |
ac_status=$? |
fi |
2932 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2933 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_lib_ipc_shmat=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_ipc_shmat=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
|
|
if test $ac_cv_lib_ipc_shmat = yes; then |
|
2934 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
2935 |
|
else |
2936 |
|
echo "$ac_t""no" 1>&6 |
2937 |
fi |
fi |
2938 |
|
|
2939 |
fi |
fi |
2940 |
fi |
fi |
2941 |
|
|
2942 |
# Check for libraries that X11R6 Xt/Xaw programs need. |
# Check for libraries that X11R6 Xt/Xaw programs need. |
2943 |
ac_save_LDFLAGS=$LDFLAGS |
ac_save_LDFLAGS="$LDFLAGS" |
2944 |
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
2945 |
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
2946 |
# check for ICE first), but we must link in the order -lSM -lICE or |
# check for ICE first), but we must link in the order -lSM -lICE or |
2947 |
# we get undefined symbols. So assume we have SM if we have ICE. |
# we get undefined symbols. So assume we have SM if we have ICE. |
2948 |
# These have to be linked with before -lX11, unlike the other |
# These have to be linked with before -lX11, unlike the other |
2949 |
# libraries we check for below, so use a different variable. |
# libraries we check for below, so use a different variable. |
2950 |
# John Interrante, Karl Berry |
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
2951 |
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
2952 |
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
echo "configure:2953: checking for IceConnectionNumber in -lICE" >&5 |
2953 |
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
2954 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2955 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2956 |
else |
else |
2957 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2958 |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
2959 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2960 |
#line $LINENO "configure" |
#line 2961 "configure" |
2961 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
2962 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2963 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
2964 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2965 |
char IceConnectionNumber (); |
char IceConnectionNumber(); |
2966 |
int |
|
2967 |
main () |
int main() { |
2968 |
{ |
IceConnectionNumber() |
2969 |
IceConnectionNumber (); |
; return 0; } |
2970 |
; |
EOF |
2971 |
return 0; |
if { (eval echo configure:2972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2972 |
} |
rm -rf conftest* |
2973 |
_ACEOF |
eval "ac_cv_lib_$ac_lib_var=yes" |
2974 |
rm -f conftest.$ac_objext conftest$ac_exeext |
else |
2975 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
echo "configure: failed program was:" >&5 |
2976 |
(eval $ac_link) 2>&5 |
cat conftest.$ac_ext >&5 |
2977 |
ac_status=$? |
rm -rf conftest* |
2978 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
eval "ac_cv_lib_$ac_lib_var=no" |
2979 |
(exit $ac_status); } && |
fi |
2980 |
{ ac_try='test -s conftest$ac_exeext' |
rm -f conftest* |
2981 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
LIBS="$ac_save_LIBS" |
2982 |
(eval $ac_try) 2>&5 |
|
2983 |
ac_status=$? |
fi |
2984 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2985 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_lib_ICE_IceConnectionNumber=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_ICE_IceConnectionNumber=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
|
|
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
|
2986 |
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
2987 |
|
else |
2988 |
|
echo "$ac_t""no" 1>&6 |
2989 |
fi |
fi |
2990 |
|
|
2991 |
LDFLAGS=$ac_save_LDFLAGS |
LDFLAGS="$ac_save_LDFLAGS" |
2992 |
|
|
2993 |
fi |
fi |
2994 |
|
|
2998 |
echo $X_PRE_LIBS |
echo $X_PRE_LIBS |
2999 |
|
|
3000 |
miss=0 |
miss=0 |
3001 |
echo "$as_me:$LINENO: checking for main in -lXmu" >&5 |
echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6 |
3002 |
echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6 |
echo "configure:3003: checking for main in -lXmu" >&5 |
3003 |
if test "${ac_cv_lib_Xmu_main+set}" = set; then |
ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'` |
3004 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3005 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3006 |
else |
else |
3007 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
3008 |
LIBS="-lXmu $X_LIBS $LIBS" |
LIBS="-lXmu $X_LIBS $LIBS" |
3009 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3010 |
#line $LINENO "configure" |
#line 3011 "configure" |
3011 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3012 |
|
|
3013 |
|
int main() { |
3014 |
|
main() |
3015 |
|
; return 0; } |
3016 |
|
EOF |
3017 |
|
if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3018 |
|
rm -rf conftest* |
3019 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3020 |
|
else |
3021 |
|
echo "configure: failed program was:" >&5 |
3022 |
|
cat conftest.$ac_ext >&5 |
3023 |
|
rm -rf conftest* |
3024 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
3025 |
|
fi |
3026 |
|
rm -f conftest* |
3027 |
|
LIBS="$ac_save_LIBS" |
3028 |
|
|
3029 |
int |
fi |
3030 |
main () |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3031 |
{ |
echo "$ac_t""yes" 1>&6 |
|
main (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_Xmu_main=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_Xmu_main=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6 |
|
|
if test $ac_cv_lib_Xmu_main = yes; then |
|
3032 |
X_LIBS="$X_LIBS -lXmu" |
X_LIBS="$X_LIBS -lXmu" |
3033 |
else |
else |
3034 |
miss=1 |
echo "$ac_t""no" 1>&6 |
3035 |
|
miss=1 |
3036 |
fi |
fi |
3037 |
|
|
3038 |
echo "$as_me:$LINENO: checking for main in -lXt" >&5 |
echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6 |
3039 |
echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 |
echo "configure:3040: checking for main in -lXt" >&5 |
3040 |
if test "${ac_cv_lib_Xt_main+set}" = set; then |
ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'` |
3041 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3042 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3043 |
else |
else |
3044 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
3045 |
LIBS="-lXt $X_LIBS $LIBS" |
LIBS="-lXt $X_LIBS $LIBS" |
3046 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3047 |
#line $LINENO "configure" |
#line 3048 "configure" |
3048 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3049 |
|
|
3050 |
|
int main() { |
3051 |
|
main() |
3052 |
|
; return 0; } |
3053 |
|
EOF |
3054 |
|
if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3055 |
|
rm -rf conftest* |
3056 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3057 |
|
else |
3058 |
|
echo "configure: failed program was:" >&5 |
3059 |
|
cat conftest.$ac_ext >&5 |
3060 |
|
rm -rf conftest* |
3061 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
3062 |
|
fi |
3063 |
|
rm -f conftest* |
3064 |
|
LIBS="$ac_save_LIBS" |
3065 |
|
|
3066 |
int |
fi |
3067 |
main () |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3068 |
{ |
echo "$ac_t""yes" 1>&6 |
|
main (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_Xt_main=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_Xt_main=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 |
|
|
if test $ac_cv_lib_Xt_main = yes; then |
|
3069 |
X_LIBS="$X_LIBS -lXt" |
X_LIBS="$X_LIBS -lXt" |
3070 |
else |
else |
3071 |
miss=1 |
echo "$ac_t""no" 1>&6 |
3072 |
|
miss=1 |
3073 |
fi |
fi |
3074 |
|
|
3075 |
echo "$as_me:$LINENO: checking for main in -lXext" >&5 |
echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6 |
3076 |
echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6 |
echo "configure:3077: checking for main in -lXext" >&5 |
3077 |
if test "${ac_cv_lib_Xext_main+set}" = set; then |
ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'` |
3078 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3079 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3080 |
else |
else |
3081 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
3082 |
LIBS="-lXext $X_LIBS $LIBS" |
LIBS="-lXext $X_LIBS $LIBS" |
3083 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3084 |
#line $LINENO "configure" |
#line 3085 "configure" |
3085 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3086 |
|
|
3087 |
|
int main() { |
3088 |
|
main() |
3089 |
|
; return 0; } |
3090 |
|
EOF |
3091 |
|
if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3092 |
|
rm -rf conftest* |
3093 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3094 |
|
else |
3095 |
|
echo "configure: failed program was:" >&5 |
3096 |
|
cat conftest.$ac_ext >&5 |
3097 |
|
rm -rf conftest* |
3098 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
3099 |
|
fi |
3100 |
|
rm -f conftest* |
3101 |
|
LIBS="$ac_save_LIBS" |
3102 |
|
|
3103 |
int |
fi |
3104 |
main () |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3105 |
{ |
echo "$ac_t""yes" 1>&6 |
|
main (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_Xext_main=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_Xext_main=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6 |
|
|
if test $ac_cv_lib_Xext_main = yes; then |
|
3106 |
X_LIBS="$X_LIBS -lXext" |
X_LIBS="$X_LIBS -lXext" |
3107 |
else |
else |
3108 |
miss=1 |
echo "$ac_t""no" 1>&6 |
3109 |
|
miss=1 |
3110 |
fi |
fi |
3111 |
|
|
3112 |
echo "$as_me:$LINENO: checking for main in -lXaw" >&5 |
echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6 |
3113 |
echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6 |
echo "configure:3114: checking for main in -lXaw" >&5 |
3114 |
if test "${ac_cv_lib_Xaw_main+set}" = set; then |
ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'` |
3115 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3116 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3117 |
else |
else |
3118 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
3119 |
LIBS="-lXaw $X_LIBS $LIBS" |
LIBS="-lXaw $X_LIBS $LIBS" |
3120 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3121 |
#line $LINENO "configure" |
#line 3122 "configure" |
3122 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3123 |
|
|
3124 |
|
int main() { |
3125 |
|
main() |
3126 |
|
; return 0; } |
3127 |
|
EOF |
3128 |
|
if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3129 |
|
rm -rf conftest* |
3130 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3131 |
|
else |
3132 |
|
echo "configure: failed program was:" >&5 |
3133 |
|
cat conftest.$ac_ext >&5 |
3134 |
|
rm -rf conftest* |
3135 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
3136 |
|
fi |
3137 |
|
rm -f conftest* |
3138 |
|
LIBS="$ac_save_LIBS" |
3139 |
|
|
3140 |
int |
fi |
3141 |
main () |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3142 |
{ |
echo "$ac_t""yes" 1>&6 |
|
main (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_Xaw_main=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_Xaw_main=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6 |
|
|
if test $ac_cv_lib_Xaw_main = yes; then |
|
3143 |
X_LIBS="$X_LIBS -lXaw" |
X_LIBS="$X_LIBS -lXaw" |
3144 |
else |
else |
3145 |
miss=1 |
echo "$ac_t""no" 1>&6 |
3146 |
|
miss=1 |
3147 |
fi |
fi |
3148 |
|
|
3149 |
echo "$as_me:$LINENO: checking for main in -lX11" >&5 |
echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6 |
3150 |
echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 |
echo "configure:3151: checking for main in -lX11" >&5 |
3151 |
if test "${ac_cv_lib_X11_main+set}" = set; then |
ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'` |
3152 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3153 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3154 |
else |
else |
3155 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
3156 |
LIBS="-lX11 $X_LIBS $LIBS" |
LIBS="-lX11 $X_LIBS $LIBS" |
3157 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3158 |
#line $LINENO "configure" |
#line 3159 "configure" |
3159 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3160 |
|
|
3161 |
|
int main() { |
3162 |
|
main() |
3163 |
|
; return 0; } |
3164 |
|
EOF |
3165 |
|
if { (eval echo configure:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3166 |
|
rm -rf conftest* |
3167 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3168 |
|
else |
3169 |
|
echo "configure: failed program was:" >&5 |
3170 |
|
cat conftest.$ac_ext >&5 |
3171 |
|
rm -rf conftest* |
3172 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
3173 |
|
fi |
3174 |
|
rm -f conftest* |
3175 |
|
LIBS="$ac_save_LIBS" |
3176 |
|
|
3177 |
int |
fi |
3178 |
main () |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3179 |
{ |
echo "$ac_t""yes" 1>&6 |
|
main (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_X11_main=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_X11_main=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 |
|
|
if test $ac_cv_lib_X11_main = yes; then |
|
3180 |
X_LIBS="$X_LIBS -lX11" |
X_LIBS="$X_LIBS -lX11" |
3181 |
else |
else |
3182 |
miss=1 |
echo "$ac_t""no" 1>&6 |
3183 |
|
miss=1 |
3184 |
fi |
fi |
3185 |
|
|
3186 |
|
|
3187 |
if test "$miss" = "1" ; then |
if test "$miss" = "1" ; then |
3188 |
X_CFLAGS= |
X_CFLAGS= |
3189 |
X_LIBS= |
X_LIBS= |
3200 |
|
|
3201 |
if test "$enable_dlopen" = "yes" ; then |
if test "$enable_dlopen" = "yes" ; then |
3202 |
|
|
3203 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
3204 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
echo "configure:3205: checking for dlopen in -ldl" >&5 |
3205 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
3206 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3207 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3208 |
else |
else |
3209 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
3210 |
LIBS="-ldl $LIBS" |
LIBS="-ldl $LIBS" |
3211 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3212 |
#line $LINENO "configure" |
#line 3213 "configure" |
3213 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
3214 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3215 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
3216 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3217 |
char dlopen (); |
char dlopen(); |
3218 |
int |
|
3219 |
main () |
int main() { |
3220 |
{ |
dlopen() |
3221 |
dlopen (); |
; return 0; } |
3222 |
; |
EOF |
3223 |
return 0; |
if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3224 |
} |
rm -rf conftest* |
3225 |
_ACEOF |
eval "ac_cv_lib_$ac_lib_var=yes" |
3226 |
rm -f conftest.$ac_objext conftest$ac_exeext |
else |
3227 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
echo "configure: failed program was:" >&5 |
3228 |
(eval $ac_link) 2>&5 |
cat conftest.$ac_ext >&5 |
3229 |
ac_status=$? |
rm -rf conftest* |
3230 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
eval "ac_cv_lib_$ac_lib_var=no" |
3231 |
(exit $ac_status); } && |
fi |
3232 |
{ ac_try='test -s conftest$ac_exeext' |
rm -f conftest* |
3233 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
LIBS="$ac_save_LIBS" |
3234 |
(eval $ac_try) 2>&5 |
|
3235 |
ac_status=$? |
fi |
3236 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3237 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_lib_dl_dlopen=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_dl_dlopen=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
if test $ac_cv_lib_dl_dlopen = yes; then |
|
3238 |
have_dl=1 |
have_dl=1 |
3239 |
else |
else |
3240 |
have_dl=0 |
echo "$ac_t""no" 1>&6 |
3241 |
|
have_dl=0 |
3242 |
fi |
fi |
3243 |
|
|
3244 |
if test "$have_dl" = "0" ; then |
if test "$have_dl" = "0" ; then |
3247 |
fi |
fi |
3248 |
|
|
3249 |
TLIBS="$TLIBS -ldl -rdynamic" |
TLIBS="$TLIBS -ldl -rdynamic" |
3250 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
3251 |
#define USE_DLOPEN 1 |
#define USE_DLOPEN 1 |
3252 |
_ACEOF |
EOF |
3253 |
|
|
3254 |
fi |
fi |
3255 |
|
|
3256 |
if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then |
if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then |
3257 |
if test "${ac_cv_header_bfd_h+set}" = set; then |
ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'` |
3258 |
echo "$as_me:$LINENO: checking for bfd.h" >&5 |
echo $ac_n "checking for bfd.h""... $ac_c" 1>&6 |
3259 |
echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6 |
echo "configure:3260: checking for bfd.h" >&5 |
3260 |
if test "${ac_cv_header_bfd_h+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3261 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3262 |
fi |
else |
3263 |
echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5 |
cat > conftest.$ac_ext <<EOF |
3264 |
echo "${ECHO_T}$ac_cv_header_bfd_h" >&6 |
#line 3265 "configure" |
3265 |
else |
#include "confdefs.h" |
|
# Is the header compilable? |
|
|
echo "$as_me:$LINENO: checking bfd.h usability" >&5 |
|
|
echo $ECHO_N "checking bfd.h usability... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
#include <bfd.h> |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 bfd.h presence" >&5 |
|
|
echo $ECHO_N "checking bfd.h presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3266 |
#include <bfd.h> |
#include <bfd.h> |
3267 |
_ACEOF |
EOF |
3268 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3269 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
{ (eval echo configure:3270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3270 |
ac_status=$? |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3271 |
grep -v '^ *+' conftest.er1 >conftest.err |
if test -z "$ac_err"; then |
3272 |
rm -f conftest.er1 |
rm -rf conftest* |
3273 |
cat conftest.err >&5 |
eval "ac_cv_header_$ac_safe=yes" |
3274 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
else |
3275 |
(exit $ac_status); } >/dev/null; then |
echo "$ac_err" >&5 |
3276 |
if test -s conftest.err; then |
echo "configure: failed program was:" >&5 |
3277 |
ac_cpp_err=$ac_c_preproc_warn_flag |
cat conftest.$ac_ext >&5 |
3278 |
else |
rm -rf conftest* |
3279 |
ac_cpp_err= |
eval "ac_cv_header_$ac_safe=no" |
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_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 in |
|
|
yes:no ) |
|
|
{ echo "$as_me:$LINENO: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
echo "$as_me: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
no:yes ) |
|
|
{ echo "$as_me:$LINENO: WARNING: bfd.h: present but cannot be compiled" >&5 |
|
|
echo "$as_me: WARNING: bfd.h: present but cannot be compiled" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: bfd.h: check for missing prerequisite headers?" >&5 |
|
|
echo "$as_me: WARNING: bfd.h: check for missing prerequisite headers?" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for bfd.h" >&5 |
|
|
echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6 |
|
|
if test "${ac_cv_header_bfd_h+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_cv_header_bfd_h=$ac_header_preproc |
|
3280 |
fi |
fi |
3281 |
echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5 |
rm -f conftest* |
|
echo "${ECHO_T}$ac_cv_header_bfd_h" >&6 |
|
|
|
|
3282 |
fi |
fi |
3283 |
if test $ac_cv_header_bfd_h = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3284 |
echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5 |
echo "$ac_t""yes" 1>&6 |
3285 |
echo $ECHO_N "checking for bfd_init in -lbfd... $ECHO_C" >&6 |
echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6 |
3286 |
if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then |
echo "configure:3287: checking for bfd_init in -lbfd" >&5 |
3287 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'` |
3288 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3289 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3290 |
else |
else |
3291 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
3292 |
LIBS="-lbfd -liberty $LIBS" |
LIBS="-lbfd -liberty $LIBS" |
3293 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3294 |
#line $LINENO "configure" |
#line 3295 "configure" |
3295 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
3296 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3297 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
3298 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3299 |
char bfd_init (); |
char bfd_init(); |
3300 |
int |
|
3301 |
main () |
int main() { |
3302 |
{ |
bfd_init() |
3303 |
bfd_init (); |
; return 0; } |
3304 |
; |
EOF |
3305 |
return 0; |
if { (eval echo configure:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3306 |
} |
rm -rf conftest* |
3307 |
_ACEOF |
eval "ac_cv_lib_$ac_lib_var=yes" |
3308 |
rm -f conftest.$ac_objext conftest$ac_exeext |
else |
3309 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
echo "configure: failed program was:" >&5 |
3310 |
(eval $ac_link) 2>&5 |
cat conftest.$ac_ext >&5 |
3311 |
ac_status=$? |
rm -rf conftest* |
3312 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
eval "ac_cv_lib_$ac_lib_var=no" |
3313 |
(exit $ac_status); } && |
fi |
3314 |
{ ac_try='test -s conftest$ac_exeext' |
rm -f conftest* |
3315 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
LIBS="$ac_save_LIBS" |
3316 |
(eval $ac_try) 2>&5 |
|
3317 |
ac_status=$? |
fi |
3318 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3319 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_lib_bfd_bfd_init=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_bfd_bfd_init=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_init" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_bfd_bfd_init" >&6 |
|
|
if test $ac_cv_lib_bfd_bfd_init = yes; then |
|
3320 |
# |
# |
3321 |
# Old binutils appear to need CONST defined to const |
# Old binutils appear to need CONST defined to const |
3322 |
# |
# |
3323 |
echo "$as_me:$LINENO: checking if need to define CONST for bfd" >&5 |
echo $ac_n "checking if need to define CONST for bfd""... $ac_c" 1>&6 |
3324 |
echo $ECHO_N "checking if need to define CONST for bfd... $ECHO_C" >&6 |
echo "configure:3325: checking if need to define CONST for bfd" >&5 |
3325 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3326 |
echo "$as_me:$LINENO: result: cannot use bfd" >&5 |
echo "$ac_t""cannot use bfd" 1>&6 exit 1; |
|
echo "${ECHO_T}cannot use bfd" >&6 exit 1; |
|
3327 |
else |
else |
3328 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3329 |
#line $LINENO "configure" |
#line 3330 "configure" |
3330 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3331 |
#define IN_GCC |
#define IN_GCC |
3332 |
#include <bfd.h> |
#include <bfd.h> |
3333 |
int main() { symbol_info t; return 0;} |
int main() { symbol_info t; return 0;} |
3334 |
_ACEOF |
EOF |
3335 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3336 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3337 |
(eval $ac_link) 2>&5 |
echo "$ac_t""no" 1>&6 |
3338 |
ac_status=$? |
else |
3339 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3340 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
cat conftest.$ac_ext >&5 |
3341 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -fr conftest* |
3342 |
(eval $ac_try) 2>&5 |
if test "$cross_compiling" = yes; then |
3343 |
ac_status=$? |
echo "$ac_t""cannot use bfd" 1>&6 exit 1; |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
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 ) |
|
|
if test "$cross_compiling" = yes; then |
|
|
echo "$as_me:$LINENO: result: cannot use bfd" >&5 |
|
|
echo "${ECHO_T}cannot use bfd" >&6 exit 1; |
|
3344 |
else |
else |
3345 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3346 |
#line $LINENO "configure" |
#line 3347 "configure" |
3347 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3348 |
#define CONST const |
#define CONST const |
3349 |
#define IN_GCC |
#define IN_GCC |
3350 |
#include <bfd.h> |
#include <bfd.h> |
3351 |
int main() {symbol_info t; return 0;} |
int main() {symbol_info t; return 0;} |
3352 |
_ACEOF |
EOF |
3353 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3354 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3355 |
(eval $ac_link) 2>&5 |
echo "$ac_t""yes" 1>&6 |
3356 |
ac_status=$? |
cat >> confdefs.h <<\EOF |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
echo "$as_me:$LINENO: result: yes" >&5 |
|
|
echo "${ECHO_T}yes" >&6 |
|
|
cat >>confdefs.h <<\_ACEOF |
|
3357 |
#define NEED_CONST 1 |
#define NEED_CONST 1 |
3358 |
_ACEOF |
EOF |
3359 |
|
|
3360 |
else |
else |
3361 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3362 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3363 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
3364 |
|
echo "$ac_t""cannot use bfd" 1>&6 exit 1; |
|
( exit $ac_status ) |
|
|
echo "$as_me:$LINENO: result: cannot use bfd" >&5 |
|
|
echo "${ECHO_T}cannot use bfd" >&6 exit 1; |
|
3365 |
fi |
fi |
3366 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3367 |
fi |
fi |
3368 |
|
|
3369 |
fi |
fi |
3370 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3371 |
fi |
fi |
3372 |
|
|
3373 |
|
|
3374 |
|
else |
3375 |
|
echo "$ac_t""no" 1>&6 |
3376 |
fi |
fi |
3377 |
|
|
3378 |
|
else |
3379 |
|
echo "$ac_t""no" 1>&6 |
3380 |
fi |
fi |
3381 |
|
|
3382 |
|
|
3383 |
|
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
3384 |
#define HAVE_LIBBFD 1 |
#define HAVE_LIBBFD 1 |
3385 |
_ACEOF |
EOF |
3386 |
|
|
3387 |
|
|
3388 |
# |
# |
3389 |
# BFD boolean syntax |
# BFD boolean syntax |
3390 |
# |
# |
3391 |
|
|
3392 |
echo "$as_me:$LINENO: checking for useable bfd_boolean" >&5 |
echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6 |
3393 |
echo $ECHO_N "checking for useable bfd_boolean... $ECHO_C" >&6 |
echo "configure:3394: checking for useable bfd_boolean" >&5 |
3394 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3395 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
3396 |
else |
else |
3397 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3398 |
#line $LINENO "configure" |
#line 3399 "configure" |
3399 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3400 |
#define IN_GCC |
#define IN_GCC |
3401 |
#include <bfd.h> |
#include <bfd.h> |
3402 |
bfd_boolean foo() {return FALSE;} |
bfd_boolean foo() {return FALSE;} |
3403 |
int main() {return 0;} |
int main() {return 0;} |
3404 |
_ACEOF |
EOF |
3405 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3406 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3407 |
(eval $ac_link) 2>&5 |
echo "$ac_t""yes" 1>&6 |
3408 |
ac_status=$? |
cat >> confdefs.h <<\EOF |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
echo "$as_me:$LINENO: result: yes" >&5 |
|
|
echo "${ECHO_T}yes" >&6 |
|
|
cat >>confdefs.h <<\_ACEOF |
|
3409 |
#define HAVE_BFD_BOOLEAN 1 |
#define HAVE_BFD_BOOLEAN 1 |
3410 |
_ACEOF |
EOF |
3411 |
|
|
3412 |
else |
else |
3413 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3414 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3415 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
3416 |
|
echo "$ac_t""no" 1>&6 |
|
( exit $ac_status ) |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
3417 |
fi |
fi |
3418 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3419 |
fi |
fi |
3420 |
|
|
3421 |
|
|
3422 |
|
|
3423 |
# |
# |
3424 |
# FIXME: Need to workaround mingw before this point -- CM |
# FIXME: Need to workaround mingw before this point -- CM |
3425 |
# |
# |
3432 |
else |
else |
3433 |
echo Guessing path to libbfd.a due to gcc bug |
echo Guessing path to libbfd.a due to gcc bug |
3434 |
TLIBS="$TLIBS /usr/lib/libbfd.a" |
TLIBS="$TLIBS /usr/lib/libbfd.a" |
3435 |
fi |
fi |
3436 |
if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then |
if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then |
3437 |
TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a | $AWK '{i=split($1,A,"/");for (j=1;j<=i;j++) if (j>1 && A[j]=="..") {j--;i-=2;for (k=j;k<=i;k++) A[k]=A[k+2];j--;}} END {for (j=1;j<=i;j++) printf("%s%s",A[j],j!=i ? "/" : "")}'`" |
TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a | $AWK '{i=split($1,A,"/");for (j=1;j<=i;j++) if (j>1 && A[j]=="..") {j--;i-=2;for (k=j;k<=i;k++) A[k]=A[k+2];j--;}} END {for (j=1;j<=i;j++) printf("%s%s",A[j],j!=i ? "/" : "")}'`" |
3438 |
else |
else |
3439 |
echo Guessing path to libiberty.a due to gcc bug |
echo Guessing path to libiberty.a due to gcc bug |
3440 |
TLIBS="$TLIBS /usr/lib/libiberty.a" |
TLIBS="$TLIBS /usr/lib/libiberty.a" |
3441 |
fi |
fi |
3442 |
else |
else |
3443 |
TLIBS="$TLIBS -lbfd -liberty" |
TLIBS="$TLIBS -lbfd -liberty" |
3444 |
fi |
fi |
3448 |
|
|
3449 |
# check for gettext. It is part of glibc, but others |
# check for gettext. It is part of glibc, but others |
3450 |
# need GNU gettext separately. |
# need GNU gettext separately. |
3451 |
if test "${ac_cv_header_libintl_h+set}" = set; then |
ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` |
3452 |
echo "$as_me:$LINENO: checking for libintl.h" >&5 |
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 |
3453 |
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 |
echo "configure:3454: checking for libintl.h" >&5 |
3454 |
if test "${ac_cv_header_libintl_h+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3455 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3456 |
fi |
else |
3457 |
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 |
cat > conftest.$ac_ext <<EOF |
3458 |
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 |
#line 3459 "configure" |
3459 |
else |
#include "confdefs.h" |
|
# Is the header compilable? |
|
|
echo "$as_me:$LINENO: checking libintl.h usability" >&5 |
|
|
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
#include <libintl.h> |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 libintl.h presence" >&5 |
|
|
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3460 |
#include <libintl.h> |
#include <libintl.h> |
3461 |
_ACEOF |
EOF |
3462 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3463 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
{ (eval echo configure:3464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3464 |
ac_status=$? |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3465 |
grep -v '^ *+' conftest.er1 >conftest.err |
if test -z "$ac_err"; then |
3466 |
rm -f conftest.er1 |
rm -rf conftest* |
3467 |
cat conftest.err >&5 |
eval "ac_cv_header_$ac_safe=yes" |
3468 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
else |
3469 |
(exit $ac_status); } >/dev/null; then |
echo "$ac_err" >&5 |
3470 |
if test -s conftest.err; then |
echo "configure: failed program was:" >&5 |
3471 |
ac_cpp_err=$ac_c_preproc_warn_flag |
cat conftest.$ac_ext >&5 |
3472 |
else |
rm -rf conftest* |
3473 |
ac_cpp_err= |
eval "ac_cv_header_$ac_safe=no" |
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_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 in |
|
|
yes:no ) |
|
|
{ echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
no:yes ) |
|
|
{ echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 |
|
|
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 |
|
|
echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for libintl.h" >&5 |
|
|
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 |
|
|
if test "${ac_cv_header_libintl_h+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_cv_header_libintl_h=$ac_header_preproc |
|
3474 |
fi |
fi |
3475 |
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 |
rm -f conftest* |
|
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 |
|
|
|
|
3476 |
fi |
fi |
3477 |
if test $ac_cv_header_libintl_h = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3478 |
|
echo "$ac_t""yes" 1>&6 |
3479 |
true |
true |
3480 |
else |
else |
3481 |
{ { echo "$as_me:$LINENO: error: libintl.h (gettext) not found" >&5 |
echo "$ac_t""no" 1>&6 |
3482 |
echo "$as_me: error: libintl.h (gettext) not found" >&2;} |
{ echo "configure: error: libintl.h (gettext) not found" 1>&2; exit 1; } |
|
{ (exit 1); exit 1; }; } |
|
3483 |
fi |
fi |
3484 |
|
|
3485 |
|
|
3486 |
echo "$as_me:$LINENO: checking for library containing dgettext" >&5 |
echo $ac_n "checking for library containing dgettext""... $ac_c" 1>&6 |
3487 |
echo $ECHO_N "checking for library containing dgettext... $ECHO_C" >&6 |
echo "configure:3488: checking for library containing dgettext" >&5 |
3488 |
if test "${ac_cv_search_dgettext+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_search_dgettext'+set}'`\" = set"; then |
3489 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3490 |
else |
else |
3491 |
ac_func_search_save_LIBS=$LIBS |
ac_func_search_save_LIBS="$LIBS" |
3492 |
ac_cv_search_dgettext=no |
ac_cv_search_dgettext="no" |
3493 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3494 |
#line $LINENO "configure" |
#line 3495 "configure" |
3495 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
3496 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3497 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
3498 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3499 |
char dgettext (); |
char dgettext(); |
3500 |
int |
|
3501 |
main () |
int main() { |
3502 |
{ |
dgettext() |
3503 |
dgettext (); |
; return 0; } |
3504 |
; |
EOF |
3505 |
return 0; |
if { (eval echo configure:3506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3506 |
} |
rm -rf conftest* |
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
3507 |
ac_cv_search_dgettext="none required" |
ac_cv_search_dgettext="none required" |
3508 |
else |
else |
3509 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
3510 |
sed 's/^/| /' conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
|
|
|
3511 |
fi |
fi |
3512 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
3513 |
if test "$ac_cv_search_dgettext" = no; then |
test "$ac_cv_search_dgettext" = "no" && for i in intl; do |
3514 |
for ac_lib in intl; do |
LIBS="-l$i $ac_func_search_save_LIBS" |
3515 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
cat > conftest.$ac_ext <<EOF |
3516 |
cat >conftest.$ac_ext <<_ACEOF |
#line 3517 "configure" |
3517 |
#line $LINENO "configure" |
#include "confdefs.h" |
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
3518 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3519 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
3520 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3521 |
char dgettext (); |
char dgettext(); |
3522 |
int |
|
3523 |
main () |
int main() { |
3524 |
{ |
dgettext() |
3525 |
dgettext (); |
; return 0; } |
3526 |
; |
EOF |
3527 |
return 0; |
if { (eval echo configure:3528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3528 |
} |
rm -rf conftest* |
3529 |
_ACEOF |
ac_cv_search_dgettext="-l$i" |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_search_dgettext="-l$ac_lib" |
|
3530 |
break |
break |
3531 |
else |
else |
3532 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
3533 |
sed 's/^/| /' conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
|
|
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
done |
|
3534 |
fi |
fi |
3535 |
LIBS=$ac_func_search_save_LIBS |
rm -f conftest* |
3536 |
|
done |
3537 |
|
LIBS="$ac_func_search_save_LIBS" |
3538 |
fi |
fi |
3539 |
echo "$as_me:$LINENO: result: $ac_cv_search_dgettext" >&5 |
|
3540 |
echo "${ECHO_T}$ac_cv_search_dgettext" >&6 |
echo "$ac_t""$ac_cv_search_dgettext" 1>&6 |
3541 |
if test "$ac_cv_search_dgettext" != no; then |
if test "$ac_cv_search_dgettext" != "no"; then |
3542 |
test "$ac_cv_search_dgettext" = "none required" || LIBS="$ac_cv_search_dgettext $LIBS" |
test "$ac_cv_search_dgettext" = "none required" || LIBS="$ac_cv_search_dgettext $LIBS" |
3543 |
true |
true |
3544 |
else |
else : |
3545 |
{ { echo "$as_me:$LINENO: error: gettext library not found" >&5 |
{ echo "configure: error: gettext library not found" 1>&2; exit 1; } |
|
echo "$as_me: error: gettext library not found" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
3546 |
fi |
fi |
3547 |
|
|
|
|
|
3548 |
echo "#" |
echo "#" |
3549 |
echo "#" |
echo "#" |
3550 |
echo "# -------------------------" |
echo "# -------------------------" |
3552 |
echo "#" |
echo "#" |
3553 |
echo "#" |
echo "#" |
3554 |
cd binutils/libiberty && chmod +x configure && ./configure && cd ../.. |
cd binutils/libiberty && chmod +x configure && ./configure && cd ../.. |
3555 |
# MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty " |
# MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty " |
3556 |
echo "#" |
echo "#" |
3557 |
echo "#" |
echo "#" |
3558 |
echo "#" |
echo "#" |
3566 |
echo "#" |
echo "#" |
3567 |
echo "#" |
echo "#" |
3568 |
cd binutils/bfd && chmod +x configure && ./configure && cd ../.. |
cd binutils/bfd && chmod +x configure && ./configure && cd ../.. |
3569 |
# MY_SUBDIRS="$MY_SUBDIRS binutils/bfd " |
# MY_SUBDIRS="$MY_SUBDIRS binutils/bfd " |
3570 |
echo "#" |
echo "#" |
3571 |
echo "#" |
echo "#" |
3572 |
echo "#" |
echo "#" |
3574 |
echo "# ------------------------" |
echo "# ------------------------" |
3575 |
echo "#" |
echo "#" |
3576 |
# TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a" |
# TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a" |
3577 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
3578 |
#define HAVE_LIBBFD 1 |
#define HAVE_LIBBFD 1 |
3579 |
_ACEOF |
EOF |
3580 |
|
|
3581 |
BUILD_BFD="h/bfd.h h/bfdlink.h h/ansidecl.h h/symcat.h" |
BUILD_BFD="h/bfd.h h/bfdlink.h h/ansidecl.h h/symcat.h" |
3582 |
|
|
3583 |
fi |
fi |
3584 |
|
|
3585 |
#AC_CONFIG_SUBDIRS($MY_SUBDIRS) |
#AC_CONFIG_SUBDIRS($MY_SUBDIRS) |
3588 |
# mechanism, in the PAGE macro. This offset is subtracted from |
# mechanism, in the PAGE macro. This offset is subtracted from |
3589 |
# addresses, in calculating a page for an address in the heap. |
# addresses, in calculating a page for an address in the heap. |
3590 |
|
|
3591 |
echo "$as_me:$LINENO: checking for long" >&5 |
echo $ac_n "checking size of long""... $ac_c" 1>&6 |
3592 |
echo $ECHO_N "checking for long... $ECHO_C" >&6 |
echo "configure:3593: checking size of long" >&5 |
3593 |
if test "${ac_cv_type_long+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
3594 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
int |
|
|
main () |
|
|
{ |
|
|
if ((long *) 0) |
|
|
return 0; |
|
|
if (sizeof (long)) |
|
|
return 0; |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_type_long=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_type_long=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
|
|
echo "${ECHO_T}$ac_cv_type_long" >&6 |
|
|
|
|
|
echo "$as_me:$LINENO: checking size of long" >&5 |
|
|
echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
|
|
if test "${ac_cv_sizeof_long+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test "$ac_cv_type_long" = yes; then |
|
|
# The cast to unsigned long works around a bug in the HP C Compiler |
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
# This bug is HP SR number 8606223364. |
|
|
if test "$cross_compiling" = yes; then |
|
|
# Depending upon the size, compute the lo and hi bounds. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_lo=0 ac_mid=0 |
|
|
while :; do |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_hi=$ac_mid; break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_lo=`expr $ac_mid + 1` |
|
|
if test $ac_lo -le $ac_mid; then |
|
|
ac_lo= ac_hi= |
|
|
break |
|
|
fi |
|
|
ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_hi=-1 ac_mid=-1 |
|
|
while :; do |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_lo=$ac_mid; break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
if test $ac_mid -le $ac_hi; then |
|
|
ac_lo= ac_hi= |
|
|
break |
|
|
fi |
|
|
ac_mid=`expr 2 '*' $ac_mid` |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_lo= ac_hi= |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
# Binary search between lo and hi bounds. |
|
|
while test "x$ac_lo" != "x$ac_hi"; do |
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
int |
|
|
main () |
|
|
{ |
|
|
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
test_array [0] = 0 |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_hi=$ac_mid |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
case $ac_lo in |
|
|
?*) ac_cv_sizeof_long=$ac_lo;; |
|
|
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
See \`config.log' for more details." >&5 |
|
|
echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
See \`config.log' for more details." >&2;} |
|
|
{ (exit 1); exit 1; }; } ;; |
|
|
esac |
|
3595 |
else |
else |
3596 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3597 |
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
ac_cv_sizeof_long=0 |
3598 |
See \`config.log' for more details." >&5 |
else |
3599 |
echo "$as_me: error: cannot run test program while cross compiling |
cat > conftest.$ac_ext <<EOF |
3600 |
See \`config.log' for more details." >&2;} |
#line 3601 "configure" |
3601 |
{ (exit 1); exit 1; }; } |
#include "confdefs.h" |
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
long longval () { return (long) (sizeof (long)); } |
|
|
unsigned long ulongval () { return (long) (sizeof (long)); } |
|
3602 |
#include <stdio.h> |
#include <stdio.h> |
3603 |
#include <stdlib.h> |
#include <sys/types.h> |
3604 |
int |
main() |
|
main () |
|
3605 |
{ |
{ |
3606 |
|
FILE *f=fopen("conftestval", "w"); |
3607 |
FILE *f = fopen ("conftest.val", "w"); |
if (!f) exit(1); |
3608 |
if (! f) |
fprintf(f, "%d\n", sizeof(long)); |
3609 |
exit (1); |
exit(0); |
|
if (((long) (sizeof (long))) < 0) |
|
|
{ |
|
|
long i = longval (); |
|
|
if (i != ((long) (sizeof (long)))) |
|
|
exit (1); |
|
|
fprintf (f, "%ld\n", i); |
|
|
} |
|
|
else |
|
|
{ |
|
|
unsigned long i = ulongval (); |
|
|
if (i != ((long) (sizeof (long)))) |
|
|
exit (1); |
|
|
fprintf (f, "%lu\n", i); |
|
|
} |
|
|
exit (ferror (f) || fclose (f) != 0); |
|
|
|
|
|
; |
|
|
return 0; |
|
3610 |
} |
} |
3611 |
_ACEOF |
EOF |
3612 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3613 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3614 |
(eval $ac_link) 2>&5 |
ac_cv_sizeof_long=`cat conftestval` |
3615 |
ac_status=$? |
else |
3616 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3617 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
cat conftest.$ac_ext >&5 |
3618 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -fr conftest* |
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_sizeof_long=`cat conftest.val` |
|
|
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 ) |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
See \`config.log' for more details." >&5 |
|
|
echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
See \`config.log' for more details." >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
fi |
|
|
rm -f conftest.val |
|
|
else |
|
3619 |
ac_cv_sizeof_long=0 |
ac_cv_sizeof_long=0 |
3620 |
fi |
fi |
3621 |
|
rm -fr conftest* |
3622 |
fi |
fi |
3623 |
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
|
3624 |
echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
fi |
3625 |
cat >>confdefs.h <<_ACEOF |
echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
3626 |
|
cat >> confdefs.h <<EOF |
3627 |
#define SIZEOF_LONG $ac_cv_sizeof_long |
#define SIZEOF_LONG $ac_cv_sizeof_long |
3628 |
_ACEOF |
EOF |
3629 |
|
|
3630 |
|
|
3631 |
echo "$as_me:$LINENO: checking sizeof struct contblock" >&5 |
echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6 |
3632 |
echo $ECHO_N "checking sizeof struct contblock... $ECHO_C" >&6 |
echo "configure:3633: checking sizeof struct contblock" >&5 |
3633 |
|
|
3634 |
# work around MSYS pwd result incompatibility |
# work around MSYS pwd result incompatibility |
3635 |
if test "$use" = "mingw" ; then |
if test "$use" = "mingw" ; then |
3636 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3637 |
echo Cannot find sizeof struct contblock;exit 1 |
echo Cannot find sizeof struct contblock;exit 1 |
3638 |
else |
else |
3639 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3640 |
#line $LINENO "configure" |
#line 3641 "configure" |
3641 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3642 |
#include <stdio.h> |
#include <stdio.h> |
3643 |
#define EXTER |
#define EXTER |
3644 |
#include "$MP_INCLUDE" |
#include "$MP_INCLUDE" |
3650 |
fclose(f); |
fclose(f); |
3651 |
return 0; |
return 0; |
3652 |
} |
} |
3653 |
_ACEOF |
EOF |
3654 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3655 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
3656 |
sizeof_contblock=`cat conftest1` |
sizeof_contblock=`cat conftest1` |
3657 |
else |
else |
3658 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3659 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3660 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
3661 |
|
echo Cannot find sizeof struct contblock;exit 1 |
|
( exit $ac_status ) |
|
|
echo Cannot find sizeof struct contblock;exit 1 |
|
3662 |
fi |
fi |
3663 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3664 |
fi |
fi |
3665 |
|
|
3666 |
else |
else |
3667 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3668 |
echo Cannot find sizeof struct contblock;exit 1 |
echo Cannot find sizeof struct contblock;exit 1 |
3669 |
else |
else |
3670 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3671 |
#line $LINENO "configure" |
#line 3672 "configure" |
3672 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3673 |
#include <stdio.h> |
#include <stdio.h> |
3674 |
#define EXTER |
#define EXTER |
3675 |
#include "$MP_INCLUDE" |
#include "$MP_INCLUDE" |
3681 |
fclose(f); |
fclose(f); |
3682 |
return 0; |
return 0; |
3683 |
} |
} |
3684 |
_ACEOF |
EOF |
3685 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3686 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
3687 |
sizeof_contblock=`cat conftest1` |
sizeof_contblock=`cat conftest1` |
3688 |
else |
else |
3689 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3690 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3691 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
3692 |
|
echo Cannot find sizeof struct contblock;exit 1 |
|
( exit $ac_status ) |
|
|
echo Cannot find sizeof struct contblock;exit 1 |
|
3693 |
fi |
fi |
3694 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3695 |
fi |
fi |
3696 |
|
|
3697 |
fi |
fi |
3698 |
echo "$as_me:$LINENO: result: $sizeof_contblock" >&5 |
echo "$ac_t""$sizeof_contblock" 1>&6 |
3699 |
echo "${ECHO_T}$sizeof_contblock" >&6 |
cat >> confdefs.h <<EOF |
|
cat >>confdefs.h <<_ACEOF |
|
3700 |
#define SIZEOF_CONTBLOCK $sizeof_contblock |
#define SIZEOF_CONTBLOCK $sizeof_contblock |
3701 |
_ACEOF |
EOF |
|
|
|
3702 |
|
|
3703 |
|
|
3704 |
|
|
3705 |
|
|
3706 |
for ac_header in endian.h |
for ac_hdr in endian.h |
3707 |
do |
do |
3708 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3709 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3710 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:3711: checking for $ac_hdr" >&5 |
3711 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3712 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
3713 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
3714 |
fi |
cat > conftest.$ac_ext <<EOF |
3715 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
#line 3716 "configure" |
3716 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
#include "confdefs.h" |
3717 |
else |
#include <$ac_hdr> |
3718 |
# Is the header compilable? |
EOF |
3719 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3720 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
{ (eval echo configure:3721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3721 |
cat >conftest.$ac_ext <<_ACEOF |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3722 |
#line $LINENO "configure" |
if test -z "$ac_err"; then |
3723 |
/* confdefs.h. */ |
rm -rf conftest* |
3724 |
_ACEOF |
eval "ac_cv_header_$ac_safe=yes" |
3725 |
cat confdefs.h >>conftest.$ac_ext |
else |
3726 |
cat >>conftest.$ac_ext <<_ACEOF |
echo "$ac_err" >&5 |
3727 |
/* end confdefs.h. */ |
echo "configure: failed program was:" >&5 |
3728 |
$ac_includes_default |
cat conftest.$ac_ext >&5 |
3729 |
#include <$ac_header> |
rm -rf conftest* |
3730 |
_ACEOF |
eval "ac_cv_header_$ac_safe=no" |
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
3731 |
fi |
fi |
3732 |
if test -z "$ac_cpp_err"; then |
rm -f conftest* |
3733 |
ac_header_preproc=yes |
fi |
3734 |
else |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3735 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_t""yes" 1>&6 |
3736 |
sed 's/^/| /' conftest.$ac_ext >&5 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3737 |
|
cat >> confdefs.h <<EOF |
3738 |
ac_header_preproc=no |
#define $ac_tr_hdr 1 |
3739 |
fi |
EOF |
3740 |
rm -f conftest.err conftest.$ac_ext |
echo $ac_n "checking "endianness"""... $ac_c" 1>&6 |
3741 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
echo "configure:3742: checking "endianness"" >&5 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
|
|
# So? What about this header? |
|
|
case $ac_header_compiler:$ac_header_preproc 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 preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
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: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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 |
|
|
echo "$as_me:$LINENO: checking \"endianness\"" >&5 |
|
|
echo $ECHO_N "checking \"endianness\"... $ECHO_C" >&6 |
|
3742 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3743 |
echo "$as_me:$LINENO: result: big" >&5 |
echo "$ac_t""big" 1>&6 |
|
echo "${ECHO_T}big" >&6 |
|
3744 |
else |
else |
3745 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3746 |
#line $LINENO "configure" |
#line 3747 "configure" |
3747 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3748 |
#define __ARMEB__ |
#define __ARMEB__ |
3749 |
#include <endian.h> |
#include <endian.h> |
3750 |
int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;} |
int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;} |
3751 |
_ACEOF |
EOF |
3752 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3753 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3754 |
(eval $ac_link) 2>&5 |
cat >> confdefs.h <<\EOF |
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
3755 |
#define LITTLE_END 1 |
#define LITTLE_END 1 |
3756 |
_ACEOF |
EOF |
3757 |
echo "$as_me:$LINENO: result: little" >&5 |
echo "$ac_t""little" 1>&6 |
3758 |
echo "${ECHO_T}little" >&6 |
else |
3759 |
else |
echo "configure: failed program was:" >&5 |
3760 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
3761 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
3762 |
sed 's/^/| /' conftest.$ac_ext >&5 |
echo "$ac_t""big" 1>&6 |
|
|
|
|
( exit $ac_status ) |
|
|
echo "$as_me:$LINENO: result: big" >&5 |
|
|
echo "${ECHO_T}big" >&6 |
|
|
fi |
|
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
3763 |
fi |
fi |
3764 |
|
rm -fr conftest* |
3765 |
fi |
fi |
3766 |
|
|
3767 |
|
else |
3768 |
|
echo "$ac_t""no" 1>&6 |
3769 |
|
fi |
3770 |
done |
done |
3771 |
|
|
3772 |
|
|
3775 |
# On systems with execshield, brk is randomized. We need to catch |
# On systems with execshield, brk is randomized. We need to catch |
3776 |
# this and restore the traditional behavior here |
# this and restore the traditional behavior here |
3777 |
|
|
3778 |
echo "$as_me:$LINENO: checking for sbrk" >&5 |
echo $ac_n "checking for sbrk""... $ac_c" 1>&6 |
3779 |
echo $ECHO_N "checking for sbrk... $ECHO_C" >&6 |
echo "configure:3780: checking for sbrk" >&5 |
3780 |
HAVE_SBRK="" |
HAVE_SBRK="" |
3781 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3782 |
echo "$as_me:$LINENO: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5 |
echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6 |
|
echo "${ECHO_T}no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6 |
|
3783 |
else |
else |
3784 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3785 |
#line $LINENO "configure" |
#line 3786 "configure" |
3786 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3787 |
#include <unistd.h> |
#include <unistd.h> |
3788 |
#include <stdio.h> |
#include <stdio.h> |
3789 |
int main() { |
int main() { |
3793 |
fprintf(f,"%u",sbrk(0)); |
fprintf(f,"%u",sbrk(0)); |
3794 |
return 0; |
return 0; |
3795 |
} |
} |
3796 |
_ACEOF |
EOF |
3797 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3798 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
3799 |
HAVE_SBRK=1 |
HAVE_SBRK=1 |
3800 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
3801 |
else |
else |
3802 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3803 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3804 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
3805 |
|
echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6 |
|
( exit $ac_status ) |
|
|
echo "$as_me:$LINENO: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5 |
|
|
echo "${ECHO_T}no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6 |
|
3806 |
fi |
fi |
3807 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3808 |
fi |
fi |
3809 |
|
|
3810 |
|
|
3811 |
if test "$HAVE_SBRK" = "1" ; then |
if test "$HAVE_SBRK" = "1" ; then |
3812 |
echo "$as_me:$LINENO: checking for randomized sbrk" >&5 |
echo $ac_n "checking for randomized sbrk""... $ac_c" 1>&6 |
3813 |
echo $ECHO_N "checking for randomized sbrk... $ECHO_C" >&6 |
echo "configure:3814: checking for randomized sbrk" >&5 |
3814 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3815 |
SBRK=0 |
SBRK=0 |
3816 |
else |
else |
3817 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3818 |
#line $LINENO "configure" |
#line 3819 "configure" |
3819 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3820 |
#include <unistd.h> |
#include <unistd.h> |
3821 |
#include <stdio.h> |
#include <stdio.h> |
3822 |
int main() { |
int main() { |
3826 |
fprintf(f,"%u",sbrk(0)); |
fprintf(f,"%u",sbrk(0)); |
3827 |
return 0; |
return 0; |
3828 |
} |
} |
3829 |
_ACEOF |
EOF |
3830 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3831 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
3832 |
SBRK=`cat conftest1` |
SBRK=`cat conftest1` |
3833 |
else |
else |
3834 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3835 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3836 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
3837 |
|
SBRK=0 |
|
( exit $ac_status ) |
|
|
SBRK=0 |
|
3838 |
fi |
fi |
3839 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3840 |
fi |
fi |
3841 |
|
|
3842 |
if test "$SBRK" = "0" ; then |
if test "$SBRK" = "0" ; then |
3843 |
echo "$as_me:$LINENO: result: cannot trap sbrk" >&5 |
echo "$ac_t""cannot trap sbrk" 1>&6 |
|
echo "${ECHO_T}cannot trap sbrk" >&6 |
|
3844 |
exit 1 |
exit 1 |
3845 |
fi |
fi |
3846 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3847 |
SBRK1=0 |
SBRK1=0 |
3848 |
else |
else |
3849 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3850 |
#line $LINENO "configure" |
#line 3851 "configure" |
3851 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3852 |
#include <unistd.h> |
#include <unistd.h> |
3853 |
#include <stdio.h> |
#include <stdio.h> |
3854 |
int main() { |
int main() { |
3858 |
fprintf(f,"%u",sbrk(0)); |
fprintf(f,"%u",sbrk(0)); |
3859 |
return 0; |
return 0; |
3860 |
} |
} |
3861 |
_ACEOF |
EOF |
3862 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3863 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
3864 |
SBRK1=`cat conftest1` |
SBRK1=`cat conftest1` |
3865 |
else |
else |
3866 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3867 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3868 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
3869 |
|
SBRK1=0 |
|
( exit $ac_status ) |
|
|
SBRK1=0 |
|
3870 |
fi |
fi |
3871 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3872 |
fi |
fi |
3873 |
|
|
3874 |
if test "$SBRK1" = "0" ; then |
if test "$SBRK1" = "0" ; then |
3875 |
echo "$as_me:$LINENO: result: cannot trap sbrk" >&5 |
echo "$ac_t""cannot trap sbrk" 1>&6 |
|
echo "${ECHO_T}cannot trap sbrk" >&6 |
|
3876 |
exit 1 |
exit 1 |
3877 |
fi |
fi |
3878 |
|
|
3879 |
if test "$SBRK" != "$SBRK1" ; then |
if test "$SBRK" != "$SBRK1" ; then |
3880 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
3881 |
echo "${ECHO_T}yes" >&6 |
echo $ac_n "checking for randomized brk remedy""... $ac_c" 1>&6 |
3882 |
echo "$as_me:$LINENO: checking for randomized brk remedy" >&5 |
echo "configure:3883: checking for randomized brk remedy" >&5 |
|
echo $ECHO_N "checking for randomized brk remedy... $ECHO_C" >&6 |
|
3883 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3884 |
SBRK=0 |
SBRK=0 |
3885 |
else |
else |
3886 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3887 |
#line $LINENO "configure" |
#line 3888 "configure" |
3888 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3889 |
#include <syscall.h> |
#include <syscall.h> |
3890 |
#include <linux/personality.h> |
#include <linux/personality.h> |
3891 |
#include <stdio.h> |
#include <stdio.h> |
3903 |
fprintf(f,"%u",sbrk(0)); |
fprintf(f,"%u",sbrk(0)); |
3904 |
return 0; |
return 0; |
3905 |
} |
} |
3906 |
_ACEOF |
EOF |
3907 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3908 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
3909 |
SBRK=`cat conftest1` |
SBRK=`cat conftest1` |
3910 |
else |
else |
3911 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3912 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3913 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
3914 |
|
SBRK=0 |
|
( exit $ac_status ) |
|
|
SBRK=0 |
|
3915 |
fi |
fi |
3916 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3917 |
fi |
fi |
3918 |
|
|
3919 |
if test "$SBRK" = "0" ; then |
if test "$SBRK" = "0" ; then |
3920 |
echo "$as_me:$LINENO: result: cannot trap sbrk" >&5 |
echo "$ac_t""cannot trap sbrk" 1>&6 |
|
echo "${ECHO_T}cannot trap sbrk" >&6 |
|
3921 |
exit 1 |
exit 1 |
3922 |
fi |
fi |
3923 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3924 |
SBRK1=0 |
SBRK1=0 |
3925 |
else |
else |
3926 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3927 |
#line $LINENO "configure" |
#line 3928 "configure" |
3928 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3929 |
#include <syscall.h> |
#include <syscall.h> |
3930 |
#include <linux/personality.h> |
#include <linux/personality.h> |
3931 |
#include <stdio.h> |
#include <stdio.h> |
3943 |
fprintf(f,"%u",sbrk(0)); |
fprintf(f,"%u",sbrk(0)); |
3944 |
return 0; |
return 0; |
3945 |
} |
} |
3946 |
_ACEOF |
EOF |
3947 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3948 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
3949 |
SBRK1=`cat conftest1` |
SBRK1=`cat conftest1` |
3950 |
else |
else |
3951 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3952 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3953 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
3954 |
|
SBRK1=0 |
|
( exit $ac_status ) |
|
|
SBRK1=0 |
|
3955 |
fi |
fi |
3956 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3957 |
fi |
fi |
3958 |
|
|
3959 |
if test "$SBRK1" = "0" ; then |
if test "$SBRK1" = "0" ; then |
3960 |
echo "$as_me:$LINENO: result: cannot trap sbrk" >&5 |
echo "$ac_t""cannot trap sbrk" 1>&6 |
|
echo "${ECHO_T}cannot trap sbrk" >&6 |
|
3961 |
exit 1 |
exit 1 |
3962 |
fi |
fi |
3963 |
if test "$SBRK" = "$SBRK1" ; then |
if test "$SBRK" = "$SBRK1" ; then |
3964 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
3965 |
echo "${ECHO_T}yes" >&6 |
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
3966 |
#define NEED_NONRANDOM_SBRK 1 |
#define NEED_NONRANDOM_SBRK 1 |
3967 |
_ACEOF |
EOF |
3968 |
|
|
3969 |
else |
else |
3970 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
3971 |
echo "Cannot build with randomized sbrk" |
echo "Cannot build with randomized sbrk" |
3972 |
exit 1 |
exit 1 |
3973 |
fi |
fi |
3974 |
else |
else |
3975 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
3976 |
fi |
fi |
3977 |
fi |
fi |
3978 |
|
|
3979 |
|
|
3980 |
old_LDFLAGS="$LDFLAGS" |
old_LDFLAGS="$LDFLAGS" |
3981 |
LDFLAGS="$TLDFLAGS" |
LDFLAGS="$TLDFLAGS" |
3982 |
echo "$as_me:$LINENO: checking \"finding DBEGIN\"" >&5 |
echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6 |
3983 |
echo $ECHO_N "checking \"finding DBEGIN\"... $ECHO_C" >&6 |
echo "configure:3984: checking "finding DBEGIN"" >&5 |
3984 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3985 |
dbegin=0 |
dbegin=0 |
3986 |
else |
else |
3987 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3988 |
#line $LINENO "configure" |
#line 3989 "configure" |
3989 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3990 |
#include <stdio.h> |
#include <stdio.h> |
3991 |
#include <stdlib.h> |
#include <stdlib.h> |
3992 |
#ifdef NEED_NONRANDOM_SBRK |
#ifdef NEED_NONRANDOM_SBRK |
4007 |
if (!syscall(SYS_personality,PER_LINUX)) |
if (!syscall(SYS_personality,PER_LINUX)) |
4008 |
#endif |
#endif |
4009 |
execvp(argv[0],argv); |
execvp(argv[0],argv); |
4010 |
#endif |
#endif |
4011 |
b = (void *) malloc(1000); |
b = (void *) malloc(1000); |
4012 |
fp = fopen("conftest1","w"); |
fp = fopen("conftest1","w"); |
4013 |
|
|
4023 |
fclose(fp); |
fclose(fp); |
4024 |
return 0; |
return 0; |
4025 |
} |
} |
4026 |
_ACEOF |
EOF |
4027 |
rm -f conftest$ac_exeext |
if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4028 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
4029 |
dbegin=`cat conftest1` |
dbegin=`cat conftest1` |
4030 |
else |
else |
4031 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
4032 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
4033 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
4034 |
|
dbegin=0 |
|
( exit $ac_status ) |
|
|
dbegin=0 |
|
4035 |
fi |
fi |
4036 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
4037 |
fi |
fi |
4038 |
cat >>confdefs.h <<_ACEOF |
|
4039 |
|
cat >> confdefs.h <<EOF |
4040 |
#define DBEGIN $dbegin \ |
#define DBEGIN $dbegin \ |
4041 |
/* where data begins */ |
/* where data begins */ |
4042 |
|
|
4043 |
_ACEOF |
EOF |
4044 |
|
|
4045 |
echo "$as_me:$LINENO: result: got $dbegin" >&5 |
echo "$ac_t""got $dbegin" 1>&6 |
|
echo "${ECHO_T}got $dbegin" >&6 |
|
4046 |
LDFLAGS="$old_LDFLAGS" |
LDFLAGS="$old_LDFLAGS" |
4047 |
|
|
4048 |
|
|
4049 |
echo "$as_me:$LINENO: checking \"finding CSTACK_ADDRESS\"" >&5 |
echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6 |
4050 |
echo $ECHO_N "checking \"finding CSTACK_ADDRESS\"... $ECHO_C" >&6 |
echo "configure:4051: checking "finding CSTACK_ADDRESS"" >&5 |
4051 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
4052 |
cstack_address=0 |
cstack_address=0 |
4053 |
else |
else |
4054 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4055 |
#line $LINENO "configure" |
#line 4056 "configure" |
4056 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
4057 |
#include <stdio.h> |
#include <stdio.h> |
4058 |
main() |
main() |
4059 |
{ |
{ |
4063 |
fclose(fp); |
fclose(fp); |
4064 |
return 0; |
return 0; |
4065 |
} |
} |
4066 |
_ACEOF |
EOF |
4067 |
rm -f conftest$ac_exeext |
if { (eval echo configure:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4068 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
4069 |
cstack_address=`cat conftest1` |
cstack_address=`cat conftest1` |
4070 |
else |
else |
4071 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
4072 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
4073 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
4074 |
|
cstack_address=0 |
|
( exit $ac_status ) |
|
|
cstack_address=0 |
|
4075 |
fi |
fi |
4076 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
4077 |
fi |
fi |
4078 |
cat >>confdefs.h <<_ACEOF |
|
4079 |
|
cat >> confdefs.h <<EOF |
4080 |
#define CSTACK_ADDRESS $cstack_address \ |
#define CSTACK_ADDRESS $cstack_address \ |
4081 |
|
|
4082 |
_ACEOF |
EOF |
4083 |
|
|
4084 |
echo "$as_me:$LINENO: result: got $cstack_address" >&5 |
echo "$ac_t""got $cstack_address" 1>&6 |
|
echo "${ECHO_T}got $cstack_address" >&6 |
|
4085 |
|
|
4086 |
|
|
4087 |
|
|
4088 |
echo "$as_me:$LINENO: checking \"sizeof long long int\"" >&5 |
echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6 |
4089 |
echo $ECHO_N "checking \"sizeof long long int\"... $ECHO_C" >&6 |
echo "configure:4090: checking "sizeof long long int"" >&5 |
4090 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
4091 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
4092 |
|
|
4093 |
else |
else |
4094 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4095 |
#line $LINENO "configure" |
#line 4096 "configure" |
4096 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
4097 |
#include <stdio.h> |
#include <stdio.h> |
4098 |
main() |
main() |
4099 |
{ |
{ |
4101 |
return 1; |
return 1; |
4102 |
} |
} |
4103 |
|
|
4104 |
_ACEOF |
EOF |
4105 |
rm -f conftest$ac_exeext |
if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4106 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
4107 |
(eval $ac_link) 2>&5 |
cat >> confdefs.h <<\EOF |
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
4108 |
#define HAVE_LONG_LONG 1 |
#define HAVE_LONG_LONG 1 |
4109 |
_ACEOF |
EOF |
4110 |
|
|
4111 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
4112 |
else |
else |
4113 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
4114 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
4115 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
4116 |
|
echo "$ac_t""no" 1>&6 |
|
( exit $ac_status ) |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
4117 |
fi |
fi |
4118 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
4119 |
fi |
fi |
4120 |
|
|
4121 |
|
|
4122 |
|
|
4123 |
|
|
4124 |
# readline |
# readline |
4125 |
# Check whether --enable-readline or --disable-readline was given. |
# Check whether --enable-readline or --disable-readline was given. |
4126 |
if test "${enable_readline+set}" = set; then |
if test "${enable_readline+set}" = set; then |
4127 |
enableval="$enable_readline" |
enableval="$enable_readline" |
4128 |
|
: |
4129 |
else |
else |
4130 |
enable_readline="yes" |
enable_readline="yes" |
4131 |
fi; |
fi |
4132 |
|
|
4133 |
|
|
4134 |
# ansi lisp |
# ansi lisp |
4135 |
# Check whether --enable-ansi or --disable-ansi was given. |
# Check whether --enable-ansi or --disable-ansi was given. |
4136 |
if test "${enable_ansi+set}" = set; then |
if test "${enable_ansi+set}" = set; then |
4137 |
enableval="$enable_ansi" |
enableval="$enable_ansi" |
4138 |
|
: |
4139 |
else |
else |
4140 |
enable_ansi="no" |
enable_ansi="no" |
4141 |
fi; |
fi |
4142 |
|
|
4143 |
|
|
4144 |
if test "$enable_ansi" = "yes" ; then |
if test "$enable_ansi" = "yes" ; then |
4145 |
SYSTEM=ansi_gcl |
SYSTEM=ansi_gcl |
4146 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
4147 |
#define ANSI_COMMON_LISP 1 |
#define ANSI_COMMON_LISP 1 |
4148 |
_ACEOF |
EOF |
4149 |
|
|
4150 |
CLSTANDARD=ANSI |
CLSTANDARD=ANSI |
4151 |
else |
else |
4159 |
|
|
4160 |
|
|
4161 |
# pagewidth |
# pagewidth |
4162 |
echo "$as_me:$LINENO: checking for pagewidth" >&5 |
echo $ac_n "checking for pagewidth""... $ac_c" 1>&6 |
4163 |
echo $ECHO_N "checking for pagewidth... $ECHO_C" >&6 |
echo "configure:4164: checking for pagewidth" >&5 |
4164 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
4165 |
PAGEWIDTH=0 |
PAGEWIDTH=0 |
4166 |
else |
else |
4167 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4168 |
#line $LINENO "configure" |
#line 4169 "configure" |
4169 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
4170 |
#include <stdio.h> |
#include <stdio.h> |
4171 |
#include <unistd.h> |
#include <unistd.h> |
4172 |
int main() {size_t i=getpagesize(),j; |
int main() {size_t i=getpagesize(),j; |
4173 |
FILE *fp=fopen("conftest1","w"); |
FILE *fp=fopen("conftest1","w"); |
4174 |
for (j=0;i>>=1;j++); |
for (j=0;i>>=1;j++); |
4175 |
fprintf(fp,"%u",j); |
fprintf(fp,"%u",j); |
4176 |
return 0;} |
return 0;} |
4177 |
_ACEOF |
EOF |
4178 |
rm -f conftest$ac_exeext |
if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4179 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
4180 |
PAGEWIDTH=`cat conftest1` |
PAGEWIDTH=`cat conftest1` |
4181 |
else |
else |
4182 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
4183 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
4184 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
4185 |
|
PAGEWIDTH=0 |
4186 |
( exit $ac_status ) |
fi |
4187 |
PAGEWIDTH=0 |
rm -fr conftest* |
4188 |
fi |
fi |
4189 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
4190 |
fi |
echo "$ac_t""$PAGEWIDTH" 1>&6 |
4191 |
echo "$as_me:$LINENO: result: $PAGEWIDTH" >&5 |
cat >> confdefs.h <<EOF |
|
echo "${ECHO_T}$PAGEWIDTH" >&6 |
|
|
cat >>confdefs.h <<_ACEOF |
|
4192 |
#define PAGEWIDTH $PAGEWIDTH |
#define PAGEWIDTH $PAGEWIDTH |
4193 |
_ACEOF |
EOF |
4194 |
|
|
4195 |
|
|
4196 |
|
|
4199 |
|
|
4200 |
|
|
4201 |
# Check if Posix compliant getcwd exists, if not we'll use getwd. |
# Check if Posix compliant getcwd exists, if not we'll use getwd. |
|
|
|
4202 |
for ac_func in getcwd |
for ac_func in getcwd |
4203 |
do |
do |
4204 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4205 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
echo "configure:4206: checking for $ac_func" >&5 |
4206 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4207 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
4208 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
4209 |
else |
cat > conftest.$ac_ext <<EOF |
4210 |
cat >conftest.$ac_ext <<_ACEOF |
#line 4211 "configure" |
4211 |
#line $LINENO "configure" |
#include "confdefs.h" |
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
4212 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4213 |
which can conflict with char $ac_func (); below. */ |
which can conflict with char $ac_func(); below. */ |
4214 |
#include <assert.h> |
#include <assert.h> |
4215 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
4216 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
4217 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4218 |
char $ac_func (); |
char $ac_func(); |
4219 |
|
|
4220 |
|
int main() { |
4221 |
|
|
4222 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4223 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4224 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4225 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4226 |
choke me |
choke me |
4227 |
#else |
#else |
4228 |
char (*f) () = $ac_func; |
$ac_func(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
4229 |
#endif |
#endif |
4230 |
|
|
4231 |
int |
; return 0; } |
4232 |
main () |
EOF |
4233 |
{ |
if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4234 |
|
rm -rf conftest* |
4235 |
; |
eval "ac_cv_func_$ac_func=yes" |
4236 |
return 0; |
else |
4237 |
} |
echo "configure: failed program was:" >&5 |
4238 |
_ACEOF |
cat conftest.$ac_ext >&5 |
4239 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -rf conftest* |
4240 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
eval "ac_cv_func_$ac_func=no" |
4241 |
(eval $ac_link) 2>&5 |
fi |
4242 |
ac_status=$? |
rm -f conftest* |
4243 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fi |
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
eval "$as_ac_var=yes" |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
eval "$as_ac_var=no" |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
4244 |
|
|
4245 |
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
4246 |
|
echo "$ac_t""yes" 1>&6 |
4247 |
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
4248 |
|
cat >> confdefs.h <<EOF |
4249 |
|
#define $ac_tr_func 1 |
4250 |
|
EOF |
4251 |
|
|
4252 |
|
else |
4253 |
|
echo "$ac_t""no" 1>&6 |
4254 |
fi |
fi |
4255 |
done |
done |
4256 |
|
|
|
|
|
4257 |
for ac_func in getwd |
for ac_func in getwd |
4258 |
do |
do |
4259 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4260 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
echo "configure:4261: checking for $ac_func" >&5 |
4261 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4262 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
4263 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
4264 |
else |
cat > conftest.$ac_ext <<EOF |
4265 |
cat >conftest.$ac_ext <<_ACEOF |
#line 4266 "configure" |
4266 |
#line $LINENO "configure" |
#include "confdefs.h" |
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
4267 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4268 |
which can conflict with char $ac_func (); below. */ |
which can conflict with char $ac_func(); below. */ |
4269 |
#include <assert.h> |
#include <assert.h> |
4270 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
4271 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
4272 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4273 |
char $ac_func (); |
char $ac_func(); |
4274 |
|
|
4275 |
|
int main() { |
4276 |
|
|
4277 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4278 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4279 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4280 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4281 |
choke me |
choke me |
4282 |
#else |
#else |
4283 |
char (*f) () = $ac_func; |
$ac_func(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
4284 |
#endif |
#endif |
4285 |
|
|
4286 |
int |
; return 0; } |
4287 |
main () |
EOF |
4288 |
{ |
if { (eval echo configure:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4289 |
|
rm -rf conftest* |
4290 |
; |
eval "ac_cv_func_$ac_func=yes" |
4291 |
return 0; |
else |
4292 |
} |
echo "configure: failed program was:" >&5 |
4293 |
_ACEOF |
cat conftest.$ac_ext >&5 |
4294 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -rf conftest* |
4295 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
eval "ac_cv_func_$ac_func=no" |
4296 |
(eval $ac_link) 2>&5 |
fi |
4297 |
ac_status=$? |
rm -f conftest* |
4298 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fi |
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
eval "$as_ac_var=yes" |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
eval "$as_ac_var=no" |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
4299 |
|
|
4300 |
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
4301 |
|
echo "$ac_t""yes" 1>&6 |
4302 |
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
4303 |
|
cat >> confdefs.h <<EOF |
4304 |
|
#define $ac_tr_func 1 |
4305 |
|
EOF |
4306 |
|
|
4307 |
|
else |
4308 |
|
echo "$ac_t""no" 1>&6 |
4309 |
fi |
fi |
4310 |
done |
done |
4311 |
|
|
4312 |
echo "$as_me:$LINENO: checking for uname" >&5 |
echo $ac_n "checking for uname""... $ac_c" 1>&6 |
4313 |
echo $ECHO_N "checking for uname... $ECHO_C" >&6 |
echo "configure:4314: checking for uname" >&5 |
4314 |
if test "${ac_cv_func_uname+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then |
4315 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4316 |
else |
else |
4317 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4318 |
#line $LINENO "configure" |
#line 4319 "configure" |
4319 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
4320 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4321 |
which can conflict with char uname (); below. */ |
which can conflict with char uname(); below. */ |
4322 |
#include <assert.h> |
#include <assert.h> |
4323 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
4324 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
4325 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4326 |
char uname (); |
char uname(); |
4327 |
|
|
4328 |
|
int main() { |
4329 |
|
|
4330 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4331 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4332 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4333 |
#if defined (__stub_uname) || defined (__stub___uname) |
#if defined (__stub_uname) || defined (__stub___uname) |
4334 |
choke me |
choke me |
4335 |
#else |
#else |
4336 |
char (*f) () = uname; |
uname(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
4337 |
#endif |
#endif |
4338 |
|
|
4339 |
int |
; return 0; } |
4340 |
main () |
EOF |
4341 |
{ |
if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4342 |
|
rm -rf conftest* |
4343 |
|
eval "ac_cv_func_uname=yes" |
4344 |
|
else |
4345 |
|
echo "configure: failed program was:" >&5 |
4346 |
|
cat conftest.$ac_ext >&5 |
4347 |
|
rm -rf conftest* |
4348 |
|
eval "ac_cv_func_uname=no" |
4349 |
|
fi |
4350 |
|
rm -f conftest* |
4351 |
|
fi |
4352 |
|
|
4353 |
; |
if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then |
4354 |
return 0; |
echo "$ac_t""yes" 1>&6 |
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_uname=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_uname=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_uname" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_uname" >&6 |
|
|
if test $ac_cv_func_uname = yes; then |
|
4355 |
: |
: |
4356 |
else |
else |
4357 |
cat >>confdefs.h <<\_ACEOF |
echo "$ac_t""no" 1>&6 |
4358 |
|
cat >> confdefs.h <<\EOF |
4359 |
#define NO_UNAME 1 |
#define NO_UNAME 1 |
4360 |
_ACEOF |
EOF |
4361 |
|
|
4362 |
fi |
fi |
4363 |
|
|
4364 |
echo "$as_me:$LINENO: checking for gettimeofday" >&5 |
echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
4365 |
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 |
echo "configure:4366: checking for gettimeofday" >&5 |
4366 |
if test "${ac_cv_func_gettimeofday+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
4367 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4368 |
else |
else |
4369 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4370 |
#line $LINENO "configure" |
#line 4371 "configure" |
4371 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
4372 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4373 |
which can conflict with char gettimeofday (); below. */ |
which can conflict with char gettimeofday(); below. */ |
4374 |
#include <assert.h> |
#include <assert.h> |
4375 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
4376 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
4377 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4378 |
char gettimeofday (); |
char gettimeofday(); |
4379 |
|
|
4380 |
|
int main() { |
4381 |
|
|
4382 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4383 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4384 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4385 |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
4386 |
choke me |
choke me |
4387 |
#else |
#else |
4388 |
char (*f) () = gettimeofday; |
gettimeofday(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
4389 |
#endif |
#endif |
4390 |
|
|
4391 |
int |
; return 0; } |
4392 |
main () |
EOF |
4393 |
{ |
if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4394 |
|
rm -rf conftest* |
4395 |
|
eval "ac_cv_func_gettimeofday=yes" |
4396 |
|
else |
4397 |
|
echo "configure: failed program was:" >&5 |
4398 |
|
cat conftest.$ac_ext >&5 |
4399 |
|
rm -rf conftest* |
4400 |
|
eval "ac_cv_func_gettimeofday=no" |
4401 |
|
fi |
4402 |
|
rm -f conftest* |
4403 |
|
fi |
4404 |
|
|
4405 |
; |
if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
4406 |
return 0; |
echo "$ac_t""yes" 1>&6 |
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_gettimeofday=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_gettimeofday=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6 |
|
|
if test $ac_cv_func_gettimeofday = yes; then |
|
4407 |
: |
: |
4408 |
else |
else |
4409 |
cat >>confdefs.h <<\_ACEOF |
echo "$ac_t""no" 1>&6 |
4410 |
|
cat >> confdefs.h <<\EOF |
4411 |
#define NO_GETTOD 1 |
#define NO_GETTOD 1 |
4412 |
_ACEOF |
EOF |
4413 |
|
|
4414 |
fi |
fi |
4415 |
|
|
4416 |
|
|
4417 |
|
|
4418 |
|
for ac_hdr in sys/ioctl.h |
|
for ac_header in sys/ioctl.h |
|
4419 |
do |
do |
4420 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4421 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4422 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:4423: checking for $ac_hdr" >&5 |
4423 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4424 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
4425 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
4426 |
fi |
cat > conftest.$ac_ext <<EOF |
4427 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
#line 4428 "configure" |
4428 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
#include "confdefs.h" |
4429 |
else |
#include <$ac_hdr> |
4430 |
# Is the header compilable? |
EOF |
4431 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4432 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
{ (eval echo configure:4433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4433 |
cat >conftest.$ac_ext <<_ACEOF |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4434 |
#line $LINENO "configure" |
if test -z "$ac_err"; then |
4435 |
/* confdefs.h. */ |
rm -rf conftest* |
4436 |
_ACEOF |
eval "ac_cv_header_$ac_safe=yes" |
4437 |
cat confdefs.h >>conftest.$ac_ext |
else |
4438 |
cat >>conftest.$ac_ext <<_ACEOF |
echo "$ac_err" >&5 |
4439 |
/* end confdefs.h. */ |
echo "configure: failed program was:" >&5 |
4440 |
$ac_includes_default |
cat conftest.$ac_ext >&5 |
4441 |
#include <$ac_header> |
rm -rf conftest* |
4442 |
_ACEOF |
eval "ac_cv_header_$ac_safe=no" |
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_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 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 preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
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: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
4443 |
fi |
fi |
4444 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
rm -f conftest* |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
4445 |
fi |
fi |
4446 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4447 |
cat >>confdefs.h <<_ACEOF |
echo "$ac_t""yes" 1>&6 |
4448 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
4449 |
_ACEOF |
cat >> confdefs.h <<EOF |
4450 |
|
#define $ac_tr_hdr 1 |
4451 |
|
EOF |
4452 |
|
|
4453 |
|
else |
4454 |
|
echo "$ac_t""no" 1>&6 |
4455 |
fi |
fi |
|
|
|
4456 |
done |
done |
4457 |
|
|
4458 |
|
|
4459 |
# OpenBSD has elf_abi.h instead of elf.h |
# OpenBSD has elf_abi.h instead of elf.h |
4460 |
|
for ac_hdr in elf.h elf_abi.h |
|
|
|
|
for ac_header in elf.h elf_abi.h |
|
4461 |
do |
do |
4462 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4463 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4464 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:4465: checking for $ac_hdr" >&5 |
4465 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4466 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
4467 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
4468 |
fi |
cat > conftest.$ac_ext <<EOF |
4469 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
#line 4470 "configure" |
4470 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
#include "confdefs.h" |
4471 |
else |
#include <$ac_hdr> |
4472 |
# Is the header compilable? |
EOF |
4473 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4474 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
{ (eval echo configure:4475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4475 |
cat >conftest.$ac_ext <<_ACEOF |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4476 |
#line $LINENO "configure" |
if test -z "$ac_err"; then |
4477 |
/* confdefs.h. */ |
rm -rf conftest* |
4478 |
_ACEOF |
eval "ac_cv_header_$ac_safe=yes" |
4479 |
cat confdefs.h >>conftest.$ac_ext |
else |
4480 |
cat >>conftest.$ac_ext <<_ACEOF |
echo "$ac_err" >&5 |
4481 |
/* end confdefs.h. */ |
echo "configure: failed program was:" >&5 |
4482 |
$ac_includes_default |
cat conftest.$ac_ext >&5 |
4483 |
#include <$ac_header> |
rm -rf conftest* |
4484 |
_ACEOF |
eval "ac_cv_header_$ac_safe=no" |
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_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 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 preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
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: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
4485 |
fi |
fi |
4486 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
rm -f conftest* |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
4487 |
fi |
fi |
4488 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4489 |
cat >>confdefs.h <<_ACEOF |
echo "$ac_t""yes" 1>&6 |
4490 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
4491 |
_ACEOF |
cat >> confdefs.h <<EOF |
4492 |
|
#define $ac_tr_hdr 1 |
4493 |
|
EOF |
4494 |
|
|
4495 |
|
else |
4496 |
|
echo "$ac_t""no" 1>&6 |
4497 |
fi |
fi |
|
|
|
4498 |
done |
done |
4499 |
|
|
4500 |
|
|
4510 |
# declare it. |
# declare it. |
4511 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
4512 |
|
|
4513 |
echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5 |
echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6 |
4514 |
echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6 |
echo "configure:4515: checking for BSDgettimeofday" >&5 |
4515 |
if test "${ac_cv_func_BSDgettimeofday+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then |
4516 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4517 |
else |
else |
4518 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4519 |
#line $LINENO "configure" |
#line 4520 "configure" |
4520 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
4521 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4522 |
which can conflict with char BSDgettimeofday (); below. */ |
which can conflict with char BSDgettimeofday(); below. */ |
4523 |
#include <assert.h> |
#include <assert.h> |
4524 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
4525 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
4526 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4527 |
char BSDgettimeofday (); |
char BSDgettimeofday(); |
4528 |
|
|
4529 |
|
int main() { |
4530 |
|
|
4531 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4532 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4533 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4534 |
#if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday) |
#if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday) |
4535 |
choke me |
choke me |
4536 |
#else |
#else |
4537 |
char (*f) () = BSDgettimeofday; |
BSDgettimeofday(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
4538 |
#endif |
#endif |
4539 |
|
|
4540 |
int |
; return 0; } |
4541 |
main () |
EOF |
4542 |
{ |
if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4543 |
|
rm -rf conftest* |
4544 |
|
eval "ac_cv_func_BSDgettimeofday=yes" |
4545 |
|
else |
4546 |
|
echo "configure: failed program was:" >&5 |
4547 |
|
cat conftest.$ac_ext >&5 |
4548 |
|
rm -rf conftest* |
4549 |
|
eval "ac_cv_func_BSDgettimeofday=no" |
4550 |
|
fi |
4551 |
|
rm -f conftest* |
4552 |
|
fi |
4553 |
|
|
4554 |
; |
if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then |
4555 |
return 0; |
echo "$ac_t""yes" 1>&6 |
4556 |
} |
cat >> confdefs.h <<\EOF |
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_BSDgettimeofday=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_BSDgettimeofday=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_BSDgettimeofday" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_BSDgettimeofday" >&6 |
|
|
if test $ac_cv_func_BSDgettimeofday = yes; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
4557 |
#define HAVE_BSDGETTIMEOFDAY 1 |
#define HAVE_BSDGETTIMEOFDAY 1 |
4558 |
_ACEOF |
EOF |
4559 |
|
|
4560 |
else |
else |
4561 |
echo "$as_me:$LINENO: checking for gettimeofday" >&5 |
echo "$ac_t""no" 1>&6 |
4562 |
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 |
echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
4563 |
if test "${ac_cv_func_gettimeofday+set}" = set; then |
echo "configure:4564: checking for gettimeofday" >&5 |
4564 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
4565 |
else |
echo $ac_n "(cached) $ac_c" 1>&6 |
4566 |
cat >conftest.$ac_ext <<_ACEOF |
else |
4567 |
#line $LINENO "configure" |
cat > conftest.$ac_ext <<EOF |
4568 |
/* confdefs.h. */ |
#line 4569 "configure" |
4569 |
_ACEOF |
#include "confdefs.h" |
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
4570 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4571 |
which can conflict with char gettimeofday (); below. */ |
which can conflict with char gettimeofday(); below. */ |
4572 |
#include <assert.h> |
#include <assert.h> |
4573 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
4574 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
4575 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4576 |
char gettimeofday (); |
char gettimeofday(); |
4577 |
|
|
4578 |
|
int main() { |
4579 |
|
|
4580 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4581 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4582 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4583 |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
4584 |
choke me |
choke me |
4585 |
#else |
#else |
4586 |
char (*f) () = gettimeofday; |
gettimeofday(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
4587 |
#endif |
#endif |
4588 |
|
|
4589 |
int |
; return 0; } |
4590 |
main () |
EOF |
4591 |
{ |
if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4592 |
|
rm -rf conftest* |
4593 |
|
eval "ac_cv_func_gettimeofday=yes" |
4594 |
|
else |
4595 |
|
echo "configure: failed program was:" >&5 |
4596 |
|
cat conftest.$ac_ext >&5 |
4597 |
|
rm -rf conftest* |
4598 |
|
eval "ac_cv_func_gettimeofday=no" |
4599 |
|
fi |
4600 |
|
rm -f conftest* |
4601 |
|
fi |
4602 |
|
|
4603 |
; |
if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
4604 |
return 0; |
echo "$ac_t""yes" 1>&6 |
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_gettimeofday=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_gettimeofday=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6 |
|
|
if test $ac_cv_func_gettimeofday = yes; then |
|
4605 |
: |
: |
4606 |
else |
else |
4607 |
cat >>confdefs.h <<\_ACEOF |
echo "$ac_t""no" 1>&6 |
4608 |
|
cat >> confdefs.h <<\EOF |
4609 |
#define NO_GETTOD 1 |
#define NO_GETTOD 1 |
4610 |
_ACEOF |
EOF |
4611 |
|
|
4612 |
fi |
fi |
4613 |
|
|
4614 |
fi |
fi |
4615 |
|
|
4616 |
|
|
4617 |
echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5 |
echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6 |
4618 |
echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6 |
echo "configure:4619: checking for gettimeofday declaration" >&5 |
4619 |
|
|
4620 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4621 |
#line $LINENO "configure" |
#line 4622 "configure" |
4622 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
4623 |
#include <sys/time.h> |
#include <sys/time.h> |
4624 |
|
EOF |
|
_ACEOF |
|
4625 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4626 |
$EGREP "gettimeofday" >/dev/null 2>&1; then |
egrep "gettimeofday" >/dev/null 2>&1; then |
4627 |
echo "$as_me:$LINENO: result: present" >&5 |
rm -rf conftest* |
4628 |
echo "${ECHO_T}present" >&6 |
echo "$ac_t""present" 1>&6 |
4629 |
else |
else |
4630 |
echo "$as_me:$LINENO: result: missing" >&5 |
rm -rf conftest* |
4631 |
echo "${ECHO_T}missing" >&6 |
echo "$ac_t""missing" 1>&6 |
4632 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
4633 |
#define GETTOD_NOT_DECLARED 1 |
#define GETTOD_NOT_DECLARED 1 |
4634 |
_ACEOF |
EOF |
4635 |
|
|
4636 |
fi |
fi |
4637 |
rm -f conftest* |
rm -f conftest* |
4638 |
|
|
4639 |
|
|
4640 |
|
|
4641 |
echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 |
4642 |
echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 |
echo "configure:4643: checking for sin in -lm" >&5 |
4643 |
if test "${ac_cv_lib_m_sin+set}" = set; then |
ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` |
4644 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4645 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
4646 |
else |
else |
4647 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
4648 |
LIBS="-lm $LIBS" |
LIBS="-lm $LIBS" |
4649 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4650 |
#line $LINENO "configure" |
#line 4651 "configure" |
4651 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
4652 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4653 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
4654 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4655 |
char sin (); |
char sin(); |
4656 |
int |
|
4657 |
main () |
int main() { |
4658 |
{ |
sin() |
4659 |
sin (); |
; return 0; } |
4660 |
; |
EOF |
4661 |
return 0; |
if { (eval echo configure:4662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4662 |
} |
rm -rf conftest* |
4663 |
_ACEOF |
eval "ac_cv_lib_$ac_lib_var=yes" |
4664 |
rm -f conftest.$ac_objext conftest$ac_exeext |
else |
4665 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
echo "configure: failed program was:" >&5 |
4666 |
(eval $ac_link) 2>&5 |
cat conftest.$ac_ext >&5 |
4667 |
ac_status=$? |
rm -rf conftest* |
4668 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
eval "ac_cv_lib_$ac_lib_var=no" |
4669 |
(exit $ac_status); } && |
fi |
4670 |
{ ac_try='test -s conftest$ac_exeext' |
rm -f conftest* |
4671 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
LIBS="$ac_save_LIBS" |
4672 |
(eval $ac_try) 2>&5 |
|
4673 |
ac_status=$? |
fi |
4674 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
4675 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_lib_m_sin=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_m_sin=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 |
|
|
if test $ac_cv_lib_m_sin = yes; then |
|
4676 |
LIBS="${LIBS} -lm" |
LIBS="${LIBS} -lm" |
4677 |
else |
else |
4678 |
true |
echo "$ac_t""no" 1>&6 |
4679 |
|
true |
4680 |
fi |
fi |
4681 |
|
|
4682 |
echo "$as_me:$LINENO: checking for main in -lmingwex" >&5 |
echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6 |
4683 |
echo $ECHO_N "checking for main in -lmingwex... $ECHO_C" >&6 |
echo "configure:4684: checking for main in -lmingwex" >&5 |
4684 |
if test "${ac_cv_lib_mingwex_main+set}" = set; then |
ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'` |
4685 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4686 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
4687 |
else |
else |
4688 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
4689 |
LIBS="-lmingwex $LIBS" |
LIBS="-lmingwex $LIBS" |
4690 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4691 |
#line $LINENO "configure" |
#line 4692 "configure" |
4692 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
4693 |
|
|
4694 |
|
int main() { |
4695 |
|
main() |
4696 |
|
; return 0; } |
4697 |
|
EOF |
4698 |
|
if { (eval echo configure:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4699 |
|
rm -rf conftest* |
4700 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
4701 |
|
else |
4702 |
|
echo "configure: failed program was:" >&5 |
4703 |
|
cat conftest.$ac_ext >&5 |
4704 |
|
rm -rf conftest* |
4705 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
4706 |
|
fi |
4707 |
|
rm -f conftest* |
4708 |
|
LIBS="$ac_save_LIBS" |
4709 |
|
|
4710 |
int |
fi |
4711 |
main () |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
4712 |
{ |
echo "$ac_t""yes" 1>&6 |
|
main (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_mingwex_main=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_mingwex_main=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_main" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_mingwex_main" >&6 |
|
|
if test $ac_cv_lib_mingwex_main = yes; then |
|
4713 |
LIBS="${LIBS} -lmingwex" |
LIBS="${LIBS} -lmingwex" |
4714 |
else |
else |
4715 |
true |
echo "$ac_t""no" 1>&6 |
4716 |
|
true |
4717 |
fi |
fi |
4718 |
|
|
4719 |
|
|
4720 |
EXTRA_LOBJS= |
EXTRA_LOBJS= |
4721 |
if test "$try_japi" = "yes" ; then |
if test "$try_japi" = "yes" ; then |
4722 |
|
for ac_hdr in japi.h |
|
for ac_header in japi.h |
|
4723 |
do |
do |
4724 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4725 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4726 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:4727: checking for $ac_hdr" >&5 |
4727 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4728 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
4729 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
4730 |
fi |
cat > conftest.$ac_ext <<EOF |
4731 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
#line 4732 "configure" |
4732 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
#include "confdefs.h" |
4733 |
else |
#include <$ac_hdr> |
4734 |
# Is the header compilable? |
EOF |
4735 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4736 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
{ (eval echo configure:4737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4737 |
cat >conftest.$ac_ext <<_ACEOF |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4738 |
#line $LINENO "configure" |
if test -z "$ac_err"; then |
4739 |
/* confdefs.h. */ |
rm -rf conftest* |
4740 |
_ACEOF |
eval "ac_cv_header_$ac_safe=yes" |
4741 |
cat confdefs.h >>conftest.$ac_ext |
else |
4742 |
cat >>conftest.$ac_ext <<_ACEOF |
echo "$ac_err" >&5 |
4743 |
/* end confdefs.h. */ |
echo "configure: failed program was:" >&5 |
4744 |
$ac_includes_default |
cat conftest.$ac_ext >&5 |
4745 |
#include <$ac_header> |
rm -rf conftest* |
4746 |
_ACEOF |
eval "ac_cv_header_$ac_safe=no" |
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
4747 |
fi |
fi |
4748 |
if test -z "$ac_cpp_err"; then |
rm -f conftest* |
4749 |
ac_header_preproc=yes |
fi |
4750 |
else |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4751 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_t""yes" 1>&6 |
4752 |
sed 's/^/| /' conftest.$ac_ext >&5 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
4753 |
|
cat >> confdefs.h <<EOF |
4754 |
ac_header_preproc=no |
#define $ac_tr_hdr 1 |
4755 |
fi |
EOF |
4756 |
rm -f conftest.err conftest.$ac_ext |
cat >> confdefs.h <<\EOF |
|
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 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 preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
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: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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 |
|
|
cat >>confdefs.h <<\_ACEOF |
|
4757 |
#define HAVE_JAPI_H 1 |
#define HAVE_JAPI_H 1 |
4758 |
_ACEOF |
EOF |
4759 |
|
|
4760 |
EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o" |
EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o" |
4761 |
LIBS="${LIBS} -ljapi -lwsock32" |
LIBS="${LIBS} -ljapi -lwsock32" |
4762 |
|
else |
4763 |
|
echo "$ac_t""no" 1>&6 |
4764 |
fi |
fi |
|
|
|
4765 |
done |
done |
4766 |
|
|
4767 |
fi |
fi |
4768 |
if test "$use" = "mingw" ; then |
if test "$use" = "mingw" ; then |
4769 |
if test "$try_xdr" = "yes" ; then |
if test "$try_xdr" = "yes" ; then |
4770 |
|
for ac_hdr in rpc/rpc.h |
|
for ac_header in rpc/rpc.h |
|
4771 |
do |
do |
4772 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4773 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4774 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:4775: checking for $ac_hdr" >&5 |
4775 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4776 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
4777 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
4778 |
fi |
cat > conftest.$ac_ext <<EOF |
4779 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
#line 4780 "configure" |
4780 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
#include "confdefs.h" |
4781 |
else |
#include <$ac_hdr> |
4782 |
# Is the header compilable? |
EOF |
4783 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4784 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
{ (eval echo configure:4785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4785 |
cat >conftest.$ac_ext <<_ACEOF |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4786 |
#line $LINENO "configure" |
if test -z "$ac_err"; then |
4787 |
/* confdefs.h. */ |
rm -rf conftest* |
4788 |
_ACEOF |
eval "ac_cv_header_$ac_safe=yes" |
4789 |
cat confdefs.h >>conftest.$ac_ext |
else |
4790 |
cat >>conftest.$ac_ext <<_ACEOF |
echo "$ac_err" >&5 |
4791 |
/* end confdefs.h. */ |
echo "configure: failed program was:" >&5 |
4792 |
$ac_includes_default |
cat conftest.$ac_ext >&5 |
4793 |
#include <$ac_header> |
rm -rf conftest* |
4794 |
_ACEOF |
eval "ac_cv_header_$ac_safe=no" |
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
4795 |
fi |
fi |
4796 |
if test -z "$ac_cpp_err"; then |
rm -f conftest* |
4797 |
ac_header_preproc=yes |
fi |
4798 |
else |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4799 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_t""yes" 1>&6 |
4800 |
sed 's/^/| /' conftest.$ac_ext >&5 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
4801 |
|
cat >> confdefs.h <<EOF |
4802 |
ac_header_preproc=no |
#define $ac_tr_hdr 1 |
4803 |
fi |
EOF |
4804 |
rm -f conftest.err conftest.$ac_ext |
cat >> confdefs.h <<\EOF |
|
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 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 preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
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: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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 |
|
|
cat >>confdefs.h <<\_ACEOF |
|
4805 |
#define HAVE_XDR 1 |
#define HAVE_XDR 1 |
4806 |
_ACEOF |
EOF |
4807 |
|
|
4808 |
LIBS="${LIBS} -loncrpc" |
LIBS="${LIBS} -loncrpc" |
4809 |
|
else |
4810 |
|
echo "$ac_t""no" 1>&6 |
4811 |
fi |
fi |
|
|
|
4812 |
done |
done |
4813 |
|
|
4814 |
fi |
fi |
4815 |
else |
else |
4816 |
if test "$try_xdr" = "yes" ; then |
if test "$try_xdr" = "yes" ; then |
4817 |
|
for ac_hdr in rpc/rpc.h |
|
for ac_header in rpc/rpc.h |
|
4818 |
do |
do |
4819 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4820 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4821 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:4822: checking for $ac_hdr" >&5 |
4822 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4823 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
4824 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
4825 |
fi |
cat > conftest.$ac_ext <<EOF |
4826 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
#line 4827 "configure" |
4827 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
#include "confdefs.h" |
4828 |
else |
#include <$ac_hdr> |
4829 |
# Is the header compilable? |
EOF |
4830 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4831 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
{ (eval echo configure:4832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4832 |
cat >conftest.$ac_ext <<_ACEOF |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4833 |
#line $LINENO "configure" |
if test -z "$ac_err"; then |
4834 |
/* confdefs.h. */ |
rm -rf conftest* |
4835 |
_ACEOF |
eval "ac_cv_header_$ac_safe=yes" |
4836 |
cat confdefs.h >>conftest.$ac_ext |
else |
4837 |
cat >>conftest.$ac_ext <<_ACEOF |
echo "$ac_err" >&5 |
4838 |
/* end confdefs.h. */ |
echo "configure: failed program was:" >&5 |
4839 |
$ac_includes_default |
cat conftest.$ac_ext >&5 |
4840 |
#include <$ac_header> |
rm -rf conftest* |
4841 |
_ACEOF |
eval "ac_cv_header_$ac_safe=no" |
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
4842 |
fi |
fi |
4843 |
if test -z "$ac_cpp_err"; then |
rm -f conftest* |
4844 |
ac_header_preproc=yes |
fi |
4845 |
else |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4846 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_t""yes" 1>&6 |
4847 |
sed 's/^/| /' conftest.$ac_ext >&5 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
4848 |
|
cat >> confdefs.h <<EOF |
4849 |
ac_header_preproc=no |
#define $ac_tr_hdr 1 |
4850 |
fi |
EOF |
4851 |
rm -f conftest.err conftest.$ac_ext |
cat >> confdefs.h <<\EOF |
|
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 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 preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
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: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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 |
|
|
cat >>confdefs.h <<\_ACEOF |
|
4852 |
#define HAVE_XDR 1 |
#define HAVE_XDR 1 |
4853 |
_ACEOF |
EOF |
4854 |
|
|
4855 |
LIBS="${LIBS} -lrpc" |
LIBS="${LIBS} -lrpc" |
4856 |
|
else |
4857 |
|
echo "$ac_t""no" 1>&6 |
4858 |
fi |
fi |
|
|
|
4859 |
done |
done |
4860 |
|
|
4861 |
fi |
fi |
4862 |
fi |
fi |
4863 |
|
|
4864 |
# Should really find a way to check for prototypes, but this |
# Should really find a way to check for prototypes, but this |
4865 |
# basically works for now. CM |
# basically works for now. CM |
4866 |
# |
# |
4867 |
|
for ac_hdr in math.h |
|
for ac_header in math.h |
|
4868 |
do |
do |
4869 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4870 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4871 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:4872: checking for $ac_hdr" >&5 |
4872 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4873 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
4874 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
4875 |
fi |
cat > conftest.$ac_ext <<EOF |
4876 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
#line 4877 "configure" |
4877 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
#include "confdefs.h" |
4878 |
else |
#include <$ac_hdr> |
4879 |
# Is the header compilable? |
EOF |
4880 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4881 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
{ (eval echo configure:4882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4882 |
cat >conftest.$ac_ext <<_ACEOF |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4883 |
#line $LINENO "configure" |
if test -z "$ac_err"; then |
4884 |
/* confdefs.h. */ |
rm -rf conftest* |
4885 |
_ACEOF |
eval "ac_cv_header_$ac_safe=yes" |
4886 |
cat confdefs.h >>conftest.$ac_ext |
else |
4887 |
cat >>conftest.$ac_ext <<_ACEOF |
echo "$ac_err" >&5 |
4888 |
/* end confdefs.h. */ |
echo "configure: failed program was:" >&5 |
4889 |
$ac_includes_default |
cat conftest.$ac_ext >&5 |
4890 |
#include <$ac_header> |
rm -rf conftest* |
4891 |
_ACEOF |
eval "ac_cv_header_$ac_safe=no" |
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
4892 |
fi |
fi |
4893 |
if test -z "$ac_cpp_err"; then |
rm -f conftest* |
4894 |
ac_header_preproc=yes |
fi |
4895 |
else |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4896 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_t""yes" 1>&6 |
4897 |
sed 's/^/| /' conftest.$ac_ext >&5 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
4898 |
|
cat >> confdefs.h <<EOF |
4899 |
ac_header_preproc=no |
#define $ac_tr_hdr 1 |
4900 |
fi |
EOF |
4901 |
rm -f conftest.err conftest.$ac_ext |
cat >> confdefs.h <<\EOF |
|
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 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 preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
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: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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 |
|
|
cat >>confdefs.h <<\_ACEOF |
|
4902 |
#define HAVE_MATH_H 1 |
#define HAVE_MATH_H 1 |
4903 |
_ACEOF |
EOF |
4904 |
|
|
4905 |
|
else |
4906 |
|
echo "$ac_t""no" 1>&6 |
4907 |
fi |
fi |
|
|
|
4908 |
done |
done |
4909 |
|
|
4910 |
|
|
4911 |
# |
# |
4912 |
# For DBL_MAX et. al. on (only) certain Linux arches, apparently CM |
# For DBL_MAX et. al. on (only) certain Linux arches, apparently CM |
4913 |
# |
# |
4914 |
|
for ac_hdr in values.h |
|
for ac_header in values.h |
|
4915 |
do |
do |
4916 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4917 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4918 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:4919: checking for $ac_hdr" >&5 |
4919 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4920 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
4921 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
4922 |
fi |
cat > conftest.$ac_ext <<EOF |
4923 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
#line 4924 "configure" |
4924 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
#include "confdefs.h" |
4925 |
else |
#include <$ac_hdr> |
4926 |
# Is the header compilable? |
EOF |
4927 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4928 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
{ (eval echo configure:4929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4929 |
cat >conftest.$ac_ext <<_ACEOF |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4930 |
#line $LINENO "configure" |
if test -z "$ac_err"; then |
4931 |
/* confdefs.h. */ |
rm -rf conftest* |
4932 |
_ACEOF |
eval "ac_cv_header_$ac_safe=yes" |
4933 |
cat confdefs.h >>conftest.$ac_ext |
else |
4934 |
cat >>conftest.$ac_ext <<_ACEOF |
echo "$ac_err" >&5 |
4935 |
/* end confdefs.h. */ |
echo "configure: failed program was:" >&5 |
4936 |
$ac_includes_default |
cat conftest.$ac_ext >&5 |
4937 |
#include <$ac_header> |
rm -rf conftest* |
4938 |
_ACEOF |
eval "ac_cv_header_$ac_safe=no" |
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
4939 |
fi |
fi |
4940 |
if test -z "$ac_cpp_err"; then |
rm -f conftest* |
4941 |
ac_header_preproc=yes |
fi |
4942 |
else |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4943 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_t""yes" 1>&6 |
4944 |
sed 's/^/| /' conftest.$ac_ext >&5 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
4945 |
|
cat >> confdefs.h <<EOF |
4946 |
ac_header_preproc=no |
#define $ac_tr_hdr 1 |
4947 |
fi |
EOF |
4948 |
rm -f conftest.err conftest.$ac_ext |
cat >> confdefs.h <<\EOF |
|
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 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 preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
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: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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 |
|
|
cat >>confdefs.h <<\_ACEOF |
|
4949 |
#define HAVE_VALUES_H 1 |
#define HAVE_VALUES_H 1 |
4950 |
_ACEOF |
EOF |
4951 |
|
|
4952 |
|
else |
4953 |
|
echo "$ac_t""no" 1>&6 |
4954 |
fi |
fi |
|
|
|
4955 |
done |
done |
4956 |
|
|
4957 |
|
|
4958 |
# |
# |
4959 |
# Sparc solaris keeps this in float.h, rework either/or with values.h later |
# Sparc solaris keeps this in float.h, rework either/or with values.h later |
4960 |
# |
# |
4961 |
|
for ac_hdr in float.h |
|
for ac_header in float.h |
|
4962 |
do |
do |
4963 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4964 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4965 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:4966: checking for $ac_hdr" >&5 |
4966 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4967 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
4968 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
4969 |
fi |
cat > conftest.$ac_ext <<EOF |
4970 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
#line 4971 "configure" |
4971 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
#include "confdefs.h" |
4972 |
else |
#include <$ac_hdr> |
4973 |
# Is the header compilable? |
EOF |
4974 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4975 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
{ (eval echo configure:4976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4976 |
cat >conftest.$ac_ext <<_ACEOF |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4977 |
#line $LINENO "configure" |
if test -z "$ac_err"; then |
4978 |
/* confdefs.h. */ |
rm -rf conftest* |
4979 |
_ACEOF |
eval "ac_cv_header_$ac_safe=yes" |
4980 |
cat confdefs.h >>conftest.$ac_ext |
else |
4981 |
cat >>conftest.$ac_ext <<_ACEOF |
echo "$ac_err" >&5 |
4982 |
/* end confdefs.h. */ |
echo "configure: failed program was:" >&5 |
4983 |
$ac_includes_default |
cat conftest.$ac_ext >&5 |
4984 |
#include <$ac_header> |
rm -rf conftest* |
4985 |
_ACEOF |
eval "ac_cv_header_$ac_safe=no" |
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
4986 |
fi |
fi |
4987 |
if test -z "$ac_cpp_err"; then |
rm -f conftest* |
4988 |
ac_header_preproc=yes |
fi |
4989 |
else |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4990 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_t""yes" 1>&6 |
4991 |
sed 's/^/| /' conftest.$ac_ext >&5 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
4992 |
|
cat >> confdefs.h <<EOF |
4993 |
ac_header_preproc=no |
#define $ac_tr_hdr 1 |
4994 |
fi |
EOF |
4995 |
rm -f conftest.err conftest.$ac_ext |
cat >> confdefs.h <<\EOF |
|
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 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 preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
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: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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 |
|
|
cat >>confdefs.h <<\_ACEOF |
|
4996 |
#define HAVE_FLOAT_H 1 |
#define HAVE_FLOAT_H 1 |
4997 |
_ACEOF |
EOF |
4998 |
|
|
4999 |
|
else |
5000 |
|
echo "$ac_t""no" 1>&6 |
5001 |
fi |
fi |
|
|
|
5002 |
done |
done |
5003 |
|
|
5004 |
|
|
5007 |
# a more comprehensive later, i.e. checking that the fpclass |
# a more comprehensive later, i.e. checking that the fpclass |
5008 |
# test makes sense. CM |
# test makes sense. CM |
5009 |
# |
# |
5010 |
echo "$as_me:$LINENO: checking for isnormal" >&5 |
echo $ac_n "checking for isnormal""... $ac_c" 1>&6 |
5011 |
echo $ECHO_N "checking for isnormal... $ECHO_C" >&6 |
echo "configure:5012: checking for isnormal" >&5 |
5012 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
5013 |
HAVE_ISNORMAL=0 echo "$as_me:$LINENO: result: no" >&5 |
HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
5014 |
else |
else |
5015 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5016 |
#line $LINENO "configure" |
#line 5017 "configure" |
5017 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5018 |
#define _GNU_SOURCE |
#define _GNU_SOURCE |
5019 |
#include <math.h> |
#include <math.h> |
5020 |
int main() { |
int main() { |
5021 |
float f; |
float f; |
5022 |
return isnormal(f) || !isnormal(f) ? 0 : 1; |
return isnormal(f) || !isnormal(f) ? 0 : 1; |
5023 |
} |
} |
5024 |
_ACEOF |
EOF |
5025 |
rm -f conftest$ac_exeext |
if { (eval echo configure:5026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5026 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
5027 |
(eval $ac_link) 2>&5 |
cat >> confdefs.h <<\EOF |
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5028 |
#define HAVE_ISNORMAL 1 |
#define HAVE_ISNORMAL 1 |
5029 |
_ACEOF |
EOF |
5030 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
5031 |
echo "${ECHO_T}yes" >&6 |
else |
5032 |
else |
echo "configure: failed program was:" >&5 |
5033 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
5034 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
5035 |
sed 's/^/| /' conftest.$ac_ext >&5 |
echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6 |
5036 |
|
echo "configure:5037: checking for fpclass in ieeefp.h" >&5 |
|
( exit $ac_status ) |
|
|
echo "$as_me:$LINENO: checking for fpclass in ieeefp.h" >&5 |
|
|
echo $ECHO_N "checking for fpclass in ieeefp.h... $ECHO_C" >&6 |
|
5037 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
5038 |
HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5 |
HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
5039 |
else |
else |
5040 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5041 |
#line $LINENO "configure" |
#line 5042 "configure" |
5042 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5043 |
#include <ieeefp.h> |
#include <ieeefp.h> |
5044 |
int main() { |
int main() { |
5045 |
float f; |
float f; |
5046 |
return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1; |
return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1; |
5047 |
} |
} |
5048 |
_ACEOF |
EOF |
5049 |
rm -f conftest$ac_exeext |
if { (eval echo configure:5050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5050 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
5051 |
(eval $ac_link) 2>&5 |
cat >> confdefs.h <<\EOF |
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5052 |
#define HAVE_IEEEFP 1 |
#define HAVE_IEEEFP 1 |
5053 |
_ACEOF |
EOF |
5054 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
5055 |
else |
else |
5056 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
5057 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
5058 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
5059 |
|
HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6 |
|
( exit $ac_status ) |
|
|
HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
5060 |
fi |
fi |
5061 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
5062 |
fi |
fi |
5063 |
|
|
5064 |
|
|
5065 |
fi |
fi |
5066 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
5067 |
fi |
fi |
5068 |
|
|
5069 |
echo "$as_me:$LINENO: checking for isfinite" >&5 |
|
5070 |
echo $ECHO_N "checking for isfinite... $ECHO_C" >&6 |
echo $ac_n "checking for isfinite""... $ac_c" 1>&6 |
5071 |
|
echo "configure:5072: checking for isfinite" >&5 |
5072 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
5073 |
HAVE_ISFINITE=0 echo "$as_me:$LINENO: result: no" >&5 |
HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
5074 |
else |
else |
5075 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5076 |
#line $LINENO "configure" |
#line 5077 "configure" |
5077 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5078 |
#define _GNU_SOURCE |
#define _GNU_SOURCE |
5079 |
#include <math.h> |
#include <math.h> |
5080 |
int main() { |
int main() { |
5081 |
float f; |
float f; |
5082 |
return isfinite(f) || !isfinite(f) ? 0 : 1; |
return isfinite(f) || !isfinite(f) ? 0 : 1; |
5083 |
} |
} |
5084 |
_ACEOF |
EOF |
5085 |
rm -f conftest$ac_exeext |
if { (eval echo configure:5086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5086 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
5087 |
(eval $ac_link) 2>&5 |
cat >> confdefs.h <<\EOF |
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5088 |
#define HAVE_ISFINITE 1 |
#define HAVE_ISFINITE 1 |
5089 |
_ACEOF |
EOF |
5090 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
5091 |
echo "${ECHO_T}yes" >&6 |
else |
5092 |
else |
echo "configure: failed program was:" >&5 |
5093 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
5094 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
5095 |
sed 's/^/| /' conftest.$ac_ext >&5 |
echo $ac_n "checking for finite()""... $ac_c" 1>&6 |
5096 |
|
echo "configure:5097: checking for finite()" >&5 |
|
( exit $ac_status ) |
|
|
echo "$as_me:$LINENO: checking for finite()" >&5 |
|
|
echo $ECHO_N "checking for finite()... $ECHO_C" >&6 |
|
5097 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
5098 |
HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5 |
HAVE_FINITE=0 echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
5099 |
else |
else |
5100 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5101 |
#line $LINENO "configure" |
#line 5102 "configure" |
5102 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5103 |
#include <math.h> |
#include <math.h> |
5104 |
#include <ieeefp.h> |
#include <ieeefp.h> |
5105 |
int main() { |
int main() { |
5106 |
float f; |
float f; |
5107 |
return finite(f) || !finite(f) ? 0 : 1; |
return finite(f) || !finite(f) ? 0 : 1; |
5108 |
} |
} |
5109 |
_ACEOF |
EOF |
5110 |
rm -f conftest$ac_exeext |
if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5111 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
5112 |
(eval $ac_link) 2>&5 |
cat >> confdefs.h <<\EOF |
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5113 |
#define HAVE_FINITE 1 |
#define HAVE_FINITE 1 |
5114 |
_ACEOF |
EOF |
5115 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
5116 |
else |
else |
5117 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
5118 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
5119 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
5120 |
|
HAVE_FINITE=0 echo "$ac_t""no" 1>&6 |
|
( exit $ac_status ) |
|
|
HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
5121 |
fi |
fi |
5122 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
5123 |
fi |
fi |
5124 |
|
|
5125 |
|
|
5126 |
fi |
fi |
5127 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
5128 |
fi |
fi |
5129 |
|
|
5130 |
|
|
5131 |
|
|
5132 |
|
|
5133 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
5134 |
# Check for the existence of the -lsocket and -lnsl libraries. |
# Check for the existence of the -lsocket and -lnsl libraries. |
5135 |
# The order here is important, so that they end up in the right |
# The order here is important, so that they end up in the right |
5147 |
# To get around this problem, check for both libraries together |
# To get around this problem, check for both libraries together |
5148 |
# if -lsocket doesn't work by itself. |
# if -lsocket doesn't work by itself. |
5149 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
5150 |
echo "$as_me:$LINENO: checking for sockets" >&5 |
echo $ac_n "checking for sockets""... $ac_c" 1>&6 |
5151 |
echo $ECHO_N "checking for sockets... $ECHO_C" >&6 |
echo "configure:5152: checking for sockets" >&5 |
5152 |
tcl_checkBoth=0 |
tcl_checkBoth=0 |
5153 |
echo "$as_me:$LINENO: checking for connect" >&5 |
echo $ac_n "checking for connect""... $ac_c" 1>&6 |
5154 |
echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
echo "configure:5155: checking for connect" >&5 |
5155 |
if test "${ac_cv_func_connect+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
5156 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5157 |
else |
else |
5158 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5159 |
#line $LINENO "configure" |
#line 5160 "configure" |
5160 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5161 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
5162 |
which can conflict with char connect (); below. */ |
which can conflict with char connect(); below. */ |
5163 |
#include <assert.h> |
#include <assert.h> |
5164 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
5165 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
5166 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
5167 |
char connect (); |
char connect(); |
5168 |
|
|
5169 |
|
int main() { |
5170 |
|
|
5171 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
5172 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
5173 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
5174 |
#if defined (__stub_connect) || defined (__stub___connect) |
#if defined (__stub_connect) || defined (__stub___connect) |
5175 |
choke me |
choke me |
5176 |
#else |
#else |
5177 |
char (*f) () = connect; |
connect(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
5178 |
#endif |
#endif |
5179 |
|
|
5180 |
int |
; return 0; } |
5181 |
main () |
EOF |
5182 |
{ |
if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5183 |
|
rm -rf conftest* |
5184 |
|
eval "ac_cv_func_connect=yes" |
5185 |
|
else |
5186 |
|
echo "configure: failed program was:" >&5 |
5187 |
|
cat conftest.$ac_ext >&5 |
5188 |
|
rm -rf conftest* |
5189 |
|
eval "ac_cv_func_connect=no" |
5190 |
|
fi |
5191 |
|
rm -f conftest* |
5192 |
|
fi |
5193 |
|
|
5194 |
; |
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
5195 |
return 0; |
echo "$ac_t""yes" 1>&6 |
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_connect=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_connect=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_connect" >&6 |
|
|
if test $ac_cv_func_connect = yes; then |
|
5196 |
tcl_checkSocket=0 |
tcl_checkSocket=0 |
5197 |
else |
else |
5198 |
tcl_checkSocket=1 |
echo "$ac_t""no" 1>&6 |
5199 |
|
tcl_checkSocket=1 |
5200 |
fi |
fi |
5201 |
|
|
5202 |
if test "$tcl_checkSocket" = 1; then |
if test "$tcl_checkSocket" = 1; then |
5203 |
echo "$as_me:$LINENO: checking for main in -lsocket" >&5 |
echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 |
5204 |
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6 |
echo "configure:5205: checking for main in -lsocket" >&5 |
5205 |
if test "${ac_cv_lib_socket_main+set}" = set; then |
ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` |
5206 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5207 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5208 |
else |
else |
5209 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
5210 |
LIBS="-lsocket $LIBS" |
LIBS="-lsocket $LIBS" |
5211 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5212 |
#line $LINENO "configure" |
#line 5213 "configure" |
5213 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5214 |
|
|
5215 |
|
int main() { |
5216 |
|
main() |
5217 |
|
; return 0; } |
5218 |
|
EOF |
5219 |
|
if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5220 |
|
rm -rf conftest* |
5221 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
5222 |
|
else |
5223 |
|
echo "configure: failed program was:" >&5 |
5224 |
|
cat conftest.$ac_ext >&5 |
5225 |
|
rm -rf conftest* |
5226 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
5227 |
|
fi |
5228 |
|
rm -f conftest* |
5229 |
|
LIBS="$ac_save_LIBS" |
5230 |
|
|
5231 |
int |
fi |
5232 |
main () |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5233 |
{ |
echo "$ac_t""yes" 1>&6 |
|
main (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_socket_main=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_socket_main=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6 |
|
|
if test $ac_cv_lib_socket_main = yes; then |
|
5234 |
TLIBS="$TLIBS -lsocket" |
TLIBS="$TLIBS -lsocket" |
5235 |
else |
else |
5236 |
tcl_checkBoth=1 |
echo "$ac_t""no" 1>&6 |
5237 |
|
tcl_checkBoth=1 |
5238 |
fi |
fi |
5239 |
|
|
5240 |
fi |
fi |
5243 |
if test "$tcl_checkBoth" = 1; then |
if test "$tcl_checkBoth" = 1; then |
5244 |
tk_oldLibs=$TLIBS |
tk_oldLibs=$TLIBS |
5245 |
TLIBS="$TLIBS -lsocket -lnsl" |
TLIBS="$TLIBS -lsocket -lnsl" |
5246 |
echo "$as_me:$LINENO: checking for accept" >&5 |
echo $ac_n "checking for accept""... $ac_c" 1>&6 |
5247 |
echo $ECHO_N "checking for accept... $ECHO_C" >&6 |
echo "configure:5248: checking for accept" >&5 |
5248 |
if test "${ac_cv_func_accept+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then |
5249 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5250 |
else |
else |
5251 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5252 |
#line $LINENO "configure" |
#line 5253 "configure" |
5253 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5254 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
5255 |
which can conflict with char accept (); below. */ |
which can conflict with char accept(); below. */ |
5256 |
#include <assert.h> |
#include <assert.h> |
5257 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
5258 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
5259 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
5260 |
char accept (); |
char accept(); |
5261 |
|
|
5262 |
|
int main() { |
5263 |
|
|
5264 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
5265 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
5266 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
5267 |
#if defined (__stub_accept) || defined (__stub___accept) |
#if defined (__stub_accept) || defined (__stub___accept) |
5268 |
choke me |
choke me |
5269 |
#else |
#else |
5270 |
char (*f) () = accept; |
accept(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
5271 |
#endif |
#endif |
5272 |
|
|
5273 |
int |
; return 0; } |
5274 |
main () |
EOF |
5275 |
{ |
if { (eval echo configure:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5276 |
|
rm -rf conftest* |
5277 |
|
eval "ac_cv_func_accept=yes" |
5278 |
|
else |
5279 |
|
echo "configure: failed program was:" >&5 |
5280 |
|
cat conftest.$ac_ext >&5 |
5281 |
|
rm -rf conftest* |
5282 |
|
eval "ac_cv_func_accept=no" |
5283 |
|
fi |
5284 |
|
rm -f conftest* |
5285 |
|
fi |
5286 |
|
|
5287 |
; |
if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then |
5288 |
return 0; |
echo "$ac_t""yes" 1>&6 |
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_accept=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_accept=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_accept" >&6 |
|
|
if test $ac_cv_func_accept = yes; then |
|
5289 |
tcl_checkNsl=0 |
tcl_checkNsl=0 |
5290 |
else |
else |
5291 |
TLIBS=$tk_oldLibs |
echo "$ac_t""no" 1>&6 |
5292 |
|
TLIBS=$tk_oldLibs |
5293 |
fi |
fi |
5294 |
|
|
5295 |
fi |
fi |
5296 |
echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
5297 |
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
echo "configure:5298: checking for gethostbyname" >&5 |
5298 |
if test "${ac_cv_func_gethostbyname+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
5299 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5300 |
else |
else |
5301 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5302 |
#line $LINENO "configure" |
#line 5303 "configure" |
5303 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5304 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
5305 |
which can conflict with char gethostbyname (); below. */ |
which can conflict with char gethostbyname(); below. */ |
5306 |
#include <assert.h> |
#include <assert.h> |
5307 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
5308 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
5309 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
5310 |
char gethostbyname (); |
char gethostbyname(); |
5311 |
|
|
5312 |
|
int main() { |
5313 |
|
|
5314 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
5315 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
5316 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
5317 |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
5318 |
choke me |
choke me |
5319 |
#else |
#else |
5320 |
char (*f) () = gethostbyname; |
gethostbyname(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
5321 |
#endif |
#endif |
5322 |
|
|
5323 |
int |
; return 0; } |
5324 |
main () |
EOF |
5325 |
{ |
if { (eval echo configure:5326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5326 |
|
rm -rf conftest* |
5327 |
|
eval "ac_cv_func_gethostbyname=yes" |
5328 |
|
else |
5329 |
|
echo "configure: failed program was:" >&5 |
5330 |
|
cat conftest.$ac_ext >&5 |
5331 |
|
rm -rf conftest* |
5332 |
|
eval "ac_cv_func_gethostbyname=no" |
5333 |
|
fi |
5334 |
|
rm -f conftest* |
5335 |
|
fi |
5336 |
|
|
5337 |
; |
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
5338 |
return 0; |
echo "$ac_t""yes" 1>&6 |
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_gethostbyname=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_gethostbyname=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
|
|
if test $ac_cv_func_gethostbyname = yes; then |
|
5339 |
: |
: |
5340 |
else |
else |
5341 |
echo "$as_me:$LINENO: checking for main in -lnsl" >&5 |
echo "$ac_t""no" 1>&6 |
5342 |
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6 |
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 |
5343 |
if test "${ac_cv_lib_nsl_main+set}" = set; then |
echo "configure:5344: checking for main in -lnsl" >&5 |
5344 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` |
5345 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5346 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5347 |
else |
else |
5348 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
5349 |
LIBS="-lnsl $LIBS" |
LIBS="-lnsl $LIBS" |
5350 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5351 |
#line $LINENO "configure" |
#line 5352 "configure" |
5352 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5353 |
|
|
5354 |
|
int main() { |
5355 |
|
main() |
5356 |
|
; return 0; } |
5357 |
|
EOF |
5358 |
|
if { (eval echo configure:5359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5359 |
|
rm -rf conftest* |
5360 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
5361 |
|
else |
5362 |
|
echo "configure: failed program was:" >&5 |
5363 |
|
cat conftest.$ac_ext >&5 |
5364 |
|
rm -rf conftest* |
5365 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
5366 |
|
fi |
5367 |
|
rm -f conftest* |
5368 |
|
LIBS="$ac_save_LIBS" |
5369 |
|
|
5370 |
int |
fi |
5371 |
main () |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5372 |
{ |
echo "$ac_t""yes" 1>&6 |
|
main (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_nsl_main=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_nsl_main=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6 |
|
|
if test $ac_cv_lib_nsl_main = yes; then |
|
5373 |
TLIBS="$TLIBS -lnsl" |
TLIBS="$TLIBS -lnsl" |
5374 |
|
else |
5375 |
|
echo "$ac_t""no" 1>&6 |
5376 |
fi |
fi |
5377 |
|
|
5378 |
fi |
fi |
5381 |
RL_OBJS="" |
RL_OBJS="" |
5382 |
RL_LIB="" |
RL_LIB="" |
5383 |
if test "$enable_readline" = "yes" ; then |
if test "$enable_readline" = "yes" ; then |
5384 |
|
for ac_hdr in readline/readline.h |
|
for ac_header in readline/readline.h |
|
5385 |
do |
do |
5386 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5387 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5388 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:5389: checking for $ac_hdr" >&5 |
5389 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5390 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
5391 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
5392 |
fi |
cat > conftest.$ac_ext <<EOF |
5393 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
#line 5394 "configure" |
5394 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
#include "confdefs.h" |
5395 |
else |
#include <$ac_hdr> |
5396 |
# Is the header compilable? |
EOF |
5397 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5398 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
{ (eval echo configure:5399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5399 |
cat >conftest.$ac_ext <<_ACEOF |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5400 |
#line $LINENO "configure" |
if test -z "$ac_err"; then |
5401 |
/* confdefs.h. */ |
rm -rf conftest* |
5402 |
_ACEOF |
eval "ac_cv_header_$ac_safe=yes" |
5403 |
cat confdefs.h >>conftest.$ac_ext |
else |
5404 |
cat >>conftest.$ac_ext <<_ACEOF |
echo "$ac_err" >&5 |
5405 |
/* end confdefs.h. */ |
echo "configure: failed program was:" >&5 |
5406 |
$ac_includes_default |
cat conftest.$ac_ext >&5 |
5407 |
#include <$ac_header> |
rm -rf conftest* |
5408 |
_ACEOF |
eval "ac_cv_header_$ac_safe=no" |
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
5409 |
fi |
fi |
5410 |
if test -z "$ac_cpp_err"; then |
rm -f conftest* |
5411 |
ac_header_preproc=yes |
fi |
5412 |
else |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5413 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_t""yes" 1>&6 |
5414 |
sed 's/^/| /' conftest.$ac_ext >&5 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5415 |
|
cat >> confdefs.h <<EOF |
5416 |
ac_header_preproc=no |
#define $ac_tr_hdr 1 |
5417 |
fi |
EOF |
5418 |
rm -f conftest.err conftest.$ac_ext |
echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6 |
5419 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
echo "configure:5420: checking for main in -lreadline" >&5 |
5420 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'` |
5421 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5422 |
# So? What about this header? |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
case $ac_header_compiler:$ac_header_preproc 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 preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
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: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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 |
|
|
echo "$as_me:$LINENO: checking for main in -lreadline" >&5 |
|
|
echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6 |
|
|
if test "${ac_cv_lib_readline_main+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5423 |
else |
else |
5424 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
5425 |
LIBS="-lreadline -lncurses $LIBS" |
LIBS="-lreadline -lncurses $LIBS" |
5426 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5427 |
#line $LINENO "configure" |
#line 5428 "configure" |
5428 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5429 |
|
|
5430 |
|
int main() { |
5431 |
|
main() |
5432 |
|
; return 0; } |
5433 |
|
EOF |
5434 |
|
if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5435 |
|
rm -rf conftest* |
5436 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
5437 |
|
else |
5438 |
|
echo "configure: failed program was:" >&5 |
5439 |
|
cat conftest.$ac_ext >&5 |
5440 |
|
rm -rf conftest* |
5441 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
5442 |
|
fi |
5443 |
|
rm -f conftest* |
5444 |
|
LIBS="$ac_save_LIBS" |
5445 |
|
|
5446 |
int |
fi |
5447 |
main () |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5448 |
{ |
echo "$ac_t""yes" 1>&6 |
5449 |
main (); |
cat >> confdefs.h <<\EOF |
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_readline_main=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_readline_main=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_readline_main" >&6 |
|
|
if test $ac_cv_lib_readline_main = yes; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5450 |
#define HAVE_READLINE 1 |
#define HAVE_READLINE 1 |
5451 |
_ACEOF |
EOF |
5452 |
|
|
5453 |
TLIBS="$TLIBS -lreadline -lncurses" |
TLIBS="$TLIBS -lreadline -lncurses" |
5454 |
RL_OBJS=gcl_readline.o |
RL_OBJS=gcl_readline.o |
5455 |
# Readline support now initialized automatically when compiled in, this lisp |
# Readline support now initialized automatically when compiled in, this lisp |
5456 |
# object no longer needed -- 20040102 CM |
# object no longer needed -- 20040102 CM |
5457 |
# RL_LIB=lsp/gcl_readline.o |
# RL_LIB=lsp/gcl_readline.o |
5458 |
|
|
5459 |
|
else |
5460 |
|
echo "$ac_t""no" 1>&6 |
5461 |
fi |
fi |
5462 |
|
|
5463 |
|
else |
5464 |
|
echo "$ac_t""no" 1>&6 |
5465 |
fi |
fi |
|
|
|
5466 |
done |
done |
5467 |
|
|
5468 |
|
|
5469 |
# These tests discover differences between readline 4.1 and 4.3 |
# These tests discover differences between readline 4.1 and 4.3 |
5470 |
echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6 |
5471 |
echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
echo "configure:5472: checking for rl_completion_matches in -lreadline" >&5 |
5472 |
if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'` |
5473 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5474 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5475 |
else |
else |
5476 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
5477 |
LIBS="-lreadline $LIBS" |
LIBS="-lreadline $LIBS" |
5478 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5479 |
#line $LINENO "configure" |
#line 5480 "configure" |
5480 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
5481 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
5482 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
5483 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
5484 |
char rl_completion_matches (); |
char rl_completion_matches(); |
5485 |
int |
|
5486 |
main () |
int main() { |
5487 |
{ |
rl_completion_matches() |
5488 |
rl_completion_matches (); |
; return 0; } |
5489 |
; |
EOF |
5490 |
return 0; |
if { (eval echo configure:5491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5491 |
} |
rm -rf conftest* |
5492 |
_ACEOF |
eval "ac_cv_lib_$ac_lib_var=yes" |
5493 |
rm -f conftest.$ac_objext conftest$ac_exeext |
else |
5494 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
echo "configure: failed program was:" >&5 |
5495 |
(eval $ac_link) 2>&5 |
cat conftest.$ac_ext >&5 |
5496 |
ac_status=$? |
rm -rf conftest* |
5497 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
eval "ac_cv_lib_$ac_lib_var=no" |
5498 |
(exit $ac_status); } && |
fi |
5499 |
{ ac_try='test -s conftest$ac_exeext' |
rm -f conftest* |
5500 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
LIBS="$ac_save_LIBS" |
5501 |
(eval $ac_try) 2>&5 |
|
5502 |
ac_status=$? |
fi |
5503 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5504 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
5505 |
ac_cv_lib_readline_rl_completion_matches=yes |
cat >> confdefs.h <<\EOF |
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_readline_rl_completion_matches=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
|
|
if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5506 |
#define HAVE_DECL_RL_COMPLETION_MATCHES 1 |
#define HAVE_DECL_RL_COMPLETION_MATCHES 1 |
5507 |
_ACEOF |
EOF |
5508 |
|
|
5509 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
5510 |
#define HAVE_RL_COMPENTRY_FUNC_T 1 |
#define HAVE_RL_COMPENTRY_FUNC_T 1 |
5511 |
_ACEOF |
EOF |
5512 |
|
|
5513 |
|
else |
5514 |
|
echo "$ac_t""no" 1>&6 |
5515 |
fi |
fi |
5516 |
|
|
5517 |
fi |
fi |
5519 |
|
|
5520 |
|
|
5521 |
|
|
5522 |
echo "$as_me:$LINENO: checking For network code for nsocket.c" >&5 |
echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6 |
5523 |
echo $ECHO_N "checking For network code for nsocket.c... $ECHO_C" >&6 |
echo "configure:5524: checking For network code for nsocket.c" >&5 |
5524 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5525 |
#line $LINENO "configure" |
#line 5526 "configure" |
5526 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5527 |
|
|
5528 |
#include <sys/time.h> |
#include <sys/time.h> |
5529 |
#include <sys/types.h> |
#include <sys/types.h> |
5533 |
#include <fcntl.h> |
#include <fcntl.h> |
5534 |
#include <stdio.h> |
#include <stdio.h> |
5535 |
|
|
5536 |
/************* for the sockets ******************/ |
/************* for the sockets ******************/ |
5537 |
#include <sys/socket.h> /* struct sockaddr, SOCK_STREAM, ... */ |
#include <sys/socket.h> /* struct sockaddr, SOCK_STREAM, ... */ |
5538 |
#ifndef NO_UNAME |
#ifndef NO_UNAME |
5539 |
# include <sys/utsname.h> /* uname system call. */ |
# include <sys/utsname.h> /* uname system call. */ |
5542 |
#include <arpa/inet.h> /* inet_ntoa() */ |
#include <arpa/inet.h> /* inet_ntoa() */ |
5543 |
#include <netdb.h> /* gethostbyname() */ |
#include <netdb.h> /* gethostbyname() */ |
5544 |
|
|
5545 |
int |
int main() { |
|
main () |
|
|
{ |
|
5546 |
connect(0,(struct sockaddr *)0,0); |
connect(0,(struct sockaddr *)0,0); |
5547 |
gethostbyname("jil"); |
gethostbyname("jil"); |
5548 |
socket(AF_INET, SOCK_STREAM, 0); |
socket(AF_INET, SOCK_STREAM, 0); |
5549 |
|
|
5550 |
; |
; return 0; } |
5551 |
return 0; |
EOF |
5552 |
} |
if { (eval echo configure:5553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5553 |
_ACEOF |
rm -rf conftest* |
5554 |
rm -f conftest.$ac_objext conftest$ac_exeext |
cat >> confdefs.h <<\EOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5555 |
#define HAVE_NSOCKET 1 |
#define HAVE_NSOCKET 1 |
5556 |
_ACEOF |
EOF |
5557 |
|
|
5558 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
5559 |
else |
else |
5560 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
5561 |
sed 's/^/| /' conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
5562 |
|
rm -rf conftest* |
5563 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
5564 |
fi |
fi |
5565 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
5566 |
|
|
5567 |
|
|
5568 |
echo "$as_me:$LINENO: checking check for listen using fcntl" >&5 |
echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6 |
5569 |
echo $ECHO_N "checking check for listen using fcntl... $ECHO_C" >&6 |
echo "configure:5570: checking check for listen using fcntl" >&5 |
5570 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5571 |
#line $LINENO "configure" |
#line 5572 "configure" |
5572 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5573 |
#include <stdio.h> |
#include <stdio.h> |
5574 |
#include <fcntl.h> |
#include <fcntl.h> |
5575 |
|
|
5576 |
int |
int main() { |
|
main () |
|
|
{ |
|
5577 |
FILE *fp=fopen("configure.in","r"); |
FILE *fp=fopen("configure.in","r"); |
5578 |
int orig; |
int orig; |
5579 |
orig = fcntl(fileno(fp), F_GETFL); |
orig = fcntl(fileno(fp), F_GETFL); |
5580 |
if (! (orig & O_NONBLOCK )) return 0; |
if (! (orig & O_NONBLOCK )) return 0; |
5581 |
|
|
5582 |
; |
; return 0; } |
5583 |
return 0; |
EOF |
5584 |
} |
if { (eval echo configure:5585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5585 |
_ACEOF |
rm -rf conftest* |
5586 |
rm -f conftest.$ac_objext |
cat >> confdefs.h <<\EOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5587 |
#define LISTEN_USE_FCNTL 1 |
#define LISTEN_USE_FCNTL 1 |
5588 |
_ACEOF |
EOF |
5589 |
|
|
5590 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
5591 |
else |
else |
5592 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
5593 |
sed 's/^/| /' conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
5594 |
|
rm -rf conftest* |
5595 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
5596 |
fi |
fi |
5597 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
5598 |
|
|
5599 |
|
|
5600 |
|
|
5601 |
|
|
5602 |
echo "$as_me:$LINENO: checking for profil" >&5 |
echo $ac_n "checking for profil""... $ac_c" 1>&6 |
5603 |
echo $ECHO_N "checking for profil... $ECHO_C" >&6 |
echo "configure:5604: checking for profil" >&5 |
5604 |
if test "${ac_cv_func_profil+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then |
5605 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5606 |
else |
else |
5607 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5608 |
#line $LINENO "configure" |
#line 5609 "configure" |
5609 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5610 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
5611 |
which can conflict with char profil (); below. */ |
which can conflict with char profil(); below. */ |
5612 |
#include <assert.h> |
#include <assert.h> |
5613 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
5614 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
5615 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
5616 |
char profil (); |
char profil(); |
5617 |
|
|
5618 |
|
int main() { |
5619 |
|
|
5620 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
5621 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
5622 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
5623 |
#if defined (__stub_profil) || defined (__stub___profil) |
#if defined (__stub_profil) || defined (__stub___profil) |
5624 |
choke me |
choke me |
5625 |
#else |
#else |
5626 |
char (*f) () = profil; |
profil(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
5627 |
#endif |
#endif |
5628 |
|
|
5629 |
int |
; return 0; } |
5630 |
main () |
EOF |
5631 |
{ |
if { (eval echo configure:5632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5632 |
|
rm -rf conftest* |
5633 |
|
eval "ac_cv_func_profil=yes" |
5634 |
|
else |
5635 |
|
echo "configure: failed program was:" >&5 |
5636 |
|
cat conftest.$ac_ext >&5 |
5637 |
|
rm -rf conftest* |
5638 |
|
eval "ac_cv_func_profil=no" |
5639 |
|
fi |
5640 |
|
rm -f conftest* |
5641 |
|
fi |
5642 |
|
|
5643 |
; |
if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then |
5644 |
return 0; |
echo "$ac_t""yes" 1>&6 |
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_profil=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_profil=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_profil" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_profil" >&6 |
|
|
if test $ac_cv_func_profil = yes; then |
|
5645 |
: |
: |
5646 |
else |
else |
5647 |
cat >>confdefs.h <<\_ACEOF |
echo "$ac_t""no" 1>&6 |
5648 |
|
cat >> confdefs.h <<\EOF |
5649 |
#define NO_PROFILE 1 |
#define NO_PROFILE 1 |
5650 |
_ACEOF |
EOF |
5651 |
|
|
5652 |
fi |
fi |
5653 |
|
|
5654 |
|
|
5655 |
echo "$as_me:$LINENO: checking for setenv" >&5 |
echo $ac_n "checking for setenv""... $ac_c" 1>&6 |
5656 |
echo $ECHO_N "checking for setenv... $ECHO_C" >&6 |
echo "configure:5657: checking for setenv" >&5 |
5657 |
if test "${ac_cv_func_setenv+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then |
5658 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5659 |
else |
else |
5660 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5661 |
#line $LINENO "configure" |
#line 5662 "configure" |
5662 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5663 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
5664 |
which can conflict with char setenv (); below. */ |
which can conflict with char setenv(); below. */ |
5665 |
#include <assert.h> |
#include <assert.h> |
5666 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
5667 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
5668 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
5669 |
char setenv (); |
char setenv(); |
5670 |
|
|
5671 |
|
int main() { |
5672 |
|
|
5673 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
5674 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
5675 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
5676 |
#if defined (__stub_setenv) || defined (__stub___setenv) |
#if defined (__stub_setenv) || defined (__stub___setenv) |
5677 |
choke me |
choke me |
5678 |
#else |
#else |
5679 |
char (*f) () = setenv; |
setenv(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
5680 |
#endif |
#endif |
5681 |
|
|
5682 |
int |
; return 0; } |
5683 |
main () |
EOF |
5684 |
{ |
if { (eval echo configure:5685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5685 |
|
rm -rf conftest* |
5686 |
|
eval "ac_cv_func_setenv=yes" |
5687 |
|
else |
5688 |
|
echo "configure: failed program was:" >&5 |
5689 |
|
cat conftest.$ac_ext >&5 |
5690 |
|
rm -rf conftest* |
5691 |
|
eval "ac_cv_func_setenv=no" |
5692 |
|
fi |
5693 |
|
rm -f conftest* |
5694 |
|
fi |
5695 |
|
|
5696 |
; |
if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then |
5697 |
return 0; |
echo "$ac_t""yes" 1>&6 |
5698 |
} |
cat >> confdefs.h <<\EOF |
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_setenv=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_setenv=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_setenv" >&6 |
|
|
if test $ac_cv_func_setenv = yes; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5699 |
#define HAVE_SETENV 1 |
#define HAVE_SETENV 1 |
5700 |
_ACEOF |
EOF |
5701 |
|
|
5702 |
else |
else |
5703 |
no_setenv=1 |
echo "$ac_t""no" 1>&6 |
5704 |
|
no_setenv=1 |
5705 |
fi |
fi |
5706 |
|
|
5707 |
|
|
5708 |
if test "$no_setenv" = "1" ; then |
if test "$no_setenv" = "1" ; then |
5709 |
echo "$as_me:$LINENO: checking for putenv" >&5 |
echo $ac_n "checking for putenv""... $ac_c" 1>&6 |
5710 |
echo $ECHO_N "checking for putenv... $ECHO_C" >&6 |
echo "configure:5711: checking for putenv" >&5 |
5711 |
if test "${ac_cv_func_putenv+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then |
5712 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5713 |
else |
else |
5714 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5715 |
#line $LINENO "configure" |
#line 5716 "configure" |
5716 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5717 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
5718 |
which can conflict with char putenv (); below. */ |
which can conflict with char putenv(); below. */ |
5719 |
#include <assert.h> |
#include <assert.h> |
5720 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
5721 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
5722 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
5723 |
char putenv (); |
char putenv(); |
5724 |
|
|
5725 |
|
int main() { |
5726 |
|
|
5727 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
5728 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
5729 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
5730 |
#if defined (__stub_putenv) || defined (__stub___putenv) |
#if defined (__stub_putenv) || defined (__stub___putenv) |
5731 |
choke me |
choke me |
5732 |
#else |
#else |
5733 |
char (*f) () = putenv; |
putenv(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
5734 |
#endif |
#endif |
5735 |
|
|
5736 |
int |
; return 0; } |
5737 |
main () |
EOF |
5738 |
{ |
if { (eval echo configure:5739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5739 |
|
rm -rf conftest* |
5740 |
|
eval "ac_cv_func_putenv=yes" |
5741 |
|
else |
5742 |
|
echo "configure: failed program was:" >&5 |
5743 |
|
cat conftest.$ac_ext >&5 |
5744 |
|
rm -rf conftest* |
5745 |
|
eval "ac_cv_func_putenv=no" |
5746 |
|
fi |
5747 |
|
rm -f conftest* |
5748 |
|
fi |
5749 |
|
|
5750 |
; |
if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then |
5751 |
return 0; |
echo "$ac_t""yes" 1>&6 |
5752 |
} |
cat >> confdefs.h <<\EOF |
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_putenv=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_putenv=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_putenv" >&6 |
|
|
if test $ac_cv_func_putenv = yes; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5753 |
#define HAVE_PUTENV 1 |
#define HAVE_PUTENV 1 |
5754 |
_ACEOF |
EOF |
5755 |
|
|
5756 |
|
else |
5757 |
|
echo "$ac_t""no" 1>&6 |
5758 |
fi |
fi |
5759 |
|
|
5760 |
|
|
5761 |
fi |
fi |
5762 |
|
|
5763 |
echo "$as_me:$LINENO: checking for _cleanup" >&5 |
echo $ac_n "checking for _cleanup""... $ac_c" 1>&6 |
5764 |
echo $ECHO_N "checking for _cleanup... $ECHO_C" >&6 |
echo "configure:5765: checking for _cleanup" >&5 |
5765 |
if test "${ac_cv_func__cleanup+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then |
5766 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5767 |
else |
else |
5768 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5769 |
#line $LINENO "configure" |
#line 5770 "configure" |
5770 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5771 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
5772 |
which can conflict with char _cleanup (); below. */ |
which can conflict with char _cleanup(); below. */ |
5773 |
#include <assert.h> |
#include <assert.h> |
5774 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
5775 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
5776 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
5777 |
char _cleanup (); |
char _cleanup(); |
5778 |
|
|
5779 |
|
int main() { |
5780 |
|
|
5781 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
5782 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
5783 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
5784 |
#if defined (__stub__cleanup) || defined (__stub____cleanup) |
#if defined (__stub__cleanup) || defined (__stub____cleanup) |
5785 |
choke me |
choke me |
5786 |
#else |
#else |
5787 |
char (*f) () = _cleanup; |
_cleanup(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
5788 |
#endif |
#endif |
5789 |
|
|
5790 |
int |
; return 0; } |
5791 |
main () |
EOF |
5792 |
{ |
if { (eval echo configure:5793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5793 |
|
rm -rf conftest* |
5794 |
|
eval "ac_cv_func__cleanup=yes" |
5795 |
|
else |
5796 |
|
echo "configure: failed program was:" >&5 |
5797 |
|
cat conftest.$ac_ext >&5 |
5798 |
|
rm -rf conftest* |
5799 |
|
eval "ac_cv_func__cleanup=no" |
5800 |
|
fi |
5801 |
|
rm -f conftest* |
5802 |
|
fi |
5803 |
|
|
5804 |
; |
if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then |
5805 |
return 0; |
echo "$ac_t""yes" 1>&6 |
5806 |
} |
cat >> confdefs.h <<\EOF |
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func__cleanup=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func__cleanup=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func__cleanup" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func__cleanup" >&6 |
|
|
if test $ac_cv_func__cleanup = yes; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5807 |
#define USE_CLEANUP 1 |
#define USE_CLEANUP 1 |
5808 |
_ACEOF |
EOF |
5809 |
|
|
5810 |
|
else |
5811 |
|
echo "$ac_t""no" 1>&6 |
5812 |
fi |
fi |
5813 |
|
|
5814 |
|
|
5815 |
gcl_ok=no |
gcl_ok=no |
5816 |
|
|
5817 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5818 |
#line $LINENO "configure" |
#line 5819 "configure" |
5819 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5820 |
#include <ctype.h> |
#include <ctype.h> |
5821 |
|
EOF |
|
_ACEOF |
|
5822 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5823 |
$EGREP "LITTLE_ENDIAN" >/dev/null 2>&1; then |
egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then |
5824 |
|
rm -rf conftest* |
5825 |
gcl_ok=yes |
gcl_ok=yes |
5826 |
else |
else |
5827 |
|
rm -rf conftest* |
5828 |
gcl_ok=noo |
gcl_ok=noo |
5829 |
fi |
fi |
5830 |
rm -f conftest* |
rm -f conftest* |
5831 |
|
|
5832 |
if test $gcl_ok = yes ; then |
if test $gcl_ok = yes ; then |
5833 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
5834 |
#define ENDIAN_ALREADY_DEFINED 1 |
#define ENDIAN_ALREADY_DEFINED 1 |
5835 |
_ACEOF |
EOF |
5836 |
|
|
5837 |
fi |
fi |
5838 |
|
|
5842 |
|
|
5843 |
|
|
5844 |
# if test "x$enable_machine" = "x" ; then |
# if test "x$enable_machine" = "x" ; then |
5845 |
echo "$as_me:$LINENO: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5 |
echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6 |
5846 |
echo $ECHO_N "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... $ECHO_C" >&6 |
echo "configure:5847: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5 |
5847 |
|
|
5848 |
case $system in |
case $system in |
5849 |
OSF*) |
OSF*) |
5850 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
5851 |
#define USE_FIONBIO 1 |
#define USE_FIONBIO 1 |
5852 |
_ACEOF |
EOF |
5853 |
|
|
5854 |
echo "$as_me:$LINENO: result: FIONBIO" >&5 |
echo "$ac_t""FIONBIO" 1>&6 |
|
echo "${ECHO_T}FIONBIO" >&6 |
|
5855 |
;; |
;; |
5856 |
SunOS-4*) |
SunOS-4*) |
5857 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
5858 |
#define USE_FIONBIO 1 |
#define USE_FIONBIO 1 |
5859 |
_ACEOF |
EOF |
5860 |
|
|
5861 |
echo "$as_me:$LINENO: result: FIONBIO" >&5 |
echo "$ac_t""FIONBIO" 1>&6 |
|
echo "${ECHO_T}FIONBIO" >&6 |
|
5862 |
;; |
;; |
5863 |
ULTRIX-4.*) |
ULTRIX-4.*) |
5864 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
5865 |
#define USE_FIONBIO 1 |
#define USE_FIONBIO 1 |
5866 |
_ACEOF |
EOF |
5867 |
|
|
5868 |
echo "$as_me:$LINENO: result: FIONBIO" >&5 |
echo "$ac_t""FIONBIO" 1>&6 |
|
echo "${ECHO_T}FIONBIO" >&6 |
|
5869 |
;; |
;; |
5870 |
*) |
*) |
5871 |
echo "$as_me:$LINENO: result: O_NONBLOCK" >&5 |
echo "$ac_t""O_NONBLOCK" 1>&6 |
|
echo "${ECHO_T}O_NONBLOCK" >&6 |
|
5872 |
;; |
;; |
5873 |
esac |
esac |
5874 |
|
|
5875 |
|
|
5876 |
echo "$as_me:$LINENO: checking check for SV_ONSTACK" >&5 |
echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6 |
5877 |
echo $ECHO_N "checking check for SV_ONSTACK... $ECHO_C" >&6 |
echo "configure:5878: checking check for SV_ONSTACK" >&5 |
5878 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5879 |
#line $LINENO "configure" |
#line 5880 "configure" |
5880 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5881 |
#include <signal.h> |
#include <signal.h> |
5882 |
int joe=SV_ONSTACK; |
int joe=SV_ONSTACK; |
5883 |
|
|
5884 |
int |
int main() { |
|
main () |
|
|
{ |
|
5885 |
|
|
5886 |
; |
; return 0; } |
5887 |
return 0; |
EOF |
5888 |
} |
if { (eval echo configure:5889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5889 |
_ACEOF |
rm -rf conftest* |
5890 |
rm -f conftest.$ac_objext |
cat >> confdefs.h <<\EOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5891 |
#define HAVE_SV_ONSTACK 1 |
#define HAVE_SV_ONSTACK 1 |
5892 |
_ACEOF |
EOF |
|
|
|
5893 |
|
|
5894 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5895 |
echo "${ECHO_T}yes" >&6 |
echo "$ac_t""yes" 1>&6 |
5896 |
else |
else |
5897 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
5898 |
sed 's/^/| /' conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
5899 |
|
rm -rf conftest* |
5900 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
5901 |
fi |
fi |
5902 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
5903 |
|
|
5904 |
echo "$as_me:$LINENO: checking check for SIGSYS" >&5 |
echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6 |
5905 |
echo $ECHO_N "checking check for SIGSYS... $ECHO_C" >&6 |
echo "configure:5906: checking check for SIGSYS" >&5 |
5906 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5907 |
#line $LINENO "configure" |
#line 5908 "configure" |
5908 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5909 |
#include <signal.h> |
#include <signal.h> |
5910 |
int joe=SIGSYS; |
int joe=SIGSYS; |
5911 |
|
|
5912 |
int |
int main() { |
|
main () |
|
|
{ |
|
5913 |
|
|
5914 |
; |
; return 0; } |
5915 |
return 0; |
EOF |
5916 |
} |
if { (eval echo configure:5917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5917 |
_ACEOF |
rm -rf conftest* |
5918 |
rm -f conftest.$ac_objext |
cat >> confdefs.h <<\EOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5919 |
#define HAVE_SIGSYS 1 |
#define HAVE_SIGSYS 1 |
5920 |
_ACEOF |
EOF |
|
|
|
5921 |
|
|
5922 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5923 |
echo "${ECHO_T}yes" >&6 |
echo "$ac_t""yes" 1>&6 |
5924 |
else |
else |
5925 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
5926 |
sed 's/^/| /' conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
5927 |
|
rm -rf conftest* |
5928 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
5929 |
fi |
fi |
5930 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
5931 |
|
|
5932 |
|
|
5933 |
echo "$as_me:$LINENO: checking check for SIGEMT" >&5 |
echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6 |
5934 |
echo $ECHO_N "checking check for SIGEMT... $ECHO_C" >&6 |
echo "configure:5935: checking check for SIGEMT" >&5 |
5935 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5936 |
#line $LINENO "configure" |
#line 5937 "configure" |
5937 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5938 |
#include <signal.h> |
#include <signal.h> |
5939 |
int joe=SIGEMT; |
int joe=SIGEMT; |
5940 |
|
|
5941 |
int |
int main() { |
|
main () |
|
|
{ |
|
5942 |
|
|
5943 |
; |
; return 0; } |
5944 |
return 0; |
EOF |
5945 |
} |
if { (eval echo configure:5946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5946 |
_ACEOF |
rm -rf conftest* |
5947 |
rm -f conftest.$ac_objext |
cat >> confdefs.h <<\EOF |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cat >>confdefs.h <<\_ACEOF |
|
5948 |
#define HAVE_SIGEMT 1 |
#define HAVE_SIGEMT 1 |
5949 |
_ACEOF |
EOF |
|
|
|
5950 |
|
|
5951 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
5952 |
echo "${ECHO_T}yes" >&6 |
echo "$ac_t""yes" 1>&6 |
5953 |
else |
else |
5954 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
5955 |
sed 's/^/| /' conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
5956 |
|
rm -rf conftest* |
5957 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
5958 |
fi |
fi |
5959 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
5960 |
|
|
5961 |
|
|
5962 |
|
|
5963 |
|
|
5964 |
#if test $use = "386-linux" ; then |
#if test $use = "386-linux" ; then |
5965 |
|
for ac_hdr in asm/sigcontext.h |
|
for ac_header in asm/sigcontext.h |
|
5966 |
do |
do |
5967 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5968 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5969 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:5970: checking for $ac_hdr" >&5 |
5970 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5971 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
5972 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
5973 |
fi |
cat > conftest.$ac_ext <<EOF |
5974 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
#line 5975 "configure" |
5975 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
#include "confdefs.h" |
5976 |
else |
#include <$ac_hdr> |
5977 |
# Is the header compilable? |
EOF |
5978 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5979 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
{ (eval echo configure:5980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5980 |
cat >conftest.$ac_ext <<_ACEOF |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5981 |
#line $LINENO "configure" |
if test -z "$ac_err"; then |
5982 |
/* confdefs.h. */ |
rm -rf conftest* |
5983 |
_ACEOF |
eval "ac_cv_header_$ac_safe=yes" |
5984 |
cat confdefs.h >>conftest.$ac_ext |
else |
5985 |
cat >>conftest.$ac_ext <<_ACEOF |
echo "$ac_err" >&5 |
5986 |
/* end confdefs.h. */ |
echo "configure: failed program was:" >&5 |
5987 |
$ac_includes_default |
cat conftest.$ac_ext >&5 |
5988 |
#include <$ac_header> |
rm -rf conftest* |
5989 |
_ACEOF |
eval "ac_cv_header_$ac_safe=no" |
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_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 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 preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
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: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
5990 |
fi |
fi |
5991 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
rm -f conftest* |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
5992 |
fi |
fi |
5993 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5994 |
cat >>confdefs.h <<_ACEOF |
echo "$ac_t""yes" 1>&6 |
5995 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5996 |
_ACEOF |
cat >> confdefs.h <<EOF |
5997 |
|
#define $ac_tr_hdr 1 |
5998 |
|
EOF |
5999 |
|
|
6000 |
|
else |
6001 |
|
echo "$ac_t""no" 1>&6 |
6002 |
fi |
fi |
|
|
|
6003 |
done |
done |
6004 |
|
|
6005 |
|
for ac_hdr in asm/signal.h |
|
for ac_header in asm/signal.h |
|
6006 |
do |
do |
6007 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6008 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6009 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:6010: checking for $ac_hdr" >&5 |
6010 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6011 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
else |
|
|
# Is the header compilable? |
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* 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 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; 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 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 $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_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 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 preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
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: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------ ## |
|
|
## Report this to bug-autoconf@gnu.org. ## |
|
|
## ------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6012 |
else |
else |
6013 |
eval "$as_ac_Header=$ac_header_preproc" |
cat > conftest.$ac_ext <<EOF |
6014 |
|
#line 6015 "configure" |
6015 |
|
#include "confdefs.h" |
6016 |
|
#include <$ac_hdr> |
6017 |
|
EOF |
6018 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6019 |
|
{ (eval echo configure:6020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6020 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6021 |
|
if test -z "$ac_err"; then |
6022 |
|
rm -rf conftest* |
6023 |
|
eval "ac_cv_header_$ac_safe=yes" |
6024 |
|
else |
6025 |
|
echo "$ac_err" >&5 |
6026 |
|
echo "configure: failed program was:" >&5 |
6027 |
|
cat conftest.$ac_ext >&5 |
6028 |
|
rm -rf conftest* |
6029 |
|
eval "ac_cv_header_$ac_safe=no" |
6030 |
fi |
fi |
6031 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
rm -f conftest* |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
6032 |
fi |
fi |
6033 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6034 |
cat >>confdefs.h <<_ACEOF |
echo "$ac_t""yes" 1>&6 |
6035 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6036 |
_ACEOF |
cat >> confdefs.h <<EOF |
6037 |
|
#define $ac_tr_hdr 1 |
6038 |
|
EOF |
6039 |
|
|
6040 |
|
else |
6041 |
|
echo "$ac_t""no" 1>&6 |
6042 |
fi |
fi |
|
|
|
6043 |
done |
done |
6044 |
|
|
6045 |
echo "$as_me:$LINENO: checking for sigcontext..." >&5 |
echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6 |
6046 |
echo $ECHO_N "checking for sigcontext...... $ECHO_C" >&6 |
echo "configure:6047: checking for sigcontext..." >&5 |
6047 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
6048 |
#line $LINENO "configure" |
#line 6049 "configure" |
6049 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
6050 |
#include <signal.h> |
#include <signal.h> |
6051 |
|
|
6052 |
int |
int main() { |
|
main () |
|
|
{ |
|
6053 |
|
|
6054 |
struct sigcontext foo; |
struct sigcontext foo; |
6055 |
|
|
6056 |
; |
; return 0; } |
6057 |
return 0; |
EOF |
6058 |
} |
if { (eval echo configure:6059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6059 |
_ACEOF |
rm -rf conftest* |
6060 |
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
|
|
6061 |
sigcontext_works=1; |
sigcontext_works=1; |
6062 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
6063 |
#define SIGNAL_H_HAS_SIGCONTEXT 1 |
#define SIGNAL_H_HAS_SIGCONTEXT 1 |
6064 |
_ACEOF |
EOF |
|
|
|
|
echo "$as_me:$LINENO: result: sigcontext in signal.h" >&5 |
|
|
echo "${ECHO_T}sigcontext in signal.h" >&6 |
|
6065 |
|
|
6066 |
|
echo "$ac_t""sigcontext in signal.h" 1>&6 |
6067 |
|
|
6068 |
else |
else |
6069 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
6070 |
sed 's/^/| /' conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
6071 |
|
rm -rf conftest* |
6072 |
sigcontext_works=0; |
sigcontext_works=0; |
6073 |
echo "$as_me:$LINENO: result: sigcontext NOT in signal.h" >&5 |
echo "$ac_t""sigcontext NOT in signal.h" 1>&6 |
6074 |
echo "${ECHO_T}sigcontext NOT in signal.h" >&6 |
|
|
|
|
6075 |
fi |
fi |
6076 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
6077 |
if test "$sigcontext_works" = 0 ; then |
if test "$sigcontext_works" = 0 ; then |
6078 |
echo "$as_me:$LINENO: checking for sigcontext..." >&5 |
echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6 |
6079 |
echo $ECHO_N "checking for sigcontext...... $ECHO_C" >&6 |
echo "configure:6080: checking for sigcontext..." >&5 |
6080 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
6081 |
#line $LINENO "configure" |
#line 6082 "configure" |
6082 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
6083 |
#include <signal.h> |
#include <signal.h> |
6084 |
#ifdef HAVE_ASM_SIGCONTEXT_H |
#ifdef HAVE_ASM_SIGCONTEXT_H |
6085 |
#include <asm/sigcontext.h> |
#include <asm/sigcontext.h> |
6086 |
#endif |
#endif |
6087 |
#ifdef HAVE_ASM_SIGNAL_H |
#ifdef HAVE_ASM_SIGNAL_H |
6088 |
#include <asm/signal.h> |
#include <asm/signal.h> |
6089 |
#endif |
#endif |
6090 |
|
|
6091 |
int |
int main() { |
6092 |
main () |
|
|
{ |
|
|
|
|
6093 |
struct sigcontext foo; |
struct sigcontext foo; |
6094 |
|
|
6095 |
; |
; return 0; } |
6096 |
return 0; |
EOF |
6097 |
} |
if { (eval echo configure:6098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6098 |
_ACEOF |
rm -rf conftest* |
6099 |
rm -f conftest.$ac_objext |
|
6100 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
cat >> confdefs.h <<\EOF |
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
6101 |
#define HAVE_SIGCONTEXT 1 |
#define HAVE_SIGCONTEXT 1 |
6102 |
_ACEOF |
EOF |
|
|
|
|
echo "$as_me:$LINENO: result: sigcontext in asm files" >&5 |
|
|
echo "${ECHO_T}sigcontext in asm files" >&6 |
|
6103 |
|
|
6104 |
|
echo "$ac_t""sigcontext in asm files" 1>&6 |
6105 |
|
|
6106 |
else |
else |
6107 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
6108 |
sed 's/^/| /' conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
6109 |
|
rm -rf conftest* |
6110 |
|
|
6111 |
echo "$as_me:$LINENO: result: no sigcontext found" >&5 |
echo "$ac_t""no sigcontext found" 1>&6 |
6112 |
echo "${ECHO_T}no sigcontext found" >&6 |
|
|
|
|
6113 |
fi |
fi |
6114 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
6115 |
|
|
6116 |
|
|
6117 |
fi |
fi |
6118 |
# echo 'foo() {}' > conftest1.c |
# echo 'foo() {}' > conftest1.c |
6119 |
# $CC -S conftest1.c |
# $CC -S conftest1.c |
6120 |
# use_underscore=0 |
# use_underscore=0 |
6121 |
# if fgrep _foo conftest1.s ; then use_underscore=1 ; fi |
# if fgrep _foo conftest1.s ; then use_underscore=1 ; fi |
6122 |
# if test $use_underscore = 0 ; then |
# if test $use_underscore = 0 ; then |
6123 |
# MPI_FILE=mpi-386_no_under.o |
# MPI_FILE=mpi-386_no_under.o |
6135 |
|
|
6136 |
# Extract the first word of "emacs", so it can be a program name with args. |
# Extract the first word of "emacs", so it can be a program name with args. |
6137 |
set dummy emacs; ac_word=$2 |
set dummy emacs; ac_word=$2 |
6138 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6139 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:6140: checking for $ac_word" >&5 |
6140 |
if test "${ac_cv_path_EMACS+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then |
6141 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
6142 |
else |
else |
6143 |
case $EMACS in |
case "$EMACS" in |
6144 |
[\\/]* | ?:[\\/]*) |
/*) |
6145 |
ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path. |
ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path. |
6146 |
;; |
;; |
6147 |
|
?:/*) |
6148 |
|
ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path. |
6149 |
|
;; |
6150 |
*) |
*) |
6151 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6152 |
for as_dir in $PATH |
ac_dummy="$PATH" |
6153 |
do |
for ac_dir in $ac_dummy; do |
6154 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
6155 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
6156 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_path_EMACS="$ac_dir/$ac_word" |
6157 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
6158 |
ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext" |
fi |
6159 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
6160 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
6161 |
;; |
;; |
6162 |
esac |
esac |
6163 |
fi |
fi |
6164 |
EMACS=$ac_cv_path_EMACS |
EMACS="$ac_cv_path_EMACS" |
|
|
|
6165 |
if test -n "$EMACS"; then |
if test -n "$EMACS"; then |
6166 |
echo "$as_me:$LINENO: result: $EMACS" >&5 |
echo "$ac_t""$EMACS" 1>&6 |
|
echo "${ECHO_T}$EMACS" >&6 |
|
6167 |
else |
else |
6168 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
6169 |
fi |
fi |
6170 |
|
|
6171 |
|
|
6183 |
(message ans)) |
(message ans)) |
6184 |
EOF |
EOF |
6185 |
|
|
6186 |
echo "$as_me:$LINENO: checking emacs site lisp directory" >&5 |
echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6 |
6187 |
echo $ECHO_N "checking emacs site lisp directory... $ECHO_C" >&6 |
echo "configure:6188: checking emacs site lisp directory" >&5 |
6188 |
if [ "$EMACS_SITE_LISP" = "unknown" ] ; then |
if [ "$EMACS_SITE_LISP" = "unknown" ] ; then |
6189 |
if [ "$EMACS" != "" ] ; then |
if [ "$EMACS" != "" ] ; then |
6190 |
EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
6192 |
EMACS_SITE_LISP="" |
EMACS_SITE_LISP="" |
6193 |
fi |
fi |
6194 |
fi |
fi |
6195 |
echo "$as_me:$LINENO: result: $EMACS_SITE_LISP" >&5 |
echo "$ac_t""$EMACS_SITE_LISP" 1>&6 |
|
echo "${ECHO_T}$EMACS_SITE_LISP" >&6 |
|
6196 |
|
|
6197 |
|
|
6198 |
# check for where the emacs site lisp default.el is |
# check for where the emacs site lisp default.el is |
6207 |
(message ans)) |
(message ans)) |
6208 |
EOF |
EOF |
6209 |
|
|
6210 |
echo "$as_me:$LINENO: checking emacs default.el" >&5 |
echo $ac_n "checking emacs default.el""... $ac_c" 1>&6 |
6211 |
echo $ECHO_N "checking emacs default.el... $ECHO_C" >&6 |
echo "configure:6212: checking emacs default.el" >&5 |
6212 |
if [ "$EMACS" != "" ] ; then |
if [ "$EMACS" != "" ] ; then |
6213 |
EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
6214 |
else |
else |
6219 |
EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el |
EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el |
6220 |
fi |
fi |
6221 |
fi |
fi |
6222 |
echo "$as_me:$LINENO: result: $EMACS_DEFAULT_EL" >&5 |
echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6 |
|
echo "${ECHO_T}$EMACS_DEFAULT_EL" >&6 |
|
6223 |
|
|
6224 |
|
|
6225 |
|
|
6230 |
(let ((ans "") file (tem Info-default-directory-list)) |
(let ((ans "") file (tem Info-default-directory-list)) |
6231 |
(while tem |
(while tem |
6232 |
(cond ((file-exists-p (setq file (expand-file-name "dir" (car tem)))) |
(cond ((file-exists-p (setq file (expand-file-name "dir" (car tem)))) |
6233 |
(setq ans (file-name-as-directory (car tem))) |
(setq ans (file-name-as-directory (car tem))) |
6234 |
(setq tem nil) )) |
(setq tem nil) )) |
6235 |
(setq tem (cdr tem))) |
(setq tem (cdr tem))) |
6236 |
(message ans)) |
(message ans)) |
6237 |
EOF |
EOF |
6238 |
|
|
6239 |
echo "$as_me:$LINENO: checking emacs info/dir" >&5 |
echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6 |
6240 |
echo $ECHO_N "checking emacs info/dir... $ECHO_C" >&6 |
echo "configure:6241: checking emacs info/dir" >&5 |
6241 |
if test "$use" = "mingw" ; then |
if test "$use" = "mingw" ; then |
6242 |
INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/ |
INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/ |
6243 |
else |
else |
6251 |
else true; |
else true; |
6252 |
fi |
fi |
6253 |
fi |
fi |
6254 |
echo "$as_me:$LINENO: result: $INFO_DIR" >&5 |
echo "$ac_t""$INFO_DIR" 1>&6 |
|
echo "${ECHO_T}$INFO_DIR" >&6 |
|
6255 |
|
|
6256 |
|
|
6257 |
echo "$as_me:$LINENO: checking for tcl/tk" >&5 |
echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6 |
6258 |
echo $ECHO_N "checking for tcl/tk... $ECHO_C" >&6 |
echo "configure:6259: checking for tcl/tk" >&5 |
6259 |
|
|
6260 |
|
|
6261 |
if test -d "${TCL_CONFIG_PREFIX}" ; then true ; else |
if test -d "${TCL_CONFIG_PREFIX}" ; then true ; else |
6265 |
set dir [set tcl_library] |
set dir [set tcl_library] |
6266 |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
6267 |
puts [set dir] |
puts [set dir] |
6268 |
exit |
exit |
6269 |
} |
} |
6270 |
set dir [file dirname [set tcl_library]] |
set dir [file dirname [set tcl_library]] |
6271 |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
6277 |
|
|
6278 |
# Extract the first word of "tclsh", so it can be a program name with args. |
# Extract the first word of "tclsh", so it can be a program name with args. |
6279 |
set dummy tclsh; ac_word=$2 |
set dummy tclsh; ac_word=$2 |
6280 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6281 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:6282: checking for $ac_word" >&5 |
6282 |
if test "${ac_cv_prog_TCLSH+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then |
6283 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
6284 |
else |
else |
6285 |
if test -n "$TCLSH"; then |
if test -n "$TCLSH"; then |
6286 |
ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test. |
ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test. |
6287 |
else |
else |
6288 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6289 |
for as_dir in $PATH |
ac_dummy="$PATH" |
6290 |
do |
for ac_dir in $ac_dummy; do |
6291 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
6292 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
6293 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_TCLSH="tclsh" |
6294 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
6295 |
ac_cv_prog_TCLSH="tclsh" |
fi |
6296 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
6297 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
6298 |
test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}" |
test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}" |
6299 |
fi |
fi |
6300 |
fi |
fi |
6301 |
TCLSH=$ac_cv_prog_TCLSH |
TCLSH="$ac_cv_prog_TCLSH" |
6302 |
if test -n "$TCLSH"; then |
if test -n "$TCLSH"; then |
6303 |
echo "$as_me:$LINENO: result: $TCLSH" >&5 |
echo "$ac_t""$TCLSH" 1>&6 |
|
echo "${ECHO_T}$TCLSH" >&6 |
|
6304 |
else |
else |
6305 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
6306 |
fi |
fi |
6307 |
|
|
6308 |
#AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH}) |
#AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH}) |
6368 |
else |
else |
6369 |
if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then |
if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then |
6370 |
TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
6371 |
fi |
fi |
6372 |
fi |
fi |
6373 |
if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then |
if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then |
6374 |
TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include |
TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include |
6377 |
TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
6378 |
fi |
fi |
6379 |
fi |
fi |
6380 |
echo "$as_me:$LINENO: checking for main in -llieee" >&5 |
echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6 |
6381 |
echo $ECHO_N "checking for main in -llieee... $ECHO_C" >&6 |
echo "configure:6382: checking for main in -llieee" >&5 |
6382 |
if test "${ac_cv_lib_lieee_main+set}" = set; then |
ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'` |
6383 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6384 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
6385 |
else |
else |
6386 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
6387 |
LIBS="-llieee $LIBS" |
LIBS="-llieee $LIBS" |
6388 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
6389 |
#line $LINENO "configure" |
#line 6390 "configure" |
6390 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
6391 |
|
|
6392 |
|
int main() { |
6393 |
|
main() |
6394 |
|
; return 0; } |
6395 |
|
EOF |
6396 |
|
if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6397 |
|
rm -rf conftest* |
6398 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
6399 |
|
else |
6400 |
|
echo "configure: failed program was:" >&5 |
6401 |
|
cat conftest.$ac_ext >&5 |
6402 |
|
rm -rf conftest* |
6403 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
6404 |
|
fi |
6405 |
|
rm -f conftest* |
6406 |
|
LIBS="$ac_save_LIBS" |
6407 |
|
|
6408 |
int |
fi |
6409 |
main () |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6410 |
{ |
echo "$ac_t""yes" 1>&6 |
|
main (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_lieee_main=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_lieee_main=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_lieee_main" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_lieee_main" >&6 |
|
|
if test $ac_cv_lib_lieee_main = yes; then |
|
6411 |
have_ieee=1 |
have_ieee=1 |
6412 |
else |
else |
6413 |
have_ieee=0 |
echo "$ac_t""no" 1>&6 |
6414 |
|
have_ieee=0 |
6415 |
fi |
fi |
6416 |
|
|
6417 |
if test "$have_ieee" = "0" ; then |
if test "$have_ieee" = "0" ; then |
6442 |
|
|
6443 |
|
|
6444 |
if test -d "${TK_CONFIG_PREFIX}" ; then |
if test -d "${TK_CONFIG_PREFIX}" ; then |
6445 |
echo "$as_me:$LINENO: result: using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&5 |
echo "$ac_t""using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" 1>&6 |
|
echo "${ECHO_T}using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" >&6 |
|
6446 |
else |
else |
6447 |
echo "$as_me:$LINENO: result: not found" >&5 |
echo "$ac_t""not found" 1>&6 |
|
echo "${ECHO_T}not found" >&6 |
|
6448 |
fi |
fi |
6449 |
|
|
6450 |
NOTIFY=$enable_notify |
NOTIFY=$enable_notify |
6451 |
|
|
6452 |
|
|
6453 |
|
|
6454 |
|
|
6455 |
|
|
6456 |
# for sgbc the mprotect capabilities. |
# for sgbc the mprotect capabilities. |
6457 |
|
|
6458 |
# the time handling for unixtime, add timezone |
# the time handling for unixtime, add timezone |
6459 |
|
|
6460 |
echo "$as_me:$LINENO: checking alloca" >&5 |
echo $ac_n "checking alloca""... $ac_c" 1>&6 |
6461 |
echo $ECHO_N "checking alloca... $ECHO_C" >&6 |
echo "configure:6462: checking alloca" >&5 |
6462 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
6463 |
gcl_ok=no |
gcl_ok=no |
6464 |
else |
else |
6465 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
6466 |
#line $LINENO "configure" |
#line 6467 "configure" |
6467 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
6468 |
int main() { exit(alloca(500) != NULL ? 0 : 1);} |
int main() { exit(alloca(500) != NULL ? 0 : 1);} |
6469 |
_ACEOF |
EOF |
6470 |
rm -f conftest$ac_exeext |
if { (eval echo configure:6471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6471 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
6472 |
: |
: |
6473 |
else |
else |
6474 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
6475 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
6476 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
6477 |
|
gcl_ok=yes |
|
( exit $ac_status ) |
|
|
gcl_ok=yes |
|
6478 |
fi |
fi |
6479 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
6480 |
fi |
fi |
6481 |
|
|
6482 |
if test $gcl_ok = yes ; then |
if test $gcl_ok = yes ; then |
6483 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
6484 |
echo "${ECHO_T}yes" >&6 |
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
6485 |
#define HAVE_ALLOCA 1 |
#define HAVE_ALLOCA 1 |
6486 |
_ACEOF |
EOF |
6487 |
|
|
6488 |
else |
else |
6489 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
6490 |
gcl_ok=no |
gcl_ok=no |
6491 |
else |
else |
6492 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
6493 |
#line $LINENO "configure" |
#line 6494 "configure" |
6494 |
/* confdefs.h. */ |
#include "confdefs.h" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
6495 |
#include <alloca.h> |
#include <alloca.h> |
6496 |
int main() { exit(alloca(500) != NULL ? 0 : 1)} |
int main() { exit(alloca(500) != NULL ? 0 : 1)} |
6497 |
_ACEOF |
EOF |
6498 |
rm -f conftest$ac_exeext |
if { (eval echo configure:6499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6499 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
6500 |
: |
: |
6501 |
else |
else |
6502 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
6503 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
6504 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
6505 |
|
gcl_ok=yes |
|
( exit $ac_status ) |
|
|
gcl_ok=yes |
|
6506 |
fi |
fi |
6507 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
6508 |
fi |
fi |
6509 |
|
|
6510 |
if test $gcl_ok = yes ; then |
if test $gcl_ok = yes ; then |
6511 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
6512 |
echo "${ECHO_T}yes" >&6 |
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
6513 |
#define HAVE_ALLOCA 1 |
#define HAVE_ALLOCA 1 |
6514 |
_ACEOF |
EOF |
6515 |
|
|
6516 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
6517 |
#define NEED_ALLOCA_H 1 |
#define NEED_ALLOCA_H 1 |
6518 |
_ACEOF |
EOF |
6519 |
|
|
6520 |
fi |
fi |
6521 |
fi |
fi |
6522 |
if test $gcl_ok = no ; then echo "$as_me:$LINENO: result: no" >&5 |
if test $gcl_ok = no ; then echo "$ac_t""no" 1>&6 ; fi |
|
echo "${ECHO_T}no" >&6 ; fi |
|
6523 |
|
|
6524 |
|
|
6525 |
|
|
6535 |
# dlopen etc |
# dlopen etc |
6536 |
# idea make it so you do something dlopen(libX.so,RTLD_GLOBAL) |
# idea make it so you do something dlopen(libX.so,RTLD_GLOBAL) |
6537 |
# then dlload("foo.o") a lisp file can refer to things in libX.so |
# then dlload("foo.o") a lisp file can refer to things in libX.so |
6538 |
# |
# |
6539 |
|
|
6540 |
# what machine this is, and include then a machine specific hdr. |
# what machine this is, and include then a machine specific hdr. |
6541 |
# and machine specific defs. |
# and machine specific defs. |
6555 |
|
|
6556 |
# redhat/cygnus released for some reason a buggy version of gcc, |
# redhat/cygnus released for some reason a buggy version of gcc, |
6557 |
# which no one else released. Catch that here. |
# which no one else released. Catch that here. |
6558 |
echo "$as_me:$LINENO: checking Checking for buggy gcc version from redhat" >&5 |
echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6 |
6559 |
echo $ECHO_N "checking Checking for buggy gcc version from redhat... $ECHO_C" >&6 |
echo "configure:6560: checking Checking for buggy gcc version from redhat" >&5 |
6560 |
if 2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null |
if 2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null |
6561 |
then |
then |
6562 |
BROKEN_O4_OPT=1 |
BROKEN_O4_OPT=1 |
6563 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
6564 |
#define BROKEN_O4_OPT 1 |
#define BROKEN_O4_OPT 1 |
6565 |
_ACEOF |
EOF |
|
|
|
6566 |
|
|
6567 |
|
|
6568 |
echo ODIR_DEBUG=-O >> makedefsafter |
echo ODIR_DEBUG=-O >> makedefsafter |
6569 |
echo >> makedefsafter |
echo >> makedefsafter |
6570 |
echo "$as_me:$LINENO: result: yes .. turning off -O4" >&5 |
echo "$ac_t""yes .. turning off -O4" 1>&6 |
|
echo "${ECHO_T}yes .. turning off -O4" >&6 |
|
6571 |
else |
else |
6572 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
6573 |
echo "${ECHO_T}no" >&6 |
fi |
|
fi |
|
6574 |
|
|
6575 |
LIBS="$LDFLAGS $TLDFLAGS $LIBS $TLIBS" |
LIBS="$LDFLAGS $TLDFLAGS $LIBS $TLIBS" |
6576 |
|
|
6591 |
|
|
6592 |
if test -f h/$use.defs ; then |
if test -f h/$use.defs ; then |
6593 |
|
|
6594 |
|
|
6595 |
ac_config_files="$ac_config_files makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp" |
trap '' 1 2 15 |
6596 |
cat >confcache <<\_ACEOF |
cat > confcache <<\EOF |
6597 |
# This file is a shell script that caches the results of configure |
# This file is a shell script that caches the results of configure |
6598 |
# tests run on this system so they can be shared between configure |
# tests run on this system so they can be shared between configure |
6599 |
# scripts and configure runs, see configure's option --config-cache. |
# scripts and configure runs. It is not useful on other systems. |
6600 |
# It is not useful on other systems. If it contains results you don't |
# If it contains results you don't want to keep, you may remove or edit it. |
|
# want to keep, you may remove or edit it. |
|
6601 |
# |
# |
6602 |
# config.status only pays attention to the cache file if you give it |
# By default, configure uses ./config.cache as the cache file, |
6603 |
# the --recheck option to rerun configure. |
# creating it if it does not exist already. You can give configure |
6604 |
|
# the --cache-file=FILE option to use a different cache file; that is |
6605 |
|
# what configure does when it calls configure scripts in |
6606 |
|
# subdirectories, so they share the cache. |
6607 |
|
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
6608 |
|
# config.status only pays attention to the cache file if you give it the |
6609 |
|
# --recheck option to rerun configure. |
6610 |
# |
# |
6611 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
EOF |
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
|
# following values. |
|
|
|
|
|
_ACEOF |
|
|
|
|
6612 |
# The following way of writing the cache mishandles newlines in values, |
# The following way of writing the cache mishandles newlines in values, |
6613 |
# but we know of no workaround that is simple, portable, and efficient. |
# but we know of no workaround that is simple, portable, and efficient. |
6614 |
# So, don't put newlines in cache variables' values. |
# So, don't put newlines in cache variables' values. |
6615 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
# Ultrix sh set writes to stderr and can't be redirected directly, |
6616 |
# and sets the high bit in the cache file unless we assign to the vars. |
# and sets the high bit in the cache file unless we assign to the vars. |
6617 |
{ |
(set) 2>&1 | |
6618 |
(set) 2>&1 | |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
6619 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
*ac_space=\ *) |
6620 |
*ac_space=\ *) |
# `set' does not quote correctly, so add quotes (double-quote substitution |
6621 |
# `set' does not quote correctly, so add quotes (double-quote |
# turns \\\\ into \\, and sed turns \\ into \). |
6622 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
sed -n \ |
6623 |
sed -n \ |
-e "s/'/'\\\\''/g" \ |
6624 |
"s/'/'\\\\''/g; |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
6625 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
;; |
6626 |
;; |
*) |
6627 |
*) |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
6628 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
6629 |
sed -n \ |
;; |
6630 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
esac >> confcache |
6631 |
;; |
if cmp -s $cache_file confcache; then |
6632 |
esac; |
: |
6633 |
} | |
else |
|
sed ' |
|
|
t clear |
|
|
: clear |
|
|
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|
|
t end |
|
|
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
|
: end' >>confcache |
|
|
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
|
6634 |
if test -w $cache_file; then |
if test -w $cache_file; then |
6635 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
echo "updating cache $cache_file" |
6636 |
cat confcache >$cache_file |
cat confcache > $cache_file |
6637 |
else |
else |
6638 |
echo "not updating unwritable cache $cache_file" |
echo "not updating unwritable cache $cache_file" |
6639 |
fi |
fi |
6640 |
fi |
fi |
6641 |
rm -f confcache |
rm -f confcache |
6642 |
|
|
6643 |
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
6644 |
|
|
6645 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6646 |
# Let make expand exec_prefix. |
# Let make expand exec_prefix. |
6647 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
6648 |
|
|
6649 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
# Any assignment to VPATH causes Sun make to only execute |
6650 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
# the first set of double-colon rules, so remove it if not needed. |
6651 |
# trailing colons and then remove the whole line if VPATH becomes empty |
# If there is a colon in the path, we need to keep it. |
|
# (actually we leave an empty line to preserve line numbers). |
|
6652 |
if test "x$srcdir" = x.; then |
if test "x$srcdir" = x.; then |
6653 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
|
s/:*\$(srcdir):*/:/; |
|
|
s/:*\${srcdir}:*/:/; |
|
|
s/:*@srcdir@:*/:/; |
|
|
s/^\([^=]*=[ ]*\):*/\1/; |
|
|
s/:*$//; |
|
|
s/^[^=]*=[ ]*$//; |
|
|
}' |
|
6654 |
fi |
fi |
6655 |
|
|
6656 |
DEFS=-DHAVE_CONFIG_H |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
|
|
|
|
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. |
|
|
ac_i=`echo "$ac_i" | |
|
|
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
|
|
# 2. Add them. |
|
|
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
|
|
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
|
|
done |
|
|
LIBOBJS=$ac_libobjs |
|
|
|
|
|
LTLIBOBJS=$ac_ltlibobjs |
|
|
|
|
6657 |
|
|
6658 |
|
DEFS=-DHAVE_CONFIG_H |
6659 |
|
|
6660 |
|
# Without the "./", some shells look in PATH for config.status. |
6661 |
: ${CONFIG_STATUS=./config.status} |
: ${CONFIG_STATUS=./config.status} |
6662 |
ac_clean_files_save=$ac_clean_files |
|
6663 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
echo creating $CONFIG_STATUS |
6664 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
rm -f $CONFIG_STATUS |
6665 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
cat > $CONFIG_STATUS <<EOF |
6666 |
cat >$CONFIG_STATUS <<_ACEOF |
#! /bin/sh |
6667 |
#! $SHELL |
# Generated automatically by configure. |
|
# Generated by $as_me. |
|
6668 |
# Run this file to recreate the current configuration. |
# Run this file to recreate the current configuration. |
6669 |
|
# This directory was configured as follows, |
6670 |
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
6671 |
|
# |
6672 |
|
# $0 $ac_configure_args |
6673 |
|
# |
6674 |
# Compiler output produced by configure, useful for debugging |
# Compiler output produced by configure, useful for debugging |
6675 |
# configure, is in config.log if it exists. |
# configure, is in ./config.log if it exists. |
|
|
|
|
debug=false |
|
|
ac_cs_recheck=false |
|
|
ac_cs_silent=false |
|
|
SHELL=\${CONFIG_SHELL-$SHELL} |
|
|
_ACEOF |
|
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
## --------------------- ## |
|
|
## M4sh Initialization. ## |
|
|
## --------------------- ## |
|
|
|
|
|
# Be Bourne compatible |
|
|
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+"$@"}'='"$@"' |
|
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
|
|
set -o posix |
|
|
fi |
|
|
|
|
|
# Support unset when possible. |
|
|
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
|
|
as_unset=unset |
|
|
else |
|
|
as_unset=false |
|
|
fi |
|
|
|
|
|
|
|
|
# Work around bugs in pre-3.0 UWIN ksh. |
|
|
$as_unset ENV MAIL MAILPATH |
|
|
PS1='$ ' |
|
|
PS2='> ' |
|
|
PS4='+ ' |
|
|
|
|
|
# NLS nuisances. |
|
|
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 |
|
|
do |
|
|
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
|
eval $as_var=C; export $as_var |
|
|
else |
|
|
$as_unset $as_var |
|
|
fi |
|
|
done |
|
|
|
|
|
# Required to use basename. |
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
|
as_expr=expr |
|
|
else |
|
|
as_expr=false |
|
|
fi |
|
|
|
|
|
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
|
|
as_basename=basename |
|
|
else |
|
|
as_basename=false |
|
|
fi |
|
|
|
|
|
|
|
|
# Name of the executable. |
|
|
as_me=`$as_basename "$0" || |
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
|
X"$0" : 'X\(//\)$' \| \ |
|
|
X"$0" : 'X\(/\)$' \| \ |
|
|
. : '\(.\)' 2>/dev/null || |
|
|
echo X/"$0" | |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
|
|
/^X\/\(\/\/\)$/{ s//\1/; q; } |
|
|
/^X\/\(\/\).*/{ s//\1/; q; } |
|
|
s/.*/./; q'` |
|
|
|
|
|
|
|
|
# PATH needs CR, and LINENO needs CR and PATH. |
|
|
# Avoid depending upon Character Ranges. |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
as_cr_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 |
|
|
|
|
|
|
|
|
as_lineno_1=$LINENO |
|
|
as_lineno_2=$LINENO |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" || { |
|
|
# Find who we are. Look in the path if we contain no path at all |
|
|
# relative or not. |
|
|
case $0 in |
|
|
*[\\/]* ) as_myself=$0 ;; |
|
|
*) 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 |
|
|
|
|
|
;; |
|
|
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_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
|
|
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
|
case $CONFIG_SHELL in |
|
|
'') |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for as_base in sh bash ksh sh5; do |
|
|
case $as_dir in |
|
|
/*) |
|
|
if ("$as_dir/$as_base" -c ' |
|
|
as_lineno_1=$LINENO |
|
|
as_lineno_2=$LINENO |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
|
|
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
|
|
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
|
|
CONFIG_SHELL=$as_dir/$as_base |
|
|
export CONFIG_SHELL |
|
|
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
|
|
fi;; |
|
|
esac |
|
|
done |
|
|
done |
|
|
;; |
|
|
esac |
|
|
|
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
|
# uniformly replaced by the line number. The first 'sed' inserts a |
|
|
# line-number line before each line; the second 'sed' does the real |
|
|
# work. The second script uses 'N' to pair each line-number line |
|
|
# with the numbered line, and appends trailing '-' during |
|
|
# substitution so that $LINENO is not a special case at line end. |
|
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
|
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
|
|
sed '=' <$as_myself | |
|
|
sed ' |
|
|
N |
|
|
s,$,-, |
|
|
: loop |
|
|
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
|
|
t loop |
|
|
s,-$,, |
|
|
s,^['$as_cr_digits']*\n,, |
|
|
' >$as_me.lineno && |
|
|
chmod +x $as_me.lineno || |
|
|
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
|
|
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 |
|
|
# original and so on. Autoconf is especially sensible to this). |
|
|
. ./$as_me.lineno |
|
|
# Exit status is that of the last command. |
|
|
exit |
|
|
} |
|
|
|
|
|
|
|
|
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
|
|
*c*,-n*) ECHO_N= ECHO_C=' |
|
|
' ECHO_T=' ' ;; |
|
|
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
|
|
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
|
|
esac |
|
|
|
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
|
as_expr=expr |
|
|
else |
|
|
as_expr=false |
|
|
fi |
|
|
|
|
|
rm -f conf$$ conf$$.exe conf$$.file |
|
|
echo >conf$$.file |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
|
# We could just check for DJGPP; but this test a) works b) is more generic |
|
|
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
|
|
if test -f conf$$.exe; then |
|
|
# Don't use ln at all; we don't have any links |
|
|
as_ln_s='cp -p' |
|
|
else |
|
|
as_ln_s='ln -s' |
|
|
fi |
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
|
as_ln_s=ln |
|
|
else |
|
|
as_ln_s='cp -p' |
|
|
fi |
|
|
rm -f conf$$ conf$$.exe conf$$.file |
|
|
|
|
|
if mkdir -p . 2>/dev/null; then |
|
|
as_mkdir_p=: |
|
|
else |
|
|
as_mkdir_p=false |
|
|
fi |
|
|
|
|
|
as_executable_p="test -f" |
|
|
|
|
|
# Sed expression to map a string onto a valid CPP name. |
|
|
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
|
|
|
|
|
# Sed expression to map a string onto a valid variable name. |
|
|
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
|
|
|
|
|
|
|
|
# IFS |
|
|
# We need space, tab and new line, in precisely that order. |
|
|
as_nl=' |
|
|
' |
|
|
IFS=" $as_nl" |
|
|
|
|
|
# CDPATH. |
|
|
$as_unset CDPATH |
|
6676 |
|
|
6677 |
exec 6>&1 |
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
6678 |
|
for ac_option |
|
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
|
|
# report actual input values of CONFIG_FILES etc. instead of their |
|
|
# values after options handling. Logging --version etc. is OK. |
|
|
exec 5>>config.log |
|
|
{ |
|
|
echo |
|
|
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
|
## Running $as_me. ## |
|
|
_ASBOX |
|
|
} >&5 |
|
|
cat >&5 <<_CSEOF |
|
|
|
|
|
This file was extended by $as_me, which was |
|
|
generated by GNU Autoconf 2.56. Invocation command line was |
|
|
|
|
|
CONFIG_FILES = $CONFIG_FILES |
|
|
CONFIG_HEADERS = $CONFIG_HEADERS |
|
|
CONFIG_LINKS = $CONFIG_LINKS |
|
|
CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
|
$ $0 $@ |
|
|
|
|
|
_CSEOF |
|
|
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
|
|
echo >&5 |
|
|
_ACEOF |
|
|
|
|
|
# Files that config.status was made for. |
|
|
if test -n "$ac_config_files"; then |
|
|
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
|
|
fi |
|
|
|
|
|
if test -n "$ac_config_headers"; then |
|
|
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
|
|
fi |
|
|
|
|
|
if test -n "$ac_config_links"; then |
|
|
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
|
|
fi |
|
|
|
|
|
if test -n "$ac_config_commands"; then |
|
|
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
|
|
fi |
|
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
|
|
|
ac_cs_usage="\ |
|
|
\`$as_me' instantiates files from templates according to the |
|
|
current configuration. |
|
|
|
|
|
Usage: $0 [OPTIONS] [FILE]... |
|
|
|
|
|
-h, --help print this help, then exit |
|
|
-V, --version print version number, then exit |
|
|
-q, --quiet do not print progress messages |
|
|
-d, --debug don't remove temporary files |
|
|
--recheck update $as_me by reconfiguring in the same conditions |
|
|
--file=FILE[:TEMPLATE] |
|
|
instantiate the configuration file FILE |
|
|
--header=FILE[:TEMPLATE] |
|
|
instantiate the configuration header FILE |
|
|
|
|
|
Configuration files: |
|
|
$config_files |
|
|
|
|
|
Configuration headers: |
|
|
$config_headers |
|
|
|
|
|
Report bugs to <bug-autoconf@gnu.org>." |
|
|
_ACEOF |
|
|
|
|
|
cat >>$CONFIG_STATUS <<_ACEOF |
|
|
ac_cs_version="\\ |
|
|
config.status |
|
|
configured by $0, generated by GNU Autoconf 2.56, |
|
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
|
|
|
|
|
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
|
|
Free Software Foundation, Inc. |
|
|
This config.status script is free software; the Free Software Foundation |
|
|
gives unlimited permission to copy, distribute and modify it." |
|
|
srcdir=$srcdir |
|
|
_ACEOF |
|
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
# If no file are specified by the user, then we need to provide default |
|
|
# value. By we need to know if files were specified by the user. |
|
|
ac_need_defaults=: |
|
|
while test $# != 0 |
|
6679 |
do |
do |
6680 |
case $1 in |
case "\$ac_option" in |
|
--*=*) |
|
|
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
|
|
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
|
|
ac_shift=: |
|
|
;; |
|
|
-*) |
|
|
ac_option=$1 |
|
|
ac_optarg=$2 |
|
|
ac_shift=shift |
|
|
;; |
|
|
*) # This is not an option, so the user has probably given explicit |
|
|
# arguments. |
|
|
ac_option=$1 |
|
|
ac_need_defaults=false;; |
|
|
esac |
|
|
|
|
|
case $ac_option in |
|
|
# Handling of the options. |
|
|
_ACEOF |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
6681 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6682 |
ac_cs_recheck=: ;; |
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
6683 |
--version | --vers* | -V ) |
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
6684 |
echo "$ac_cs_version"; exit 0 ;; |
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
6685 |
--he | --h) |
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
6686 |
# Conflict between --help and --header |
exit 0 ;; |
6687 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
-help | --help | --hel | --he | --h) |
6688 |
Try \`$0 --help' for more information." >&5 |
echo "\$ac_cs_usage"; exit 0 ;; |
6689 |
echo "$as_me: error: ambiguous option: $1 |
*) echo "\$ac_cs_usage"; exit 1 ;; |
|
Try \`$0 --help' for more information." >&2;} |
|
|
{ (exit 1); exit 1; }; };; |
|
|
--help | --hel | -h ) |
|
|
echo "$ac_cs_usage"; exit 0 ;; |
|
|
--debug | --d* | -d ) |
|
|
debug=: ;; |
|
|
--file | --fil | --fi | --f ) |
|
|
$ac_shift |
|
|
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
|
|
ac_need_defaults=false;; |
|
|
--header | --heade | --head | --hea ) |
|
|
$ac_shift |
|
|
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
|
|
ac_need_defaults=false;; |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
|
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
|
ac_cs_silent=: ;; |
|
|
|
|
|
# This is an error. |
|
|
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
|
|
Try \`$0 --help' for more information." >&5 |
|
|
echo "$as_me: error: unrecognized option: $1 |
|
|
Try \`$0 --help' for more information." >&2;} |
|
|
{ (exit 1); exit 1; }; } ;; |
|
|
|
|
|
*) ac_config_targets="$ac_config_targets $1" ;; |
|
|
|
|
|
esac |
|
|
shift |
|
|
done |
|
|
|
|
|
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 |
|
|
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
|
|
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
|
fi |
|
|
|
|
|
_ACEOF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
for ac_config_target in $ac_config_targets |
|
|
do |
|
|
case "$ac_config_target" in |
|
|
# Handling of arguments. |
|
|
"makedefc" ) CONFIG_FILES="$CONFIG_FILES makedefc" ;; |
|
|
"windows/gcl.iss" ) CONFIG_FILES="$CONFIG_FILES windows/gcl.iss" ;; |
|
|
"windows/sysdir.bat" ) CONFIG_FILES="$CONFIG_FILES windows/sysdir.bat" ;; |
|
|
"windows/install.lsp" ) CONFIG_FILES="$CONFIG_FILES windows/install.lsp" ;; |
|
|
"h/gclincl.h" ) CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;; |
|
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
|
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
|
|
{ (exit 1); exit 1; }; };; |
|
6690 |
esac |
esac |
6691 |
done |
done |
6692 |
|
|
6693 |
# If the user did not use the arguments to specify the items to instantiate, |
ac_given_srcdir=$srcdir |
|
# 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 |
|
|
fi |
|
|
|
|
|
# Have a temporary directory for convenience. Make it in the build tree |
|
|
# simply because there is no reason to put it here, and in addition, |
|
|
# creating and moving files from /tmp can sometimes cause problems. |
|
|
# Create a temporary directory, and hook for its removal unless debugging. |
|
|
$debug || |
|
|
{ |
|
|
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
|
|
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
|
|
} |
|
|
|
|
|
# Create a (secure) tmp directory for tmp files. |
|
|
|
|
|
{ |
|
|
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
|
|
test -n "$tmp" && test -d "$tmp" |
|
|
} || |
|
|
{ |
|
|
tmp=./confstat$$-$RANDOM |
|
|
(umask 077 && mkdir $tmp) |
|
|
} || |
|
|
{ |
|
|
echo "$me: cannot create a temporary directory in ." >&2 |
|
|
{ (exit 1); exit 1; } |
|
|
} |
|
6694 |
|
|
6695 |
_ACEOF |
trap 'rm -fr `echo "makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp h/gclincl.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
6696 |
|
EOF |
6697 |
cat >>$CONFIG_STATUS <<_ACEOF |
cat >> $CONFIG_STATUS <<EOF |
6698 |
|
|
6699 |
# |
# Protect against being on the right side of a sed subst in config.status. |
6700 |
# CONFIG_FILES section. |
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
6701 |
# |
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
6702 |
|
$ac_vpsub |
6703 |
|
$extrasub |
6704 |
|
s%@SHELL@%$SHELL%g |
6705 |
|
s%@CFLAGS@%$CFLAGS%g |
6706 |
|
s%@CPPFLAGS@%$CPPFLAGS%g |
6707 |
|
s%@CXXFLAGS@%$CXXFLAGS%g |
6708 |
|
s%@FFLAGS@%$FFLAGS%g |
6709 |
|
s%@DEFS@%$DEFS%g |
6710 |
|
s%@LDFLAGS@%$LDFLAGS%g |
6711 |
|
s%@LIBS@%$LIBS%g |
6712 |
|
s%@exec_prefix@%$exec_prefix%g |
6713 |
|
s%@prefix@%$prefix%g |
6714 |
|
s%@program_transform_name@%$program_transform_name%g |
6715 |
|
s%@bindir@%$bindir%g |
6716 |
|
s%@sbindir@%$sbindir%g |
6717 |
|
s%@libexecdir@%$libexecdir%g |
6718 |
|
s%@datadir@%$datadir%g |
6719 |
|
s%@sysconfdir@%$sysconfdir%g |
6720 |
|
s%@sharedstatedir@%$sharedstatedir%g |
6721 |
|
s%@localstatedir@%$localstatedir%g |
6722 |
|
s%@libdir@%$libdir%g |
6723 |
|
s%@includedir@%$includedir%g |
6724 |
|
s%@oldincludedir@%$oldincludedir%g |
6725 |
|
s%@infodir@%$infodir%g |
6726 |
|
s%@mandir@%$mandir%g |
6727 |
|
s%@VERSION@%$VERSION%g |
6728 |
|
s%@host@%$host%g |
6729 |
|
s%@host_alias@%$host_alias%g |
6730 |
|
s%@host_cpu@%$host_cpu%g |
6731 |
|
s%@host_vendor@%$host_vendor%g |
6732 |
|
s%@host_os@%$host_os%g |
6733 |
|
s%@PROCESSOR_FLAGS@%$PROCESSOR_FLAGS%g |
6734 |
|
s%@CC@%$CC%g |
6735 |
|
s%@CPP@%$CPP%g |
6736 |
|
s%@AWK@%$AWK%g |
6737 |
|
s%@MAKEINFO@%$MAKEINFO%g |
6738 |
|
s%@GMP@%$GMP%g |
6739 |
|
s%@GMPDIR@%$GMPDIR%g |
6740 |
|
s%@X_CFLAGS@%$X_CFLAGS%g |
6741 |
|
s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
6742 |
|
s%@X_LIBS@%$X_LIBS%g |
6743 |
|
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
6744 |
|
s%@BUILD_BFD@%$BUILD_BFD%g |
6745 |
|
s%@LITTLE_END@%$LITTLE_END%g |
6746 |
|
s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g |
6747 |
|
s%@FLISP@%$FLISP%g |
6748 |
|
s%@SYSTEM@%$SYSTEM%g |
6749 |
|
s%@CLSTANDARD@%$CLSTANDARD%g |
6750 |
|
s%@PAGEWIDTH@%$PAGEWIDTH%g |
6751 |
|
s%@RL_OBJS@%$RL_OBJS%g |
6752 |
|
s%@RL_LIB@%$RL_LIB%g |
6753 |
|
s%@NO_PROFILE@%$NO_PROFILE%g |
6754 |
|
s%@HAVE_SETENV@%$HAVE_SETENV%g |
6755 |
|
s%@HAVE_PUTENV@%$HAVE_PUTENV%g |
6756 |
|
s%@USE_CLEANUP@%$USE_CLEANUP%g |
6757 |
|
s%@ENDIAN_ALREADY_DEFINED@%$ENDIAN_ALREADY_DEFINED%g |
6758 |
|
s%@HAVE_SV_ONSTACK@%$HAVE_SV_ONSTACK%g |
6759 |
|
s%@HAVE_SIGSYS@%$HAVE_SIGSYS%g |
6760 |
|
s%@HAVE_SIGEMT@%$HAVE_SIGEMT%g |
6761 |
|
s%@EMACS@%$EMACS%g |
6762 |
|
s%@EMACS_SITE_LISP@%$EMACS_SITE_LISP%g |
6763 |
|
s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g |
6764 |
|
s%@INFO_DIR@%$INFO_DIR%g |
6765 |
|
s%@TCLSH@%$TCLSH%g |
6766 |
|
s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g |
6767 |
|
s%@TK_LIBRARY@%$TK_LIBRARY%g |
6768 |
|
s%@TCL_LIBRARY@%$TCL_LIBRARY%g |
6769 |
|
s%@TK_XINCLUDES@%$TK_XINCLUDES%g |
6770 |
|
s%@TK_INCLUDE@%$TK_INCLUDE%g |
6771 |
|
s%@TCL_INCLUDE@%$TCL_INCLUDE%g |
6772 |
|
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g |
6773 |
|
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g |
6774 |
|
s%@TK_XLIBSW@%$TK_XLIBSW%g |
6775 |
|
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g |
6776 |
|
s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g |
6777 |
|
s%@TCL_LIBS@%$TCL_LIBS%g |
6778 |
|
s%@NOTIFY@%$NOTIFY%g |
6779 |
|
s%@BROKEN_O4_OPT@%$BROKEN_O4_OPT%g |
6780 |
|
s%@FINAL_CFLAGS@%$FINAL_CFLAGS%g |
6781 |
|
s%@NIFLAGS@%$NIFLAGS%g |
6782 |
|
s%@O3FLAGS@%$O3FLAGS%g |
6783 |
|
s%@O2FLAGS@%$O2FLAGS%g |
6784 |
|
s%@EXTRA_LOBJS@%$EXTRA_LOBJS%g |
6785 |
|
s%@LEADING_UNDERSCORE@%$LEADING_UNDERSCORE%g |
6786 |
|
s%@GNU_LD@%$GNU_LD%g |
6787 |
|
s%@use@%$use%g |
6788 |
|
|
|
# No need to generate the scripts if there are no CONFIG_FILES. |
|
|
# This happens for instance when ./config.status config.h |
|
|
if test -n "\$CONFIG_FILES"; then |
|
|
# Protect against being on the right side of a sed subst in config.status. |
|
|
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
|
|
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
|
|
s,@SHELL@,$SHELL,;t t |
|
|
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
|
|
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
|
|
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
|
|
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
|
|
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
|
|
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
|
|
s,@exec_prefix@,$exec_prefix,;t t |
|
|
s,@prefix@,$prefix,;t t |
|
|
s,@program_transform_name@,$program_transform_name,;t t |
|
|
s,@bindir@,$bindir,;t t |
|
|
s,@sbindir@,$sbindir,;t t |
|
|
s,@libexecdir@,$libexecdir,;t t |
|
|
s,@datadir@,$datadir,;t t |
|
|
s,@sysconfdir@,$sysconfdir,;t t |
|
|
s,@sharedstatedir@,$sharedstatedir,;t t |
|
|
s,@localstatedir@,$localstatedir,;t t |
|
|
s,@libdir@,$libdir,;t t |
|
|
s,@includedir@,$includedir,;t t |
|
|
s,@oldincludedir@,$oldincludedir,;t t |
|
|
s,@infodir@,$infodir,;t t |
|
|
s,@mandir@,$mandir,;t t |
|
|
s,@build_alias@,$build_alias,;t t |
|
|
s,@host_alias@,$host_alias,;t t |
|
|
s,@target_alias@,$target_alias,;t t |
|
|
s,@DEFS@,$DEFS,;t t |
|
|
s,@ECHO_C@,$ECHO_C,;t t |
|
|
s,@ECHO_N@,$ECHO_N,;t t |
|
|
s,@ECHO_T@,$ECHO_T,;t t |
|
|
s,@LIBS@,$LIBS,;t t |
|
|
s,@VERSION@,$VERSION,;t t |
|
|
s,@build@,$build,;t t |
|
|
s,@build_cpu@,$build_cpu,;t t |
|
|
s,@build_vendor@,$build_vendor,;t t |
|
|
s,@build_os@,$build_os,;t t |
|
|
s,@host@,$host,;t t |
|
|
s,@host_cpu@,$host_cpu,;t t |
|
|
s,@host_vendor@,$host_vendor,;t t |
|
|
s,@host_os@,$host_os,;t t |
|
|
s,@PROCESSOR_FLAGS@,$PROCESSOR_FLAGS,;t t |
|
|
s,@CC@,$CC,;t t |
|
|
s,@CFLAGS@,$CFLAGS,;t t |
|
|
s,@LDFLAGS@,$LDFLAGS,;t t |
|
|
s,@CPPFLAGS@,$CPPFLAGS,;t t |
|
|
s,@ac_ct_CC@,$ac_ct_CC,;t t |
|
|
s,@EXEEXT@,$EXEEXT,;t t |
|
|
s,@OBJEXT@,$OBJEXT,;t t |
|
|
s,@CPP@,$CPP,;t t |
|
|
s,@AWK@,$AWK,;t t |
|
|
s,@MAKEINFO@,$MAKEINFO,;t t |
|
|
s,@EGREP@,$EGREP,;t t |
|
|
s,@GMP@,$GMP,;t t |
|
|
s,@GMPDIR@,$GMPDIR,;t t |
|
|
s,@X_CFLAGS@,$X_CFLAGS,;t t |
|
|
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
|
|
s,@X_LIBS@,$X_LIBS,;t t |
|
|
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
|
|
s,@BUILD_BFD@,$BUILD_BFD,;t t |
|
|
s,@LITTLE_END@,$LITTLE_END,;t t |
|
|
s,@HAVE_LONG_LONG@,$HAVE_LONG_LONG,;t t |
|
|
s,@FLISP@,$FLISP,;t t |
|
|
s,@SYSTEM@,$SYSTEM,;t t |
|
|
s,@CLSTANDARD@,$CLSTANDARD,;t t |
|
|
s,@PAGEWIDTH@,$PAGEWIDTH,;t t |
|
|
s,@RL_OBJS@,$RL_OBJS,;t t |
|
|
s,@RL_LIB@,$RL_LIB,;t t |
|
|
s,@NO_PROFILE@,$NO_PROFILE,;t t |
|
|
s,@HAVE_SETENV@,$HAVE_SETENV,;t t |
|
|
s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t |
|
|
s,@USE_CLEANUP@,$USE_CLEANUP,;t t |
|
|
s,@ENDIAN_ALREADY_DEFINED@,$ENDIAN_ALREADY_DEFINED,;t t |
|
|
s,@HAVE_SV_ONSTACK@,$HAVE_SV_ONSTACK,;t t |
|
|
s,@HAVE_SIGSYS@,$HAVE_SIGSYS,;t t |
|
|
s,@HAVE_SIGEMT@,$HAVE_SIGEMT,;t t |
|
|
s,@EMACS@,$EMACS,;t t |
|
|
s,@EMACS_SITE_LISP@,$EMACS_SITE_LISP,;t t |
|
|
s,@EMACS_DEFAULT_EL@,$EMACS_DEFAULT_EL,;t t |
|
|
s,@INFO_DIR@,$INFO_DIR,;t t |
|
|
s,@TCLSH@,$TCLSH,;t t |
|
|
s,@TK_CONFIG_PREFIX@,$TK_CONFIG_PREFIX,;t t |
|
|
s,@TK_LIBRARY@,$TK_LIBRARY,;t t |
|
|
s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t |
|
|
s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t |
|
|
s,@TK_INCLUDE@,$TK_INCLUDE,;t t |
|
|
s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t |
|
|
s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t |
|
|
s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t |
|
|
s,@TK_XLIBSW@,$TK_XLIBSW,;t t |
|
|
s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t |
|
|
s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t |
|
|
s,@TCL_LIBS@,$TCL_LIBS,;t t |
|
|
s,@NOTIFY@,$NOTIFY,;t t |
|
|
s,@BROKEN_O4_OPT@,$BROKEN_O4_OPT,;t t |
|
|
s,@FINAL_CFLAGS@,$FINAL_CFLAGS,;t t |
|
|
s,@NIFLAGS@,$NIFLAGS,;t t |
|
|
s,@O3FLAGS@,$O3FLAGS,;t t |
|
|
s,@O2FLAGS@,$O2FLAGS,;t t |
|
|
s,@EXTRA_LOBJS@,$EXTRA_LOBJS,;t t |
|
|
s,@LEADING_UNDERSCORE@,$LEADING_UNDERSCORE,;t t |
|
|
s,@GNU_LD@,$GNU_LD,;t t |
|
|
s,@use@,$use,;t t |
|
|
s,@LIBOBJS@,$LIBOBJS,;t t |
|
|
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
|
6789 |
CEOF |
CEOF |
6790 |
|
EOF |
6791 |
|
|
6792 |
_ACEOF |
cat >> $CONFIG_STATUS <<\EOF |
6793 |
|
|
6794 |
cat >>$CONFIG_STATUS <<\_ACEOF |
# Split the substitutions into bite-sized pieces for seds with |
6795 |
# Split the substitutions into bite-sized pieces for seds with |
# small command number limits, like on Digital OSF/1 and HP-UX. |
6796 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
6797 |
ac_max_sed_lines=48 |
ac_file=1 # Number of current file. |
6798 |
ac_sed_frag=1 # Number of current file. |
ac_beg=1 # First line for current file. |
6799 |
ac_beg=1 # First line for current file. |
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
6800 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
ac_more_lines=: |
6801 |
ac_more_lines=: |
ac_sed_cmds="" |
6802 |
ac_sed_cmds= |
while $ac_more_lines; do |
6803 |
while $ac_more_lines; do |
if test $ac_beg -gt 1; then |
6804 |
if test $ac_beg -gt 1; then |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
6805 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
else |
6806 |
else |
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
6807 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
fi |
6808 |
fi |
if test ! -s conftest.s$ac_file; then |
6809 |
if test ! -s $tmp/subs.frag; then |
ac_more_lines=false |
6810 |
ac_more_lines=false |
rm -f conftest.s$ac_file |
6811 |
|
else |
6812 |
|
if test -z "$ac_sed_cmds"; then |
6813 |
|
ac_sed_cmds="sed -f conftest.s$ac_file" |
6814 |
else |
else |
6815 |
# The purpose of the label and of the branching condition is to |
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
|
# speed up the sed processing (if there are no `@' at all, there |
|
|
# is no need to browse any of the substitutions). |
|
|
# These are the two extra sed commands mentioned above. |
|
|
(echo ':t |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
|
|
if test -z "$ac_sed_cmds"; then |
|
|
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
|
|
else |
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
|
|
fi |
|
|
ac_sed_frag=`expr $ac_sed_frag + 1` |
|
|
ac_beg=$ac_end |
|
|
ac_end=`expr $ac_end + $ac_max_sed_lines` |
|
6816 |
fi |
fi |
6817 |
done |
ac_file=`expr $ac_file + 1` |
6818 |
if test -z "$ac_sed_cmds"; then |
ac_beg=$ac_end |
6819 |
ac_sed_cmds=cat |
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
6820 |
fi |
fi |
6821 |
fi # test -n "$CONFIG_FILES" |
done |
6822 |
|
if test -z "$ac_sed_cmds"; then |
6823 |
|
ac_sed_cmds=cat |
6824 |
|
fi |
6825 |
|
EOF |
6826 |
|
|
6827 |
|
cat >> $CONFIG_STATUS <<EOF |
6828 |
|
|
6829 |
_ACEOF |
CONFIG_FILES=\${CONFIG_FILES-"makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp "} |
6830 |
cat >>$CONFIG_STATUS <<\_ACEOF |
EOF |
6831 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
cat >> $CONFIG_STATUS <<\EOF |
6832 |
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
6833 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
6834 |
case $ac_file in |
case "$ac_file" in |
6835 |
- | *:- | *:-:* ) # input from stdin |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
6836 |
cat >$tmp/stdin |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
6837 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
*) ac_file_in="${ac_file}.in" ;; |
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
|
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
|
* ) ac_file_in=$ac_file.in ;; |
|
6838 |
esac |
esac |
6839 |
|
|
6840 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
|
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
|
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
|
X"$ac_file" : 'X\(//\)$' \| \ |
|
|
X"$ac_file" : 'X\(/\)' \| \ |
|
|
. : '\(.\)' 2>/dev/null || |
|
|
echo X"$ac_file" | |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
/^X\(\/\/\)$/{ s//\1/; q; } |
|
|
/^X\(\/\).*/{ s//\1/; q; } |
|
|
s/.*/./; q'` |
|
|
{ if $as_mkdir_p; then |
|
|
mkdir -p "$ac_dir" |
|
|
else |
|
|
as_dir="$ac_dir" |
|
|
as_dirs= |
|
|
while test ! -d "$as_dir"; do |
|
|
as_dirs="$as_dir $as_dirs" |
|
|
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
|
X"$as_dir" : 'X\(//\)$' \| \ |
|
|
X"$as_dir" : 'X\(/\)' \| \ |
|
|
. : '\(.\)' 2>/dev/null || |
|
|
echo X"$as_dir" | |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
/^X\(\/\/\)$/{ s//\1/; q; } |
|
|
/^X\(\/\).*/{ s//\1/; q; } |
|
|
s/.*/./; q'` |
|
|
done |
|
|
test ! -n "$as_dirs" || mkdir $as_dirs |
|
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
|
|
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
|
|
{ (exit 1); exit 1; }; }; } |
|
|
|
|
|
ac_builddir=. |
|
|
|
|
|
if test "$ac_dir" != .; then |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
|
# A "../" for each directory in $ac_dir_suffix. |
|
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
|
|
else |
|
|
ac_dir_suffix= ac_top_builddir= |
|
|
fi |
|
|
|
|
|
case $srcdir in |
|
|
.) # No --srcdir option. We are building in place. |
|
|
ac_srcdir=. |
|
|
if test -z "$ac_top_builddir"; then |
|
|
ac_top_srcdir=. |
|
|
else |
|
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
|
fi ;; |
|
|
[\\/]* | ?:[\\/]* ) # Absolute path. |
|
|
ac_srcdir=$srcdir$ac_dir_suffix; |
|
|
ac_top_srcdir=$srcdir ;; |
|
|
*) # Relative path. |
|
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
|
|
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
|
|
esac |
|
|
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
|
|
# absolute. |
|
|
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
|
|
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
|
|
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
|
|
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
|
|
|
|
6841 |
|
|
6842 |
|
# Remove last slash and all that follows it. Not all systems have dirname. |
6843 |
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
6844 |
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
6845 |
|
# The file is in a subdirectory. |
6846 |
|
test ! -d "$ac_dir" && mkdir "$ac_dir" |
6847 |
|
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
6848 |
|
# A "../" for each directory in $ac_dir_suffix. |
6849 |
|
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
6850 |
|
else |
6851 |
|
ac_dir_suffix= ac_dots= |
6852 |
|
fi |
6853 |
|
|
6854 |
|
case "$ac_given_srcdir" in |
6855 |
|
.) srcdir=. |
6856 |
|
if test -z "$ac_dots"; then top_srcdir=. |
6857 |
|
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
6858 |
|
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
6859 |
|
*) # Relative path. |
6860 |
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
6861 |
|
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
6862 |
|
esac |
6863 |
|
|
|
if test x"$ac_file" != x-; then |
|
|
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
|
echo "$as_me: creating $ac_file" >&6;} |
|
|
rm -f "$ac_file" |
|
|
fi |
|
|
# 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. */ |
|
|
if test x"$ac_file" = x-; then |
|
|
configure_input= |
|
|
else |
|
|
configure_input="$ac_file. " |
|
|
fi |
|
|
configure_input=$configure_input"Generated from `echo $ac_file_in | |
|
|
sed 's,.*/,,'` by configure." |
|
|
|
|
|
# First look for the input files in the build tree, otherwise in the |
|
|
# src tree. |
|
|
ac_file_inputs=`IFS=: |
|
|
for f in $ac_file_in; do |
|
|
case $f in |
|
|
-) echo $tmp/stdin ;; |
|
|
[\\/$]*) |
|
|
# Absolute (can't be DOS-style, as IFS=:) |
|
|
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
echo $f;; |
|
|
*) # Relative |
|
|
if test -f "$f"; then |
|
|
# Build tree |
|
|
echo $f |
|
|
elif test -f "$srcdir/$f"; then |
|
|
# Source tree |
|
|
echo $srcdir/$f |
|
|
else |
|
|
# /dev/null tree |
|
|
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi;; |
|
|
esac |
|
|
done` || { (exit 1); exit 1; } |
|
|
_ACEOF |
|
|
cat >>$CONFIG_STATUS <<_ACEOF |
|
|
sed "$ac_vpsub |
|
|
$extrasub |
|
|
_ACEOF |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
:t |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
s,@configure_input@,$configure_input,;t t |
|
|
s,@srcdir@,$ac_srcdir,;t t |
|
|
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
|
|
s,@top_srcdir@,$ac_top_srcdir,;t t |
|
|
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
|
|
s,@builddir@,$ac_builddir,;t t |
|
|
s,@abs_builddir@,$ac_abs_builddir,;t t |
|
|
s,@top_builddir@,$ac_top_builddir,;t t |
|
|
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
|
|
rm -f $tmp/stdin |
|
|
if test x"$ac_file" != x-; then |
|
|
mv $tmp/out $ac_file |
|
|
else |
|
|
cat $tmp/out |
|
|
rm -f $tmp/out |
|
|
fi |
|
6864 |
|
|
6865 |
done |
echo creating "$ac_file" |
6866 |
_ACEOF |
rm -f "$ac_file" |
6867 |
cat >>$CONFIG_STATUS <<\_ACEOF |
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
6868 |
|
case "$ac_file" in |
6869 |
|
*Makefile*) ac_comsub="1i\\ |
6870 |
|
# $configure_input" ;; |
6871 |
|
*) ac_comsub= ;; |
6872 |
|
esac |
6873 |
|
|
6874 |
# |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
6875 |
# CONFIG_HEADER section. |
sed -e "$ac_comsub |
6876 |
# |
s%@configure_input@%$configure_input%g |
6877 |
|
s%@srcdir@%$srcdir%g |
6878 |
|
s%@top_srcdir@%$top_srcdir%g |
6879 |
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
6880 |
|
fi; done |
6881 |
|
rm -f conftest.s* |
6882 |
|
|
6883 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
6884 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
6885 |
# |
# |
6886 |
# ac_d sets the value in "#define NAME VALUE" lines. |
# ac_d sets the value in "#define NAME VALUE" lines. |
6887 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
6888 |
ac_dB='[ ].*$,\1#\2' |
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
6889 |
ac_dC=' ' |
ac_dC='\3' |
6890 |
ac_dD=',;t' |
ac_dD='%g' |
6891 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
6892 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
6893 |
ac_uB='$,\1#\2define\3' |
ac_uB='\([ ]\)%\1#\2define\3' |
6894 |
ac_uC=' ' |
ac_uC=' ' |
6895 |
ac_uD=',;t' |
ac_uD='\4%g' |
6896 |
|
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
6897 |
|
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
6898 |
|
ac_eB='$%\1#\2define\3' |
6899 |
|
ac_eC=' ' |
6900 |
|
ac_eD='%g' |
6901 |
|
|
6902 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
if test "${CONFIG_HEADERS+set}" != set; then |
6903 |
|
EOF |
6904 |
|
cat >> $CONFIG_STATUS <<EOF |
6905 |
|
CONFIG_HEADERS="h/gclincl.h" |
6906 |
|
EOF |
6907 |
|
cat >> $CONFIG_STATUS <<\EOF |
6908 |
|
fi |
6909 |
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
6910 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
6911 |
case $ac_file in |
case "$ac_file" in |
6912 |
- | *:- | *:-:* ) # input from stdin |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
6913 |
cat >$tmp/stdin |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
6914 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
*) ac_file_in="${ac_file}.in" ;; |
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
|
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
|
* ) ac_file_in=$ac_file.in ;; |
|
6915 |
esac |
esac |
6916 |
|
|
6917 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
echo creating $ac_file |
|
echo "$as_me: creating $ac_file" >&6;} |
|
6918 |
|
|
6919 |
# First look for the input files in the build tree, otherwise in the |
rm -f conftest.frag conftest.in conftest.out |
6920 |
# src tree. |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
6921 |
ac_file_inputs=`IFS=: |
cat $ac_file_inputs > conftest.in |
6922 |
for f in $ac_file_in; do |
|
6923 |
case $f in |
EOF |
6924 |
-) echo $tmp/stdin ;; |
|
6925 |
[\\/$]*) |
# Transform confdefs.h into a sed script conftest.vals that substitutes |
6926 |
# Absolute (can't be DOS-style, as IFS=:) |
# the proper values into config.h.in to produce config.h. And first: |
6927 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
# Protect against being on the right side of a sed subst in config.status. |
6928 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
# Protect against being in an unquoted here document in config.status. |
6929 |
{ (exit 1); exit 1; }; } |
rm -f conftest.vals |
6930 |
echo $f;; |
cat > conftest.hdr <<\EOF |
6931 |
*) # Relative |
s/[\\&%]/\\&/g |
6932 |
if test -f "$f"; then |
s%[\\$`]%\\&%g |
6933 |
# Build tree |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
6934 |
echo $f |
s%ac_d%ac_u%gp |
6935 |
elif test -f "$srcdir/$f"; then |
s%ac_u%ac_e%gp |
6936 |
# Source tree |
EOF |
6937 |
echo $srcdir/$f |
sed -n -f conftest.hdr confdefs.h > conftest.vals |
6938 |
else |
rm -f conftest.hdr |
|
# /dev/null tree |
|
|
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi;; |
|
|
esac |
|
|
done` || { (exit 1); exit 1; } |
|
|
# Remove the trailing spaces. |
|
|
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
|
|
|
|
|
_ACEOF |
|
|
|
|
|
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
|
|
# `conftest.undefs', that substitutes the proper values into |
|
|
# config.h.in to produce config.h. The first handles `#define' |
|
|
# templates, and the second `#undef' templates. |
|
|
# And first: Protect against being on the right side of a sed subst in |
|
|
# config.status. Protect against being in an unquoted here document |
|
|
# in config.status. |
|
|
rm -f conftest.defines conftest.undefs |
|
|
# Using a here document instead of a string reduces the quoting nightmare. |
|
|
# Putting comments in sed scripts is not portable. |
|
|
# |
|
|
# `end' is used to avoid that the second main sed command (meant for |
|
|
# 0-ary CPP macros) applies to n-ary macro definitions. |
|
|
# See the Autoconf documentation for `clear'. |
|
|
cat >confdef2sed.sed <<\_ACEOF |
|
|
s/[\\&,]/\\&/g |
|
|
s,[\\$`],\\&,g |
|
|
t clear |
|
|
: clear |
|
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
|
|
t end |
|
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
|
|
: end |
|
|
_ACEOF |
|
|
# If some macros were called several times there might be several times |
|
|
# the same #defines, which is useless. Nevertheless, we may not want to |
|
|
# sort them, since we want the *last* AC-DEFINE to be honored. |
|
|
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
|
|
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
|
|
rm -f confdef2sed.sed |
|
6939 |
|
|
6940 |
# This sed command replaces #undef with comments. This is necessary, for |
# This sed command replaces #undef with comments. This is necessary, for |
6941 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
6942 |
# on some systems where configure will not decide to define it. |
# on some systems where configure will not decide to define it. |
6943 |
cat >>conftest.undefs <<\_ACEOF |
cat >> conftest.vals <<\EOF |
6944 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
6945 |
_ACEOF |
EOF |
6946 |
|
|
6947 |
# Break up conftest.defines because some shells have a limit on the size |
# Break up conftest.vals because some shells have a limit on |
6948 |
# of here documents, and old seds have small limits too (100 cmds). |
# the size of here documents, and old seds have small limits too. |
6949 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
|
|
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
|
|
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
|
|
echo ' :' >>$CONFIG_STATUS |
|
|
rm -f conftest.tail |
|
|
while grep . conftest.defines >/dev/null |
|
|
do |
|
|
# Write a limited-size here document to $tmp/defines.sed. |
|
|
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
|
|
# Speed up: don't consider the non `#define' lines. |
|
|
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
|
|
# Work around the forget-to-reset-the-flag bug. |
|
|
echo 't clr' >>$CONFIG_STATUS |
|
|
echo ': clr' >>$CONFIG_STATUS |
|
|
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
|
|
echo 'CEOF |
|
|
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
|
|
rm -f $tmp/in |
|
|
mv $tmp/out $tmp/in |
|
|
' >>$CONFIG_STATUS |
|
|
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
|
|
rm -f conftest.defines |
|
|
mv conftest.tail conftest.defines |
|
|
done |
|
|
rm -f conftest.defines |
|
|
echo ' fi # grep' >>$CONFIG_STATUS |
|
|
echo >>$CONFIG_STATUS |
|
|
|
|
|
# Break up conftest.undefs because some shells have a limit on the size |
|
|
# of here documents, and old seds have small limits too (100 cmds). |
|
|
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
|
6950 |
rm -f conftest.tail |
rm -f conftest.tail |
6951 |
while grep . conftest.undefs >/dev/null |
while : |
6952 |
do |
do |
6953 |
# Write a limited-size here document to $tmp/undefs.sed. |
ac_lines=`grep -c . conftest.vals` |
6954 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
# grep -c gives empty output for an empty file on some AIX systems. |
6955 |
# Speed up: don't consider the non `#undef' |
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
6956 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
# Write a limited-size here document to conftest.frag. |
6957 |
# Work around the forget-to-reset-the-flag bug. |
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
6958 |
echo 't clr' >>$CONFIG_STATUS |
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
|
echo ': clr' >>$CONFIG_STATUS |
|
|
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
|
6959 |
echo 'CEOF |
echo 'CEOF |
6960 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
sed -f conftest.frag conftest.in > conftest.out |
6961 |
rm -f $tmp/in |
rm -f conftest.in |
6962 |
mv $tmp/out $tmp/in |
mv conftest.out conftest.in |
6963 |
' >>$CONFIG_STATUS |
' >> $CONFIG_STATUS |
6964 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
6965 |
rm -f conftest.undefs |
rm -f conftest.vals |
6966 |
mv conftest.tail conftest.undefs |
mv conftest.tail conftest.vals |
6967 |
done |
done |
6968 |
rm -f conftest.undefs |
rm -f conftest.vals |
6969 |
|
|
6970 |
cat >>$CONFIG_STATUS <<\_ACEOF |
cat >> $CONFIG_STATUS <<\EOF |
6971 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
rm -f conftest.frag conftest.h |
6972 |
# use $as_me), people would be surprised to read: |
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
6973 |
# /* config.h. Generated by config.status. */ |
cat conftest.in >> conftest.h |
6974 |
if test x"$ac_file" = x-; then |
rm -f conftest.in |
6975 |
echo "/* Generated by configure. */" >$tmp/config.h |
if cmp -s $ac_file conftest.h 2>/dev/null; then |
6976 |
else |
echo "$ac_file is unchanged" |
6977 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
rm -f conftest.h |
6978 |
fi |
else |
6979 |
cat $tmp/in >>$tmp/config.h |
# Remove last slash and all that follows it. Not all systems have dirname. |
6980 |
rm -f $tmp/in |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
6981 |
if test x"$ac_file" != x-; then |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
6982 |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
# The file is in a subdirectory. |
6983 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
|
echo "$as_me: $ac_file is unchanged" >&6;} |
|
|
else |
|
|
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
|
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
|
X"$ac_file" : 'X\(//\)$' \| \ |
|
|
X"$ac_file" : 'X\(/\)' \| \ |
|
|
. : '\(.\)' 2>/dev/null || |
|
|
echo X"$ac_file" | |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
/^X\(\/\/\)$/{ s//\1/; q; } |
|
|
/^X\(\/\).*/{ s//\1/; q; } |
|
|
s/.*/./; q'` |
|
|
{ if $as_mkdir_p; then |
|
|
mkdir -p "$ac_dir" |
|
|
else |
|
|
as_dir="$ac_dir" |
|
|
as_dirs= |
|
|
while test ! -d "$as_dir"; do |
|
|
as_dirs="$as_dir $as_dirs" |
|
|
as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
|
X"$as_dir" : 'X\(//\)$' \| \ |
|
|
X"$as_dir" : 'X\(/\)' \| \ |
|
|
. : '\(.\)' 2>/dev/null || |
|
|
echo X"$as_dir" | |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
/^X\(\/\/\)$/{ s//\1/; q; } |
|
|
/^X\(\/\).*/{ s//\1/; q; } |
|
|
s/.*/./; q'` |
|
|
done |
|
|
test ! -n "$as_dirs" || mkdir $as_dirs |
|
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
|
|
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
|
|
{ (exit 1); exit 1; }; }; } |
|
|
|
|
|
rm -f $ac_file |
|
|
mv $tmp/config.h $ac_file |
|
6984 |
fi |
fi |
6985 |
else |
rm -f $ac_file |
6986 |
cat $tmp/config.h |
mv conftest.h $ac_file |
|
rm -f $tmp/config.h |
|
6987 |
fi |
fi |
6988 |
done |
fi; done |
|
_ACEOF |
|
6989 |
|
|
6990 |
cat >>$CONFIG_STATUS <<\_ACEOF |
EOF |
6991 |
|
cat >> $CONFIG_STATUS <<EOF |
|
{ (exit 0); exit 0; } |
|
|
_ACEOF |
|
|
chmod +x $CONFIG_STATUS |
|
|
ac_clean_files=$ac_clean_files_save |
|
6992 |
|
|
6993 |
|
EOF |
6994 |
|
cat >> $CONFIG_STATUS <<\EOF |
6995 |
|
|
6996 |
# configure is writing to config.log, and then calls config.status. |
exit 0 |
6997 |
# config.status does its own redirection, appending to config.log. |
EOF |
6998 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
chmod +x $CONFIG_STATUS |
6999 |
# by configure, so config.status won't be able to write to it; its |
rm -fr confdefs* $ac_clean_files |
7000 |
# output is simply discarded. So we exec the FD to /dev/null, |
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
|
# 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=: |
|
|
ac_config_status_args= |
|
|
test "$silent" = yes && |
|
|
ac_config_status_args="$ac_config_status_args --quiet" |
|
|
exec 5>/dev/null |
|
|
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
|
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 |
|
7001 |
|
|
7002 |
echo makedefc |
echo makedefc |
7003 |
cat makedefc |
cat makedefc |