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.53. |
# 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. |
9 |
|
|
10 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
# Defaults: |
11 |
as_expr=expr |
ac_help= |
|
else |
|
|
as_expr=false |
|
|
fi |
|
|
|
|
|
|
|
|
## --------------------- ## |
|
|
## M4sh Initialization. ## |
|
|
## --------------------- ## |
|
|
|
|
|
# Be Bourne compatible |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
|
emulate sh |
|
|
NULLCMD=: |
|
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
|
|
set -o posix |
|
|
fi |
|
|
|
|
|
# NLS nuisances. |
|
|
# Support unset when possible. |
|
|
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
|
|
as_unset=unset |
|
|
else |
|
|
as_unset=false |
|
|
fi |
|
|
|
|
|
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
|
|
{ $as_unset LANG || test "${LANG+set}" != set; } || |
|
|
{ LANG=C; export LANG; } |
|
|
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
|
|
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
|
|
{ LC_ALL=C; export LC_ALL; } |
|
|
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
|
|
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
|
|
{ LC_TIME=C; export LC_TIME; } |
|
|
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
|
|
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
|
|
{ LC_CTYPE=C; export LC_CTYPE; } |
|
|
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
|
|
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
|
|
{ LANGUAGE=C; export LANGUAGE; } |
|
|
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
|
|
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
|
|
{ LC_COLLATE=C; export LC_COLLATE; } |
|
|
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
|
|
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
|
|
{ LC_NUMERIC=C; export LC_NUMERIC; } |
|
|
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
|
|
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
|
|
{ LC_MESSAGES=C; export LC_MESSAGES; } |
|
|
|
|
|
|
|
|
# Name of the executable. |
|
|
as_me=`(basename "$0") 2>/dev/null || |
|
|
$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" >conftest.sh |
|
|
echo "exit 0" >>conftest.sh |
|
|
chmod +x conftest.sh |
|
|
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
|
|
PATH_SEPARATOR=';' |
|
|
else |
|
|
PATH_SEPARATOR=: |
|
|
fi |
|
|
rm -f conftest.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 |
|
|
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 |
|
|
|
|
|
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 || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export 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 |
cross_compiling=no |
# Any additions from configure.in: |
14 |
subdirs= |
ac_help="$ac_help |
15 |
MFLAGS= |
--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 |
MAKEFLAGS= |
ac_help="$ac_help |
17 |
SHELL=${CONFIG_SHELL-/bin/sh} |
--enable-vssize=XXXX will compile in a value stack of size XXX " |
18 |
|
ac_help="$ac_help |
19 |
# Maximum number of lines to put in a shell here document. |
--enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs " |
20 |
# This variable seems obsolete. It should probably be removed, and |
ac_help="$ac_help |
21 |
# only ac_max_sed_lines should be used. |
--enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes) " |
22 |
: ${ac_max_here_lines=38} |
ac_help="$ac_help |
23 |
|
--enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems " |
24 |
# Identity of this package. |
ac_help="$ac_help |
25 |
PACKAGE_NAME= |
--enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh " |
26 |
PACKAGE_TARNAME= |
ac_help="$ac_help |
27 |
PACKAGE_VERSION= |
--enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh " |
28 |
PACKAGE_STRING= |
ac_help="$ac_help |
29 |
PACKAGE_BUGREPORT= |
--enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info " |
30 |
|
ac_help="$ac_help |
31 |
# Factoring default headers for most tests. |
--enable-emacsdir=XXXX will manually specify the location for elisp files " |
32 |
ac_includes_default="\ |
ac_help="$ac_help |
33 |
#include <stdio.h> |
--enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes) " |
34 |
#if HAVE_SYS_TYPES_H |
ac_help="$ac_help |
35 |
# include <sys/types.h> |
--enable-dlopen uses dlopen for loading objects, which can then not be retained in saved images |
36 |
#endif |
" |
37 |
#if HAVE_SYS_STAT_H |
ac_help="$ac_help |
38 |
# include <sys/stat.h> |
--enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files |
39 |
#endif |
" |
40 |
#if STDC_HEADERS |
ac_help="$ac_help |
41 |
# include <stdlib.h> |
--enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files |
42 |
# include <stddef.h> |
" |
43 |
#else |
ac_help="$ac_help |
44 |
# if HAVE_STDLIB_H |
--enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files |
45 |
# include <stdlib.h> |
" |
46 |
# endif |
ac_help="$ac_help |
47 |
#endif |
--enable-custreloc uses custom gcl code if available for loading and relocationing object files |
48 |
#if HAVE_STRING_H |
" |
49 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
ac_help="$ac_help |
50 |
# include <memory.h> |
--enable-debug builds gcl with -g in CFLAGS to enable running under gdb |
51 |
# endif |
" |
52 |
# include <string.h> |
ac_help="$ac_help |
53 |
#endif |
--enable-pic builds gcl with -fPIC in CFLAGS |
54 |
#if HAVE_STRINGS_H |
" |
55 |
# include <strings.h> |
ac_help="$ac_help |
56 |
#endif |
--enable-oldgmp will link against gmp2 instead of gmp3 |
57 |
#if HAVE_INTTYPES_H |
" |
58 |
# include <inttypes.h> |
ac_help="$ac_help |
59 |
#else |
--enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source |
60 |
# if HAVE_STDINT_H |
" |
61 |
# include <stdint.h> |
ac_help="$ac_help |
62 |
# endif |
--with-x use the X Window System" |
63 |
#endif |
ac_help="$ac_help |
64 |
#if HAVE_UNISTD_H |
--enable-readine enables command line completion via the readline library " |
65 |
# include <unistd.h> |
ac_help="$ac_help |
66 |
#endif" |
--enable-ansi builds a large gcl aiming for ansi compliance, |
67 |
|
--disable-ansi builds the smaller traditional CLtL1 image" |
68 |
|
|
69 |
# Initialize some variables set by options. |
# Initialize some variables set by options. |
|
ac_init_help= |
|
|
ac_init_version=false |
|
70 |
# The variables have the same names as the options, with |
# The variables have the same names as the options, with |
71 |
# dashes changed to underlines. |
# dashes changed to underlines. |
72 |
cache_file=/dev/null |
build=NONE |
73 |
|
cache_file=./config.cache |
74 |
exec_prefix=NONE |
exec_prefix=NONE |
75 |
|
host=NONE |
76 |
no_create= |
no_create= |
77 |
|
nonopt=NONE |
78 |
no_recursion= |
no_recursion= |
79 |
prefix=NONE |
prefix=NONE |
80 |
program_prefix=NONE |
program_prefix=NONE |
83 |
silent= |
silent= |
84 |
site= |
site= |
85 |
srcdir= |
srcdir= |
86 |
|
target=NONE |
87 |
verbose= |
verbose= |
88 |
x_includes=NONE |
x_includes=NONE |
89 |
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. |
|
90 |
bindir='${exec_prefix}/bin' |
bindir='${exec_prefix}/bin' |
91 |
sbindir='${exec_prefix}/sbin' |
sbindir='${exec_prefix}/sbin' |
92 |
libexecdir='${exec_prefix}/libexec' |
libexecdir='${exec_prefix}/libexec' |
100 |
infodir='${prefix}/info' |
infodir='${prefix}/info' |
101 |
mandir='${prefix}/man' |
mandir='${prefix}/man' |
102 |
|
|
103 |
|
# Initialize some other variables. |
104 |
|
subdirs= |
105 |
|
MFLAGS= MAKEFLAGS= |
106 |
|
SHELL=${CONFIG_SHELL-/bin/sh} |
107 |
|
# Maximum number of lines to put in a shell here document. |
108 |
|
ac_max_here_lines=12 |
109 |
|
|
110 |
ac_prev= |
ac_prev= |
111 |
for ac_option |
for ac_option |
112 |
do |
do |
113 |
|
|
114 |
# If the previous option needs an argument, assign it. |
# If the previous option needs an argument, assign it. |
115 |
if test -n "$ac_prev"; then |
if test -n "$ac_prev"; then |
116 |
eval "$ac_prev=\$ac_option" |
eval "$ac_prev=\$ac_option" |
118 |
continue |
continue |
119 |
fi |
fi |
120 |
|
|
121 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
case "$ac_option" in |
122 |
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
123 |
|
*) ac_optarg= ;; |
124 |
|
esac |
125 |
|
|
126 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
# Accept the important Cygnus configure options, so we can diagnose typos. |
127 |
|
|
128 |
case $ac_option in |
case "$ac_option" in |
129 |
|
|
130 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
131 |
ac_prev=bindir ;; |
ac_prev=bindir ;; |
132 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
133 |
bindir=$ac_optarg ;; |
bindir="$ac_optarg" ;; |
134 |
|
|
135 |
-build | --build | --buil | --bui | --bu) |
-build | --build | --buil | --bui | --bu) |
136 |
ac_prev=build_alias ;; |
ac_prev=build ;; |
137 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
138 |
build_alias=$ac_optarg ;; |
build="$ac_optarg" ;; |
139 |
|
|
140 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
141 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
142 |
ac_prev=cache_file ;; |
ac_prev=cache_file ;; |
143 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
144 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
145 |
cache_file=$ac_optarg ;; |
cache_file="$ac_optarg" ;; |
|
|
|
|
--config-cache | -C) |
|
|
cache_file=config.cache ;; |
|
146 |
|
|
147 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
148 |
ac_prev=datadir ;; |
ac_prev=datadir ;; |
149 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
150 |
| --da=*) |
| --da=*) |
151 |
datadir=$ac_optarg ;; |
datadir="$ac_optarg" ;; |
152 |
|
|
153 |
-disable-* | --disable-*) |
-disable-* | --disable-*) |
154 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
155 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
156 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
157 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
158 |
{ (exit 1); exit 1; }; } |
fi |
159 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
160 |
eval "enable_$ac_feature=no" ;; |
eval "enable_${ac_feature}=no" ;; |
161 |
|
|
162 |
-enable-* | --enable-*) |
-enable-* | --enable-*) |
163 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
164 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
165 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
166 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
167 |
{ (exit 1); exit 1; }; } |
fi |
168 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
169 |
case $ac_option in |
case "$ac_option" in |
170 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
*=*) ;; |
171 |
*) ac_optarg=yes ;; |
*) ac_optarg=yes ;; |
172 |
esac |
esac |
173 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
eval "enable_${ac_feature}='$ac_optarg'" ;; |
174 |
|
|
175 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
176 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
179 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
180 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
181 |
| --exec=* | --exe=* | --ex=*) |
| --exec=* | --exe=* | --ex=*) |
182 |
exec_prefix=$ac_optarg ;; |
exec_prefix="$ac_optarg" ;; |
183 |
|
|
184 |
-gas | --gas | --ga | --g) |
-gas | --gas | --ga | --g) |
185 |
# Obsolete; use --with-gas. |
# Obsolete; use --with-gas. |
186 |
with_gas=yes ;; |
with_gas=yes ;; |
187 |
|
|
188 |
-help | --help | --hel | --he | -h) |
-help | --help | --hel | --he) |
189 |
ac_init_help=long ;; |
# Omit some internal or obsolete options to make the list less imposing. |
190 |
-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. |
191 |
ac_init_help=recursive ;; |
cat << EOF |
192 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
Usage: configure [options] [host] |
193 |
ac_init_help=short ;; |
Options: [defaults in brackets after descriptions] |
194 |
|
Configuration: |
195 |
|
--cache-file=FILE cache test results in FILE |
196 |
|
--help print this message |
197 |
|
--no-create do not create output files |
198 |
|
--quiet, --silent do not print \`checking...' messages |
199 |
|
--version print the version of autoconf that created configure |
200 |
|
Directory and file names: |
201 |
|
--prefix=PREFIX install architecture-independent files in PREFIX |
202 |
|
[$ac_default_prefix] |
203 |
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
204 |
|
[same as prefix] |
205 |
|
--bindir=DIR user executables in DIR [EPREFIX/bin] |
206 |
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
207 |
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
208 |
|
--datadir=DIR read-only architecture-independent data in DIR |
209 |
|
[PREFIX/share] |
210 |
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
211 |
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
212 |
|
[PREFIX/com] |
213 |
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
214 |
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
215 |
|
--includedir=DIR C header files in DIR [PREFIX/include] |
216 |
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
217 |
|
--infodir=DIR info documentation in DIR [PREFIX/info] |
218 |
|
--mandir=DIR man documentation in DIR [PREFIX/man] |
219 |
|
--srcdir=DIR find the sources in DIR [configure dir or ..] |
220 |
|
--program-prefix=PREFIX prepend PREFIX to installed program names |
221 |
|
--program-suffix=SUFFIX append SUFFIX to installed program names |
222 |
|
--program-transform-name=PROGRAM |
223 |
|
run sed PROGRAM on installed program names |
224 |
|
EOF |
225 |
|
cat << EOF |
226 |
|
Host type: |
227 |
|
--build=BUILD configure for building on BUILD [BUILD=HOST] |
228 |
|
--host=HOST configure for HOST [guessed] |
229 |
|
--target=TARGET configure for TARGET [TARGET=HOST] |
230 |
|
Features and packages: |
231 |
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
232 |
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
233 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
234 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
235 |
|
--x-includes=DIR X include files are in DIR |
236 |
|
--x-libraries=DIR X library files are in DIR |
237 |
|
EOF |
238 |
|
if test -n "$ac_help"; then |
239 |
|
echo "--enable and --with options recognized:$ac_help" |
240 |
|
fi |
241 |
|
exit 0 ;; |
242 |
|
|
243 |
-host | --host | --hos | --ho) |
-host | --host | --hos | --ho) |
244 |
ac_prev=host_alias ;; |
ac_prev=host ;; |
245 |
-host=* | --host=* | --hos=* | --ho=*) |
-host=* | --host=* | --hos=* | --ho=*) |
246 |
host_alias=$ac_optarg ;; |
host="$ac_optarg" ;; |
247 |
|
|
248 |
-includedir | --includedir | --includedi | --included | --include \ |
-includedir | --includedir | --includedi | --included | --include \ |
249 |
| --includ | --inclu | --incl | --inc) |
| --includ | --inclu | --incl | --inc) |
250 |
ac_prev=includedir ;; |
ac_prev=includedir ;; |
251 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
252 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
253 |
includedir=$ac_optarg ;; |
includedir="$ac_optarg" ;; |
254 |
|
|
255 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
256 |
ac_prev=infodir ;; |
ac_prev=infodir ;; |
257 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
258 |
infodir=$ac_optarg ;; |
infodir="$ac_optarg" ;; |
259 |
|
|
260 |
-libdir | --libdir | --libdi | --libd) |
-libdir | --libdir | --libdi | --libd) |
261 |
ac_prev=libdir ;; |
ac_prev=libdir ;; |
262 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
263 |
libdir=$ac_optarg ;; |
libdir="$ac_optarg" ;; |
264 |
|
|
265 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
266 |
| --libexe | --libex | --libe) |
| --libexe | --libex | --libe) |
267 |
ac_prev=libexecdir ;; |
ac_prev=libexecdir ;; |
268 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
269 |
| --libexe=* | --libex=* | --libe=*) |
| --libexe=* | --libex=* | --libe=*) |
270 |
libexecdir=$ac_optarg ;; |
libexecdir="$ac_optarg" ;; |
271 |
|
|
272 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
273 |
| --localstate | --localstat | --localsta | --localst \ |
| --localstate | --localstat | --localsta | --localst \ |
276 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
277 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
278 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
279 |
localstatedir=$ac_optarg ;; |
localstatedir="$ac_optarg" ;; |
280 |
|
|
281 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
282 |
ac_prev=mandir ;; |
ac_prev=mandir ;; |
283 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
284 |
mandir=$ac_optarg ;; |
mandir="$ac_optarg" ;; |
285 |
|
|
286 |
-nfp | --nfp | --nf) |
-nfp | --nfp | --nf) |
287 |
# Obsolete; use --without-fp. |
# Obsolete; use --without-fp. |
288 |
with_fp=no ;; |
with_fp=no ;; |
289 |
|
|
290 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
291 |
| --no-cr | --no-c | -n) |
| --no-cr | --no-c) |
292 |
no_create=yes ;; |
no_create=yes ;; |
293 |
|
|
294 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
302 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
303 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
304 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
305 |
oldincludedir=$ac_optarg ;; |
oldincludedir="$ac_optarg" ;; |
306 |
|
|
307 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
308 |
ac_prev=prefix ;; |
ac_prev=prefix ;; |
309 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
310 |
prefix=$ac_optarg ;; |
prefix="$ac_optarg" ;; |
311 |
|
|
312 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
313 |
| --program-pre | --program-pr | --program-p) |
| --program-pre | --program-pr | --program-p) |
314 |
ac_prev=program_prefix ;; |
ac_prev=program_prefix ;; |
315 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
316 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
317 |
program_prefix=$ac_optarg ;; |
program_prefix="$ac_optarg" ;; |
318 |
|
|
319 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
320 |
| --program-suf | --program-su | --program-s) |
| --program-suf | --program-su | --program-s) |
321 |
ac_prev=program_suffix ;; |
ac_prev=program_suffix ;; |
322 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
323 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
324 |
program_suffix=$ac_optarg ;; |
program_suffix="$ac_optarg" ;; |
325 |
|
|
326 |
-program-transform-name | --program-transform-name \ |
-program-transform-name | --program-transform-name \ |
327 |
| --program-transform-nam | --program-transform-na \ |
| --program-transform-nam | --program-transform-na \ |
338 |
| --program-transfo=* | --program-transf=* \ |
| --program-transfo=* | --program-transf=* \ |
339 |
| --program-trans=* | --program-tran=* \ |
| --program-trans=* | --program-tran=* \ |
340 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| --progr-tra=* | --program-tr=* | --program-t=*) |
341 |
program_transform_name=$ac_optarg ;; |
program_transform_name="$ac_optarg" ;; |
342 |
|
|
343 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
344 |
| -silent | --silent | --silen | --sile | --sil) |
| -silent | --silent | --silen | --sile | --sil) |
348 |
ac_prev=sbindir ;; |
ac_prev=sbindir ;; |
349 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
350 |
| --sbi=* | --sb=*) |
| --sbi=* | --sb=*) |
351 |
sbindir=$ac_optarg ;; |
sbindir="$ac_optarg" ;; |
352 |
|
|
353 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
354 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
359 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
360 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
361 |
| --sha=* | --sh=*) |
| --sha=* | --sh=*) |
362 |
sharedstatedir=$ac_optarg ;; |
sharedstatedir="$ac_optarg" ;; |
363 |
|
|
364 |
-site | --site | --sit) |
-site | --site | --sit) |
365 |
ac_prev=site ;; |
ac_prev=site ;; |
366 |
-site=* | --site=* | --sit=*) |
-site=* | --site=* | --sit=*) |
367 |
site=$ac_optarg ;; |
site="$ac_optarg" ;; |
368 |
|
|
369 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
370 |
ac_prev=srcdir ;; |
ac_prev=srcdir ;; |
371 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
372 |
srcdir=$ac_optarg ;; |
srcdir="$ac_optarg" ;; |
373 |
|
|
374 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
375 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| --syscon | --sysco | --sysc | --sys | --sy) |
376 |
ac_prev=sysconfdir ;; |
ac_prev=sysconfdir ;; |
377 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
378 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
379 |
sysconfdir=$ac_optarg ;; |
sysconfdir="$ac_optarg" ;; |
380 |
|
|
381 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
-target | --target | --targe | --targ | --tar | --ta | --t) |
382 |
ac_prev=target_alias ;; |
ac_prev=target ;; |
383 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
384 |
target_alias=$ac_optarg ;; |
target="$ac_optarg" ;; |
385 |
|
|
386 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
387 |
verbose=yes ;; |
verbose=yes ;; |
388 |
|
|
389 |
-version | --version | --versio | --versi | --vers | -V) |
-version | --version | --versio | --versi | --vers) |
390 |
ac_init_version=: ;; |
echo "configure generated by autoconf version 2.13" |
391 |
|
exit 0 ;; |
392 |
|
|
393 |
-with-* | --with-*) |
-with-* | --with-*) |
394 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
395 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
396 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
397 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
398 |
{ (exit 1); exit 1; }; } |
fi |
399 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
400 |
case $ac_option in |
case "$ac_option" in |
401 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
*=*) ;; |
402 |
*) ac_optarg=yes ;; |
*) ac_optarg=yes ;; |
403 |
esac |
esac |
404 |
eval "with_$ac_package='$ac_optarg'" ;; |
eval "with_${ac_package}='$ac_optarg'" ;; |
405 |
|
|
406 |
-without-* | --without-*) |
-without-* | --without-*) |
407 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
408 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
409 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
410 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
411 |
{ (exit 1); exit 1; }; } |
fi |
412 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
413 |
eval "with_$ac_package=no" ;; |
eval "with_${ac_package}=no" ;; |
414 |
|
|
415 |
--x) |
--x) |
416 |
# Obsolete; use --with-x. |
# Obsolete; use --with-x. |
421 |
ac_prev=x_includes ;; |
ac_prev=x_includes ;; |
422 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
423 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
424 |
x_includes=$ac_optarg ;; |
x_includes="$ac_optarg" ;; |
425 |
|
|
426 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
427 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
428 |
ac_prev=x_libraries ;; |
ac_prev=x_libraries ;; |
429 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
430 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
431 |
x_libraries=$ac_optarg ;; |
x_libraries="$ac_optarg" ;; |
432 |
|
|
433 |
-*) { 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; }; } |
|
434 |
;; |
;; |
435 |
|
|
|
*=*) |
|
|
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 ;; |
|
|
|
|
436 |
*) |
*) |
437 |
# FIXME: should be removed in autoconf 3.0. |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
438 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
439 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
fi |
440 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
if test "x$nonopt" != xNONE; then |
441 |
: ${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; } |
442 |
|
fi |
443 |
|
nonopt="$ac_option" |
444 |
;; |
;; |
445 |
|
|
446 |
esac |
esac |
447 |
done |
done |
448 |
|
|
449 |
if test -n "$ac_prev"; then |
if test -n "$ac_prev"; then |
450 |
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; }; } |
|
451 |
fi |
fi |
452 |
|
|
453 |
# Be sure to have absolute paths. |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
|
for ac_var in exec_prefix prefix |
|
|
do |
|
|
eval ac_val=$`echo $ac_var` |
|
|
case $ac_val in |
|
|
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
|
|
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
|
|
{ (exit 1); exit 1; }; };; |
|
|
esac |
|
|
done |
|
454 |
|
|
455 |
# Be sure to have absolute paths. |
# File descriptor usage: |
456 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
# 0 standard input |
457 |
localstatedir libdir includedir oldincludedir infodir mandir |
# 1 file creation |
458 |
|
# 2 errors and warnings |
459 |
|
# 3 some systems may open it to /dev/tty |
460 |
|
# 4 used on the Kubota Titan |
461 |
|
# 6 checking for... messages and results |
462 |
|
# 5 compiler messages saved in config.log |
463 |
|
if test "$silent" = yes; then |
464 |
|
exec 6>/dev/null |
465 |
|
else |
466 |
|
exec 6>&1 |
467 |
|
fi |
468 |
|
exec 5>./config.log |
469 |
|
|
470 |
|
echo "\ |
471 |
|
This file contains any messages produced by compilers while |
472 |
|
running configure, to aid debugging if configure makes a mistake. |
473 |
|
" 1>&5 |
474 |
|
|
475 |
|
# Strip out --no-create and --no-recursion so they do not pile up. |
476 |
|
# Also quote any args containing shell metacharacters. |
477 |
|
ac_configure_args= |
478 |
|
for ac_arg |
479 |
do |
do |
480 |
eval ac_val=$`echo $ac_var` |
case "$ac_arg" in |
481 |
case $ac_val in |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
482 |
[\\/$]* | ?:[\\/]* ) ;; |
| --no-cr | --no-c) ;; |
483 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
484 |
{ (exit 1); exit 1; }; };; |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
485 |
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
486 |
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
487 |
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
488 |
esac |
esac |
489 |
done |
done |
490 |
|
|
491 |
# There might be people who depend on the old broken behavior: `$host' |
# NLS nuisances. |
492 |
# used to hold the argument of --host etc. |
# Only set these to C if already set. These must not be set unconditionally |
493 |
# FIXME: To remove some day. |
# because not all systems understand e.g. LANG=C (notably SCO). |
494 |
build=$build_alias |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
495 |
host=$host_alias |
# Non-C LC_CTYPE values break the ctype check. |
496 |
target=$target_alias |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
497 |
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
498 |
# FIXME: To remove some day. |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
499 |
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- |
|
500 |
|
|
501 |
test "$silent" = yes && exec 6>/dev/null |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
502 |
|
rm -rf conftest* confdefs.h |
503 |
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
504 |
|
echo > confdefs.h |
505 |
|
|
506 |
|
# A filename unique to this package, relative to the directory that |
507 |
|
# configure is in, which we can look for to find out if srcdir is correct. |
508 |
|
ac_unique_file= |
509 |
|
|
510 |
# Find the source files, if location was not specified. |
# Find the source files, if location was not specified. |
511 |
if test -z "$srcdir"; then |
if test -z "$srcdir"; then |
512 |
ac_srcdir_defaulted=yes |
ac_srcdir_defaulted=yes |
513 |
# Try the directory containing this script, then its parent. |
# Try the directory containing this script, then its parent. |
514 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
ac_prog=$0 |
515 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
516 |
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'` |
|
517 |
srcdir=$ac_confdir |
srcdir=$ac_confdir |
518 |
if test ! -r $srcdir/$ac_unique_file; then |
if test ! -r $srcdir/$ac_unique_file; then |
519 |
srcdir=.. |
srcdir=.. |
523 |
fi |
fi |
524 |
if test ! -r $srcdir/$ac_unique_file; then |
if test ! -r $srcdir/$ac_unique_file; then |
525 |
if test "$ac_srcdir_defaulted" = yes; then |
if test "$ac_srcdir_defaulted" = yes; then |
526 |
{ 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; }; } |
|
527 |
else |
else |
528 |
{ 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; }; } |
|
529 |
fi |
fi |
530 |
fi |
fi |
531 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\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-vssize=XXXX will compile in a value stack of size XXX |
|
|
--enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs |
|
|
--enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes) |
|
|
--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-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-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.53. 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 |
|
532 |
|
|
|
|
|
|
## ----------- ## |
|
|
## Core tests. ## |
|
|
## ----------- ## |
|
|
|
|
|
_ACEOF |
|
|
|
|
|
|
|
|
# Keep a trace of the command line. |
|
|
# Strip out --no-create and --no-recursion so they do not pile up. |
|
|
# Also quote any args containing shell meta-characters. |
|
|
ac_configure_args= |
|
|
ac_sep= |
|
|
for ac_arg |
|
|
do |
|
|
case $ac_arg in |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
|
| --no-cr | --no-c | -n ) continue ;; |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
|
continue ;; |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
|
|
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
esac |
|
|
case " $ac_configure_args " in |
|
|
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
|
*) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
|
|
ac_sep=" " ;; |
|
|
esac |
|
|
# Get rid of the leading space. |
|
|
done |
|
|
|
|
|
# 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 |
|
|
if test -s confdefs.h; then |
|
|
cat <<\_ASBOX |
|
|
## ----------- ## |
|
|
## confdefs.h. ## |
|
|
## ----------- ## |
|
|
_ASBOX |
|
|
echo |
|
|
sed "/^$/d" confdefs.h |
|
|
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 |
|
|
|
|
|
|
|
|
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. |
|
533 |
# Prefer explicitly selected file to automatically selected ones. |
# Prefer explicitly selected file to automatically selected ones. |
534 |
if test -z "$CONFIG_SITE"; then |
if test -z "$CONFIG_SITE"; then |
535 |
if test "x$prefix" != xNONE; then |
if test "x$prefix" != xNONE; then |
540 |
fi |
fi |
541 |
for ac_site_file in $CONFIG_SITE; do |
for ac_site_file in $CONFIG_SITE; do |
542 |
if test -r "$ac_site_file"; then |
if test -r "$ac_site_file"; then |
543 |
{ 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 |
|
544 |
. "$ac_site_file" |
. "$ac_site_file" |
545 |
fi |
fi |
546 |
done |
done |
547 |
|
|
548 |
if test -r "$cache_file"; then |
if test -r "$cache_file"; then |
549 |
# Some versions of bash will fail to source /dev/null (special |
echo "loading cache $cache_file" |
550 |
# 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 |
|
551 |
else |
else |
552 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
echo "creating cache $cache_file" |
553 |
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; }; } |
|
554 |
fi |
fi |
555 |
|
|
556 |
ac_ext=c |
ac_ext=c |
557 |
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
558 |
ac_cpp='$CPP $CPPFLAGS' |
ac_cpp='$CPP $CPPFLAGS' |
559 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
560 |
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' |
561 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
cross_compiling=$ac_cv_prog_cc_cross |
562 |
|
|
563 |
|
ac_exeext= |
564 |
|
ac_objext=o |
565 |
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
566 |
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
567 |
|
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
568 |
|
ac_n= ac_c=' |
569 |
|
' ac_t=' ' |
570 |
|
else |
571 |
|
ac_n=-n ac_c= ac_t= |
572 |
|
fi |
573 |
|
else |
574 |
|
ac_n= ac_c='\c' ac_t= |
575 |
|
fi |
|
|
|
|
|
|
576 |
|
|
577 |
|
|
|
ac_config_headers="$ac_config_headers h/gclincl.h" |
|
578 |
|
|
579 |
# some parts of this configure script are taken from the tcl configure.in |
# some parts of this configure script are taken from the tcl configure.in |
580 |
|
|
586 |
# Check whether --enable-maxpage or --disable-maxpage was given. |
# Check whether --enable-maxpage or --disable-maxpage was given. |
587 |
if test "${enable_maxpage+set}" = set; then |
if test "${enable_maxpage+set}" = set; then |
588 |
enableval="$enable_maxpage" |
enableval="$enable_maxpage" |
589 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
590 |
#define MAXPAGE $enable_maxpage |
#define MAXPAGE $enable_maxpage |
591 |
_ACEOF |
EOF |
592 |
|
|
593 |
|
|
594 |
fi; |
fi |
595 |
|
|
596 |
|
|
597 |
# Check whether --enable-vssize or --disable-vssize was given. |
# Check whether --enable-vssize or --disable-vssize was given. |
598 |
if test "${enable_vssize+set}" = set; then |
if test "${enable_vssize+set}" = set; then |
599 |
enableval="$enable_vssize" |
enableval="$enable_vssize" |
600 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
601 |
#define VSSIZE $enable_vssize |
#define VSSIZE $enable_vssize |
602 |
_ACEOF |
EOF |
603 |
|
|
604 |
|
|
605 |
|
fi |
606 |
|
|
|
fi; |
|
607 |
|
|
608 |
# Check whether --enable-machine or --disable-machine was given. |
# Check whether --enable-machine or --disable-machine was given. |
609 |
if test "${enable_machine+set}" = set; then |
if test "${enable_machine+set}" = set; then |
611 |
enable_machine=$enableval |
enable_machine=$enableval |
612 |
else |
else |
613 |
enable_machine="" |
enable_machine="" |
614 |
fi; |
fi |
615 |
|
|
616 |
|
|
617 |
# Check whether --enable-gmp or --disable-gmp was given. |
# Check whether --enable-gmp or --disable-gmp was given. |
618 |
if test "${enable_gmp+set}" = set; then |
if test "${enable_gmp+set}" = set; then |
620 |
use_gmp=$enableval |
use_gmp=$enableval |
621 |
else |
else |
622 |
use_gmp="yes" |
use_gmp="yes" |
623 |
fi; |
fi |
624 |
|
|
625 |
|
|
626 |
# Check whether --enable-notify or --disable-notify was given. |
# Check whether --enable-notify or --disable-notify was given. |
627 |
if test "${enable_notify+set}" = set; then |
if test "${enable_notify+set}" = set; then |
629 |
enable_notify=$enableval |
enable_notify=$enableval |
630 |
else |
else |
631 |
enable_notify="yes" |
enable_notify="yes" |
632 |
fi; |
fi |
633 |
|
|
634 |
|
|
635 |
# Check whether --enable-tkconfig or --disable-tkconfig was given. |
# Check whether --enable-tkconfig or --disable-tkconfig was given. |
636 |
if test "${enable_tkconfig+set}" = set; then |
if test "${enable_tkconfig+set}" = set; then |
638 |
TK_CONFIG_PREFIX=$enableval |
TK_CONFIG_PREFIX=$enableval |
639 |
else |
else |
640 |
TK_CONFIG_PREFIX="unknown" |
TK_CONFIG_PREFIX="unknown" |
641 |
fi; |
fi |
642 |
|
|
643 |
|
|
644 |
|
|
645 |
# Check whether --enable-tclconfig or --disable-tclconfig was given. |
# Check whether --enable-tclconfig or --disable-tclconfig was given. |
648 |
TCL_CONFIG_PREFIX=$enableval |
TCL_CONFIG_PREFIX=$enableval |
649 |
else |
else |
650 |
TCL_CONFIG_PREFIX="unknown" |
TCL_CONFIG_PREFIX="unknown" |
651 |
fi; |
fi |
652 |
|
|
653 |
|
|
654 |
# Check whether --enable-infodir or --disable-infodir was given. |
# Check whether --enable-infodir or --disable-infodir was given. |
655 |
if test "${enable_infodir+set}" = set; then |
if test "${enable_infodir+set}" = set; then |
657 |
INFO_DIR=$enableval |
INFO_DIR=$enableval |
658 |
else |
else |
659 |
INFO_DIR="unknown" |
INFO_DIR="unknown" |
660 |
fi; |
fi |
661 |
|
|
662 |
|
|
663 |
# Check whether --enable-emacsdir or --disable-emacsdir was given. |
# Check whether --enable-emacsdir or --disable-emacsdir was given. |
664 |
if test "${enable_emacsdir+set}" = set; then |
if test "${enable_emacsdir+set}" = set; then |
666 |
EMACS_SITE_LISP=$enableval |
EMACS_SITE_LISP=$enableval |
667 |
else |
else |
668 |
EMACS_SITE_LISP="unknown" |
EMACS_SITE_LISP="unknown" |
669 |
fi; |
fi |
670 |
|
|
671 |
|
|
672 |
# Check whether --enable-common-binary or --disable-common-binary was given. |
# Check whether --enable-common-binary or --disable-common-binary was given. |
673 |
if test "${enable_common_binary+set}" = set; then |
if test "${enable_common_binary+set}" = set; then |
675 |
use_common_binary=$enableval |
use_common_binary=$enableval |
676 |
else |
else |
677 |
use_common_binary="yes" |
use_common_binary="yes" |
678 |
fi; |
fi |
679 |
|
|
680 |
|
|
681 |
# |
# |
682 |
# Host information |
# Host information |
683 |
# |
# |
684 |
|
|
685 |
|
|
693 |
ac_aux_dir=$ac_dir |
ac_aux_dir=$ac_dir |
694 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
ac_install_sh="$ac_aux_dir/install.sh -c" |
695 |
break |
break |
|
elif test -f $ac_dir/shtool; then |
|
|
ac_aux_dir=$ac_dir |
|
|
ac_install_sh="$ac_aux_dir/shtool install -c" |
|
|
break |
|
696 |
fi |
fi |
697 |
done |
done |
698 |
if test -z "$ac_aux_dir"; then |
if test -z "$ac_aux_dir"; then |
699 |
{ { 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; } |
700 |
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
fi |
701 |
{ (exit 1); exit 1; }; } |
ac_config_guess=$ac_aux_dir/config.guess |
702 |
fi |
ac_config_sub=$ac_aux_dir/config.sub |
703 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
704 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
|
|
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
|
705 |
|
|
706 |
# Make sure we can run config.sub. |
# Make sure we can run config.sub. |
707 |
$ac_config_sub sun4 >/dev/null 2>&1 || |
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
708 |
{ { 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; } |
709 |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
fi |
710 |
{ (exit 1); exit 1; }; } |
|
711 |
|
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
712 |
echo "$as_me:$LINENO: checking build system type" >&5 |
echo "configure:713: checking host system type" >&5 |
|
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
|
if test "${ac_cv_build+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_cv_build_alias=$build_alias |
|
|
test -z "$ac_cv_build_alias" && |
|
|
ac_cv_build_alias=`$ac_config_guess` |
|
|
test -z "$ac_cv_build_alias" && |
|
|
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
{ { 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/'` |
|
713 |
|
|
714 |
|
host_alias=$host |
715 |
|
case "$host_alias" in |
716 |
|
NONE) |
717 |
|
case $nonopt in |
718 |
|
NONE) |
719 |
|
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
720 |
|
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
721 |
|
fi ;; |
722 |
|
*) host_alias=$nonopt ;; |
723 |
|
esac ;; |
724 |
|
esac |
725 |
|
|
726 |
|
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
727 |
|
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
728 |
|
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
729 |
|
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
730 |
|
echo "$ac_t""$host" 1>&6 |
731 |
|
|
732 |
canonical=$host |
canonical=$host |
733 |
## host=CPU-COMPANY-SYSTEM |
## host=CPU-COMPANY-SYSTEM |
734 |
echo "$as_me:$LINENO: result: host=$host" >&5 |
echo "$ac_t""host=$host" 1>&6 |
|
echo "${ECHO_T}host=$host" >&6 |
|
735 |
|
|
736 |
PROCESSOR_FLAGS="" |
PROCESSOR_FLAGS="" |
737 |
|
|
743 |
*86*linux*) |
*86*linux*) |
744 |
use=386-linux;; |
use=386-linux;; |
745 |
|
|
746 |
|
# m6800 not working with gcc-3.2 |
747 |
m68k*linux*) |
m68k*linux*) |
748 |
|
if test "$use_common_binary" = "yes"; then |
749 |
|
host=m68020-unknown-linux-gnu |
750 |
|
echo "The host is canonicalised to $host" |
751 |
|
fi |
752 |
use=m68k-linux;; |
use=m68k-linux;; |
753 |
|
|
754 |
alpha*linux*) |
alpha*linux*) |
808 |
IRIX3*) |
IRIX3*) |
809 |
use=sgi4d;; |
use=sgi4d;; |
810 |
esac ;; |
esac ;; |
811 |
|
|
812 |
|
|
813 |
m68k-apple-aux*) |
m68k-apple-aux*) |
814 |
use=mac2;; |
use=mac2;; |
889 |
then use=mingw |
then use=mingw |
890 |
else use=gnuwin95 |
else use=gnuwin95 |
891 |
fi;; |
fi;; |
892 |
|
|
893 |
esac |
esac |
894 |
|
|
895 |
|
|
904 |
def_custreloc="no" |
def_custreloc="no" |
905 |
def_oldgmp="no" |
def_oldgmp="no" |
906 |
def_pic="no"; |
def_pic="no"; |
907 |
case $use in |
case $use in |
908 |
*linux) |
*linux) |
909 |
ln -snf linux.defs h/$use.defs; |
ln -snf linux.defs h/$use.defs; |
910 |
case $use in |
case $use in |
926 |
# Check whether --enable-dlopen or --disable-dlopen was given. |
# Check whether --enable-dlopen or --disable-dlopen was given. |
927 |
if test "${enable_dlopen+set}" = set; then |
if test "${enable_dlopen+set}" = set; then |
928 |
enableval="$enable_dlopen" |
enableval="$enable_dlopen" |
929 |
|
: |
930 |
else |
else |
931 |
enable_dlopen="$def_dlopen" |
enable_dlopen="$def_dlopen" |
932 |
fi; |
fi |
933 |
|
|
934 |
# Check whether --enable-statsysbfd or --disable-statsysbfd was given. |
# Check whether --enable-statsysbfd or --disable-statsysbfd was given. |
935 |
if test "${enable_statsysbfd+set}" = set; then |
if test "${enable_statsysbfd+set}" = set; then |
936 |
enableval="$enable_statsysbfd" |
enableval="$enable_statsysbfd" |
937 |
|
: |
938 |
else |
else |
939 |
enable_statsysbfd="$def_statsysbfd" |
enable_statsysbfd="$def_statsysbfd" |
940 |
fi; |
fi |
941 |
|
|
942 |
# Check whether --enable-dynsysbfd or --disable-dynsysbfd was given. |
# Check whether --enable-dynsysbfd or --disable-dynsysbfd was given. |
943 |
if test "${enable_dynsysbfd+set}" = set; then |
if test "${enable_dynsysbfd+set}" = set; then |
944 |
enableval="$enable_dynsysbfd" |
enableval="$enable_dynsysbfd" |
945 |
|
: |
946 |
else |
else |
947 |
enable_dynsysbfd="no" |
enable_dynsysbfd="no" |
948 |
fi; |
fi |
949 |
|
|
950 |
# Check whether --enable-locbfd or --disable-locbfd was given. |
# Check whether --enable-locbfd or --disable-locbfd was given. |
951 |
if test "${enable_locbfd+set}" = set; then |
if test "${enable_locbfd+set}" = set; then |
952 |
enableval="$enable_locbfd" |
enableval="$enable_locbfd" |
953 |
|
: |
954 |
else |
else |
955 |
enable_locbfd="no" |
enable_locbfd="no" |
956 |
fi; |
fi |
957 |
|
|
958 |
# Check whether --enable-custreloc or --disable-custreloc was given. |
# Check whether --enable-custreloc or --disable-custreloc was given. |
959 |
if test "${enable_custreloc+set}" = set; then |
if test "${enable_custreloc+set}" = set; then |
960 |
enableval="$enable_custreloc" |
enableval="$enable_custreloc" |
961 |
|
: |
962 |
else |
else |
963 |
enable_custreloc="$def_custreloc" |
enable_custreloc="$def_custreloc" |
964 |
fi; |
fi |
965 |
|
|
966 |
# Check whether --enable-debug or --disable-debug was given. |
# Check whether --enable-debug or --disable-debug was given. |
967 |
if test "${enable_debug+set}" = set; then |
if test "${enable_debug+set}" = set; then |
968 |
enableval="$enable_debug" |
enableval="$enable_debug" |
969 |
|
: |
970 |
else |
else |
971 |
enable_debug="no" |
enable_debug="no" |
972 |
fi; |
fi |
973 |
|
|
974 |
# Check whether --enable-pic or --disable-pic was given. |
# Check whether --enable-pic or --disable-pic was given. |
975 |
if test "${enable_pic+set}" = set; then |
if test "${enable_pic+set}" = set; then |
976 |
enableval="$enable_pic" |
enableval="$enable_pic" |
977 |
|
: |
978 |
else |
else |
979 |
enable_pic="$def_pic" |
enable_pic="$def_pic" |
980 |
fi; |
fi |
981 |
|
|
982 |
|
|
983 |
# Check whether --enable-oldgmp or --disable-oldgmp was given. |
# Check whether --enable-oldgmp or --disable-oldgmp was given. |
984 |
if test "${enable_oldgmp+set}" = set; then |
if test "${enable_oldgmp+set}" = set; then |
985 |
enableval="$enable_oldgmp" |
enableval="$enable_oldgmp" |
986 |
|
: |
987 |
else |
else |
988 |
enable_oldgmp="$def_oldgmp" |
enable_oldgmp="$def_oldgmp" |
989 |
fi; |
fi |
990 |
|
|
991 |
|
|
992 |
# Check whether --enable-dynsysgmp or --disable-dynsysgmp was given. |
# Check whether --enable-dynsysgmp or --disable-dynsysgmp was given. |
993 |
if test "${enable_dynsysgmp+set}" = set; then |
if test "${enable_dynsysgmp+set}" = set; then |
994 |
enableval="$enable_dynsysgmp" |
enableval="$enable_dynsysgmp" |
995 |
|
: |
996 |
else |
else |
997 |
enable_dynsysgmp="no" |
enable_dynsysgmp="no" |
998 |
fi; |
fi |
999 |
|
|
1000 |
|
|
1001 |
load_opt="0" |
load_opt="0" |
1002 |
if test "$enable_dlopen" = "yes" ; then |
if test "$enable_dlopen" = "yes" ; then |
1042 |
## |
## |
1043 |
#if test "$use" = "unknown" ; then |
#if test "$use" = "unknown" ; then |
1044 |
#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"` |
1045 |
#echo got canonical=$canonical, but was not recognized. |
#echo got canonical=$canonical, but was not recognized. |
1046 |
#echo Unable to guess type to use. Try one of |
#echo Unable to guess type to use. Try one of |
1047 |
#exit(1) |
#exit(1) |
1048 |
#fi |
#fi |
1049 |
|
|
1050 |
echo "$as_me:$LINENO: result: use=$use" >&5 |
echo "$ac_t""use=$use" 1>&6 |
|
echo "${ECHO_T}use=$use" >&6 |
|
1051 |
|
|
1052 |
|
|
1053 |
# |
# |
1054 |
# System programs |
# System programs |
1055 |
# |
# |
1056 |
|
|
1057 |
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. |
|
1058 |
set dummy gcc; ac_word=$2 |
set dummy gcc; ac_word=$2 |
1059 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1060 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:1061: checking for $ac_word" >&5 |
1061 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1062 |
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 |
|
1063 |
else |
else |
1064 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1065 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1066 |
else |
else |
1067 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1068 |
for as_dir in $PATH |
ac_dummy="$PATH" |
1069 |
do |
for ac_dir in $ac_dummy; do |
1070 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
1071 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
1072 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_CC="gcc" |
1073 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
1074 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
fi |
1075 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
1076 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1077 |
fi |
fi |
1078 |
fi |
fi |
1079 |
CC=$ac_cv_prog_CC |
CC="$ac_cv_prog_CC" |
1080 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1081 |
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 |
|
|
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="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 |
|
1082 |
else |
else |
1083 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1084 |
fi |
fi |
1085 |
|
|
|
CC=$ac_ct_CC |
|
|
else |
|
|
CC="$ac_cv_prog_CC" |
|
|
fi |
|
|
|
|
|
fi |
|
1086 |
if test -z "$CC"; then |
if test -z "$CC"; then |
1087 |
# 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. |
1088 |
set dummy cc; ac_word=$2 |
set dummy cc; ac_word=$2 |
1089 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1090 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:1091: checking for $ac_word" >&5 |
1091 |
if test "${ac_cv_prog_CC+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1092 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1093 |
else |
else |
1094 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1095 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1096 |
else |
else |
1097 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1098 |
ac_prog_rejected=no |
ac_prog_rejected=no |
1099 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
ac_dummy="$PATH" |
1100 |
for as_dir in $PATH |
for ac_dir in $ac_dummy; do |
1101 |
do |
test -z "$ac_dir" && ac_dir=. |
1102 |
IFS=$as_save_IFS |
if test -f $ac_dir/$ac_word; then |
1103 |
test -z "$as_dir" && as_dir=. |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
1104 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_prog_rejected=yes |
1105 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
continue |
1106 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
fi |
1107 |
ac_prog_rejected=yes |
ac_cv_prog_CC="cc" |
1108 |
continue |
break |
1109 |
fi |
fi |
1110 |
ac_cv_prog_CC="cc" |
done |
1111 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
IFS="$ac_save_ifs" |
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1112 |
if test $ac_prog_rejected = yes; then |
if test $ac_prog_rejected = yes; then |
1113 |
# 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. |
1114 |
set dummy $ac_cv_prog_CC |
set dummy $ac_cv_prog_CC |
1115 |
shift |
shift |
1116 |
if test $# != 0; then |
if test $# -gt 0; then |
1117 |
# We chose a different compiler from the bogus one. |
# We chose a different compiler from the bogus one. |
1118 |
# However, it has the same basename, so the bogon will be chosen |
# However, it has the same basename, so the bogon will be chosen |
1119 |
# 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. |
1120 |
shift |
shift |
1121 |
set dummy "$as_dir/$ac_word" ${1+"$@"} |
set dummy "$ac_dir/$ac_word" "$@" |
1122 |
shift |
shift |
1123 |
ac_cv_prog_CC="$@" |
ac_cv_prog_CC="$@" |
1124 |
fi |
fi |
1125 |
fi |
fi |
1126 |
fi |
fi |
1127 |
fi |
fi |
1128 |
CC=$ac_cv_prog_CC |
CC="$ac_cv_prog_CC" |
1129 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1130 |
echo "$as_me:$LINENO: result: $CC" >&5 |
echo "$ac_t""$CC" 1>&6 |
|
echo "${ECHO_T}$CC" >&6 |
|
1131 |
else |
else |
1132 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1133 |
fi |
fi |
1134 |
|
|
1135 |
fi |
if test -z "$CC"; then |
1136 |
if test -z "$CC"; then |
case "`uname -s`" in |
1137 |
if test -n "$ac_tool_prefix"; then |
*win32* | *WIN32*) |
1138 |
for ac_prog in cl |
# Extract the first word of "cl", so it can be a program name with args. |
1139 |
do |
set dummy cl; ac_word=$2 |
1140 |
# 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 |
1141 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
echo "configure:1142: checking for $ac_word" >&5 |
1142 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1143 |
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 |
|
1144 |
else |
else |
1145 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1146 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1147 |
else |
else |
1148 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1149 |
for as_dir in $PATH |
ac_dummy="$PATH" |
1150 |
do |
for ac_dir in $ac_dummy; do |
1151 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
1152 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
1153 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_CC="cl" |
1154 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
1155 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
fi |
1156 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
1157 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1158 |
fi |
fi |
1159 |
fi |
fi |
1160 |
CC=$ac_cv_prog_CC |
CC="$ac_cv_prog_CC" |
1161 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1162 |
echo "$as_me:$LINENO: result: $CC" >&5 |
echo "$ac_t""$CC" 1>&6 |
|
echo "${ECHO_T}$CC" >&6 |
|
1163 |
else |
else |
1164 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1165 |
fi |
fi |
1166 |
|
;; |
1167 |
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 |
|
1168 |
fi |
fi |
1169 |
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 |
|
1170 |
fi |
fi |
1171 |
|
|
1172 |
test -n "$ac_ct_CC" && break |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1173 |
done |
echo "configure:1174: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1174 |
|
|
1175 |
CC=$ac_ct_CC |
ac_ext=c |
1176 |
fi |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1177 |
|
ac_cpp='$CPP $CPPFLAGS' |
1178 |
fi |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1179 |
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1180 |
|
cross_compiling=$ac_cv_prog_cc_cross |
1181 |
|
|
1182 |
|
cat > conftest.$ac_ext << EOF |
1183 |
|
|
1184 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
#line 1185 "configure" |
1185 |
echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
#include "confdefs.h" |
|
{ (exit 1); exit 1; }; } |
|
|
|
|
|
# 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" |
|
|
#include "confdefs.h" |
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
1186 |
|
|
1187 |
; |
main(){return(0);} |
1188 |
return 0; |
EOF |
1189 |
} |
if { (eval echo configure:1190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1190 |
_ACEOF |
ac_cv_prog_cc_works=yes |
1191 |
ac_clean_files_save=$ac_clean_files |
# If we can't run a trivial program, we are probably using a cross compiler. |
1192 |
ac_clean_files="$ac_clean_files a.out a.exe" |
if (./conftest; exit) 2>/dev/null; then |
1193 |
# Try to create an executable without -o first, disregard a.out. |
ac_cv_prog_cc_cross=no |
|
# 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= |
|
|
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
|
|
ls a.out conftest 2>/dev/null; |
|
|
ls a.* conftest.* 2>/dev/null`; do |
|
|
case $ac_file in |
|
|
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
|
|
a.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 --akim. |
|
|
export ac_cv_exeext |
|
|
break;; |
|
|
* ) break;; |
|
|
esac |
|
|
done |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
|
|
echo "$as_me: error: C compiler cannot create executables" >&2;} |
|
|
{ (exit 77); exit 77; }; } |
|
|
fi |
|
|
|
|
|
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 |
|
1194 |
else |
else |
1195 |
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'." >&5 |
|
|
echo "$as_me: error: cannot run C compiled programs. |
|
|
If you meant to cross compile, use \`--host'." >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
1196 |
fi |
fi |
|
fi |
|
|
echo "$as_me:$LINENO: result: yes" >&5 |
|
|
echo "${ECHO_T}yes" >&6 |
|
|
|
|
|
rm -f a.out a.exe conftest$ac_cv_exeext |
|
|
ac_clean_files=$ac_clean_files_save |
|
|
# Check the compiler produces executables we can run. If not, either |
|
|
# the compiler is broken, or we cross compile. |
|
|
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
|
|
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
|
|
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
|
|
echo "${ECHO_T}$cross_compiling" >&6 |
|
|
|
|
|
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
|
|
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
|
|
if { (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); }; then |
|
|
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
|
# work properly (i.e., refer to `conftest.exe'), while it won't with |
|
|
# `rm'. |
|
|
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
|
|
case $ac_file in |
|
|
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
|
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
|
export ac_cv_exeext |
|
|
break;; |
|
|
* ) break;; |
|
|
esac |
|
|
done |
|
1197 |
else |
else |
1198 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
echo "configure: failed program was:" >&5 |
1199 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
cat conftest.$ac_ext >&5 |
1200 |
{ (exit 1); exit 1; }; } |
ac_cv_prog_cc_works=no |
1201 |
fi |
fi |
1202 |
|
rm -fr conftest* |
1203 |
rm -f conftest$ac_cv_exeext |
ac_ext=c |
1204 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1205 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
ac_cpp='$CPP $CPPFLAGS' |
1206 |
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1207 |
rm -f conftest.$ac_ext |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1208 |
EXEEXT=$ac_cv_exeext |
cross_compiling=$ac_cv_prog_cc_cross |
1209 |
ac_exeext=$EXEEXT |
|
1210 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1211 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
if test $ac_cv_prog_cc_works = no; then |
1212 |
if test "${ac_cv_objext+set}" = set; then |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1213 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
fi |
1214 |
else |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1215 |
cat >conftest.$ac_ext <<_ACEOF |
echo "configure:1216: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1216 |
#line $LINENO "configure" |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1217 |
#include "confdefs.h" |
cross_compiling=$ac_cv_prog_cc_cross |
1218 |
|
|
1219 |
#ifdef F77_DUMMY_MAIN |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1220 |
# ifdef __cplusplus |
echo "configure:1221: checking whether we are using GNU C" >&5 |
1221 |
extern "C" |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1222 |
# endif |
echo $ac_n "(cached) $ac_c" 1>&6 |
1223 |
int F77_DUMMY_MAIN() { return 1; } |
else |
1224 |
|
cat > conftest.c <<EOF |
1225 |
|
#ifdef __GNUC__ |
1226 |
|
yes; |
1227 |
#endif |
#endif |
1228 |
int |
EOF |
1229 |
main () |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1230 |
{ |
ac_cv_prog_gcc=yes |
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_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 ) ;; |
|
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
|
break;; |
|
|
esac |
|
|
done |
|
1231 |
else |
else |
1232 |
echo "$as_me: failed program was:" >&5 |
ac_cv_prog_gcc=no |
1233 |
cat conftest.$ac_ext >&5 |
fi |
1234 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
fi |
|
echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&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" |
|
|
#include "confdefs.h" |
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
#ifndef __GNUC__ |
|
|
choke me |
|
|
#endif |
|
1235 |
|
|
1236 |
; |
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
|
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 |
|
|
cat 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" |
|
|
#include "confdefs.h" |
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
1237 |
|
|
1238 |
; |
if test $ac_cv_prog_gcc = yes; then |
1239 |
return 0; |
GCC=yes |
1240 |
} |
else |
1241 |
_ACEOF |
GCC= |
1242 |
rm -f conftest.$ac_objext |
fi |
1243 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
1244 |
(eval $ac_compile) 2>&5 |
ac_test_CFLAGS="${CFLAGS+set}" |
1245 |
ac_status=$? |
ac_save_CFLAGS="$CFLAGS" |
1246 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
CFLAGS= |
1247 |
(exit $ac_status); } && |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1248 |
{ ac_try='test -s conftest.$ac_objext' |
echo "configure:1249: checking whether ${CC-cc} accepts -g" >&5 |
1249 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1250 |
(eval $ac_try) 2>&5 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1251 |
ac_status=$? |
else |
1252 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo 'void f(){}' > conftest.c |
1253 |
(exit $ac_status); }; }; then |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
1254 |
ac_cv_prog_cc_g=yes |
ac_cv_prog_cc_g=yes |
1255 |
else |
else |
1256 |
echo "$as_me: failed program was:" >&5 |
ac_cv_prog_cc_g=no |
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_prog_cc_g=no |
|
1257 |
fi |
fi |
1258 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
1259 |
|
|
1260 |
fi |
fi |
1261 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
1262 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
1263 |
if test "$ac_test_CFLAGS" = set; then |
if test "$ac_test_CFLAGS" = set; then |
1264 |
CFLAGS=$ac_save_CFLAGS |
CFLAGS="$ac_save_CFLAGS" |
1265 |
elif test $ac_cv_prog_cc_g = yes; then |
elif test $ac_cv_prog_cc_g = yes; then |
1266 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
1267 |
CFLAGS="-g -O2" |
CFLAGS="-g -O2" |
1275 |
CFLAGS= |
CFLAGS= |
1276 |
fi |
fi |
1277 |
fi |
fi |
|
# 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" |
|
|
#include "confdefs.h" |
|
|
#include <stdlib.h> |
|
|
$ac_declaration |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
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 |
|
|
cat conftest.$ac_ext >&5 |
|
|
continue |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
$ac_declaration |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
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 |
|
|
cat 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 |
|
1278 |
|
|
1279 |
else |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1280 |
echo "$as_me: failed program was:" >&5 |
echo "configure:1281: checking how to run the C preprocessor" >&5 |
|
cat 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 |
|
1281 |
# On Suns, sometimes $CPP names a directory. |
# On Suns, sometimes $CPP names a directory. |
1282 |
if test -n "$CPP" && test -d "$CPP"; then |
if test -n "$CPP" && test -d "$CPP"; then |
1283 |
CPP= |
CPP= |
1284 |
fi |
fi |
1285 |
if test -z "$CPP"; then |
if test -z "$CPP"; then |
1286 |
if test "${ac_cv_prog_CPP+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
1287 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1288 |
else |
else |
1289 |
# Double quotes because CPP needs to be expanded |
# This must be in double quotes, not single quotes, because CPP may get |
1290 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
1291 |
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. |
|
1292 |
# 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, |
1293 |
# not just through cpp. "Syntax error" is here to catch this case. |
# not just through cpp. |
1294 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1295 |
#line $LINENO "configure" |
#line 1296 "configure" |
1296 |
#include "confdefs.h" |
#include "confdefs.h" |
1297 |
#include <assert.h> |
#include <assert.h> |
1298 |
Syntax error |
Syntax Error |
1299 |
_ACEOF |
EOF |
1300 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1301 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
{ (eval echo configure:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1302 |
ac_status=$? |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1303 |
egrep -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 |
|
1304 |
: |
: |
1305 |
else |
else |
1306 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
1307 |
|
echo "configure: failed program was:" >&5 |
1308 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
1309 |
# Broken: fails on valid input. |
rm -rf conftest* |
1310 |
continue |
CPP="${CC-cc} -E -traditional-cpp" |
1311 |
fi |
cat > conftest.$ac_ext <<EOF |
1312 |
rm -f conftest.err conftest.$ac_ext |
#line 1313 "configure" |
1313 |
|
#include "confdefs.h" |
1314 |
# OK, works on sane cases. Now check whether non-existent headers |
#include <assert.h> |
1315 |
# can be detected and how. |
Syntax Error |
1316 |
cat >conftest.$ac_ext <<_ACEOF |
EOF |
1317 |
#line $LINENO "configure" |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1318 |
#include "confdefs.h" |
{ (eval echo configure:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1319 |
#include <ac_nonexistent.h> |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1320 |
_ACEOF |
if test -z "$ac_err"; then |
1321 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
: |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
egrep -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 |
|
1322 |
else |
else |
1323 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
1324 |
|
echo "configure: failed program was:" >&5 |
1325 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
1326 |
# Passes both tests. |
rm -rf conftest* |
1327 |
ac_preproc_ok=: |
CPP="${CC-cc} -nologo -E" |
1328 |
break |
cat > conftest.$ac_ext <<EOF |
1329 |
fi |
#line 1330 "configure" |
|
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" |
|
1330 |
#include "confdefs.h" |
#include "confdefs.h" |
1331 |
#include <assert.h> |
#include <assert.h> |
1332 |
Syntax error |
Syntax Error |
1333 |
_ACEOF |
EOF |
1334 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1335 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
{ (eval echo configure:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1336 |
ac_status=$? |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1337 |
egrep -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 |
|
1338 |
: |
: |
1339 |
else |
else |
1340 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
1341 |
|
echo "configure: failed program was:" >&5 |
1342 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
1343 |
# Broken: fails on valid input. |
rm -rf conftest* |
1344 |
continue |
CPP=/lib/cpp |
1345 |
fi |
fi |
1346 |
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" |
|
|
#include "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=$? |
|
|
egrep -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 |
|
1347 |
fi |
fi |
1348 |
if test -z "$ac_cpp_err"; then |
rm -f conftest* |
|
# Broken: success on invalid input. |
|
|
continue |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
# Passes both tests. |
|
|
ac_preproc_ok=: |
|
|
break |
|
1349 |
fi |
fi |
1350 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
1351 |
|
ac_cv_prog_CPP="$CPP" |
1352 |
done |
fi |
1353 |
# 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 |
|
|
: |
|
1354 |
else |
else |
1355 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
ac_cv_prog_CPP="$CPP" |
|
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
1356 |
fi |
fi |
1357 |
|
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 |
|
1358 |
|
|
1359 |
|
|
1360 |
|
|
1386 |
TO2FLAGS="-O" |
TO2FLAGS="-O" |
1387 |
fi |
fi |
1388 |
|
|
1389 |
case $use in |
case $use in |
1390 |
*linux) |
*linux) |
1391 |
case $use in |
case $use in |
1392 |
alpha*) |
alpha*) |
1399 |
TO2FLAGS="" |
TO2FLAGS="" |
1400 |
;; |
;; |
1401 |
arm*) |
arm*) |
1402 |
TCFLAGS="$TCFLAGS -mlong-calls";; |
TCFLAGS="$TCFLAGS -mlong-calls";; |
1403 |
powerpc*) |
powerpc*) |
1404 |
if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then |
if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then |
1405 |
echo Reducing optimization for buggy gcc-3.2 |
echo Reducing optimization for buggy gcc-3.2 |
1406 |
TO3FLAGS="-O -fomit-frame-pointer" |
TO3FLAGS="-O -fomit-frame-pointer" |
1416 |
# 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 |
1417 |
# there are a few systems, like Next, where this doesn't work. |
# there are a few systems, like Next, where this doesn't work. |
1418 |
|
|
1419 |
echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5 |
echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6 |
1420 |
echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6 |
echo "configure:1421: checking system version (for dynamic loading)" >&5 |
1421 |
if machine=`uname -m` ; then true; else machine=unknown ; fi |
if machine=`uname -m` ; then true; else machine=unknown ; fi |
1422 |
|
|
1423 |
for ac_prog in gawk nawk awk |
for ac_prog in gawk nawk awk |
1424 |
do |
do |
1425 |
# 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. |
1426 |
set dummy $ac_prog; ac_word=$2 |
set dummy $ac_prog; ac_word=$2 |
1427 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1428 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:1429: checking for $ac_word" >&5 |
1429 |
if test "${ac_cv_prog_AWK+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1430 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1431 |
else |
else |
1432 |
if test -n "$AWK"; then |
if test -n "$AWK"; then |
1433 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1434 |
else |
else |
1435 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1436 |
for as_dir in $PATH |
ac_dummy="$PATH" |
1437 |
do |
for ac_dir in $ac_dummy; do |
1438 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
1439 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
1440 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_AWK="$ac_prog" |
1441 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
1442 |
ac_cv_prog_AWK="$ac_prog" |
fi |
1443 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
1444 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1445 |
fi |
fi |
1446 |
fi |
fi |
1447 |
AWK=$ac_cv_prog_AWK |
AWK="$ac_cv_prog_AWK" |
1448 |
if test -n "$AWK"; then |
if test -n "$AWK"; then |
1449 |
echo "$as_me:$LINENO: result: $AWK" >&5 |
echo "$ac_t""$AWK" 1>&6 |
|
echo "${ECHO_T}$AWK" >&6 |
|
1450 |
else |
else |
1451 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1452 |
fi |
fi |
1453 |
|
|
1454 |
test -n "$AWK" && break |
test -n "$AWK" && break |
1455 |
done |
done |
1456 |
test -n "$AWK" || AWK="""" |
test -n "$AWK" || AWK="""" |
1457 |
|
|
1458 |
|
|
1459 |
for ac_prog in makeinfo |
for ac_prog in makeinfo |
1460 |
do |
do |
1461 |
# 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. |
1462 |
set dummy $ac_prog; ac_word=$2 |
set dummy $ac_prog; ac_word=$2 |
1463 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1464 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:1465: checking for $ac_word" >&5 |
1465 |
if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then |
1466 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1467 |
else |
else |
1468 |
if test -n "$MAKEINFO"; then |
if test -n "$MAKEINFO"; then |
1469 |
ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
1470 |
else |
else |
1471 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1472 |
for as_dir in $PATH |
ac_dummy="$PATH" |
1473 |
do |
for ac_dir in $ac_dummy; do |
1474 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
1475 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
1476 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_MAKEINFO="$ac_prog" |
1477 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
1478 |
ac_cv_prog_MAKEINFO="$ac_prog" |
fi |
1479 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
1480 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1481 |
fi |
fi |
1482 |
fi |
fi |
1483 |
MAKEINFO=$ac_cv_prog_MAKEINFO |
MAKEINFO="$ac_cv_prog_MAKEINFO" |
1484 |
if test -n "$MAKEINFO"; then |
if test -n "$MAKEINFO"; then |
1485 |
echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
echo "$ac_t""$MAKEINFO" 1>&6 |
|
echo "${ECHO_T}$MAKEINFO" >&6 |
|
1486 |
else |
else |
1487 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1488 |
fi |
fi |
1489 |
|
|
1490 |
test -n "$MAKEINFO" && break |
test -n "$MAKEINFO" && break |
1491 |
done |
done |
1492 |
test -n "$MAKEINFO" || MAKEINFO=""false"" |
test -n "$MAKEINFO" || MAKEINFO=""false"" |
1493 |
|
|
1498 |
else |
else |
1499 |
system=`uname -s`-`uname -r` |
system=`uname -s`-`uname -r` |
1500 |
if test "$?" -ne 0 ; then |
if test "$?" -ne 0 ; then |
1501 |
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 |
|
1502 |
system=unknown |
system=unknown |
1503 |
else |
else |
1504 |
# Special check for weird MP-RAS system (uname returns weird |
# Special check for weird MP-RAS system (uname returns weird |
1505 |
# results, and the version is kept in special file). |
# results, and the version is kept in special file). |
1506 |
|
|
1507 |
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 |
1508 |
system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'` |
system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'` |
1509 |
fi |
fi |
1510 |
if test "`uname -s`" = "AIX" ; then |
if test "`uname -s`" = "AIX" ; then |
1511 |
system=AIX-`uname -v`.`uname -r` |
system=AIX-`uname -v`.`uname -r` |
1512 |
fi |
fi |
1513 |
echo "$as_me:$LINENO: result: $system" >&5 |
echo "$ac_t""$system" 1>&6 |
|
echo "${ECHO_T}$system" >&6 |
|
1514 |
fi |
fi |
1515 |
fi |
fi |
1516 |
|
|
1525 |
MP_INLCUDE="" |
MP_INLCUDE="" |
1526 |
if test $use_gmp = yes ; then |
if test $use_gmp = yes ; then |
1527 |
|
|
1528 |
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 |
1529 |
echo $ECHO_N "checking use_gmp=yes, doing configure in gmp directory... $ECHO_C" >&6 |
echo "configure:1530: checking use_gmp=yes, doing configure in gmp directory" >&5 |
1530 |
echo |
echo |
1531 |
echo "#" |
echo "#" |
1532 |
echo "#" |
echo "#" |
1542 |
fi |
fi |
1543 |
|
|
1544 |
if test "$use_common_binary" = "yes"; then |
if test "$use_common_binary" = "yes"; then |
1545 |
cd $GMPDIR && ./configure --build=$host && cd .. |
cd $GMPDIR && ./configure --host=$host && cd .. |
1546 |
else |
else |
1547 |
cd $GMPDIR && ./configure && cd .. |
cd $GMPDIR && ./configure && cd .. |
1548 |
fi |
fi |
1549 |
#MY_SUBDIRS="$MY_SUBDIRS $GMPDIR" |
#MY_SUBDIRS="$MY_SUBDIRS $GMPDIR" |
1550 |
|
|
1551 |
echo "#" |
echo "#" |
1552 |
echo "#" |
echo "#" |
1557 |
|
|
1558 |
PATCHED_SYMBOLS="" |
PATCHED_SYMBOLS="" |
1559 |
if test "$enable_dynsysgmp" = "yes" ; then |
if test "$enable_dynsysgmp" = "yes" ; then |
1560 |
|
ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'` |
1561 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
echo $ac_n "checking for gmp.h""... $ac_c" 1>&6 |
1562 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
echo "configure:1563: checking for gmp.h" >&5 |
1563 |
if test "${ac_cv_header_stdc+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1564 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <stdlib.h> |
|
|
#include <stdarg.h> |
|
|
#include <string.h> |
|
|
#include <float.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=$? |
|
|
egrep -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_cv_header_stdc=yes |
|
1565 |
else |
else |
1566 |
echo "$as_me: failed program was:" >&5 |
cat > conftest.$ac_ext <<EOF |
1567 |
cat conftest.$ac_ext >&5 |
#line 1568 "configure" |
|
ac_cv_header_stdc=no |
|
|
fi |
|
|
rm -f conftest.err 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" |
|
|
#include "confdefs.h" |
|
|
#include <string.h> |
|
|
|
|
|
_ACEOF |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
egrep "memchr" >/dev/null 2>&1; then |
|
|
: |
|
|
else |
|
|
ac_cv_header_stdc=no |
|
|
fi |
|
|
rm -f conftest* |
|
|
|
|
|
fi |
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
1568 |
#include "confdefs.h" |
#include "confdefs.h" |
1569 |
#include <stdlib.h> |
#include <gmp.h> |
1570 |
|
EOF |
1571 |
_ACEOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1572 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
{ (eval echo configure:1573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1573 |
egrep "free" >/dev/null 2>&1; then |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1574 |
: |
if test -z "$ac_err"; then |
1575 |
|
rm -rf conftest* |
1576 |
|
eval "ac_cv_header_$ac_safe=yes" |
1577 |
else |
else |
1578 |
ac_cv_header_stdc=no |
echo "$ac_err" >&5 |
1579 |
|
echo "configure: failed program was:" >&5 |
1580 |
|
cat conftest.$ac_ext >&5 |
1581 |
|
rm -rf conftest* |
1582 |
|
eval "ac_cv_header_$ac_safe=no" |
1583 |
fi |
fi |
1584 |
rm -f conftest* |
rm -f conftest* |
|
|
|
1585 |
fi |
fi |
1586 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1587 |
if test $ac_cv_header_stdc = yes; then |
echo "$ac_t""yes" 1>&6 |
1588 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6 |
1589 |
if test "$cross_compiling" = yes; then |
echo "configure:1590: checking for __gmpz_init in -lgmp" >&5 |
1590 |
: |
ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'` |
1591 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1592 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1593 |
else |
else |
1594 |
cat >conftest.$ac_ext <<_ACEOF |
ac_save_LIBS="$LIBS" |
1595 |
#line $LINENO "configure" |
LIBS="-lgmp $LIBS" |
1596 |
|
cat > conftest.$ac_ext <<EOF |
1597 |
|
#line 1598 "configure" |
1598 |
#include "confdefs.h" |
#include "confdefs.h" |
1599 |
#include <ctype.h> |
/* Override any gcc2 internal prototype to avoid an error. */ |
1600 |
#if ((' ' & 0x0FF) == 0x020) |
/* We use char because int might match the return type of a gcc2 |
1601 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
builtin and then its argument prototype would still apply. */ |
1602 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
char __gmpz_init(); |
|
#else |
|
|
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
|
|
|| ('j' <= (c) && (c) <= 'r') \ |
|
|
|| ('s' <= (c) && (c) <= 'z')) |
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
#endif |
|
|
|
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
int |
|
|
main () |
|
|
{ |
|
|
int i; |
|
|
for (i = 0; i < 256; i++) |
|
|
if (XOR (islower (i), ISLOWER (i)) |
|
|
|| toupper (i) != TOUPPER (i)) |
|
|
exit(2); |
|
|
exit (0); |
|
|
} |
|
|
_ACEOF |
|
|
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 |
|
|
: |
|
|
else |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
( exit $ac_status ) |
|
|
ac_cv_header_stdc=no |
|
|
fi |
|
|
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
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 |
|
|
|
|
|
fi |
|
|
|
|
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
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" |
|
|
#include "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 |
|
|
cat 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 |
|
|
|
|
|
fi |
|
|
|
|
|
done |
|
|
|
|
1603 |
|
|
1604 |
if test "${ac_cv_header_gmp_h+set}" = set; then |
int main() { |
1605 |
echo "$as_me:$LINENO: checking for gmp.h" >&5 |
__gmpz_init() |
1606 |
echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6 |
; return 0; } |
1607 |
if test "${ac_cv_header_gmp_h+set}" = set; then |
EOF |
1608 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1609 |
fi |
rm -rf conftest* |
1610 |
echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5 |
eval "ac_cv_lib_$ac_lib_var=yes" |
|
echo "${ECHO_T}$ac_cv_header_gmp_h" >&6 |
|
|
else |
|
|
# Is the header compilable? |
|
|
echo "$as_me:$LINENO: checking gmp.h usability" >&5 |
|
|
echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "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 |
|
|
cat 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" |
|
|
#include "confdefs.h" |
|
|
#include <gmp.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=$? |
|
|
egrep -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 |
|
1611 |
else |
else |
1612 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
1613 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
1614 |
ac_header_preproc=no |
rm -rf conftest* |
1615 |
fi |
eval "ac_cv_lib_$ac_lib_var=no" |
|
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;};; |
|
|
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;};; |
|
|
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 |
|
1616 |
fi |
fi |
1617 |
echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5 |
rm -f conftest* |
1618 |
echo "${ECHO_T}$ac_cv_header_gmp_h" >&6 |
LIBS="$ac_save_LIBS" |
1619 |
|
|
1620 |
fi |
fi |
1621 |
if test $ac_cv_header_gmp_h = yes; then |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1622 |
echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6 |
|
|
if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
LIBS="-lgmp $LIBS" |
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "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 __gmpz_init (); |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
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 |
|
|
cat 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 |
|
1623 |
MPFILES=$GMPDIR/mpn/mul_n.o |
MPFILES=$GMPDIR/mpn/mul_n.o |
1624 |
PATCHED_SYMBOLS=__gmpn_toom3_mul_n |
PATCHED_SYMBOLS=__gmpn_toom3_mul_n |
1625 |
if test "$use" = "m68k-linux" ; then |
if test "$use" = "m68k-linux" ; then |
1632 |
MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -1l | $AWK '{print $3}' | tr -d '"'` |
MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -1l | $AWK '{print $3}' | tr -d '"'` |
1633 |
rm -f foo.c |
rm -f foo.c |
1634 |
else |
else |
1635 |
echo "Cannot use dynamic gmp lib" ; exit 1 |
echo "$ac_t""no" 1>&6 |
1636 |
|
echo "Cannot use dynamic gmp lib" ; exit 1 |
1637 |
fi |
fi |
1638 |
|
|
1639 |
else |
else |
1640 |
echo "Cannot use dynamic gmp lib" ; exit 1 |
echo "$ac_t""no" 1>&6 |
1641 |
|
echo "Cannot use dynamic gmp lib" ; exit 1 |
1642 |
fi |
fi |
1643 |
|
|
1644 |
|
|
1645 |
|
else |
|
else |
|
1646 |
|
|
1647 |
cp $GMPDIR/gmp.h h/gmp.h |
cp $GMPDIR/gmp.h h/gmp.h |
1648 |
MP_INCLUDE=h/gmp.h |
MP_INCLUDE=h/gmp.h |
1650 |
|
|
1651 |
fi |
fi |
1652 |
|
|
1653 |
echo "$as_me:$LINENO: checking \"for size of gmp limbs\"" >&5 |
echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6 |
1654 |
echo $ECHO_N "checking \"for size of gmp limbs\"... $ECHO_C" >&6 |
echo "configure:1655: checking "for size of gmp limbs"" >&5 |
1655 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
1656 |
mpsize=0 |
mpsize=0 |
1657 |
else |
else |
1658 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1659 |
#line $LINENO "configure" |
#line 1660 "configure" |
1660 |
#include "confdefs.h" |
#include "confdefs.h" |
1661 |
#include <stdio.h> |
#include <stdio.h> |
1662 |
#include "$MP_INCLUDE" |
#include "$MP_INCLUDE" |
1666 |
fclose(fp); |
fclose(fp); |
1667 |
return 0; |
return 0; |
1668 |
} |
} |
1669 |
_ACEOF |
EOF |
1670 |
rm -f conftest$ac_exeext |
if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1671 |
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 |
|
1672 |
mpsize=`cat conftest1` |
mpsize=`cat conftest1` |
1673 |
else |
else |
1674 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
1675 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
1676 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
1677 |
( exit $ac_status ) |
mpsize=0 |
|
mpsize=0 |
|
1678 |
fi |
fi |
1679 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
1680 |
fi |
fi |
1681 |
|
|
1682 |
if test "$mpsize" = "0" ; then |
if test "$mpsize" = "0" ; then |
1683 |
echo "Cannot determine mpsize" |
echo "Cannot determine mpsize" |
1684 |
exit 1 |
exit 1 |
1685 |
fi |
fi |
1686 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
1687 |
#define MP_LIMB_BYTES $mpsize |
#define MP_LIMB_BYTES $mpsize |
1688 |
_ACEOF |
EOF |
1689 |
|
|
1690 |
echo "$as_me:$LINENO: result: $mpsize" >&5 |
echo "$ac_t""$mpsize" 1>&6 |
|
echo "${ECHO_T}$mpsize" >&6 |
|
1691 |
|
|
1692 |
echo "$as_me:$LINENO: checking \"_SHORT_LIMB\"" >&5 |
echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6 |
1693 |
echo $ECHO_N "checking \"_SHORT_LIMB\"... $ECHO_C" >&6 |
echo "configure:1694: checking "_SHORT_LIMB"" >&5 |
1694 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
1695 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1696 |
else |
else |
1697 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1698 |
#line $LINENO "configure" |
#line 1699 "configure" |
1699 |
#include "confdefs.h" |
#include "confdefs.h" |
1700 |
#include <stdio.h> |
#include <stdio.h> |
1701 |
#include "$MP_INCLUDE" |
#include "$MP_INCLUDE" |
1706 |
return 1; |
return 1; |
1707 |
#endif |
#endif |
1708 |
} |
} |
1709 |
_ACEOF |
EOF |
1710 |
rm -f conftest$ac_exeext |
if { (eval echo configure:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1711 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
1712 |
(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 |
|
1713 |
#define __SHORT_LIMB 1 |
#define __SHORT_LIMB 1 |
1714 |
_ACEOF |
EOF |
1715 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
1716 |
echo "${ECHO_T}yes" >&6 |
else |
1717 |
else |
echo "configure: failed program was:" >&5 |
1718 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
1719 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
1720 |
cat 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 |
|
1721 |
fi |
fi |
1722 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
1723 |
fi |
fi |
1724 |
echo "$as_me:$LINENO: checking \"_LONG_LONG_LIMB\"" >&5 |
|
1725 |
echo $ECHO_N "checking \"_LONG_LONG_LIMB\"... $ECHO_C" >&6 |
echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6 |
1726 |
|
echo "configure:1727: checking "_LONG_LONG_LIMB"" >&5 |
1727 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
1728 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1729 |
else |
else |
1730 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1731 |
#line $LINENO "configure" |
#line 1732 "configure" |
1732 |
#include "confdefs.h" |
#include "confdefs.h" |
1733 |
#include <stdio.h> |
#include <stdio.h> |
1734 |
#include "$MP_INCLUDE" |
#include "$MP_INCLUDE" |
1739 |
return 1; |
return 1; |
1740 |
#endif |
#endif |
1741 |
} |
} |
1742 |
_ACEOF |
EOF |
1743 |
rm -f conftest$ac_exeext |
if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1744 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
1745 |
(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 |
|
1746 |
#define __LONG_LONG_LIMB 1 |
#define __LONG_LONG_LIMB 1 |
1747 |
_ACEOF |
EOF |
1748 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
1749 |
echo "${ECHO_T}yes" >&6 |
else |
1750 |
else |
echo "configure: failed program was:" >&5 |
1751 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
1752 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
1753 |
cat 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 |
|
1754 |
fi |
fi |
1755 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
1756 |
fi |
fi |
1757 |
|
|
1758 |
|
|
1759 |
GMP=1 |
GMP=1 |
1760 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
1761 |
#define GMP 1 |
#define GMP 1 |
1762 |
_ACEOF |
EOF |
|
|
|
|
|
|
1763 |
|
|
1764 |
|
|
1765 |
|
|
1766 |
echo > makedefsafter |
echo > makedefsafter |
1767 |
echo "MPFILES=$MPFILES" >> makedefsafter |
echo "MPFILES=$MPFILES" >> makedefsafter |
1768 |
echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter |
echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter |
1772 |
|
|
1773 |
# |
# |
1774 |
# X windows |
# X windows |
1775 |
# |
# |
|
|
|
|
echo "$as_me:$LINENO: checking for X" >&5 |
|
|
echo $ECHO_N "checking for X... $ECHO_C" >&6 |
|
1776 |
|
|
1777 |
|
# If we find X, set shell vars x_includes and x_libraries to the |
1778 |
|
# paths, otherwise set no_x=yes. |
1779 |
|
# Uses ac_ vars as temps to allow command line to override cache and checks. |
1780 |
|
# --without-x overrides everything else, but does not touch the cache. |
1781 |
|
echo $ac_n "checking for X""... $ac_c" 1>&6 |
1782 |
|
echo "configure:1783: checking for X" >&5 |
1783 |
|
|
1784 |
# Check whether --with-x or --without-x was given. |
# Check whether --with-x or --without-x was given. |
1785 |
if test "${with_x+set}" = set; then |
if test "${with_x+set}" = set; then |
1786 |
withval="$with_x" |
withval="$with_x" |
1787 |
|
: |
1788 |
|
fi |
1789 |
|
|
|
fi; |
|
1790 |
# $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. |
1791 |
if test "x$with_x" = xno; then |
if test "x$with_x" = xno; then |
1792 |
# The user explicitly disabled X. |
# The user explicitly disabled X. |
1796 |
# Both variables are already set. |
# Both variables are already set. |
1797 |
have_x=yes |
have_x=yes |
1798 |
else |
else |
1799 |
if test "${ac_cv_have_x+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
1800 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1801 |
else |
else |
1802 |
# 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. |
1803 |
ac_x_includes=no ac_x_libraries=no |
ac_x_includes=NO ac_x_libraries=NO |
1804 |
rm -fr conftest.dir |
rm -fr conftestdir |
1805 |
if mkdir conftest.dir; then |
if mkdir conftestdir; then |
1806 |
cd conftest.dir |
cd conftestdir |
1807 |
# 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. |
1808 |
cat >Imakefile <<'_ACEOF' |
cat > Imakefile <<'EOF' |
1809 |
acfindx: |
acfindx: |
1810 |
@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}"' |
1811 |
_ACEOF |
EOF |
1812 |
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
1813 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1814 |
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
1815 |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
1816 |
for ac_extension in a so sl; do |
for ac_extension in a so sl; do |
1817 |
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
1818 |
test -f $ac_im_libdir/libX11.$ac_extension; then |
test -f $ac_im_libdir/libX11.$ac_extension; then |
1819 |
ac_im_usrlibdir=$ac_im_libdir; break |
ac_im_usrlibdir=$ac_im_libdir; break |
1820 |
fi |
fi |
1821 |
done |
done |
1822 |
# Screen out bogus values from the imake configuration. They are |
# Screen out bogus values from the imake configuration. They are |
1823 |
# bogus both because they are the default anyway, and because |
# bogus both because they are the default anyway, and because |
1824 |
# using them would break gcc on systems where it needs fixed includes. |
# using them would break gcc on systems where it needs fixed includes. |
1825 |
case $ac_im_incroot in |
case "$ac_im_incroot" in |
1826 |
/usr/include) ;; |
/usr/include) ;; |
1827 |
*) 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" ;; |
1828 |
esac |
esac |
1829 |
case $ac_im_usrlibdir in |
case "$ac_im_usrlibdir" in |
1830 |
/usr/lib | /lib) ;; |
/usr/lib | /lib) ;; |
1831 |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
1832 |
esac |
esac |
1833 |
fi |
fi |
1834 |
cd .. |
cd .. |
1835 |
rm -fr conftest.dir |
rm -fr conftestdir |
1836 |
fi |
fi |
1837 |
|
|
1838 |
# Standard set of common directories for X headers. |
if test "$ac_x_includes" = NO; then |
1839 |
# 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. |
1840 |
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 |
|
1841 |
|
|
|
/usr/openwin/include |
|
|
/usr/openwin/share/include' |
|
|
|
|
|
if test "$ac_x_includes" = no; then |
|
|
# Guess where to find include files, by looking for Intrinsic.h. |
|
1842 |
# First, try using that file with no special directory specified. |
# First, try using that file with no special directory specified. |
1843 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1844 |
#line $LINENO "configure" |
#line 1845 "configure" |
1845 |
#include "confdefs.h" |
#include "confdefs.h" |
1846 |
#include <X11/Intrinsic.h> |
#include <$x_direct_test_include> |
1847 |
_ACEOF |
EOF |
1848 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1849 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
{ (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1850 |
ac_status=$? |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1851 |
egrep -v '^ *\+' conftest.er1 >conftest.err |
if test -z "$ac_err"; then |
1852 |
rm -f conftest.er1 |
rm -rf conftest* |
|
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 |
|
1853 |
# We can compile using X headers with no special include directory. |
# We can compile using X headers with no special include directory. |
1854 |
ac_x_includes= |
ac_x_includes= |
1855 |
else |
else |
1856 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
1857 |
|
echo "configure: failed program was:" >&5 |
1858 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
1859 |
for ac_dir in $ac_x_header_dirs; do |
rm -rf conftest* |
1860 |
if test -r "$ac_dir/X11/Intrinsic.h"; then |
# Look for the header file in a standard set of common directories. |
1861 |
ac_x_includes=$ac_dir |
# Check X11 before X11Rn because it is often a symlink to the current release. |
1862 |
break |
for ac_dir in \ |
1863 |
fi |
/usr/X11/include \ |
1864 |
done |
/usr/X11R6/include \ |
1865 |
|
/usr/X11R5/include \ |
1866 |
|
/usr/X11R4/include \ |
1867 |
|
\ |
1868 |
|
/usr/include/X11 \ |
1869 |
|
/usr/include/X11R6 \ |
1870 |
|
/usr/include/X11R5 \ |
1871 |
|
/usr/include/X11R4 \ |
1872 |
|
\ |
1873 |
|
/usr/local/X11/include \ |
1874 |
|
/usr/local/X11R6/include \ |
1875 |
|
/usr/local/X11R5/include \ |
1876 |
|
/usr/local/X11R4/include \ |
1877 |
|
\ |
1878 |
|
/usr/local/include/X11 \ |
1879 |
|
/usr/local/include/X11R6 \ |
1880 |
|
/usr/local/include/X11R5 \ |
1881 |
|
/usr/local/include/X11R4 \ |
1882 |
|
\ |
1883 |
|
/usr/X386/include \ |
1884 |
|
/usr/x386/include \ |
1885 |
|
/usr/XFree86/include/X11 \ |
1886 |
|
\ |
1887 |
|
/usr/include \ |
1888 |
|
/usr/local/include \ |
1889 |
|
/usr/unsupported/include \ |
1890 |
|
/usr/athena/include \ |
1891 |
|
/usr/local/x11r5/include \ |
1892 |
|
/usr/lpp/Xamples/include \ |
1893 |
|
\ |
1894 |
|
/usr/openwin/include \ |
1895 |
|
/usr/openwin/share/include \ |
1896 |
|
; \ |
1897 |
|
do |
1898 |
|
if test -r "$ac_dir/$x_direct_test_include"; then |
1899 |
|
ac_x_includes=$ac_dir |
1900 |
|
break |
1901 |
|
fi |
1902 |
|
done |
1903 |
fi |
fi |
1904 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
1905 |
fi # $ac_x_includes = no |
fi # $ac_x_includes = NO |
1906 |
|
|
1907 |
if test "$ac_x_libraries" = no; then |
if test "$ac_x_libraries" = NO; then |
1908 |
# Check for the libraries. |
# Check for the libraries. |
1909 |
|
|
1910 |
|
test -z "$x_direct_test_library" && x_direct_test_library=Xt |
1911 |
|
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
1912 |
|
|
1913 |
# See if we find them without any special options. |
# See if we find them without any special options. |
1914 |
# Don't add to $LIBS permanently. |
# Don't add to $LIBS permanently. |
1915 |
ac_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
1916 |
LIBS="-lXt $LIBS" |
LIBS="-l$x_direct_test_library $LIBS" |
1917 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1918 |
#line $LINENO "configure" |
#line 1919 "configure" |
1919 |
#include "confdefs.h" |
#include "confdefs.h" |
1920 |
#include <X11/Intrinsic.h> |
|
1921 |
#ifdef F77_DUMMY_MAIN |
int main() { |
1922 |
# ifdef __cplusplus |
${x_direct_test_function}() |
1923 |
extern "C" |
; return 0; } |
1924 |
# endif |
EOF |
1925 |
int F77_DUMMY_MAIN() { return 1; } |
if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1926 |
#endif |
rm -rf conftest* |
1927 |
int |
LIBS="$ac_save_LIBS" |
|
main () |
|
|
{ |
|
|
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 |
|
1928 |
# We can link X programs with no special library path. |
# We can link X programs with no special library path. |
1929 |
ac_x_libraries= |
ac_x_libraries= |
1930 |
else |
else |
1931 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
1932 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
1933 |
LIBS=$ac_save_LIBS |
rm -rf conftest* |
1934 |
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
LIBS="$ac_save_LIBS" |
1935 |
|
# First see if replacing the include by lib works. |
1936 |
|
# Check X11 before X11Rn because it is often a symlink to the current release. |
1937 |
|
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
1938 |
|
/usr/X11/lib \ |
1939 |
|
/usr/X11R6/lib \ |
1940 |
|
/usr/X11R5/lib \ |
1941 |
|
/usr/X11R4/lib \ |
1942 |
|
\ |
1943 |
|
/usr/lib/X11 \ |
1944 |
|
/usr/lib/X11R6 \ |
1945 |
|
/usr/lib/X11R5 \ |
1946 |
|
/usr/lib/X11R4 \ |
1947 |
|
\ |
1948 |
|
/usr/local/X11/lib \ |
1949 |
|
/usr/local/X11R6/lib \ |
1950 |
|
/usr/local/X11R5/lib \ |
1951 |
|
/usr/local/X11R4/lib \ |
1952 |
|
\ |
1953 |
|
/usr/local/lib/X11 \ |
1954 |
|
/usr/local/lib/X11R6 \ |
1955 |
|
/usr/local/lib/X11R5 \ |
1956 |
|
/usr/local/lib/X11R4 \ |
1957 |
|
\ |
1958 |
|
/usr/X386/lib \ |
1959 |
|
/usr/x386/lib \ |
1960 |
|
/usr/XFree86/lib/X11 \ |
1961 |
|
\ |
1962 |
|
/usr/lib \ |
1963 |
|
/usr/local/lib \ |
1964 |
|
/usr/unsupported/lib \ |
1965 |
|
/usr/athena/lib \ |
1966 |
|
/usr/local/x11r5/lib \ |
1967 |
|
/usr/lpp/Xamples/lib \ |
1968 |
|
/lib/usr/lib/X11 \ |
1969 |
|
\ |
1970 |
|
/usr/openwin/lib \ |
1971 |
|
/usr/openwin/share/lib \ |
1972 |
|
; \ |
1973 |
do |
do |
|
# Don't even attempt the hair of trying to link an X program! |
|
1974 |
for ac_extension in a so sl; do |
for ac_extension in a so sl; do |
1975 |
if test -r $ac_dir/libXt.$ac_extension; then |
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
1976 |
ac_x_libraries=$ac_dir |
ac_x_libraries=$ac_dir |
1977 |
break 2 |
break 2 |
1978 |
fi |
fi |
1979 |
done |
done |
1980 |
done |
done |
1981 |
fi |
fi |
1982 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
1983 |
fi # $ac_x_libraries = no |
fi # $ac_x_libraries = NO |
1984 |
|
|
1985 |
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
1986 |
# Didn't find X anywhere. Cache the known absence of X. |
# Didn't find X anywhere. Cache the known absence of X. |
1987 |
ac_cv_have_x="have_x=no" |
ac_cv_have_x="have_x=no" |
1988 |
else |
else |
1991 |
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
1992 |
fi |
fi |
1993 |
fi |
fi |
|
|
|
1994 |
fi |
fi |
1995 |
eval "$ac_cv_have_x" |
eval "$ac_cv_have_x" |
1996 |
fi # $with_x != no |
fi # $with_x != no |
1997 |
|
|
1998 |
if test "$have_x" != yes; then |
if test "$have_x" != yes; then |
1999 |
echo "$as_me:$LINENO: result: $have_x" >&5 |
echo "$ac_t""$have_x" 1>&6 |
|
echo "${ECHO_T}$have_x" >&6 |
|
2000 |
no_x=yes |
no_x=yes |
2001 |
else |
else |
2002 |
# 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. |
2005 |
# Update the cache value to reflect the command line values. |
# Update the cache value to reflect the command line values. |
2006 |
ac_cv_have_x="have_x=yes \ |
ac_cv_have_x="have_x=yes \ |
2007 |
ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
2008 |
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 |
|
2009 |
fi |
fi |
2010 |
|
|
2011 |
if test "$no_x" = yes; then |
if test "$no_x" = yes; then |
2012 |
# 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. |
2013 |
|
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
2014 |
#define X_DISPLAY_MISSING 1 |
#define X_DISPLAY_MISSING 1 |
2015 |
_ACEOF |
EOF |
2016 |
|
|
2017 |
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
2018 |
else |
else |
2025 |
X_LIBS="$X_LIBS -L$x_libraries" |
X_LIBS="$X_LIBS -L$x_libraries" |
2026 |
# 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 |
2027 |
# others require no space. Words are not sufficient . . . . |
# others require no space. Words are not sufficient . . . . |
2028 |
case `(uname -sr) 2>/dev/null` in |
case "`(uname -sr) 2>/dev/null`" in |
2029 |
"SunOS 5"*) |
"SunOS 5"*) |
2030 |
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 |
2031 |
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
echo "configure:2032: checking whether -R must be followed by a space" >&5 |
2032 |
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
2033 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2034 |
#line $LINENO "configure" |
#line 2035 "configure" |
2035 |
#include "confdefs.h" |
#include "confdefs.h" |
2036 |
|
|
2037 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
2038 |
|
|
2039 |
; |
; return 0; } |
2040 |
return 0; |
EOF |
2041 |
} |
if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2042 |
_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 |
|
2043 |
ac_R_nospace=yes |
ac_R_nospace=yes |
2044 |
else |
else |
2045 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
2046 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
2047 |
ac_R_nospace=no |
rm -rf conftest* |
2048 |
|
ac_R_nospace=no |
2049 |
fi |
fi |
2050 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
2051 |
if test $ac_R_nospace = yes; then |
if test $ac_R_nospace = yes; then |
2052 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
2053 |
X_LIBS="$X_LIBS -R$x_libraries" |
X_LIBS="$X_LIBS -R$x_libraries" |
2054 |
else |
else |
2055 |
LIBS="$ac_xsave_LIBS -R $x_libraries" |
LIBS="$ac_xsave_LIBS -R $x_libraries" |
2056 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2057 |
#line $LINENO "configure" |
#line 2058 "configure" |
2058 |
#include "confdefs.h" |
#include "confdefs.h" |
2059 |
|
|
2060 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
2061 |
|
|
2062 |
; |
; return 0; } |
2063 |
return 0; |
EOF |
2064 |
} |
if { (eval echo configure:2065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2065 |
_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 |
|
2066 |
ac_R_space=yes |
ac_R_space=yes |
2067 |
else |
else |
2068 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
2069 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
2070 |
ac_R_space=no |
rm -rf conftest* |
2071 |
|
ac_R_space=no |
2072 |
fi |
fi |
2073 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
2074 |
if test $ac_R_space = yes; then |
if test $ac_R_space = yes; then |
2075 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
2076 |
X_LIBS="$X_LIBS -R $x_libraries" |
X_LIBS="$X_LIBS -R $x_libraries" |
2077 |
else |
else |
2078 |
echo "$as_me:$LINENO: result: neither works" >&5 |
echo "$ac_t""neither works" 1>&6 |
|
echo "${ECHO_T}neither works" >&6 |
|
2079 |
fi |
fi |
2080 |
fi |
fi |
2081 |
LIBS=$ac_xsave_LIBS |
LIBS="$ac_xsave_LIBS" |
2082 |
esac |
esac |
2083 |
fi |
fi |
2084 |
|
|
2089 |
if test "$ISC" = yes; then |
if test "$ISC" = yes; then |
2090 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
2091 |
else |
else |
2092 |
# 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 |
2093 |
# libraries were built with DECnet support. And Karl Berry says |
# libraries were built with DECnet support. And karl@cs.umb.edu says |
2094 |
# the Alpha needs dnet_stub (dnet does not exist). |
# the Alpha needs dnet_stub (dnet does not exist). |
2095 |
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
2096 |
cat >conftest.$ac_ext <<_ACEOF |
echo "configure:2097: checking for dnet_ntoa in -ldnet" >&5 |
2097 |
#line $LINENO "configure" |
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
2098 |
#include "confdefs.h" |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2099 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
/* 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 (); |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
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 |
|
|
: |
|
2100 |
else |
else |
2101 |
echo "$as_me: failed program was:" >&5 |
ac_save_LIBS="$LIBS" |
|
cat 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 |
|
2102 |
LIBS="-ldnet $LIBS" |
LIBS="-ldnet $LIBS" |
2103 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2104 |
#line $LINENO "configure" |
#line 2105 "configure" |
2105 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2106 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2107 |
/* 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 |
2108 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2109 |
char dnet_ntoa (); |
char dnet_ntoa(); |
2110 |
#ifdef F77_DUMMY_MAIN |
|
2111 |
# ifdef __cplusplus |
int main() { |
2112 |
extern "C" |
dnet_ntoa() |
2113 |
# endif |
; return 0; } |
2114 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2115 |
#endif |
if { (eval echo configure:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2116 |
int |
rm -rf conftest* |
2117 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2118 |
{ |
else |
2119 |
dnet_ntoa (); |
echo "configure: failed program was:" >&5 |
2120 |
; |
cat conftest.$ac_ext >&5 |
2121 |
return 0; |
rm -rf conftest* |
2122 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2123 |
_ACEOF |
fi |
2124 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2125 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2126 |
(eval $ac_link) 2>&5 |
|
2127 |
ac_status=$? |
fi |
2128 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2129 |
(exit $ac_status); } && |
echo "$ac_t""yes" 1>&6 |
|
{ 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_dnet_dnet_ntoa=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
2130 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
2131 |
|
else |
2132 |
|
echo "$ac_t""no" 1>&6 |
2133 |
fi |
fi |
2134 |
|
|
2135 |
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
2136 |
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 |
2137 |
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
echo "configure:2138: checking for dnet_ntoa in -ldnet_stub" >&5 |
2138 |
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
2139 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2140 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2141 |
else |
else |
2142 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2143 |
LIBS="-ldnet_stub $LIBS" |
LIBS="-ldnet_stub $LIBS" |
2144 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2145 |
#line $LINENO "configure" |
#line 2146 "configure" |
2146 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2147 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2148 |
/* 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 |
2149 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2150 |
char dnet_ntoa (); |
char dnet_ntoa(); |
2151 |
#ifdef F77_DUMMY_MAIN |
|
2152 |
# ifdef __cplusplus |
int main() { |
2153 |
extern "C" |
dnet_ntoa() |
2154 |
# endif |
; return 0; } |
2155 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2156 |
#endif |
if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2157 |
int |
rm -rf conftest* |
2158 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2159 |
{ |
else |
2160 |
dnet_ntoa (); |
echo "configure: failed program was:" >&5 |
2161 |
; |
cat conftest.$ac_ext >&5 |
2162 |
return 0; |
rm -rf conftest* |
2163 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2164 |
_ACEOF |
fi |
2165 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2166 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2167 |
(eval $ac_link) 2>&5 |
|
2168 |
ac_status=$? |
fi |
2169 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2170 |
(exit $ac_status); } && |
echo "$ac_t""yes" 1>&6 |
|
{ 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_dnet_stub_dnet_ntoa=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
2171 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
2172 |
|
else |
2173 |
|
echo "$ac_t""no" 1>&6 |
2174 |
fi |
fi |
2175 |
|
|
2176 |
fi |
fi |
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS="$ac_xsave_LIBS" |
|
2177 |
|
|
2178 |
# 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, |
2179 |
# to get the SysV transport functions. |
# to get the SysV transport functions. |
2180 |
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
# chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
2181 |
# needs -lnsl. |
# needs -lnsl. |
2182 |
# The nsl library prevents programs from opening the X display |
# The nsl library prevents programs from opening the X display |
2183 |
# on Irix 5.2, according to T.E. Dickey. |
# on Irix 5.2, according to dickey@clark.net. |
2184 |
# The functions gethostbyname, getservbyname, and inet_addr are |
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
2185 |
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
echo "configure:2186: checking for gethostbyname" >&5 |
2186 |
echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
2187 |
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2188 |
else |
else |
2189 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2190 |
#line $LINENO "configure" |
#line 2191 "configure" |
2191 |
#include "confdefs.h" |
#include "confdefs.h" |
2192 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2193 |
which can conflict with char gethostbyname (); below. */ |
which can conflict with char gethostbyname(); below. */ |
2194 |
#include <assert.h> |
#include <assert.h> |
2195 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2196 |
/* 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 |
2197 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2198 |
char gethostbyname (); |
char gethostbyname(); |
2199 |
char (*f) (); |
|
2200 |
|
int main() { |
2201 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
2202 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2203 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2204 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2205 |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
2206 |
choke me |
choke me |
2207 |
#else |
#else |
2208 |
f = gethostbyname; |
gethostbyname(); |
2209 |
#endif |
#endif |
2210 |
|
|
2211 |
; |
; return 0; } |
2212 |
return 0; |
EOF |
2213 |
} |
if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2214 |
_ACEOF |
rm -rf conftest* |
2215 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_gethostbyname=yes" |
2216 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
2217 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
2218 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
2219 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
2220 |
(exit $ac_status); } && |
eval "ac_cv_func_gethostbyname=no" |
2221 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
2222 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
|
(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 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_func_gethostbyname=no |
|
2223 |
fi |
fi |
2224 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
2225 |
|
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
2226 |
|
echo "$ac_t""yes" 1>&6 |
2227 |
|
: |
2228 |
|
else |
2229 |
|
echo "$ac_t""no" 1>&6 |
2230 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
|
2231 |
|
|
2232 |
if test $ac_cv_func_gethostbyname = no; then |
if test $ac_cv_func_gethostbyname = no; then |
2233 |
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
2234 |
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
echo "configure:2235: checking for gethostbyname in -lnsl" >&5 |
2235 |
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
2236 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2237 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2238 |
else |
else |
2239 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2240 |
LIBS="-lnsl $LIBS" |
LIBS="-lnsl $LIBS" |
2241 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2242 |
#line $LINENO "configure" |
#line 2243 "configure" |
2243 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2244 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2245 |
/* 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 |
2246 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2247 |
char gethostbyname (); |
char gethostbyname(); |
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
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 |
|
|
cat 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 |
|
2248 |
|
|
2249 |
if test $ac_cv_lib_nsl_gethostbyname = no; then |
int main() { |
2250 |
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
gethostbyname() |
2251 |
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
; return 0; } |
2252 |
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
EOF |
2253 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2254 |
else |
rm -rf conftest* |
2255 |
ac_check_lib_save_LIBS=$LIBS |
eval "ac_cv_lib_$ac_lib_var=yes" |
2256 |
LIBS="-lbsd $LIBS" |
else |
2257 |
cat >conftest.$ac_ext <<_ACEOF |
echo "configure: failed program was:" >&5 |
2258 |
#line $LINENO "configure" |
cat conftest.$ac_ext >&5 |
2259 |
#include "confdefs.h" |
rm -rf conftest* |
2260 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2261 |
|
fi |
2262 |
|
rm -f conftest* |
2263 |
|
LIBS="$ac_save_LIBS" |
2264 |
|
|
2265 |
/* Override any gcc2 internal prototype to avoid an error. */ |
fi |
2266 |
#ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2267 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
2268 |
#endif |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
2269 |
/* We use char because int might match the return type of a gcc2 |
else |
2270 |
builtin and then its argument prototype would still apply. */ |
echo "$ac_t""no" 1>&6 |
|
char gethostbyname (); |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
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 |
|
|
cat 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" |
|
2271 |
fi |
fi |
2272 |
|
|
|
fi |
|
2273 |
fi |
fi |
2274 |
|
|
2275 |
# lieder@skyler.mavd.honeywell.com says without -lsocket, |
# lieder@skyler.mavd.honeywell.com says without -lsocket, |
2276 |
# socket/setsockopt and other routines are undefined under SCO ODT |
# socket/setsockopt and other routines are undefined under SCO ODT |
2277 |
# 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 |
2278 |
# on later versions), says Simon Leinen: it contains gethostby* |
# on later versions), says simon@lia.di.epfl.ch: it contains |
2279 |
# variants that don't use the nameserver (or something). -lsocket |
# gethostby* variants that don't use the nameserver (or something). |
2280 |
# must be given before -lnsl if both are needed. We assume that |
# -lsocket must be given before -lnsl if both are needed. |
2281 |
# if connect needs -lnsl, so does gethostbyname. |
# We assume that if connect needs -lnsl, so does gethostbyname. |
2282 |
echo "$as_me:$LINENO: checking for connect" >&5 |
echo $ac_n "checking for connect""... $ac_c" 1>&6 |
2283 |
echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
echo "configure:2284: checking for connect" >&5 |
2284 |
if test "${ac_cv_func_connect+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
2285 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2286 |
else |
else |
2287 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2288 |
#line $LINENO "configure" |
#line 2289 "configure" |
2289 |
#include "confdefs.h" |
#include "confdefs.h" |
2290 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2291 |
which can conflict with char connect (); below. */ |
which can conflict with char connect(); below. */ |
2292 |
#include <assert.h> |
#include <assert.h> |
2293 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2294 |
/* 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 |
2295 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2296 |
char connect (); |
char connect(); |
2297 |
char (*f) (); |
|
2298 |
|
int main() { |
2299 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
2300 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2301 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2302 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2303 |
#if defined (__stub_connect) || defined (__stub___connect) |
#if defined (__stub_connect) || defined (__stub___connect) |
2304 |
choke me |
choke me |
2305 |
#else |
#else |
2306 |
f = connect; |
connect(); |
2307 |
#endif |
#endif |
2308 |
|
|
2309 |
; |
; return 0; } |
2310 |
return 0; |
EOF |
2311 |
} |
if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2312 |
_ACEOF |
rm -rf conftest* |
2313 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_connect=yes" |
2314 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
2315 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
2316 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
2317 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
2318 |
(exit $ac_status); } && |
eval "ac_cv_func_connect=no" |
|
{ 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 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_func_connect=no |
|
2319 |
fi |
fi |
2320 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
2321 |
|
fi |
2322 |
|
|
2323 |
|
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
2324 |
|
echo "$ac_t""yes" 1>&6 |
2325 |
|
: |
2326 |
|
else |
2327 |
|
echo "$ac_t""no" 1>&6 |
2328 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_connect" >&6 |
|
2329 |
|
|
2330 |
if test $ac_cv_func_connect = no; then |
if test $ac_cv_func_connect = no; then |
2331 |
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
2332 |
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
echo "configure:2333: checking for connect in -lsocket" >&5 |
2333 |
if test "${ac_cv_lib_socket_connect+set}" = set; then |
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
2334 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2335 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2336 |
else |
else |
2337 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2338 |
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
2339 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2340 |
#line $LINENO "configure" |
#line 2341 "configure" |
2341 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2342 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2343 |
/* 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 |
2344 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2345 |
char connect (); |
char connect(); |
2346 |
#ifdef F77_DUMMY_MAIN |
|
2347 |
# ifdef __cplusplus |
int main() { |
2348 |
extern "C" |
connect() |
2349 |
# endif |
; return 0; } |
2350 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2351 |
#endif |
if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2352 |
int |
rm -rf conftest* |
2353 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2354 |
{ |
else |
2355 |
connect (); |
echo "configure: failed program was:" >&5 |
2356 |
; |
cat conftest.$ac_ext >&5 |
2357 |
return 0; |
rm -rf conftest* |
2358 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2359 |
_ACEOF |
fi |
2360 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2361 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2362 |
(eval $ac_link) 2>&5 |
|
2363 |
ac_status=$? |
fi |
2364 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2365 |
(exit $ac_status); } && |
echo "$ac_t""yes" 1>&6 |
|
{ 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_connect=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
2366 |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
2367 |
|
else |
2368 |
|
echo "$ac_t""no" 1>&6 |
2369 |
fi |
fi |
2370 |
|
|
2371 |
fi |
fi |
2372 |
|
|
2373 |
# Guillermo Gomez says -lposix is necessary on A/UX. |
# gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
2374 |
echo "$as_me:$LINENO: checking for remove" >&5 |
echo $ac_n "checking for remove""... $ac_c" 1>&6 |
2375 |
echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
echo "configure:2376: checking for remove" >&5 |
2376 |
if test "${ac_cv_func_remove+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
2377 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2378 |
else |
else |
2379 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2380 |
#line $LINENO "configure" |
#line 2381 "configure" |
2381 |
#include "confdefs.h" |
#include "confdefs.h" |
2382 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2383 |
which can conflict with char remove (); below. */ |
which can conflict with char remove(); below. */ |
2384 |
#include <assert.h> |
#include <assert.h> |
2385 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2386 |
/* 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 |
2387 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2388 |
char remove (); |
char remove(); |
2389 |
char (*f) (); |
|
2390 |
|
int main() { |
2391 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
2392 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2393 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2394 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2395 |
#if defined (__stub_remove) || defined (__stub___remove) |
#if defined (__stub_remove) || defined (__stub___remove) |
2396 |
choke me |
choke me |
2397 |
#else |
#else |
2398 |
f = remove; |
remove(); |
2399 |
#endif |
#endif |
2400 |
|
|
2401 |
; |
; return 0; } |
2402 |
return 0; |
EOF |
2403 |
} |
if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2404 |
_ACEOF |
rm -rf conftest* |
2405 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_remove=yes" |
2406 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
2407 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
2408 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
2409 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
2410 |
(exit $ac_status); } && |
eval "ac_cv_func_remove=no" |
|
{ 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 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_func_remove=no |
|
2411 |
fi |
fi |
2412 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
2413 |
|
fi |
2414 |
|
|
2415 |
|
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
2416 |
|
echo "$ac_t""yes" 1>&6 |
2417 |
|
: |
2418 |
|
else |
2419 |
|
echo "$ac_t""no" 1>&6 |
2420 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_remove" >&6 |
|
2421 |
|
|
2422 |
if test $ac_cv_func_remove = no; then |
if test $ac_cv_func_remove = no; then |
2423 |
echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
2424 |
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
echo "configure:2425: checking for remove in -lposix" >&5 |
2425 |
if test "${ac_cv_lib_posix_remove+set}" = set; then |
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
2426 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2427 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2428 |
else |
else |
2429 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2430 |
LIBS="-lposix $LIBS" |
LIBS="-lposix $LIBS" |
2431 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2432 |
#line $LINENO "configure" |
#line 2433 "configure" |
2433 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2434 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2435 |
/* 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 |
2436 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2437 |
char remove (); |
char remove(); |
2438 |
#ifdef F77_DUMMY_MAIN |
|
2439 |
# ifdef __cplusplus |
int main() { |
2440 |
extern "C" |
remove() |
2441 |
# endif |
; return 0; } |
2442 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2443 |
#endif |
if { (eval echo configure:2444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2444 |
int |
rm -rf conftest* |
2445 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2446 |
{ |
else |
2447 |
remove (); |
echo "configure: failed program was:" >&5 |
2448 |
; |
cat conftest.$ac_ext >&5 |
2449 |
return 0; |
rm -rf conftest* |
2450 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2451 |
_ACEOF |
fi |
2452 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2453 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2454 |
(eval $ac_link) 2>&5 |
|
2455 |
ac_status=$? |
fi |
2456 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2457 |
(exit $ac_status); } && |
echo "$ac_t""yes" 1>&6 |
|
{ 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_posix_remove=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
2458 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
2459 |
|
else |
2460 |
|
echo "$ac_t""no" 1>&6 |
2461 |
fi |
fi |
2462 |
|
|
2463 |
fi |
fi |
2464 |
|
|
2465 |
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
2466 |
echo "$as_me:$LINENO: checking for shmat" >&5 |
echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
2467 |
echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
echo "configure:2468: checking for shmat" >&5 |
2468 |
if test "${ac_cv_func_shmat+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
2469 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2470 |
else |
else |
2471 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2472 |
#line $LINENO "configure" |
#line 2473 "configure" |
2473 |
#include "confdefs.h" |
#include "confdefs.h" |
2474 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2475 |
which can conflict with char shmat (); below. */ |
which can conflict with char shmat(); below. */ |
2476 |
#include <assert.h> |
#include <assert.h> |
2477 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2478 |
/* 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 |
2479 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2480 |
char shmat (); |
char shmat(); |
2481 |
char (*f) (); |
|
2482 |
|
int main() { |
2483 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
2484 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2485 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2486 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2487 |
#if defined (__stub_shmat) || defined (__stub___shmat) |
#if defined (__stub_shmat) || defined (__stub___shmat) |
2488 |
choke me |
choke me |
2489 |
#else |
#else |
2490 |
f = shmat; |
shmat(); |
2491 |
#endif |
#endif |
2492 |
|
|
2493 |
; |
; return 0; } |
2494 |
return 0; |
EOF |
2495 |
} |
if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2496 |
_ACEOF |
rm -rf conftest* |
2497 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_shmat=yes" |
2498 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
2499 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
2500 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
2501 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
2502 |
(exit $ac_status); } && |
eval "ac_cv_func_shmat=no" |
2503 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
2504 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
|
(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 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_func_shmat=no |
|
2505 |
fi |
fi |
2506 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
2507 |
|
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
2508 |
|
echo "$ac_t""yes" 1>&6 |
2509 |
|
: |
2510 |
|
else |
2511 |
|
echo "$ac_t""no" 1>&6 |
2512 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
|
2513 |
|
|
2514 |
if test $ac_cv_func_shmat = no; then |
if test $ac_cv_func_shmat = no; then |
2515 |
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
2516 |
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
echo "configure:2517: checking for shmat in -lipc" >&5 |
2517 |
if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
2518 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2519 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2520 |
else |
else |
2521 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2522 |
LIBS="-lipc $LIBS" |
LIBS="-lipc $LIBS" |
2523 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2524 |
#line $LINENO "configure" |
#line 2525 "configure" |
2525 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2526 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2527 |
/* 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 |
2528 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2529 |
char shmat (); |
char shmat(); |
2530 |
#ifdef F77_DUMMY_MAIN |
|
2531 |
# ifdef __cplusplus |
int main() { |
2532 |
extern "C" |
shmat() |
2533 |
# endif |
; return 0; } |
2534 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2535 |
#endif |
if { (eval echo configure:2536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2536 |
int |
rm -rf conftest* |
2537 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2538 |
{ |
else |
2539 |
shmat (); |
echo "configure: failed program was:" >&5 |
2540 |
; |
cat conftest.$ac_ext >&5 |
2541 |
return 0; |
rm -rf conftest* |
2542 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2543 |
_ACEOF |
fi |
2544 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2545 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2546 |
(eval $ac_link) 2>&5 |
|
2547 |
ac_status=$? |
fi |
2548 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2549 |
(exit $ac_status); } && |
echo "$ac_t""yes" 1>&6 |
|
{ 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_ipc_shmat=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
2550 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
2551 |
|
else |
2552 |
|
echo "$ac_t""no" 1>&6 |
2553 |
fi |
fi |
2554 |
|
|
2555 |
fi |
fi |
2556 |
fi |
fi |
2557 |
|
|
2558 |
# Check for libraries that X11R6 Xt/Xaw programs need. |
# Check for libraries that X11R6 Xt/Xaw programs need. |
2559 |
ac_save_LDFLAGS=$LDFLAGS |
ac_save_LDFLAGS="$LDFLAGS" |
2560 |
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
2561 |
# 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 |
2562 |
# 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 |
2563 |
# 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. |
2564 |
# These have to be linked with before -lX11, unlike the other |
# These have to be linked with before -lX11, unlike the other |
2565 |
# libraries we check for below, so use a different variable. |
# libraries we check for below, so use a different variable. |
2566 |
# John Interrante, Karl Berry |
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
2567 |
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
2568 |
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
echo "configure:2569: checking for IceConnectionNumber in -lICE" >&5 |
2569 |
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
2570 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2571 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2572 |
else |
else |
2573 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2574 |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
2575 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2576 |
#line $LINENO "configure" |
#line 2577 "configure" |
2577 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2578 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2579 |
/* 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 |
2580 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2581 |
char IceConnectionNumber (); |
char IceConnectionNumber(); |
2582 |
#ifdef F77_DUMMY_MAIN |
|
2583 |
# ifdef __cplusplus |
int main() { |
2584 |
extern "C" |
IceConnectionNumber() |
2585 |
# endif |
; return 0; } |
2586 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2587 |
#endif |
if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2588 |
int |
rm -rf conftest* |
2589 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2590 |
{ |
else |
2591 |
IceConnectionNumber (); |
echo "configure: failed program was:" >&5 |
2592 |
; |
cat conftest.$ac_ext >&5 |
2593 |
return 0; |
rm -rf conftest* |
2594 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2595 |
_ACEOF |
fi |
2596 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2597 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2598 |
(eval $ac_link) 2>&5 |
|
2599 |
ac_status=$? |
fi |
2600 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2601 |
(exit $ac_status); } && |
echo "$ac_t""yes" 1>&6 |
|
{ 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_ICE_IceConnectionNumber=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
2602 |
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
2603 |
|
else |
2604 |
|
echo "$ac_t""no" 1>&6 |
2605 |
fi |
fi |
2606 |
|
|
2607 |
LDFLAGS=$ac_save_LDFLAGS |
LDFLAGS="$ac_save_LDFLAGS" |
2608 |
|
|
2609 |
fi |
fi |
2610 |
|
|
2614 |
echo $X_PRE_LIBS |
echo $X_PRE_LIBS |
2615 |
|
|
2616 |
miss=0 |
miss=0 |
2617 |
echo "$as_me:$LINENO: checking for main in -lXmu" >&5 |
echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6 |
2618 |
echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6 |
echo "configure:2619: checking for main in -lXmu" >&5 |
2619 |
if test "${ac_cv_lib_Xmu_main+set}" = set; then |
ac_lib_var=`echo Xmu'_'main | 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="-lXmu $X_LIBS $LIBS" |
LIBS="-lXmu $X_LIBS $LIBS" |
2625 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2626 |
#line $LINENO "configure" |
#line 2627 "configure" |
2627 |
#include "confdefs.h" |
#include "confdefs.h" |
2628 |
|
|
2629 |
|
int main() { |
2630 |
|
main() |
2631 |
|
; return 0; } |
2632 |
|
EOF |
2633 |
|
if { (eval echo configure:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2634 |
|
rm -rf conftest* |
2635 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2636 |
|
else |
2637 |
|
echo "configure: failed program was:" >&5 |
2638 |
|
cat conftest.$ac_ext >&5 |
2639 |
|
rm -rf conftest* |
2640 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2641 |
|
fi |
2642 |
|
rm -f conftest* |
2643 |
|
LIBS="$ac_save_LIBS" |
2644 |
|
|
2645 |
#ifdef F77_DUMMY_MAIN |
fi |
2646 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2647 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
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 |
|
|
cat 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 |
|
2648 |
X_LIBS="$X_LIBS -lXmu" |
X_LIBS="$X_LIBS -lXmu" |
2649 |
else |
else |
2650 |
miss=1 |
echo "$ac_t""no" 1>&6 |
2651 |
|
miss=1 |
2652 |
fi |
fi |
2653 |
|
|
2654 |
echo "$as_me:$LINENO: checking for main in -lXt" >&5 |
echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6 |
2655 |
echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 |
echo "configure:2656: checking for main in -lXt" >&5 |
2656 |
if test "${ac_cv_lib_Xt_main+set}" = set; then |
ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'` |
2657 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2658 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2659 |
else |
else |
2660 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2661 |
LIBS="-lXt $X_LIBS $LIBS" |
LIBS="-lXt $X_LIBS $LIBS" |
2662 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2663 |
#line $LINENO "configure" |
#line 2664 "configure" |
2664 |
#include "confdefs.h" |
#include "confdefs.h" |
2665 |
|
|
2666 |
|
int main() { |
2667 |
|
main() |
2668 |
|
; return 0; } |
2669 |
|
EOF |
2670 |
|
if { (eval echo configure:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2671 |
|
rm -rf conftest* |
2672 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2673 |
|
else |
2674 |
|
echo "configure: failed program was:" >&5 |
2675 |
|
cat conftest.$ac_ext >&5 |
2676 |
|
rm -rf conftest* |
2677 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2678 |
|
fi |
2679 |
|
rm -f conftest* |
2680 |
|
LIBS="$ac_save_LIBS" |
2681 |
|
|
2682 |
#ifdef F77_DUMMY_MAIN |
fi |
2683 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2684 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
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 |
|
|
cat 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 |
|
2685 |
X_LIBS="$X_LIBS -lXt" |
X_LIBS="$X_LIBS -lXt" |
2686 |
else |
else |
2687 |
miss=1 |
echo "$ac_t""no" 1>&6 |
2688 |
|
miss=1 |
2689 |
fi |
fi |
2690 |
|
|
2691 |
echo "$as_me:$LINENO: checking for main in -lXext" >&5 |
echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6 |
2692 |
echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6 |
echo "configure:2693: checking for main in -lXext" >&5 |
2693 |
if test "${ac_cv_lib_Xext_main+set}" = set; then |
ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'` |
2694 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2695 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2696 |
else |
else |
2697 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2698 |
LIBS="-lXext $X_LIBS $LIBS" |
LIBS="-lXext $X_LIBS $LIBS" |
2699 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2700 |
#line $LINENO "configure" |
#line 2701 "configure" |
2701 |
#include "confdefs.h" |
#include "confdefs.h" |
2702 |
|
|
2703 |
|
int main() { |
2704 |
|
main() |
2705 |
|
; return 0; } |
2706 |
|
EOF |
2707 |
|
if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2708 |
|
rm -rf conftest* |
2709 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2710 |
|
else |
2711 |
|
echo "configure: failed program was:" >&5 |
2712 |
|
cat conftest.$ac_ext >&5 |
2713 |
|
rm -rf conftest* |
2714 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2715 |
|
fi |
2716 |
|
rm -f conftest* |
2717 |
|
LIBS="$ac_save_LIBS" |
2718 |
|
|
2719 |
#ifdef F77_DUMMY_MAIN |
fi |
2720 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2721 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
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 |
|
|
cat 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 |
|
2722 |
X_LIBS="$X_LIBS -lXext" |
X_LIBS="$X_LIBS -lXext" |
2723 |
else |
else |
2724 |
miss=1 |
echo "$ac_t""no" 1>&6 |
2725 |
|
miss=1 |
2726 |
fi |
fi |
2727 |
|
|
2728 |
echo "$as_me:$LINENO: checking for main in -lXaw" >&5 |
echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6 |
2729 |
echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6 |
echo "configure:2730: checking for main in -lXaw" >&5 |
2730 |
if test "${ac_cv_lib_Xaw_main+set}" = set; then |
ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'` |
2731 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2732 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2733 |
else |
else |
2734 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2735 |
LIBS="-lXaw $X_LIBS $LIBS" |
LIBS="-lXaw $X_LIBS $LIBS" |
2736 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2737 |
#line $LINENO "configure" |
#line 2738 "configure" |
2738 |
#include "confdefs.h" |
#include "confdefs.h" |
2739 |
|
|
2740 |
|
int main() { |
2741 |
|
main() |
2742 |
|
; return 0; } |
2743 |
|
EOF |
2744 |
|
if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2745 |
|
rm -rf conftest* |
2746 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2747 |
|
else |
2748 |
|
echo "configure: failed program was:" >&5 |
2749 |
|
cat conftest.$ac_ext >&5 |
2750 |
|
rm -rf conftest* |
2751 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2752 |
|
fi |
2753 |
|
rm -f conftest* |
2754 |
|
LIBS="$ac_save_LIBS" |
2755 |
|
|
2756 |
#ifdef F77_DUMMY_MAIN |
fi |
2757 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2758 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
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 |
|
|
cat 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 |
|
2759 |
X_LIBS="$X_LIBS -lXaw" |
X_LIBS="$X_LIBS -lXaw" |
2760 |
else |
else |
2761 |
miss=1 |
echo "$ac_t""no" 1>&6 |
2762 |
|
miss=1 |
2763 |
fi |
fi |
2764 |
|
|
2765 |
echo "$as_me:$LINENO: checking for main in -lX11" >&5 |
echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6 |
2766 |
echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 |
echo "configure:2767: checking for main in -lX11" >&5 |
2767 |
if test "${ac_cv_lib_X11_main+set}" = set; then |
ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'` |
2768 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2769 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2770 |
else |
else |
2771 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2772 |
LIBS="-lX11 $X_LIBS $LIBS" |
LIBS="-lX11 $X_LIBS $LIBS" |
2773 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2774 |
#line $LINENO "configure" |
#line 2775 "configure" |
2775 |
#include "confdefs.h" |
#include "confdefs.h" |
2776 |
|
|
2777 |
|
int main() { |
2778 |
|
main() |
2779 |
|
; return 0; } |
2780 |
|
EOF |
2781 |
|
if { (eval echo configure:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2782 |
|
rm -rf conftest* |
2783 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2784 |
|
else |
2785 |
|
echo "configure: failed program was:" >&5 |
2786 |
|
cat conftest.$ac_ext >&5 |
2787 |
|
rm -rf conftest* |
2788 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2789 |
|
fi |
2790 |
|
rm -f conftest* |
2791 |
|
LIBS="$ac_save_LIBS" |
2792 |
|
|
2793 |
#ifdef F77_DUMMY_MAIN |
fi |
2794 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2795 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
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 |
|
|
cat 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 |
|
2796 |
X_LIBS="$X_LIBS -lX11" |
X_LIBS="$X_LIBS -lX11" |
2797 |
else |
else |
2798 |
miss=1 |
echo "$ac_t""no" 1>&6 |
2799 |
|
miss=1 |
2800 |
fi |
fi |
2801 |
|
|
2802 |
|
|
2803 |
if test "$miss" = "1" ; then |
if test "$miss" = "1" ; then |
2804 |
X_CFLAGS= |
X_CFLAGS= |
2805 |
X_LIBS= |
X_LIBS= |
2816 |
|
|
2817 |
if test "$enable_dlopen" = "yes" ; then |
if test "$enable_dlopen" = "yes" ; then |
2818 |
|
|
2819 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
2820 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
echo "configure:2821: checking for dlopen in -ldl" >&5 |
2821 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
2822 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2823 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2824 |
else |
else |
2825 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2826 |
LIBS="-ldl $LIBS" |
LIBS="-ldl $LIBS" |
2827 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2828 |
#line $LINENO "configure" |
#line 2829 "configure" |
2829 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2830 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2831 |
/* 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 |
2832 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2833 |
char dlopen (); |
char dlopen(); |
2834 |
#ifdef F77_DUMMY_MAIN |
|
2835 |
# ifdef __cplusplus |
int main() { |
2836 |
extern "C" |
dlopen() |
2837 |
# endif |
; return 0; } |
2838 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2839 |
#endif |
if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2840 |
int |
rm -rf conftest* |
2841 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2842 |
{ |
else |
2843 |
dlopen (); |
echo "configure: failed program was:" >&5 |
2844 |
; |
cat conftest.$ac_ext >&5 |
2845 |
return 0; |
rm -rf conftest* |
2846 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2847 |
_ACEOF |
fi |
2848 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2849 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2850 |
(eval $ac_link) 2>&5 |
|
2851 |
ac_status=$? |
fi |
2852 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2853 |
(exit $ac_status); } && |
echo "$ac_t""yes" 1>&6 |
|
{ 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_dl_dlopen=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
2854 |
have_dl=1 |
have_dl=1 |
2855 |
else |
else |
2856 |
have_dl=0 |
echo "$ac_t""no" 1>&6 |
2857 |
|
have_dl=0 |
2858 |
fi |
fi |
2859 |
|
|
2860 |
if test "$have_dl" = "0" ; then |
if test "$have_dl" = "0" ; then |
2863 |
fi |
fi |
2864 |
|
|
2865 |
TLIBS="$TLIBS -ldl -rdynamic" |
TLIBS="$TLIBS -ldl -rdynamic" |
2866 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
2867 |
#define USE_DLOPEN 1 |
#define USE_DLOPEN 1 |
2868 |
_ACEOF |
EOF |
2869 |
|
|
2870 |
fi |
fi |
2871 |
|
|
2872 |
if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then |
if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then |
2873 |
if test "${ac_cv_header_bfd_h+set}" = set; then |
ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'` |
2874 |
echo "$as_me:$LINENO: checking for bfd.h" >&5 |
echo $ac_n "checking for bfd.h""... $ac_c" 1>&6 |
2875 |
echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6 |
echo "configure:2876: checking for bfd.h" >&5 |
2876 |
if test "${ac_cv_header_bfd_h+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2877 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2878 |
fi |
else |
2879 |
echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5 |
cat > conftest.$ac_ext <<EOF |
2880 |
echo "${ECHO_T}$ac_cv_header_bfd_h" >&6 |
#line 2881 "configure" |
|
else |
|
|
# 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" |
|
|
#include "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 |
|
|
cat 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" |
|
2881 |
#include "confdefs.h" |
#include "confdefs.h" |
2882 |
#include <bfd.h> |
#include <bfd.h> |
2883 |
_ACEOF |
EOF |
2884 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2885 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
{ (eval echo configure:2886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2886 |
ac_status=$? |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2887 |
egrep -v '^ *\+' conftest.er1 >conftest.err |
if test -z "$ac_err"; then |
2888 |
rm -f conftest.er1 |
rm -rf conftest* |
2889 |
cat conftest.err >&5 |
eval "ac_cv_header_$ac_safe=yes" |
|
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 |
|
2890 |
else |
else |
2891 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
2892 |
|
echo "configure: failed program was:" >&5 |
2893 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
2894 |
ac_header_preproc=no |
rm -rf conftest* |
2895 |
|
eval "ac_cv_header_$ac_safe=no" |
2896 |
fi |
fi |
2897 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
|
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;};; |
|
|
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;};; |
|
|
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 |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5 |
|
|
echo "${ECHO_T}$ac_cv_header_bfd_h" >&6 |
|
|
|
|
2898 |
fi |
fi |
2899 |
if test $ac_cv_header_bfd_h = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
2900 |
echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5 |
echo "$ac_t""yes" 1>&6 |
2901 |
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 |
2902 |
if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then |
echo "configure:2903: checking for bfd_init in -lbfd" >&5 |
2903 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'` |
2904 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2905 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2906 |
else |
else |
2907 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2908 |
LIBS="-lbfd -liberty $LIBS" |
LIBS="-lbfd -liberty $LIBS" |
2909 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2910 |
#line $LINENO "configure" |
#line 2911 "configure" |
2911 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2912 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2913 |
/* 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 |
2914 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2915 |
char bfd_init (); |
char bfd_init(); |
2916 |
#ifdef F77_DUMMY_MAIN |
|
2917 |
# ifdef __cplusplus |
int main() { |
2918 |
extern "C" |
bfd_init() |
2919 |
# endif |
; return 0; } |
2920 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2921 |
#endif |
if { (eval echo configure:2922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2922 |
int |
rm -rf conftest* |
2923 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2924 |
{ |
else |
2925 |
bfd_init (); |
echo "configure: failed program was:" >&5 |
2926 |
; |
cat conftest.$ac_ext >&5 |
2927 |
return 0; |
rm -rf conftest* |
2928 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2929 |
_ACEOF |
fi |
2930 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2931 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2932 |
(eval $ac_link) 2>&5 |
|
2933 |
ac_status=$? |
fi |
2934 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2935 |
(exit $ac_status); } && |
echo "$ac_t""yes" 1>&6 |
|
{ 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_bfd_bfd_init=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
2936 |
# |
# |
2937 |
# Old binutils appear to need CONST defined to const |
# Old binutils appear to need CONST defined to const |
2938 |
# |
# |
2939 |
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 |
2940 |
echo $ECHO_N "checking if need to define CONST for bfd... $ECHO_C" >&6 |
echo "configure:2941: checking if need to define CONST for bfd" >&5 |
2941 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
2942 |
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; |
|
2943 |
else |
else |
2944 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2945 |
#line $LINENO "configure" |
#line 2946 "configure" |
2946 |
#include "confdefs.h" |
#include "confdefs.h" |
2947 |
#define IN_GCC |
#define IN_GCC |
2948 |
#include <bfd.h> |
#include <bfd.h> |
2949 |
int main() { symbol_info t; return 0;} |
int main() { symbol_info t; return 0;} |
2950 |
_ACEOF |
EOF |
2951 |
rm -f conftest$ac_exeext |
if { (eval echo configure:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2952 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
2953 |
(eval $ac_link) 2>&5 |
echo "$ac_t""no" 1>&6 |
|
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 |
|
|
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 |
|
|
cat 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; |
|
2954 |
else |
else |
2955 |
cat >conftest.$ac_ext <<_ACEOF |
echo "configure: failed program was:" >&5 |
2956 |
#line $LINENO "configure" |
cat conftest.$ac_ext >&5 |
2957 |
|
rm -fr conftest* |
2958 |
|
if test "$cross_compiling" = yes; then |
2959 |
|
echo "$ac_t""cannot use bfd" 1>&6 exit 1; |
2960 |
|
else |
2961 |
|
cat > conftest.$ac_ext <<EOF |
2962 |
|
#line 2963 "configure" |
2963 |
#include "confdefs.h" |
#include "confdefs.h" |
2964 |
#define CONST const |
#define CONST const |
2965 |
#define IN_GCC |
#define IN_GCC |
2966 |
#include <bfd.h> |
#include <bfd.h> |
2967 |
int main() {symbol_info t; return 0;} |
int main() {symbol_info t; return 0;} |
2968 |
_ACEOF |
EOF |
2969 |
rm -f conftest$ac_exeext |
if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2970 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
2971 |
(eval $ac_link) 2>&5 |
echo "$ac_t""yes" 1>&6 |
2972 |
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 |
|
2973 |
#define NEED_CONST 1 |
#define NEED_CONST 1 |
2974 |
_ACEOF |
EOF |
2975 |
|
|
2976 |
else |
else |
2977 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
2978 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
2979 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
2980 |
( exit $ac_status ) |
echo "$ac_t""cannot use bfd" 1>&6 exit 1; |
|
echo "$as_me:$LINENO: result: cannot use bfd" >&5 |
|
|
echo "${ECHO_T}cannot use bfd" >&6 exit 1; |
|
2981 |
fi |
fi |
2982 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
2983 |
fi |
fi |
2984 |
|
|
2985 |
fi |
fi |
2986 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
2987 |
fi |
fi |
2988 |
|
|
2989 |
|
|
2990 |
|
else |
2991 |
|
echo "$ac_t""no" 1>&6 |
2992 |
fi |
fi |
2993 |
|
|
2994 |
|
else |
2995 |
|
echo "$ac_t""no" 1>&6 |
2996 |
fi |
fi |
2997 |
|
|
2998 |
|
|
2999 |
|
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
3000 |
#define HAVE_LIBBFD 1 |
#define HAVE_LIBBFD 1 |
3001 |
_ACEOF |
EOF |
3002 |
|
|
3003 |
|
|
3004 |
# |
# |
3005 |
# BFD boolean syntax |
# BFD boolean syntax |
3006 |
# |
# |
3007 |
|
|
3008 |
echo "$as_me:$LINENO: checking for useable bfd_boolean" >&5 |
echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6 |
3009 |
echo $ECHO_N "checking for useable bfd_boolean... $ECHO_C" >&6 |
echo "configure:3010: checking for useable bfd_boolean" >&5 |
3010 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3011 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
3012 |
else |
else |
3013 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3014 |
#line $LINENO "configure" |
#line 3015 "configure" |
3015 |
#include "confdefs.h" |
#include "confdefs.h" |
3016 |
#define IN_GCC |
#define IN_GCC |
3017 |
#include <bfd.h> |
#include <bfd.h> |
3018 |
bfd_boolean foo() {return FALSE;} |
bfd_boolean foo() {return FALSE;} |
3019 |
int main() {return 0;} |
int main() {return 0;} |
3020 |
_ACEOF |
EOF |
3021 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3022 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3023 |
(eval $ac_link) 2>&5 |
echo "$ac_t""yes" 1>&6 |
3024 |
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 |
|
3025 |
#define HAVE_BFD_BOOLEAN 1 |
#define HAVE_BFD_BOOLEAN 1 |
3026 |
_ACEOF |
EOF |
3027 |
|
|
3028 |
else |
else |
3029 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3030 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3031 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
3032 |
( exit $ac_status ) |
echo "$ac_t""no" 1>&6 |
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
3033 |
fi |
fi |
3034 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3035 |
fi |
fi |
3036 |
|
|
3037 |
|
|
3038 |
|
|
3039 |
# |
# |
3040 |
# FIXME: Need to workaround mingw before this point -- CM |
# FIXME: Need to workaround mingw before this point -- CM |
3041 |
# |
# |
3048 |
else |
else |
3049 |
echo Guessing path to libbfd.a due to gcc bug |
echo Guessing path to libbfd.a due to gcc bug |
3050 |
TLIBS="$TLIBS /usr/lib/libbfd.a" |
TLIBS="$TLIBS /usr/lib/libbfd.a" |
3051 |
fi |
fi |
3052 |
if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then |
if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then |
3053 |
TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a`" |
TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a`" |
3054 |
else |
else |
3055 |
echo Guessing path to libiberty.a due to gcc bug |
echo Guessing path to libiberty.a due to gcc bug |
3056 |
TLIBS="$TLIBS /usr/lib/libiberty.a" |
TLIBS="$TLIBS /usr/lib/libiberty.a" |
3057 |
fi |
fi |
3058 |
else |
else |
3059 |
TLIBS="$TLIBS -lbfd -liberty" |
TLIBS="$TLIBS -lbfd -liberty" |
3060 |
fi |
fi |
3068 |
echo "#" |
echo "#" |
3069 |
echo "#" |
echo "#" |
3070 |
cd binutils/libiberty && chmod +x configure && ./configure && cd ../.. |
cd binutils/libiberty && chmod +x configure && ./configure && cd ../.. |
3071 |
# MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty " |
# MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty " |
3072 |
echo "#" |
echo "#" |
3073 |
echo "#" |
echo "#" |
3074 |
echo "#" |
echo "#" |
3082 |
echo "#" |
echo "#" |
3083 |
echo "#" |
echo "#" |
3084 |
cd binutils/bfd && chmod +x configure && ./configure && cd ../.. |
cd binutils/bfd && chmod +x configure && ./configure && cd ../.. |
3085 |
# MY_SUBDIRS="$MY_SUBDIRS binutils/bfd " |
# MY_SUBDIRS="$MY_SUBDIRS binutils/bfd " |
3086 |
echo "#" |
echo "#" |
3087 |
echo "#" |
echo "#" |
3088 |
echo "#" |
echo "#" |
3090 |
echo "# ------------------------" |
echo "# ------------------------" |
3091 |
echo "#" |
echo "#" |
3092 |
TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a" |
TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a" |
3093 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
3094 |
#define HAVE_LIBBFD 1 |
#define HAVE_LIBBFD 1 |
3095 |
_ACEOF |
EOF |
3096 |
|
|
3097 |
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" |
3098 |
|
|
3099 |
fi |
fi |
3100 |
|
|
3101 |
#AC_CONFIG_SUBDIRS($MY_SUBDIRS) |
#AC_CONFIG_SUBDIRS($MY_SUBDIRS) |
3104 |
# mechanism, in the PAGE macro. This offset is subtracted from |
# mechanism, in the PAGE macro. This offset is subtracted from |
3105 |
# addresses, in calculating a page for an address in the heap. |
# addresses, in calculating a page for an address in the heap. |
3106 |
|
|
3107 |
echo "$as_me:$LINENO: checking for long *" >&5 |
echo $ac_n "checking size of long *""... $ac_c" 1>&6 |
3108 |
echo $ECHO_N "checking for long *... $ECHO_C" >&6 |
echo "configure:3109: checking size of long *" >&5 |
3109 |
if test "${ac_cv_type_long_p+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_sizeof_long_p'+set}'`\" = set"; then |
3110 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
$ac_includes_default |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
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_p=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_type_long_p=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_type_long_p" >&5 |
|
|
echo "${ECHO_T}$ac_cv_type_long_p" >&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_p+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test "$ac_cv_type_long_p" = 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" |
|
|
#include "confdefs.h" |
|
|
$ac_includes_default |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
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" |
|
|
#include "confdefs.h" |
|
|
$ac_includes_default |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
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 |
|
|
cat 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 |
|
|
cat conftest.$ac_ext >&5 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
$ac_includes_default |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
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" |
|
|
#include "confdefs.h" |
|
|
$ac_includes_default |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
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 |
|
|
cat 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 |
|
|
cat 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" |
|
|
#include "confdefs.h" |
|
|
$ac_includes_default |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
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 |
|
|
cat 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_p=$ac_lo;; |
|
|
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long *), 77" >&5 |
|
|
echo "$as_me: error: cannot compute sizeof (long *), 77" >&2;} |
|
|
{ (exit 1); exit 1; }; } ;; |
|
|
esac |
|
3111 |
else |
else |
3112 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3113 |
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
ac_cv_sizeof_long_p=0 |
3114 |
echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
else |
3115 |
{ (exit 1); exit 1; }; } |
cat > conftest.$ac_ext <<EOF |
3116 |
else |
#line 3117 "configure" |
3117 |
cat >conftest.$ac_ext <<_ACEOF |
#include "confdefs.h" |
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
$ac_includes_default |
|
|
long longval () { return (long) (sizeof (long *)); } |
|
|
unsigned long ulongval () { return (long) (sizeof (long *)); } |
|
3118 |
#include <stdio.h> |
#include <stdio.h> |
3119 |
#include <stdlib.h> |
#include <sys/types.h> |
3120 |
#ifdef F77_DUMMY_MAIN |
main() |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
3121 |
{ |
{ |
3122 |
|
FILE *f=fopen("conftestval", "w"); |
3123 |
FILE *f = fopen ("conftest.val", "w"); |
if (!f) exit(1); |
3124 |
if (! f) |
fprintf(f, "%d\n", sizeof(long *)); |
3125 |
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; |
|
3126 |
} |
} |
3127 |
_ACEOF |
EOF |
3128 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3129 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3130 |
(eval $ac_link) 2>&5 |
ac_cv_sizeof_long_p=`cat conftestval` |
|
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 |
|
|
ac_cv_sizeof_long_p=`cat conftest.val` |
|
|
else |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
( exit $ac_status ) |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long *), 77" >&5 |
|
|
echo "$as_me: error: cannot compute sizeof (long *), 77" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
|
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
fi |
|
|
rm -f conftest.val |
|
3131 |
else |
else |
3132 |
|
echo "configure: failed program was:" >&5 |
3133 |
|
cat conftest.$ac_ext >&5 |
3134 |
|
rm -fr conftest* |
3135 |
ac_cv_sizeof_long_p=0 |
ac_cv_sizeof_long_p=0 |
3136 |
fi |
fi |
3137 |
|
rm -fr conftest* |
3138 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_p" >&5 |
|
|
echo "${ECHO_T}$ac_cv_sizeof_long_p" >&6 |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define SIZEOF_LONG_P $ac_cv_sizeof_long_p |
|
|
_ACEOF |
|
3139 |
|
|
3140 |
|
fi |
3141 |
|
echo "$ac_t""$ac_cv_sizeof_long_p" 1>&6 |
3142 |
|
cat >> confdefs.h <<EOF |
3143 |
|
#define SIZEOF_LONG_P $ac_cv_sizeof_long_p |
3144 |
|
EOF |
3145 |
|
|
3146 |
|
|
3147 |
|
|
3148 |
for ac_header in endian.h |
for ac_hdr in endian.h |
3149 |
do |
do |
3150 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3151 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3152 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:3153: checking for $ac_hdr" >&5 |
3153 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3154 |
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" |
|
|
#include "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 |
|
|
cat 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" |
|
|
#include "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=$? |
|
|
egrep -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 |
|
3155 |
else |
else |
3156 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
3157 |
fi |
#line 3158 "configure" |
3158 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
3159 |
ac_header_preproc=yes |
#include <$ac_hdr> |
3160 |
|
EOF |
3161 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3162 |
|
{ (eval echo configure:3163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3163 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3164 |
|
if test -z "$ac_err"; then |
3165 |
|
rm -rf conftest* |
3166 |
|
eval "ac_cv_header_$ac_safe=yes" |
3167 |
else |
else |
3168 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
3169 |
|
echo "configure: failed program was:" >&5 |
3170 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
3171 |
ac_header_preproc=no |
rm -rf conftest* |
3172 |
|
eval "ac_cv_header_$ac_safe=no" |
3173 |
fi |
fi |
3174 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
3175 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
fi |
3176 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3177 |
|
echo "$ac_t""yes" 1>&6 |
3178 |
# So? What about this header? |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3179 |
case $ac_header_compiler:$ac_header_preproc in |
cat >> confdefs.h <<EOF |
3180 |
yes:no ) |
#define $ac_tr_hdr 1 |
3181 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
EOF |
3182 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
echo $ac_n "checking "endianness"""... $ac_c" 1>&6 |
3183 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
echo "configure:3184: checking "endianness"" >&5 |
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&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;};; |
|
|
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 |
|
3184 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3185 |
echo "$as_me:$LINENO: result: big" >&5 |
echo "$ac_t""big" 1>&6 |
|
echo "${ECHO_T}big" >&6 |
|
3186 |
else |
else |
3187 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3188 |
#line $LINENO "configure" |
#line 3189 "configure" |
3189 |
#include "confdefs.h" |
#include "confdefs.h" |
3190 |
#define __ARMEB__ |
#define __ARMEB__ |
3191 |
#include <endian.h> |
#include <endian.h> |
3192 |
int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;} |
int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;} |
3193 |
_ACEOF |
EOF |
3194 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3195 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3196 |
(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 |
|
3197 |
#define LITTLE_END 1 |
#define LITTLE_END 1 |
3198 |
_ACEOF |
EOF |
3199 |
echo "$as_me:$LINENO: result: little" >&5 |
echo "$ac_t""little" 1>&6 |
3200 |
echo "${ECHO_T}little" >&6 |
else |
3201 |
else |
echo "configure: failed program was:" >&5 |
3202 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
3203 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
3204 |
cat 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 conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
3205 |
fi |
fi |
3206 |
|
rm -fr conftest* |
3207 |
fi |
fi |
3208 |
|
|
3209 |
|
else |
3210 |
|
echo "$ac_t""no" 1>&6 |
3211 |
|
fi |
3212 |
done |
done |
3213 |
|
|
3214 |
|
|
3215 |
|
|
3216 |
echo "$as_me:$LINENO: checking \"finding DBEGIN\"" >&5 |
echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6 |
3217 |
echo $ECHO_N "checking \"finding DBEGIN\"... $ECHO_C" >&6 |
echo "configure:3218: checking "finding DBEGIN"" >&5 |
3218 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3219 |
dbegin=0 |
dbegin=0 |
3220 |
else |
else |
3221 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3222 |
#line $LINENO "configure" |
#line 3223 "configure" |
3223 |
#include "confdefs.h" |
#include "confdefs.h" |
3224 |
#include <stdio.h> |
#include <stdio.h> |
3225 |
#include <stdlib.h> |
#include <stdlib.h> |
3235 |
fclose(fp); |
fclose(fp); |
3236 |
return 0; |
return 0; |
3237 |
} |
} |
3238 |
_ACEOF |
EOF |
3239 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3240 |
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 |
|
3241 |
dbegin=`cat conftest1` |
dbegin=`cat conftest1` |
3242 |
else |
else |
3243 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3244 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3245 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
3246 |
( exit $ac_status ) |
dbegin=0 |
|
dbegin=0 |
|
3247 |
fi |
fi |
3248 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3249 |
fi |
fi |
3250 |
cat >>confdefs.h <<_ACEOF |
|
3251 |
|
cat >> confdefs.h <<EOF |
3252 |
#define DBEGIN $dbegin \ |
#define DBEGIN $dbegin \ |
3253 |
/* where data begins */ |
/* where data begins */ |
3254 |
|
|
3255 |
_ACEOF |
EOF |
3256 |
|
|
3257 |
echo "$as_me:$LINENO: result: got $dbegin" >&5 |
echo "$ac_t""got $dbegin" 1>&6 |
|
echo "${ECHO_T}got $dbegin" >&6 |
|
3258 |
|
|
3259 |
|
|
3260 |
echo "$as_me:$LINENO: checking \"finding CSTACK_ADDRESS\"" >&5 |
echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6 |
3261 |
echo $ECHO_N "checking \"finding CSTACK_ADDRESS\"... $ECHO_C" >&6 |
echo "configure:3262: checking "finding CSTACK_ADDRESS"" >&5 |
3262 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3263 |
cstack_address=0 |
cstack_address=0 |
3264 |
else |
else |
3265 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3266 |
#line $LINENO "configure" |
#line 3267 "configure" |
3267 |
#include "confdefs.h" |
#include "confdefs.h" |
3268 |
#include <stdio.h> |
#include <stdio.h> |
3269 |
main() |
main() |
3274 |
fclose(fp); |
fclose(fp); |
3275 |
return 0; |
return 0; |
3276 |
} |
} |
3277 |
_ACEOF |
EOF |
3278 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3279 |
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 |
|
3280 |
cstack_address=`cat conftest1` |
cstack_address=`cat conftest1` |
3281 |
else |
else |
3282 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3283 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3284 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
3285 |
( exit $ac_status ) |
cstack_address=0 |
|
cstack_address=0 |
|
3286 |
fi |
fi |
3287 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3288 |
fi |
fi |
3289 |
cat >>confdefs.h <<_ACEOF |
|
3290 |
|
cat >> confdefs.h <<EOF |
3291 |
#define CSTACK_ADDRESS $cstack_address \ |
#define CSTACK_ADDRESS $cstack_address \ |
3292 |
|
|
3293 |
_ACEOF |
EOF |
3294 |
|
|
3295 |
echo "$as_me:$LINENO: result: got $cstack_address" >&5 |
echo "$ac_t""got $cstack_address" 1>&6 |
|
echo "${ECHO_T}got $cstack_address" >&6 |
|
3296 |
|
|
3297 |
|
|
3298 |
|
|
3299 |
echo "$as_me:$LINENO: checking \"sizeof long long int\"" >&5 |
echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6 |
3300 |
echo $ECHO_N "checking \"sizeof long long int\"... $ECHO_C" >&6 |
echo "configure:3301: checking "sizeof long long int"" >&5 |
3301 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3302 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
3303 |
|
|
3304 |
else |
else |
3305 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3306 |
#line $LINENO "configure" |
#line 3307 "configure" |
3307 |
#include "confdefs.h" |
#include "confdefs.h" |
3308 |
#include <stdio.h> |
#include <stdio.h> |
3309 |
main() |
main() |
3312 |
return 1; |
return 1; |
3313 |
} |
} |
3314 |
|
|
3315 |
_ACEOF |
EOF |
3316 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3317 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3318 |
(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 |
|
3319 |
#define HAVE_LONG_LONG 1 |
#define HAVE_LONG_LONG 1 |
3320 |
_ACEOF |
EOF |
3321 |
|
|
3322 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
3323 |
else |
else |
3324 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3325 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3326 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
3327 |
( exit $ac_status ) |
echo "$ac_t""no" 1>&6 |
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
3328 |
fi |
fi |
3329 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3330 |
fi |
fi |
3331 |
|
|
3332 |
|
|
3333 |
|
|
3334 |
|
|
3335 |
# readline |
# readline |
3336 |
# Check whether --enable-readline or --disable-readline was given. |
# Check whether --enable-readline or --disable-readline was given. |
3337 |
if test "${enable_readline+set}" = set; then |
if test "${enable_readline+set}" = set; then |
3338 |
enableval="$enable_readline" |
enableval="$enable_readline" |
3339 |
|
: |
3340 |
else |
else |
3341 |
enable_readline="yes" |
enable_readline="yes" |
3342 |
fi; |
fi |
3343 |
|
|
3344 |
|
|
3345 |
# ansi lisp |
# ansi lisp |
3346 |
# Check whether --enable-ansi or --disable-ansi was given. |
# Check whether --enable-ansi or --disable-ansi was given. |
3347 |
if test "${enable_ansi+set}" = set; then |
if test "${enable_ansi+set}" = set; then |
3348 |
enableval="$enable_ansi" |
enableval="$enable_ansi" |
3349 |
|
: |
3350 |
else |
else |
3351 |
enable_ansi="no" |
enable_ansi="no" |
3352 |
fi; |
fi |
3353 |
|
|
3354 |
|
|
3355 |
if test "$enable_ansi" = "yes" ; then |
if test "$enable_ansi" = "yes" ; then |
3356 |
FLISP=saved_ansi_gcl; |
FLISP=saved_ansi_gcl; |
3357 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
3358 |
#define ANSI_COMMON_LISP 1 |
#define ANSI_COMMON_LISP 1 |
3359 |
_ACEOF |
EOF |
3360 |
|
|
3361 |
else |
else |
3362 |
FLISP=saved_gcl |
FLISP=saved_gcl |
3365 |
|
|
3366 |
|
|
3367 |
# pagewidth |
# pagewidth |
3368 |
echo "$as_me:$LINENO: checking for pagewidth" >&5 |
echo $ac_n "checking for pagewidth""... $ac_c" 1>&6 |
3369 |
echo $ECHO_N "checking for pagewidth... $ECHO_C" >&6 |
echo "configure:3370: checking for pagewidth" >&5 |
3370 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3371 |
PAGEWIDTH=0 |
PAGEWIDTH=0 |
3372 |
else |
else |
3373 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3374 |
#line $LINENO "configure" |
#line 3375 "configure" |
3375 |
#include "confdefs.h" |
#include "confdefs.h" |
3376 |
#include <stdio.h> |
#include <stdio.h> |
3377 |
#include <unistd.h> |
#include <unistd.h> |
3378 |
int main() {size_t i=getpagesize(),j; |
int main() {size_t i=getpagesize(),j; |
3379 |
FILE *fp=fopen("conftest1","w"); |
FILE *fp=fopen("conftest1","w"); |
3380 |
for (j=0;i>>=1;j++); |
for (j=0;i>>=1;j++); |
3381 |
fprintf(fp,"%u",j); |
fprintf(fp,"%u",j); |
3382 |
return 0;} |
return 0;} |
3383 |
_ACEOF |
EOF |
3384 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3385 |
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 |
|
3386 |
PAGEWIDTH=`cat conftest1` |
PAGEWIDTH=`cat conftest1` |
3387 |
else |
else |
3388 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3389 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3390 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
3391 |
( exit $ac_status ) |
PAGEWIDTH=0 |
3392 |
PAGEWIDTH=0 |
fi |
3393 |
fi |
rm -fr conftest* |
3394 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fi |
3395 |
fi |
|
3396 |
echo "$as_me:$LINENO: result: $PAGEWIDTH" >&5 |
echo "$ac_t""$PAGEWIDTH" 1>&6 |
3397 |
echo "${ECHO_T}$PAGEWIDTH" >&6 |
cat >> confdefs.h <<EOF |
|
cat >>confdefs.h <<_ACEOF |
|
3398 |
#define PAGEWIDTH $PAGEWIDTH |
#define PAGEWIDTH $PAGEWIDTH |
3399 |
_ACEOF |
EOF |
3400 |
|
|
3401 |
|
|
3402 |
|
|
3405 |
|
|
3406 |
|
|
3407 |
# Check if Posix compliant getcwd exists, if not we'll use getwd. |
# Check if Posix compliant getcwd exists, if not we'll use getwd. |
|
|
|
3408 |
for ac_func in getcwd |
for ac_func in getcwd |
3409 |
do |
do |
3410 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3411 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
echo "configure:3412: checking for $ac_func" >&5 |
3412 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3413 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3414 |
else |
else |
3415 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3416 |
#line $LINENO "configure" |
#line 3417 "configure" |
3417 |
#include "confdefs.h" |
#include "confdefs.h" |
3418 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
3419 |
which can conflict with char $ac_func (); below. */ |
which can conflict with char $ac_func(); below. */ |
3420 |
#include <assert.h> |
#include <assert.h> |
3421 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3422 |
/* 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 |
3423 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3424 |
char $ac_func (); |
char $ac_func(); |
3425 |
char (*f) (); |
|
3426 |
|
int main() { |
3427 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
3428 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
3429 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
3430 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
3431 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
3432 |
choke me |
choke me |
3433 |
#else |
#else |
3434 |
f = $ac_func; |
$ac_func(); |
3435 |
#endif |
#endif |
3436 |
|
|
3437 |
; |
; return 0; } |
3438 |
return 0; |
EOF |
3439 |
} |
if { (eval echo configure:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3440 |
_ACEOF |
rm -rf conftest* |
3441 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_$ac_func=yes" |
3442 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
3443 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
3444 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
3445 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
3446 |
(exit $ac_status); } && |
eval "ac_cv_func_$ac_func=no" |
3447 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
3448 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
3449 |
(eval $ac_try) 2>&5 |
fi |
|
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 |
|
|
cat 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 |
|
3450 |
|
|
3451 |
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3452 |
|
echo "$ac_t""yes" 1>&6 |
3453 |
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3454 |
|
cat >> confdefs.h <<EOF |
3455 |
|
#define $ac_tr_func 1 |
3456 |
|
EOF |
3457 |
|
|
3458 |
|
else |
3459 |
|
echo "$ac_t""no" 1>&6 |
3460 |
fi |
fi |
3461 |
done |
done |
3462 |
|
|
|
|
|
3463 |
for ac_func in getwd |
for ac_func in getwd |
3464 |
do |
do |
3465 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3466 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
echo "configure:3467: checking for $ac_func" >&5 |
3467 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3468 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3469 |
else |
else |
3470 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3471 |
#line $LINENO "configure" |
#line 3472 "configure" |
3472 |
#include "confdefs.h" |
#include "confdefs.h" |
3473 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
3474 |
which can conflict with char $ac_func (); below. */ |
which can conflict with char $ac_func(); below. */ |
3475 |
#include <assert.h> |
#include <assert.h> |
3476 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3477 |
/* 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 |
3478 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3479 |
char $ac_func (); |
char $ac_func(); |
3480 |
char (*f) (); |
|
3481 |
|
int main() { |
3482 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
3483 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
3484 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
3485 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
3486 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
3487 |
choke me |
choke me |
3488 |
#else |
#else |
3489 |
f = $ac_func; |
$ac_func(); |
3490 |
#endif |
#endif |
3491 |
|
|
3492 |
; |
; return 0; } |
3493 |
return 0; |
EOF |
3494 |
} |
if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3495 |
_ACEOF |
rm -rf conftest* |
3496 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_$ac_func=yes" |
3497 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
3498 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
3499 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
3500 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
3501 |
(exit $ac_status); } && |
eval "ac_cv_func_$ac_func=no" |
3502 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
3503 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
3504 |
(eval $ac_try) 2>&5 |
fi |
|
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 |
|
|
cat 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 |
|
3505 |
|
|
3506 |
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3507 |
|
echo "$ac_t""yes" 1>&6 |
3508 |
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3509 |
|
cat >> confdefs.h <<EOF |
3510 |
|
#define $ac_tr_func 1 |
3511 |
|
EOF |
3512 |
|
|
3513 |
|
else |
3514 |
|
echo "$ac_t""no" 1>&6 |
3515 |
fi |
fi |
3516 |
done |
done |
3517 |
|
|
3518 |
echo "$as_me:$LINENO: checking for uname" >&5 |
echo $ac_n "checking for uname""... $ac_c" 1>&6 |
3519 |
echo $ECHO_N "checking for uname... $ECHO_C" >&6 |
echo "configure:3520: checking for uname" >&5 |
3520 |
if test "${ac_cv_func_uname+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then |
3521 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3522 |
else |
else |
3523 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3524 |
#line $LINENO "configure" |
#line 3525 "configure" |
3525 |
#include "confdefs.h" |
#include "confdefs.h" |
3526 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
3527 |
which can conflict with char uname (); below. */ |
which can conflict with char uname(); below. */ |
3528 |
#include <assert.h> |
#include <assert.h> |
3529 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3530 |
/* 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 |
3531 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3532 |
char uname (); |
char uname(); |
3533 |
char (*f) (); |
|
3534 |
|
int main() { |
3535 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
3536 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
3537 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
3538 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
3539 |
#if defined (__stub_uname) || defined (__stub___uname) |
#if defined (__stub_uname) || defined (__stub___uname) |
3540 |
choke me |
choke me |
3541 |
#else |
#else |
3542 |
f = uname; |
uname(); |
3543 |
#endif |
#endif |
3544 |
|
|
3545 |
; |
; return 0; } |
3546 |
return 0; |
EOF |
3547 |
} |
if { (eval echo configure:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3548 |
_ACEOF |
rm -rf conftest* |
3549 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_uname=yes" |
3550 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
3551 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
3552 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
3553 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
3554 |
(exit $ac_status); } && |
eval "ac_cv_func_uname=no" |
3555 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
3556 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
3557 |
(eval $ac_try) 2>&5 |
fi |
3558 |
ac_status=$? |
|
3559 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then |
3560 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_func_uname=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
3561 |
: |
: |
3562 |
else |
else |
3563 |
cat >>confdefs.h <<\_ACEOF |
echo "$ac_t""no" 1>&6 |
3564 |
|
cat >> confdefs.h <<\EOF |
3565 |
#define NO_UNAME 1 |
#define NO_UNAME 1 |
3566 |
_ACEOF |
EOF |
3567 |
|
|
3568 |
fi |
fi |
3569 |
|
|
3570 |
echo "$as_me:$LINENO: checking for gettimeofday" >&5 |
echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
3571 |
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 |
echo "configure:3572: checking for gettimeofday" >&5 |
3572 |
if test "${ac_cv_func_gettimeofday+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
3573 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3574 |
else |
else |
3575 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3576 |
#line $LINENO "configure" |
#line 3577 "configure" |
3577 |
#include "confdefs.h" |
#include "confdefs.h" |
3578 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
3579 |
which can conflict with char gettimeofday (); below. */ |
which can conflict with char gettimeofday(); below. */ |
3580 |
#include <assert.h> |
#include <assert.h> |
3581 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3582 |
/* 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 |
3583 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3584 |
char gettimeofday (); |
char gettimeofday(); |
3585 |
char (*f) (); |
|
3586 |
|
int main() { |
3587 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
3588 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
3589 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
3590 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
3591 |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
3592 |
choke me |
choke me |
3593 |
#else |
#else |
3594 |
f = gettimeofday; |
gettimeofday(); |
3595 |
#endif |
#endif |
3596 |
|
|
3597 |
; |
; return 0; } |
3598 |
return 0; |
EOF |
3599 |
} |
if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3600 |
_ACEOF |
rm -rf conftest* |
3601 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_gettimeofday=yes" |
3602 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
3603 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
3604 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
3605 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
3606 |
(exit $ac_status); } && |
eval "ac_cv_func_gettimeofday=no" |
3607 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
3608 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
3609 |
(eval $ac_try) 2>&5 |
fi |
3610 |
ac_status=$? |
|
3611 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
3612 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_func_gettimeofday=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
3613 |
: |
: |
3614 |
else |
else |
3615 |
cat >>confdefs.h <<\_ACEOF |
echo "$ac_t""no" 1>&6 |
3616 |
|
cat >> confdefs.h <<\EOF |
3617 |
#define NO_GETTOD 1 |
#define NO_GETTOD 1 |
3618 |
_ACEOF |
EOF |
3619 |
|
|
3620 |
fi |
fi |
3621 |
|
|
3622 |
|
|
3623 |
|
|
3624 |
|
for ac_hdr in sys/ioctl.h |
|
for ac_header in sys/ioctl.h |
|
3625 |
do |
do |
3626 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3627 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3628 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:3629: checking for $ac_hdr" >&5 |
3629 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3630 |
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" |
|
|
#include "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 |
|
|
cat 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" |
|
|
#include "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=$? |
|
|
egrep -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 |
|
3631 |
else |
else |
3632 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
3633 |
fi |
#line 3634 "configure" |
3634 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
3635 |
ac_header_preproc=yes |
#include <$ac_hdr> |
3636 |
|
EOF |
3637 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3638 |
|
{ (eval echo configure:3639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3639 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3640 |
|
if test -z "$ac_err"; then |
3641 |
|
rm -rf conftest* |
3642 |
|
eval "ac_cv_header_$ac_safe=yes" |
3643 |
else |
else |
3644 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
3645 |
|
echo "configure: failed program was:" >&5 |
3646 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
3647 |
ac_header_preproc=no |
rm -rf conftest* |
3648 |
fi |
eval "ac_cv_header_$ac_safe=no" |
|
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;};; |
|
|
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;};; |
|
|
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" |
|
3649 |
fi |
fi |
3650 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
rm -f conftest* |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
3651 |
fi |
fi |
3652 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3653 |
cat >>confdefs.h <<_ACEOF |
echo "$ac_t""yes" 1>&6 |
3654 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3655 |
_ACEOF |
cat >> confdefs.h <<EOF |
3656 |
|
#define $ac_tr_hdr 1 |
3657 |
|
EOF |
3658 |
|
|
3659 |
|
else |
3660 |
|
echo "$ac_t""no" 1>&6 |
3661 |
fi |
fi |
|
|
|
3662 |
done |
done |
3663 |
|
|
3664 |
|
|
3674 |
# declare it. |
# declare it. |
3675 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
3676 |
|
|
3677 |
echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5 |
echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6 |
3678 |
echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6 |
echo "configure:3679: checking for BSDgettimeofday" >&5 |
3679 |
if test "${ac_cv_func_BSDgettimeofday+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then |
3680 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3681 |
else |
else |
3682 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3683 |
#line $LINENO "configure" |
#line 3684 "configure" |
3684 |
#include "confdefs.h" |
#include "confdefs.h" |
3685 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
3686 |
which can conflict with char BSDgettimeofday (); below. */ |
which can conflict with char BSDgettimeofday(); below. */ |
3687 |
#include <assert.h> |
#include <assert.h> |
3688 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3689 |
/* 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 |
3690 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3691 |
char BSDgettimeofday (); |
char BSDgettimeofday(); |
3692 |
char (*f) (); |
|
3693 |
|
int main() { |
3694 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
3695 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
3696 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
3697 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
3698 |
#if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday) |
#if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday) |
3699 |
choke me |
choke me |
3700 |
#else |
#else |
3701 |
f = BSDgettimeofday; |
BSDgettimeofday(); |
3702 |
#endif |
#endif |
3703 |
|
|
3704 |
; |
; return 0; } |
3705 |
return 0; |
EOF |
3706 |
} |
if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3707 |
_ACEOF |
rm -rf conftest* |
3708 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_BSDgettimeofday=yes" |
3709 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
3710 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
3711 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
3712 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
3713 |
(exit $ac_status); } && |
eval "ac_cv_func_BSDgettimeofday=no" |
3714 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
3715 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
3716 |
(eval $ac_try) 2>&5 |
fi |
3717 |
ac_status=$? |
|
3718 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then |
3719 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
3720 |
ac_cv_func_BSDgettimeofday=yes |
cat >> confdefs.h <<\EOF |
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
3721 |
#define HAVE_BSDGETTIMEOFDAY 1 |
#define HAVE_BSDGETTIMEOFDAY 1 |
3722 |
_ACEOF |
EOF |
3723 |
|
|
3724 |
else |
else |
3725 |
echo "$as_me:$LINENO: checking for gettimeofday" >&5 |
echo "$ac_t""no" 1>&6 |
3726 |
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 |
echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
3727 |
if test "${ac_cv_func_gettimeofday+set}" = set; then |
echo "configure:3728: checking for gettimeofday" >&5 |
3728 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
3729 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3730 |
else |
else |
3731 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3732 |
#line $LINENO "configure" |
#line 3733 "configure" |
3733 |
#include "confdefs.h" |
#include "confdefs.h" |
3734 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
3735 |
which can conflict with char gettimeofday (); below. */ |
which can conflict with char gettimeofday(); below. */ |
3736 |
#include <assert.h> |
#include <assert.h> |
3737 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3738 |
/* 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 |
3739 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3740 |
char gettimeofday (); |
char gettimeofday(); |
3741 |
char (*f) (); |
|
3742 |
|
int main() { |
3743 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
3744 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
3745 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
3746 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
3747 |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
3748 |
choke me |
choke me |
3749 |
#else |
#else |
3750 |
f = gettimeofday; |
gettimeofday(); |
3751 |
#endif |
#endif |
3752 |
|
|
3753 |
; |
; return 0; } |
3754 |
return 0; |
EOF |
3755 |
} |
if { (eval echo configure:3756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3756 |
_ACEOF |
rm -rf conftest* |
3757 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_gettimeofday=yes" |
3758 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
3759 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
3760 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
3761 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
3762 |
(exit $ac_status); } && |
eval "ac_cv_func_gettimeofday=no" |
3763 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
3764 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
3765 |
(eval $ac_try) 2>&5 |
fi |
3766 |
ac_status=$? |
|
3767 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
3768 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_func_gettimeofday=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
3769 |
: |
: |
3770 |
else |
else |
3771 |
cat >>confdefs.h <<\_ACEOF |
echo "$ac_t""no" 1>&6 |
3772 |
|
cat >> confdefs.h <<\EOF |
3773 |
#define NO_GETTOD 1 |
#define NO_GETTOD 1 |
3774 |
_ACEOF |
EOF |
3775 |
|
|
3776 |
fi |
fi |
3777 |
|
|
3778 |
fi |
fi |
3779 |
|
|
3780 |
|
|
3781 |
echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5 |
echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6 |
3782 |
echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6 |
echo "configure:3783: checking for gettimeofday declaration" >&5 |
3783 |
|
|
3784 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3785 |
#line $LINENO "configure" |
#line 3786 "configure" |
3786 |
#include "confdefs.h" |
#include "confdefs.h" |
3787 |
#include <sys/time.h> |
#include <sys/time.h> |
3788 |
|
EOF |
|
_ACEOF |
|
3789 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3790 |
egrep "gettimeofday" >/dev/null 2>&1; then |
egrep "gettimeofday" >/dev/null 2>&1; then |
3791 |
echo "$as_me:$LINENO: result: present" >&5 |
rm -rf conftest* |
3792 |
echo "${ECHO_T}present" >&6 |
echo "$ac_t""present" 1>&6 |
3793 |
else |
else |
3794 |
echo "$as_me:$LINENO: result: missing" >&5 |
rm -rf conftest* |
3795 |
echo "${ECHO_T}missing" >&6 |
echo "$ac_t""missing" 1>&6 |
3796 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
3797 |
#define GETTOD_NOT_DECLARED 1 |
#define GETTOD_NOT_DECLARED 1 |
3798 |
_ACEOF |
EOF |
3799 |
|
|
3800 |
fi |
fi |
3801 |
rm -f conftest* |
rm -f conftest* |
3802 |
|
|
3803 |
|
|
3804 |
|
|
3805 |
echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 |
3806 |
echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 |
echo "configure:3807: checking for sin in -lm" >&5 |
3807 |
if test "${ac_cv_lib_m_sin+set}" = set; then |
ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` |
3808 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3809 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3810 |
else |
else |
3811 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
3812 |
LIBS="-lm $LIBS" |
LIBS="-lm $LIBS" |
3813 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3814 |
#line $LINENO "configure" |
#line 3815 "configure" |
3815 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
3816 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3817 |
/* 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 |
3818 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3819 |
char sin (); |
char sin(); |
3820 |
#ifdef F77_DUMMY_MAIN |
|
3821 |
# ifdef __cplusplus |
int main() { |
3822 |
extern "C" |
sin() |
3823 |
# endif |
; return 0; } |
3824 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
3825 |
#endif |
if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3826 |
int |
rm -rf conftest* |
3827 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
3828 |
{ |
else |
3829 |
sin (); |
echo "configure: failed program was:" >&5 |
3830 |
; |
cat conftest.$ac_ext >&5 |
3831 |
return 0; |
rm -rf conftest* |
3832 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
3833 |
_ACEOF |
fi |
3834 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
3835 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
3836 |
(eval $ac_link) 2>&5 |
|
3837 |
ac_status=$? |
fi |
3838 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3839 |
(exit $ac_status); } && |
echo "$ac_t""yes" 1>&6 |
|
{ 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_m_sin=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
3840 |
LIBS="${LIBS} -lm" |
LIBS="${LIBS} -lm" |
3841 |
else |
else |
3842 |
true |
echo "$ac_t""no" 1>&6 |
3843 |
|
true |
3844 |
fi |
fi |
3845 |
|
|
3846 |
echo "$as_me:$LINENO: checking for main in -lmingwex" >&5 |
echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6 |
3847 |
echo $ECHO_N "checking for main in -lmingwex... $ECHO_C" >&6 |
echo "configure:3848: checking for main in -lmingwex" >&5 |
3848 |
if test "${ac_cv_lib_mingwex_main+set}" = set; then |
ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'` |
3849 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3850 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3851 |
else |
else |
3852 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
3853 |
LIBS="-lmingwex $LIBS" |
LIBS="-lmingwex $LIBS" |
3854 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3855 |
#line $LINENO "configure" |
#line 3856 "configure" |
3856 |
#include "confdefs.h" |
#include "confdefs.h" |
3857 |
|
|
3858 |
|
int main() { |
3859 |
|
main() |
3860 |
|
; return 0; } |
3861 |
|
EOF |
3862 |
|
if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3863 |
|
rm -rf conftest* |
3864 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3865 |
|
else |
3866 |
|
echo "configure: failed program was:" >&5 |
3867 |
|
cat conftest.$ac_ext >&5 |
3868 |
|
rm -rf conftest* |
3869 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
3870 |
|
fi |
3871 |
|
rm -f conftest* |
3872 |
|
LIBS="$ac_save_LIBS" |
3873 |
|
|
3874 |
#ifdef F77_DUMMY_MAIN |
fi |
3875 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3876 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
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 |
|
|
cat 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 |
|
3877 |
LIBS="${LIBS} -lmingwex" |
LIBS="${LIBS} -lmingwex" |
3878 |
else |
else |
3879 |
true |
echo "$ac_t""no" 1>&6 |
3880 |
|
true |
3881 |
fi |
fi |
3882 |
|
|
3883 |
|
|
3884 |
# Should really find a way to check for prototypes, but this |
# Should really find a way to check for prototypes, but this |
3885 |
# basically works for now. CM |
# basically works for now. CM |
3886 |
# |
# |
3887 |
|
for ac_hdr in math.h |
|
for ac_header in math.h |
|
3888 |
do |
do |
3889 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3890 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3891 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:3892: checking for $ac_hdr" >&5 |
3892 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3893 |
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" |
|
|
#include "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 |
|
|
cat 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" |
|
|
#include "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=$? |
|
|
egrep -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 |
|
3894 |
else |
else |
3895 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
3896 |
fi |
#line 3897 "configure" |
3897 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
3898 |
ac_header_preproc=yes |
#include <$ac_hdr> |
3899 |
|
EOF |
3900 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3901 |
|
{ (eval echo configure:3902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3902 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3903 |
|
if test -z "$ac_err"; then |
3904 |
|
rm -rf conftest* |
3905 |
|
eval "ac_cv_header_$ac_safe=yes" |
3906 |
else |
else |
3907 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
3908 |
|
echo "configure: failed program was:" >&5 |
3909 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
3910 |
ac_header_preproc=no |
rm -rf conftest* |
3911 |
|
eval "ac_cv_header_$ac_safe=no" |
3912 |
fi |
fi |
3913 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
3914 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
fi |
3915 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3916 |
|
echo "$ac_t""yes" 1>&6 |
3917 |
# So? What about this header? |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3918 |
case $ac_header_compiler:$ac_header_preproc in |
cat >> confdefs.h <<EOF |
3919 |
yes:no ) |
#define $ac_tr_hdr 1 |
3920 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
EOF |
3921 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
cat >> confdefs.h <<\EOF |
|
{ 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;};; |
|
|
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;};; |
|
|
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 |
|
3922 |
#define HAVE_MATH_H 1 |
#define HAVE_MATH_H 1 |
3923 |
_ACEOF |
EOF |
3924 |
|
|
3925 |
|
else |
3926 |
|
echo "$ac_t""no" 1>&6 |
3927 |
fi |
fi |
|
|
|
3928 |
done |
done |
3929 |
|
|
3930 |
|
|
3931 |
# |
# |
3932 |
# For DBL_MAX et. al. on (only) certain Linux arches, apparently CM |
# For DBL_MAX et. al. on (only) certain Linux arches, apparently CM |
3933 |
# |
# |
3934 |
|
for ac_hdr in values.h |
|
for ac_header in values.h |
|
3935 |
do |
do |
3936 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3937 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3938 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:3939: checking for $ac_hdr" >&5 |
3939 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3940 |
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" |
|
|
#include "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 |
|
|
cat 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" |
|
|
#include "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=$? |
|
|
egrep -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 |
|
3941 |
else |
else |
3942 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
3943 |
fi |
#line 3944 "configure" |
3944 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
3945 |
ac_header_preproc=yes |
#include <$ac_hdr> |
3946 |
|
EOF |
3947 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3948 |
|
{ (eval echo configure:3949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3949 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3950 |
|
if test -z "$ac_err"; then |
3951 |
|
rm -rf conftest* |
3952 |
|
eval "ac_cv_header_$ac_safe=yes" |
3953 |
else |
else |
3954 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
3955 |
|
echo "configure: failed program was:" >&5 |
3956 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
3957 |
ac_header_preproc=no |
rm -rf conftest* |
3958 |
|
eval "ac_cv_header_$ac_safe=no" |
3959 |
fi |
fi |
3960 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
3961 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
fi |
3962 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3963 |
|
echo "$ac_t""yes" 1>&6 |
3964 |
# So? What about this header? |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3965 |
case $ac_header_compiler:$ac_header_preproc in |
cat >> confdefs.h <<EOF |
3966 |
yes:no ) |
#define $ac_tr_hdr 1 |
3967 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
EOF |
3968 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
cat >> confdefs.h <<\EOF |
|
{ 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;};; |
|
|
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;};; |
|
|
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 |
|
3969 |
#define HAVE_VALUES_H 1 |
#define HAVE_VALUES_H 1 |
3970 |
_ACEOF |
EOF |
3971 |
|
|
3972 |
|
else |
3973 |
|
echo "$ac_t""no" 1>&6 |
3974 |
fi |
fi |
|
|
|
3975 |
done |
done |
3976 |
|
|
3977 |
|
|
3978 |
# |
# |
3979 |
# 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 |
3980 |
# |
# |
3981 |
|
for ac_hdr in float.h |
|
for ac_header in float.h |
|
3982 |
do |
do |
3983 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3984 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3985 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:3986: checking for $ac_hdr" >&5 |
3986 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3987 |
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" |
|
|
#include "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 |
|
|
cat 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" |
|
|
#include "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=$? |
|
|
egrep -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 |
|
3988 |
else |
else |
3989 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
3990 |
fi |
#line 3991 "configure" |
3991 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
3992 |
ac_header_preproc=yes |
#include <$ac_hdr> |
3993 |
|
EOF |
3994 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3995 |
|
{ (eval echo configure:3996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3996 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3997 |
|
if test -z "$ac_err"; then |
3998 |
|
rm -rf conftest* |
3999 |
|
eval "ac_cv_header_$ac_safe=yes" |
4000 |
else |
else |
4001 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
4002 |
|
echo "configure: failed program was:" >&5 |
4003 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4004 |
ac_header_preproc=no |
rm -rf conftest* |
4005 |
|
eval "ac_cv_header_$ac_safe=no" |
4006 |
fi |
fi |
4007 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
4008 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
fi |
4009 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4010 |
|
echo "$ac_t""yes" 1>&6 |
4011 |
# So? What about this header? |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
4012 |
case $ac_header_compiler:$ac_header_preproc in |
cat >> confdefs.h <<EOF |
4013 |
yes:no ) |
#define $ac_tr_hdr 1 |
4014 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
EOF |
4015 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
cat >> confdefs.h <<\EOF |
|
{ 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;};; |
|
|
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;};; |
|
|
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 |
|
4016 |
#define HAVE_FLOAT_H 1 |
#define HAVE_FLOAT_H 1 |
4017 |
_ACEOF |
EOF |
4018 |
|
|
4019 |
|
else |
4020 |
|
echo "$ac_t""no" 1>&6 |
4021 |
fi |
fi |
|
|
|
4022 |
done |
done |
4023 |
|
|
4024 |
|
|
4027 |
# a more comprehensive later, i.e. checking that the fpclass |
# a more comprehensive later, i.e. checking that the fpclass |
4028 |
# test makes sense. CM |
# test makes sense. CM |
4029 |
# |
# |
4030 |
echo "$as_me:$LINENO: checking for isnormal" >&5 |
echo $ac_n "checking for isnormal""... $ac_c" 1>&6 |
4031 |
echo $ECHO_N "checking for isnormal... $ECHO_C" >&6 |
echo "configure:4032: checking for isnormal" >&5 |
4032 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
4033 |
HAVE_ISNORMAL=0 echo "$as_me:$LINENO: result: no" >&5 |
HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
4034 |
else |
else |
4035 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4036 |
#line $LINENO "configure" |
#line 4037 "configure" |
4037 |
#include "confdefs.h" |
#include "confdefs.h" |
4038 |
#define _GNU_SOURCE |
#define _GNU_SOURCE |
4039 |
#include <math.h> |
#include <math.h> |
4041 |
float f; |
float f; |
4042 |
return isnormal(f) || !isnormal(f) ? 0 : 1; |
return isnormal(f) || !isnormal(f) ? 0 : 1; |
4043 |
} |
} |
4044 |
_ACEOF |
EOF |
4045 |
rm -f conftest$ac_exeext |
if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4046 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
4047 |
(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 |
|
4048 |
#define HAVE_ISNORMAL 1 |
#define HAVE_ISNORMAL 1 |
4049 |
_ACEOF |
EOF |
4050 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
4051 |
echo "${ECHO_T}yes" >&6 |
else |
4052 |
else |
echo "configure: failed program was:" >&5 |
4053 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
4054 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
4055 |
cat conftest.$ac_ext >&5 |
echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6 |
4056 |
( exit $ac_status ) |
echo "configure:4057: checking for fpclass in ieeefp.h" >&5 |
|
echo "$as_me:$LINENO: checking for fpclass in ieeefp.h" >&5 |
|
|
echo $ECHO_N "checking for fpclass in ieeefp.h... $ECHO_C" >&6 |
|
4057 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
4058 |
HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5 |
HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
4059 |
else |
else |
4060 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4061 |
#line $LINENO "configure" |
#line 4062 "configure" |
4062 |
#include "confdefs.h" |
#include "confdefs.h" |
4063 |
#include <ieeefp.h> |
#include <ieeefp.h> |
4064 |
int main() { |
int main() { |
4065 |
float f; |
float f; |
4066 |
return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1; |
return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1; |
4067 |
} |
} |
4068 |
_ACEOF |
EOF |
4069 |
rm -f conftest$ac_exeext |
if { (eval echo configure:4070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4070 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
4071 |
(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 |
|
4072 |
#define HAVE_IEEEFP 1 |
#define HAVE_IEEEFP 1 |
4073 |
_ACEOF |
EOF |
4074 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
4075 |
else |
else |
4076 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
4077 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
4078 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
4079 |
( exit $ac_status ) |
HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6 |
|
HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
4080 |
fi |
fi |
4081 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
4082 |
fi |
fi |
4083 |
|
|
4084 |
|
|
4085 |
fi |
fi |
4086 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
4087 |
fi |
fi |
4088 |
|
|
4089 |
echo "$as_me:$LINENO: checking for isfinite" >&5 |
|
4090 |
echo $ECHO_N "checking for isfinite... $ECHO_C" >&6 |
echo $ac_n "checking for isfinite""... $ac_c" 1>&6 |
4091 |
|
echo "configure:4092: checking for isfinite" >&5 |
4092 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
4093 |
HAVE_ISFINITE=0 echo "$as_me:$LINENO: result: no" >&5 |
HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
4094 |
else |
else |
4095 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4096 |
#line $LINENO "configure" |
#line 4097 "configure" |
4097 |
#include "confdefs.h" |
#include "confdefs.h" |
4098 |
#define _GNU_SOURCE |
#define _GNU_SOURCE |
4099 |
#include <math.h> |
#include <math.h> |
4101 |
float f; |
float f; |
4102 |
return isfinite(f) || !isfinite(f) ? 0 : 1; |
return isfinite(f) || !isfinite(f) ? 0 : 1; |
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_ISFINITE 1 |
#define HAVE_ISFINITE 1 |
4109 |
_ACEOF |
EOF |
4110 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
4111 |
echo "${ECHO_T}yes" >&6 |
else |
4112 |
else |
echo "configure: failed program was:" >&5 |
4113 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
4114 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
4115 |
cat conftest.$ac_ext >&5 |
echo $ac_n "checking for finite()""... $ac_c" 1>&6 |
4116 |
( exit $ac_status ) |
echo "configure:4117: checking for finite()" >&5 |
|
echo "$as_me:$LINENO: checking for finite()" >&5 |
|
|
echo $ECHO_N "checking for finite()... $ECHO_C" >&6 |
|
4117 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
4118 |
HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5 |
HAVE_FINITE=0 echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
4119 |
else |
else |
4120 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4121 |
#line $LINENO "configure" |
#line 4122 "configure" |
4122 |
#include "confdefs.h" |
#include "confdefs.h" |
4123 |
#include <math.h> |
#include <math.h> |
4124 |
#include <ieeefp.h> |
#include <ieeefp.h> |
4126 |
float f; |
float f; |
4127 |
return finite(f) || !finite(f) ? 0 : 1; |
return finite(f) || !finite(f) ? 0 : 1; |
4128 |
} |
} |
4129 |
_ACEOF |
EOF |
4130 |
rm -f conftest$ac_exeext |
if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4131 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
4132 |
(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 |
|
4133 |
#define HAVE_FINITE 1 |
#define HAVE_FINITE 1 |
4134 |
_ACEOF |
EOF |
4135 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
4136 |
else |
else |
4137 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
4138 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
4139 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
4140 |
( exit $ac_status ) |
HAVE_FINITE=0 echo "$ac_t""no" 1>&6 |
|
HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
4141 |
fi |
fi |
4142 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
4143 |
fi |
fi |
4144 |
|
|
4145 |
|
|
4146 |
fi |
fi |
4147 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
4148 |
fi |
fi |
4149 |
|
|
4150 |
|
|
4151 |
|
|
4152 |
|
|
4153 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
4154 |
# Check for the existence of the -lsocket and -lnsl libraries. |
# Check for the existence of the -lsocket and -lnsl libraries. |
4155 |
# 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 |
4167 |
# To get around this problem, check for both libraries together |
# To get around this problem, check for both libraries together |
4168 |
# if -lsocket doesn't work by itself. |
# if -lsocket doesn't work by itself. |
4169 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
4170 |
echo "$as_me:$LINENO: checking for sockets" >&5 |
echo $ac_n "checking for sockets""... $ac_c" 1>&6 |
4171 |
echo $ECHO_N "checking for sockets... $ECHO_C" >&6 |
echo "configure:4172: checking for sockets" >&5 |
4172 |
tcl_checkBoth=0 |
tcl_checkBoth=0 |
4173 |
echo "$as_me:$LINENO: checking for connect" >&5 |
echo $ac_n "checking for connect""... $ac_c" 1>&6 |
4174 |
echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
echo "configure:4175: checking for connect" >&5 |
4175 |
if test "${ac_cv_func_connect+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
4176 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4177 |
else |
else |
4178 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4179 |
#line $LINENO "configure" |
#line 4180 "configure" |
4180 |
#include "confdefs.h" |
#include "confdefs.h" |
4181 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4182 |
which can conflict with char connect (); below. */ |
which can conflict with char connect(); below. */ |
4183 |
#include <assert.h> |
#include <assert.h> |
4184 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4185 |
/* 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 |
4186 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4187 |
char connect (); |
char connect(); |
4188 |
char (*f) (); |
|
4189 |
|
int main() { |
4190 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4191 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4192 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4193 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4194 |
#if defined (__stub_connect) || defined (__stub___connect) |
#if defined (__stub_connect) || defined (__stub___connect) |
4195 |
choke me |
choke me |
4196 |
#else |
#else |
4197 |
f = connect; |
connect(); |
4198 |
#endif |
#endif |
4199 |
|
|
4200 |
; |
; return 0; } |
4201 |
return 0; |
EOF |
4202 |
} |
if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4203 |
_ACEOF |
rm -rf conftest* |
4204 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_connect=yes" |
4205 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4206 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4207 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4208 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4209 |
(exit $ac_status); } && |
eval "ac_cv_func_connect=no" |
4210 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4211 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4212 |
(eval $ac_try) 2>&5 |
fi |
4213 |
ac_status=$? |
|
4214 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
4215 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_func_connect=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
4216 |
tcl_checkSocket=0 |
tcl_checkSocket=0 |
4217 |
else |
else |
4218 |
tcl_checkSocket=1 |
echo "$ac_t""no" 1>&6 |
4219 |
|
tcl_checkSocket=1 |
4220 |
fi |
fi |
4221 |
|
|
4222 |
if test "$tcl_checkSocket" = 1; then |
if test "$tcl_checkSocket" = 1; then |
4223 |
echo "$as_me:$LINENO: checking for main in -lsocket" >&5 |
echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 |
4224 |
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6 |
echo "configure:4225: checking for main in -lsocket" >&5 |
4225 |
if test "${ac_cv_lib_socket_main+set}" = set; then |
ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` |
4226 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4227 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
4228 |
else |
else |
4229 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
4230 |
LIBS="-lsocket $LIBS" |
LIBS="-lsocket $LIBS" |
4231 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4232 |
#line $LINENO "configure" |
#line 4233 "configure" |
4233 |
#include "confdefs.h" |
#include "confdefs.h" |
4234 |
|
|
4235 |
|
int main() { |
4236 |
|
main() |
4237 |
|
; return 0; } |
4238 |
|
EOF |
4239 |
|
if { (eval echo configure:4240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4240 |
|
rm -rf conftest* |
4241 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
4242 |
|
else |
4243 |
|
echo "configure: failed program was:" >&5 |
4244 |
|
cat conftest.$ac_ext >&5 |
4245 |
|
rm -rf conftest* |
4246 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
4247 |
|
fi |
4248 |
|
rm -f conftest* |
4249 |
|
LIBS="$ac_save_LIBS" |
4250 |
|
|
4251 |
#ifdef F77_DUMMY_MAIN |
fi |
4252 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
4253 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
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 |
|
|
cat 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 |
|
4254 |
TLIBS="$TLIBS -lsocket" |
TLIBS="$TLIBS -lsocket" |
4255 |
else |
else |
4256 |
tcl_checkBoth=1 |
echo "$ac_t""no" 1>&6 |
4257 |
|
tcl_checkBoth=1 |
4258 |
fi |
fi |
4259 |
|
|
4260 |
fi |
fi |
4263 |
if test "$tcl_checkBoth" = 1; then |
if test "$tcl_checkBoth" = 1; then |
4264 |
tk_oldLibs=$TLIBS |
tk_oldLibs=$TLIBS |
4265 |
TLIBS="$TLIBS -lsocket -lnsl" |
TLIBS="$TLIBS -lsocket -lnsl" |
4266 |
echo "$as_me:$LINENO: checking for accept" >&5 |
echo $ac_n "checking for accept""... $ac_c" 1>&6 |
4267 |
echo $ECHO_N "checking for accept... $ECHO_C" >&6 |
echo "configure:4268: checking for accept" >&5 |
4268 |
if test "${ac_cv_func_accept+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then |
4269 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4270 |
else |
else |
4271 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4272 |
#line $LINENO "configure" |
#line 4273 "configure" |
4273 |
#include "confdefs.h" |
#include "confdefs.h" |
4274 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4275 |
which can conflict with char accept (); below. */ |
which can conflict with char accept(); below. */ |
4276 |
#include <assert.h> |
#include <assert.h> |
4277 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4278 |
/* 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 |
4279 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4280 |
char accept (); |
char accept(); |
4281 |
char (*f) (); |
|
4282 |
|
int main() { |
4283 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4284 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4285 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4286 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4287 |
#if defined (__stub_accept) || defined (__stub___accept) |
#if defined (__stub_accept) || defined (__stub___accept) |
4288 |
choke me |
choke me |
4289 |
#else |
#else |
4290 |
f = accept; |
accept(); |
4291 |
#endif |
#endif |
4292 |
|
|
4293 |
; |
; return 0; } |
4294 |
return 0; |
EOF |
4295 |
} |
if { (eval echo configure:4296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4296 |
_ACEOF |
rm -rf conftest* |
4297 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_accept=yes" |
4298 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4299 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4300 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4301 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4302 |
(exit $ac_status); } && |
eval "ac_cv_func_accept=no" |
4303 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4304 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4305 |
(eval $ac_try) 2>&5 |
fi |
4306 |
ac_status=$? |
|
4307 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then |
4308 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_func_accept=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
4309 |
tcl_checkNsl=0 |
tcl_checkNsl=0 |
4310 |
else |
else |
4311 |
TLIBS=$tk_oldLibs |
echo "$ac_t""no" 1>&6 |
4312 |
|
TLIBS=$tk_oldLibs |
4313 |
fi |
fi |
4314 |
|
|
4315 |
fi |
fi |
4316 |
echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
4317 |
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
echo "configure:4318: checking for gethostbyname" >&5 |
4318 |
if test "${ac_cv_func_gethostbyname+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
4319 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4320 |
else |
else |
4321 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4322 |
#line $LINENO "configure" |
#line 4323 "configure" |
4323 |
#include "confdefs.h" |
#include "confdefs.h" |
4324 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4325 |
which can conflict with char gethostbyname (); below. */ |
which can conflict with char gethostbyname(); below. */ |
4326 |
#include <assert.h> |
#include <assert.h> |
4327 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4328 |
/* 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 |
4329 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4330 |
char gethostbyname (); |
char gethostbyname(); |
4331 |
char (*f) (); |
|
4332 |
|
int main() { |
4333 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4334 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4335 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4336 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4337 |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
4338 |
choke me |
choke me |
4339 |
#else |
#else |
4340 |
f = gethostbyname; |
gethostbyname(); |
4341 |
#endif |
#endif |
4342 |
|
|
4343 |
; |
; return 0; } |
4344 |
return 0; |
EOF |
4345 |
} |
if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4346 |
_ACEOF |
rm -rf conftest* |
4347 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_gethostbyname=yes" |
4348 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4349 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4350 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4351 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4352 |
(exit $ac_status); } && |
eval "ac_cv_func_gethostbyname=no" |
4353 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4354 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4355 |
(eval $ac_try) 2>&5 |
fi |
4356 |
ac_status=$? |
|
4357 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
4358 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_func_gethostbyname=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
4359 |
: |
: |
4360 |
else |
else |
4361 |
echo "$as_me:$LINENO: checking for main in -lnsl" >&5 |
echo "$ac_t""no" 1>&6 |
4362 |
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6 |
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 |
4363 |
if test "${ac_cv_lib_nsl_main+set}" = set; then |
echo "configure:4364: checking for main in -lnsl" >&5 |
4364 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` |
4365 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4366 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
4367 |
else |
else |
4368 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
4369 |
LIBS="-lnsl $LIBS" |
LIBS="-lnsl $LIBS" |
4370 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4371 |
#line $LINENO "configure" |
#line 4372 "configure" |
4372 |
#include "confdefs.h" |
#include "confdefs.h" |
4373 |
|
|
4374 |
|
int main() { |
4375 |
|
main() |
4376 |
|
; return 0; } |
4377 |
|
EOF |
4378 |
|
if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4379 |
|
rm -rf conftest* |
4380 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
4381 |
|
else |
4382 |
|
echo "configure: failed program was:" >&5 |
4383 |
|
cat conftest.$ac_ext >&5 |
4384 |
|
rm -rf conftest* |
4385 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
4386 |
|
fi |
4387 |
|
rm -f conftest* |
4388 |
|
LIBS="$ac_save_LIBS" |
4389 |
|
|
4390 |
#ifdef F77_DUMMY_MAIN |
fi |
4391 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
4392 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
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 |
|
|
cat 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 |
|
4393 |
TLIBS="$TLIBS -lnsl" |
TLIBS="$TLIBS -lnsl" |
4394 |
|
else |
4395 |
|
echo "$ac_t""no" 1>&6 |
4396 |
fi |
fi |
4397 |
|
|
4398 |
fi |
fi |
4399 |
|
|
4400 |
|
|
4401 |
if test "$enable_readline" = "yes" ; then |
if test "$enable_readline" = "yes" ; then |
4402 |
echo "$as_me:$LINENO: checking for main in -lreadline" >&5 |
echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6 |
4403 |
echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6 |
echo "configure:4404: checking for main in -lreadline" >&5 |
4404 |
if test "${ac_cv_lib_readline_main+set}" = set; then |
ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'` |
4405 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4406 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
4407 |
else |
else |
4408 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
4409 |
LIBS="-lreadline -lncurses $LIBS" |
LIBS="-lreadline -lncurses $LIBS" |
4410 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4411 |
#line $LINENO "configure" |
#line 4412 "configure" |
4412 |
#include "confdefs.h" |
#include "confdefs.h" |
4413 |
|
|
4414 |
|
int main() { |
4415 |
|
main() |
4416 |
|
; return 0; } |
4417 |
|
EOF |
4418 |
|
if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4419 |
|
rm -rf conftest* |
4420 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
4421 |
|
else |
4422 |
|
echo "configure: failed program was:" >&5 |
4423 |
|
cat conftest.$ac_ext >&5 |
4424 |
|
rm -rf conftest* |
4425 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
4426 |
|
fi |
4427 |
|
rm -f conftest* |
4428 |
|
LIBS="$ac_save_LIBS" |
4429 |
|
|
4430 |
#ifdef F77_DUMMY_MAIN |
fi |
4431 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
4432 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
4433 |
# endif |
cat >> confdefs.h <<\EOF |
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
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_readline_main=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
4434 |
#define HAVE_READLINE 1 |
#define HAVE_READLINE 1 |
4435 |
_ACEOF |
EOF |
4436 |
|
|
4437 |
TLIBS="$TLIBS -lreadline -lncurses" |
TLIBS="$TLIBS -lreadline -lncurses" |
4438 |
RL_OBJS=readline.o |
RL_OBJS=readline.o |
4439 |
RL_LIB=lsp/readline.o |
RL_LIB=lsp/readline.o |
4440 |
|
else |
4441 |
|
echo "$ac_t""no" 1>&6 |
4442 |
fi |
fi |
4443 |
|
|
4444 |
fi |
fi |
4446 |
|
|
4447 |
|
|
4448 |
|
|
4449 |
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 |
4450 |
echo $ECHO_N "checking For network code for nsocket.c... $ECHO_C" >&6 |
echo "configure:4451: checking For network code for nsocket.c" >&5 |
4451 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4452 |
#line $LINENO "configure" |
#line 4453 "configure" |
4453 |
#include "confdefs.h" |
#include "confdefs.h" |
4454 |
|
|
4455 |
#include <sys/time.h> |
#include <sys/time.h> |
4460 |
#include <fcntl.h> |
#include <fcntl.h> |
4461 |
#include <stdio.h> |
#include <stdio.h> |
4462 |
|
|
4463 |
/************* for the sockets ******************/ |
/************* for the sockets ******************/ |
4464 |
#include <sys/socket.h> /* struct sockaddr, SOCK_STREAM, ... */ |
#include <sys/socket.h> /* struct sockaddr, SOCK_STREAM, ... */ |
4465 |
#ifndef NO_UNAME |
#ifndef NO_UNAME |
4466 |
# include <sys/utsname.h> /* uname system call. */ |
# include <sys/utsname.h> /* uname system call. */ |
4469 |
#include <arpa/inet.h> /* inet_ntoa() */ |
#include <arpa/inet.h> /* inet_ntoa() */ |
4470 |
#include <netdb.h> /* gethostbyname() */ |
#include <netdb.h> /* gethostbyname() */ |
4471 |
|
|
4472 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4473 |
connect(0,(struct sockaddr *)0,0); |
connect(0,(struct sockaddr *)0,0); |
4474 |
gethostbyname("jil"); |
gethostbyname("jil"); |
4475 |
socket(AF_INET, SOCK_STREAM, 0); |
socket(AF_INET, SOCK_STREAM, 0); |
4476 |
|
|
4477 |
; |
; return 0; } |
4478 |
return 0; |
EOF |
4479 |
} |
if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4480 |
_ACEOF |
rm -rf conftest* |
4481 |
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 |
|
4482 |
#define HAVE_NSOCKET 1 |
#define HAVE_NSOCKET 1 |
4483 |
_ACEOF |
EOF |
4484 |
|
|
4485 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
4486 |
else |
else |
4487 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
4488 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4489 |
echo "$as_me:$LINENO: result: no" >&5 |
rm -rf conftest* |
4490 |
echo "${ECHO_T}no" >&6 |
echo "$ac_t""no" 1>&6 |
4491 |
fi |
fi |
4492 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
4493 |
|
|
4494 |
|
|
4495 |
echo "$as_me:$LINENO: checking check for listen using fcntl" >&5 |
echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6 |
4496 |
echo $ECHO_N "checking check for listen using fcntl... $ECHO_C" >&6 |
echo "configure:4497: checking check for listen using fcntl" >&5 |
4497 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4498 |
#line $LINENO "configure" |
#line 4499 "configure" |
4499 |
#include "confdefs.h" |
#include "confdefs.h" |
4500 |
#include <stdio.h> |
#include <stdio.h> |
4501 |
#include <fcntl.h> |
#include <fcntl.h> |
4502 |
|
|
4503 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4504 |
FILE *fp=fopen("configure.in","r"); |
FILE *fp=fopen("configure.in","r"); |
4505 |
int orig; |
int orig; |
4506 |
orig = fcntl(fileno(fp), F_GETFL); |
orig = fcntl(fileno(fp), F_GETFL); |
4507 |
if (! (orig & O_NONBLOCK )) return 0; |
if (! (orig & O_NONBLOCK )) return 0; |
4508 |
|
|
4509 |
; |
; return 0; } |
4510 |
return 0; |
EOF |
4511 |
} |
if { (eval echo configure:4512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4512 |
_ACEOF |
rm -rf conftest* |
4513 |
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 |
|
4514 |
#define LISTEN_USE_FCNTL 1 |
#define LISTEN_USE_FCNTL 1 |
4515 |
_ACEOF |
EOF |
4516 |
|
|
4517 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
4518 |
else |
else |
4519 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
4520 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4521 |
echo "$as_me:$LINENO: result: no" >&5 |
rm -rf conftest* |
4522 |
echo "${ECHO_T}no" >&6 |
echo "$ac_t""no" 1>&6 |
4523 |
fi |
fi |
4524 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
4525 |
|
|
4526 |
|
|
4527 |
|
|
4528 |
|
|
4529 |
echo "$as_me:$LINENO: checking for profil" >&5 |
echo $ac_n "checking for profil""... $ac_c" 1>&6 |
4530 |
echo $ECHO_N "checking for profil... $ECHO_C" >&6 |
echo "configure:4531: checking for profil" >&5 |
4531 |
if test "${ac_cv_func_profil+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then |
4532 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4533 |
else |
else |
4534 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4535 |
#line $LINENO "configure" |
#line 4536 "configure" |
4536 |
#include "confdefs.h" |
#include "confdefs.h" |
4537 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4538 |
which can conflict with char profil (); below. */ |
which can conflict with char profil(); below. */ |
4539 |
#include <assert.h> |
#include <assert.h> |
4540 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4541 |
/* 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 |
4542 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4543 |
char profil (); |
char profil(); |
4544 |
char (*f) (); |
|
4545 |
|
int main() { |
4546 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4547 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4548 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4549 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4550 |
#if defined (__stub_profil) || defined (__stub___profil) |
#if defined (__stub_profil) || defined (__stub___profil) |
4551 |
choke me |
choke me |
4552 |
#else |
#else |
4553 |
f = profil; |
profil(); |
4554 |
#endif |
#endif |
4555 |
|
|
4556 |
; |
; return 0; } |
4557 |
return 0; |
EOF |
4558 |
} |
if { (eval echo configure:4559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4559 |
_ACEOF |
rm -rf conftest* |
4560 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_profil=yes" |
4561 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4562 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4563 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4564 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4565 |
(exit $ac_status); } && |
eval "ac_cv_func_profil=no" |
4566 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4567 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4568 |
(eval $ac_try) 2>&5 |
fi |
4569 |
ac_status=$? |
|
4570 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then |
4571 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
|
ac_cv_func_profil=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
4572 |
: |
: |
4573 |
else |
else |
4574 |
cat >>confdefs.h <<\_ACEOF |
echo "$ac_t""no" 1>&6 |
4575 |
|
cat >> confdefs.h <<\EOF |
4576 |
#define NO_PROFILE 1 |
#define NO_PROFILE 1 |
4577 |
_ACEOF |
EOF |
4578 |
|
|
4579 |
fi |
fi |
4580 |
|
|
4581 |
|
|
4582 |
echo "$as_me:$LINENO: checking for setenv" >&5 |
echo $ac_n "checking for setenv""... $ac_c" 1>&6 |
4583 |
echo $ECHO_N "checking for setenv... $ECHO_C" >&6 |
echo "configure:4584: checking for setenv" >&5 |
4584 |
if test "${ac_cv_func_setenv+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then |
4585 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4586 |
else |
else |
4587 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4588 |
#line $LINENO "configure" |
#line 4589 "configure" |
4589 |
#include "confdefs.h" |
#include "confdefs.h" |
4590 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4591 |
which can conflict with char setenv (); below. */ |
which can conflict with char setenv(); below. */ |
4592 |
#include <assert.h> |
#include <assert.h> |
4593 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4594 |
/* 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 |
4595 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4596 |
char setenv (); |
char setenv(); |
4597 |
char (*f) (); |
|
4598 |
|
int main() { |
4599 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4600 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4601 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4602 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4603 |
#if defined (__stub_setenv) || defined (__stub___setenv) |
#if defined (__stub_setenv) || defined (__stub___setenv) |
4604 |
choke me |
choke me |
4605 |
#else |
#else |
4606 |
f = setenv; |
setenv(); |
4607 |
#endif |
#endif |
4608 |
|
|
4609 |
; |
; return 0; } |
4610 |
return 0; |
EOF |
4611 |
} |
if { (eval echo configure:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4612 |
_ACEOF |
rm -rf conftest* |
4613 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_setenv=yes" |
4614 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4615 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4616 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4617 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4618 |
(exit $ac_status); } && |
eval "ac_cv_func_setenv=no" |
4619 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4620 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4621 |
(eval $ac_try) 2>&5 |
fi |
4622 |
ac_status=$? |
|
4623 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then |
4624 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
4625 |
ac_cv_func_setenv=yes |
cat >> confdefs.h <<\EOF |
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
4626 |
#define HAVE_SETENV 1 |
#define HAVE_SETENV 1 |
4627 |
_ACEOF |
EOF |
4628 |
|
|
4629 |
else |
else |
4630 |
no_setenv=1 |
echo "$ac_t""no" 1>&6 |
4631 |
|
no_setenv=1 |
4632 |
fi |
fi |
4633 |
|
|
4634 |
|
|
4635 |
if test "$no_setenv" = "1" ; then |
if test "$no_setenv" = "1" ; then |
4636 |
echo "$as_me:$LINENO: checking for putenv" >&5 |
echo $ac_n "checking for putenv""... $ac_c" 1>&6 |
4637 |
echo $ECHO_N "checking for putenv... $ECHO_C" >&6 |
echo "configure:4638: checking for putenv" >&5 |
4638 |
if test "${ac_cv_func_putenv+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then |
4639 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4640 |
else |
else |
4641 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4642 |
#line $LINENO "configure" |
#line 4643 "configure" |
4643 |
#include "confdefs.h" |
#include "confdefs.h" |
4644 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4645 |
which can conflict with char putenv (); below. */ |
which can conflict with char putenv(); below. */ |
4646 |
#include <assert.h> |
#include <assert.h> |
4647 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4648 |
/* 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 |
4649 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4650 |
char putenv (); |
char putenv(); |
4651 |
char (*f) (); |
|
4652 |
|
int main() { |
4653 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4654 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4655 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4656 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4657 |
#if defined (__stub_putenv) || defined (__stub___putenv) |
#if defined (__stub_putenv) || defined (__stub___putenv) |
4658 |
choke me |
choke me |
4659 |
#else |
#else |
4660 |
f = putenv; |
putenv(); |
4661 |
#endif |
#endif |
4662 |
|
|
4663 |
; |
; return 0; } |
4664 |
return 0; |
EOF |
4665 |
} |
if { (eval echo configure:4666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4666 |
_ACEOF |
rm -rf conftest* |
4667 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_putenv=yes" |
4668 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4669 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4670 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4671 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4672 |
(exit $ac_status); } && |
eval "ac_cv_func_putenv=no" |
4673 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4674 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4675 |
(eval $ac_try) 2>&5 |
fi |
4676 |
ac_status=$? |
|
4677 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then |
4678 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
4679 |
ac_cv_func_putenv=yes |
cat >> confdefs.h <<\EOF |
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
4680 |
#define HAVE_PUTENV 1 |
#define HAVE_PUTENV 1 |
4681 |
_ACEOF |
EOF |
4682 |
|
|
4683 |
|
else |
4684 |
|
echo "$ac_t""no" 1>&6 |
4685 |
fi |
fi |
4686 |
|
|
4687 |
|
|
4688 |
fi |
fi |
4689 |
|
|
4690 |
echo "$as_me:$LINENO: checking for _cleanup" >&5 |
echo $ac_n "checking for _cleanup""... $ac_c" 1>&6 |
4691 |
echo $ECHO_N "checking for _cleanup... $ECHO_C" >&6 |
echo "configure:4692: checking for _cleanup" >&5 |
4692 |
if test "${ac_cv_func__cleanup+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then |
4693 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4694 |
else |
else |
4695 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4696 |
#line $LINENO "configure" |
#line 4697 "configure" |
4697 |
#include "confdefs.h" |
#include "confdefs.h" |
4698 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4699 |
which can conflict with char _cleanup (); below. */ |
which can conflict with char _cleanup(); below. */ |
4700 |
#include <assert.h> |
#include <assert.h> |
4701 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4702 |
/* 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 |
4703 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4704 |
char _cleanup (); |
char _cleanup(); |
4705 |
char (*f) (); |
|
4706 |
|
int main() { |
4707 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4708 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4709 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4710 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4711 |
#if defined (__stub__cleanup) || defined (__stub____cleanup) |
#if defined (__stub__cleanup) || defined (__stub____cleanup) |
4712 |
choke me |
choke me |
4713 |
#else |
#else |
4714 |
f = _cleanup; |
_cleanup(); |
4715 |
#endif |
#endif |
4716 |
|
|
4717 |
; |
; return 0; } |
4718 |
return 0; |
EOF |
4719 |
} |
if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4720 |
_ACEOF |
rm -rf conftest* |
4721 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func__cleanup=yes" |
4722 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4723 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4724 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4725 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4726 |
(exit $ac_status); } && |
eval "ac_cv_func__cleanup=no" |
4727 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4728 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4729 |
(eval $ac_try) 2>&5 |
fi |
4730 |
ac_status=$? |
|
4731 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then |
4732 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
4733 |
ac_cv_func__cleanup=yes |
cat >> confdefs.h <<\EOF |
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat 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 |
|
4734 |
#define USE_CLEANUP 1 |
#define USE_CLEANUP 1 |
4735 |
_ACEOF |
EOF |
4736 |
|
|
4737 |
|
else |
4738 |
|
echo "$ac_t""no" 1>&6 |
4739 |
fi |
fi |
4740 |
|
|
4741 |
|
|
4742 |
gcl_ok=no |
gcl_ok=no |
4743 |
|
|
4744 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4745 |
#line $LINENO "configure" |
#line 4746 "configure" |
4746 |
#include "confdefs.h" |
#include "confdefs.h" |
4747 |
#include <ctype.h> |
#include <ctype.h> |
4748 |
|
EOF |
|
_ACEOF |
|
4749 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4750 |
egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then |
egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then |
4751 |
|
rm -rf conftest* |
4752 |
gcl_ok=yes |
gcl_ok=yes |
4753 |
else |
else |
4754 |
|
rm -rf conftest* |
4755 |
gcl_ok=noo |
gcl_ok=noo |
4756 |
fi |
fi |
4757 |
rm -f conftest* |
rm -f conftest* |
4758 |
|
|
4759 |
if test $gcl_ok = yes ; then |
if test $gcl_ok = yes ; then |
4760 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
4761 |
#define ENDIAN_ALREADY_DEFINED 1 |
#define ENDIAN_ALREADY_DEFINED 1 |
4762 |
_ACEOF |
EOF |
4763 |
|
|
4764 |
fi |
fi |
4765 |
|
|
4769 |
|
|
4770 |
|
|
4771 |
# if test "x$enable_machine" = "x" ; then |
# if test "x$enable_machine" = "x" ; then |
4772 |
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 |
4773 |
echo $ECHO_N "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... $ECHO_C" >&6 |
echo "configure:4774: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5 |
4774 |
|
|
4775 |
case $system in |
case $system in |
4776 |
OSF*) |
OSF*) |
4777 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
4778 |
#define USE_FIONBIO 1 |
#define USE_FIONBIO 1 |
4779 |
_ACEOF |
EOF |
4780 |
|
|
4781 |
echo "$as_me:$LINENO: result: FIONBIO" >&5 |
echo "$ac_t""FIONBIO" 1>&6 |
|
echo "${ECHO_T}FIONBIO" >&6 |
|
4782 |
;; |
;; |
4783 |
SunOS-4*) |
SunOS-4*) |
4784 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
4785 |
#define USE_FIONBIO 1 |
#define USE_FIONBIO 1 |
4786 |
_ACEOF |
EOF |
4787 |
|
|
4788 |
echo "$as_me:$LINENO: result: FIONBIO" >&5 |
echo "$ac_t""FIONBIO" 1>&6 |
|
echo "${ECHO_T}FIONBIO" >&6 |
|
4789 |
;; |
;; |
4790 |
ULTRIX-4.*) |
ULTRIX-4.*) |
4791 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
4792 |
#define USE_FIONBIO 1 |
#define USE_FIONBIO 1 |
4793 |
_ACEOF |
EOF |
4794 |
|
|
4795 |
echo "$as_me:$LINENO: result: FIONBIO" >&5 |
echo "$ac_t""FIONBIO" 1>&6 |
|
echo "${ECHO_T}FIONBIO" >&6 |
|
4796 |
;; |
;; |
4797 |
*) |
*) |
4798 |
echo "$as_me:$LINENO: result: O_NONBLOCK" >&5 |
echo "$ac_t""O_NONBLOCK" 1>&6 |
|
echo "${ECHO_T}O_NONBLOCK" >&6 |
|
4799 |
;; |
;; |
4800 |
esac |
esac |
4801 |
|
|
4802 |
|
|
4803 |
echo "$as_me:$LINENO: checking check for SV_ONSTACK" >&5 |
echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6 |
4804 |
echo $ECHO_N "checking check for SV_ONSTACK... $ECHO_C" >&6 |
echo "configure:4805: checking check for SV_ONSTACK" >&5 |
4805 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4806 |
#line $LINENO "configure" |
#line 4807 "configure" |
4807 |
#include "confdefs.h" |
#include "confdefs.h" |
4808 |
#include <signal.h> |
#include <signal.h> |
4809 |
int joe=SV_ONSTACK; |
int joe=SV_ONSTACK; |
4810 |
|
|
4811 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4812 |
|
|
4813 |
; |
; return 0; } |
4814 |
return 0; |
EOF |
4815 |
} |
if { (eval echo configure:4816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4816 |
_ACEOF |
rm -rf conftest* |
4817 |
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 |
|
4818 |
#define HAVE_SV_ONSTACK 1 |
#define HAVE_SV_ONSTACK 1 |
4819 |
_ACEOF |
EOF |
|
|
|
4820 |
|
|
4821 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
4822 |
echo "${ECHO_T}yes" >&6 |
echo "$ac_t""yes" 1>&6 |
4823 |
else |
else |
4824 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
4825 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4826 |
echo "$as_me:$LINENO: result: no" >&5 |
rm -rf conftest* |
4827 |
echo "${ECHO_T}no" >&6 |
echo "$ac_t""no" 1>&6 |
4828 |
fi |
fi |
4829 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
4830 |
|
|
4831 |
echo "$as_me:$LINENO: checking check for SIGSYS" >&5 |
echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6 |
4832 |
echo $ECHO_N "checking check for SIGSYS... $ECHO_C" >&6 |
echo "configure:4833: checking check for SIGSYS" >&5 |
4833 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4834 |
#line $LINENO "configure" |
#line 4835 "configure" |
4835 |
#include "confdefs.h" |
#include "confdefs.h" |
4836 |
#include <signal.h> |
#include <signal.h> |
4837 |
int joe=SIGSYS; |
int joe=SIGSYS; |
4838 |
|
|
4839 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4840 |
|
|
4841 |
; |
; return 0; } |
4842 |
return 0; |
EOF |
4843 |
} |
if { (eval echo configure:4844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4844 |
_ACEOF |
rm -rf conftest* |
4845 |
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 |
|
4846 |
#define HAVE_SIGSYS 1 |
#define HAVE_SIGSYS 1 |
4847 |
_ACEOF |
EOF |
|
|
|
4848 |
|
|
4849 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
4850 |
echo "${ECHO_T}yes" >&6 |
echo "$ac_t""yes" 1>&6 |
4851 |
else |
else |
4852 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
4853 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4854 |
echo "$as_me:$LINENO: result: no" >&5 |
rm -rf conftest* |
4855 |
echo "${ECHO_T}no" >&6 |
echo "$ac_t""no" 1>&6 |
4856 |
fi |
fi |
4857 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
4858 |
|
|
4859 |
|
|
4860 |
echo "$as_me:$LINENO: checking check for SIGEMT" >&5 |
echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6 |
4861 |
echo $ECHO_N "checking check for SIGEMT... $ECHO_C" >&6 |
echo "configure:4862: checking check for SIGEMT" >&5 |
4862 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4863 |
#line $LINENO "configure" |
#line 4864 "configure" |
4864 |
#include "confdefs.h" |
#include "confdefs.h" |
4865 |
#include <signal.h> |
#include <signal.h> |
4866 |
int joe=SIGEMT; |
int joe=SIGEMT; |
4867 |
|
|
4868 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4869 |
|
|
4870 |
; |
; return 0; } |
4871 |
return 0; |
EOF |
4872 |
} |
if { (eval echo configure:4873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4873 |
_ACEOF |
rm -rf conftest* |
4874 |
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 |
|
4875 |
#define HAVE_SIGEMT 1 |
#define HAVE_SIGEMT 1 |
4876 |
_ACEOF |
EOF |
|
|
|
4877 |
|
|
4878 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
4879 |
echo "${ECHO_T}yes" >&6 |
echo "$ac_t""yes" 1>&6 |
4880 |
else |
else |
4881 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
4882 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4883 |
echo "$as_me:$LINENO: result: no" >&5 |
rm -rf conftest* |
4884 |
echo "${ECHO_T}no" >&6 |
echo "$ac_t""no" 1>&6 |
4885 |
fi |
fi |
4886 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
4887 |
|
|
4888 |
|
|
4889 |
|
|
4890 |
|
|
4891 |
#if test $use = "386-linux" ; then |
#if test $use = "386-linux" ; then |
4892 |
|
for ac_hdr in asm/sigcontext.h |
|
for ac_header in asm/sigcontext.h |
|
4893 |
do |
do |
4894 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4895 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4896 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:4897: checking for $ac_hdr" >&5 |
4897 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4898 |
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" |
|
|
#include "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 |
|
|
cat 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" |
|
|
#include "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=$? |
|
|
egrep -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 |
|
4899 |
else |
else |
4900 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
4901 |
fi |
#line 4902 "configure" |
4902 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
4903 |
ac_header_preproc=yes |
#include <$ac_hdr> |
4904 |
|
EOF |
4905 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4906 |
|
{ (eval echo configure:4907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4907 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4908 |
|
if test -z "$ac_err"; then |
4909 |
|
rm -rf conftest* |
4910 |
|
eval "ac_cv_header_$ac_safe=yes" |
4911 |
else |
else |
4912 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
4913 |
|
echo "configure: failed program was:" >&5 |
4914 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4915 |
ac_header_preproc=no |
rm -rf conftest* |
4916 |
|
eval "ac_cv_header_$ac_safe=no" |
4917 |
fi |
fi |
4918 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
|
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;};; |
|
|
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;};; |
|
|
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 |
|
|
|
|
4919 |
fi |
fi |
4920 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4921 |
cat >>confdefs.h <<_ACEOF |
echo "$ac_t""yes" 1>&6 |
4922 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
4923 |
_ACEOF |
cat >> confdefs.h <<EOF |
4924 |
|
#define $ac_tr_hdr 1 |
4925 |
|
EOF |
4926 |
|
|
4927 |
|
else |
4928 |
|
echo "$ac_t""no" 1>&6 |
4929 |
fi |
fi |
|
|
|
4930 |
done |
done |
4931 |
|
|
4932 |
|
for ac_hdr in asm/signal.h |
|
for ac_header in asm/signal.h |
|
4933 |
do |
do |
4934 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4935 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4936 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:4937: checking for $ac_hdr" >&5 |
4937 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4938 |
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" |
|
|
#include "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 |
|
|
cat 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" |
|
|
#include "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=$? |
|
|
egrep -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 |
|
4939 |
else |
else |
4940 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
4941 |
fi |
#line 4942 "configure" |
4942 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
4943 |
ac_header_preproc=yes |
#include <$ac_hdr> |
4944 |
|
EOF |
4945 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4946 |
|
{ (eval echo configure:4947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4947 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4948 |
|
if test -z "$ac_err"; then |
4949 |
|
rm -rf conftest* |
4950 |
|
eval "ac_cv_header_$ac_safe=yes" |
4951 |
else |
else |
4952 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
4953 |
|
echo "configure: failed program was:" >&5 |
4954 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4955 |
ac_header_preproc=no |
rm -rf conftest* |
4956 |
|
eval "ac_cv_header_$ac_safe=no" |
4957 |
fi |
fi |
4958 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
|
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;};; |
|
|
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;};; |
|
|
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 |
|
|
|
|
4959 |
fi |
fi |
4960 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4961 |
cat >>confdefs.h <<_ACEOF |
echo "$ac_t""yes" 1>&6 |
4962 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
4963 |
_ACEOF |
cat >> confdefs.h <<EOF |
4964 |
|
#define $ac_tr_hdr 1 |
4965 |
|
EOF |
4966 |
|
|
4967 |
|
else |
4968 |
|
echo "$ac_t""no" 1>&6 |
4969 |
fi |
fi |
|
|
|
4970 |
done |
done |
4971 |
|
|
4972 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4973 |
#line $LINENO "configure" |
#line 4974 "configure" |
4974 |
#include "confdefs.h" |
#include "confdefs.h" |
4975 |
#include <signal.h> |
#include <signal.h> |
4976 |
long code; |
long code; |
4977 |
|
|
4978 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4979 |
|
|
4980 |
void *p = ((void *)(((struct sigcontext_struct *)(&code)))); |
void *p = ((void *)(((struct sigcontext_struct *)(&code)))); |
4981 |
|
|
4982 |
; |
; return 0; } |
4983 |
return 0; |
EOF |
4984 |
} |
if { (eval echo configure:4985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4985 |
_ACEOF |
rm -rf conftest* |
4986 |
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 |
|
|
|
|
4987 |
sigcontext_struct_works=1; |
sigcontext_struct_works=1; |
4988 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
4989 |
#define SIGNAL_H_HAS_SIGCONTEXT 1 |
#define SIGNAL_H_HAS_SIGCONTEXT 1 |
4990 |
_ACEOF |
EOF |
|
|
|
|
echo "$as_me:$LINENO: result: \"sigcontext in signal.h\"" >&5 |
|
|
echo "${ECHO_T}\"sigcontext in signal.h\"" >&6 |
|
4991 |
|
|
4992 |
|
echo "$ac_t"""sigcontext in signal.h"" 1>&6 |
4993 |
|
|
4994 |
else |
else |
4995 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
4996 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4997 |
sigcontext_struct_works=0; |
rm -rf conftest* |
4998 |
echo "$as_me:$LINENO: result: \"sigcontext NOT in signal.h\"" >&5 |
sigcontext_struct_works=0; |
4999 |
echo "${ECHO_T}\"sigcontext NOT in signal.h\"" >&6 |
echo "$ac_t"""sigcontext NOT in signal.h"" 1>&6 |
5000 |
|
|
5001 |
fi |
fi |
5002 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
5003 |
if test "$sigcontext_struct_works" = 0 ; then |
if test "$sigcontext_struct_works" = 0 ; then |
5004 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5005 |
#line $LINENO "configure" |
#line 5006 "configure" |
5006 |
#include "confdefs.h" |
#include "confdefs.h" |
5007 |
#include <signal.h> |
#include <signal.h> |
5008 |
#ifdef HAVE_ASM_SIGCONTEXT_H |
#ifdef HAVE_ASM_SIGCONTEXT_H |
5009 |
#include <asm/sigcontext.h> |
#include <asm/sigcontext.h> |
5010 |
#endif |
#endif |
5011 |
#ifdef HAVE_ASM_SIGNAL_H |
#ifdef HAVE_ASM_SIGNAL_H |
5012 |
#include <asm/signal.h> |
#include <asm/signal.h> |
5013 |
#endif |
#endif |
5014 |
long code; |
long code; |
5015 |
|
|
5016 |
#ifdef F77_DUMMY_MAIN |
int main() { |
5017 |
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
5018 |
void *p = ((void *)(((struct sigcontext *)(&code)))); |
void *p = ((void *)(((struct sigcontext *)(&code)))); |
5019 |
|
|
5020 |
; |
; return 0; } |
5021 |
return 0; |
EOF |
5022 |
} |
if { (eval echo configure:5023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5023 |
_ACEOF |
rm -rf conftest* |
5024 |
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 |
|
|
|
|
5025 |
sigcontext_works=1 ; |
sigcontext_works=1 ; |
5026 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
5027 |
#define HAVE_SIGCONTEXT 1 |
#define HAVE_SIGCONTEXT 1 |
5028 |
_ACEOF |
EOF |
|
|
|
|
echo "$as_me:$LINENO: result: \"use struct sigcontext\"" >&5 |
|
|
echo "${ECHO_T}\"use struct sigcontext\"" >&6 |
|
5029 |
|
|
5030 |
|
echo "$ac_t"""use struct sigcontext"" 1>&6 |
5031 |
|
|
5032 |
else |
else |
5033 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
5034 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
5035 |
|
rm -rf conftest* |
5036 |
sigcontext_works=0 ; |
|
5037 |
|
sigcontext_works=0 ; |
5038 |
|
|
5039 |
fi |
fi |
5040 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
5041 |
|
|
5042 |
|
|
5043 |
fi |
fi |
5044 |
# echo 'foo() {}' > conftest1.c |
# echo 'foo() {}' > conftest1.c |
5045 |
# $CC -S conftest1.c |
# $CC -S conftest1.c |
5046 |
# use_underscore=0 |
# use_underscore=0 |
5047 |
# if fgrep _foo conftest1.s ; then use_underscore=1 ; fi |
# if fgrep _foo conftest1.s ; then use_underscore=1 ; fi |
5048 |
# if test $use_underscore = 0 ; then |
# if test $use_underscore = 0 ; then |
5049 |
# MPI_FILE=mpi-386_no_under.o |
# MPI_FILE=mpi-386_no_under.o |
5061 |
|
|
5062 |
# 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. |
5063 |
set dummy emacs; ac_word=$2 |
set dummy emacs; ac_word=$2 |
5064 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5065 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:5066: checking for $ac_word" >&5 |
5066 |
if test "${ac_cv_path_EMACS+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then |
5067 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5068 |
else |
else |
5069 |
case $EMACS in |
case "$EMACS" in |
5070 |
[\\/]* | ?:[\\/]*) |
/*) |
5071 |
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. |
5072 |
;; |
;; |
5073 |
|
?:/*) |
5074 |
|
ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path. |
5075 |
|
;; |
5076 |
*) |
*) |
5077 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5078 |
for as_dir in $PATH |
ac_dummy="$PATH" |
5079 |
do |
for ac_dir in $ac_dummy; do |
5080 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
5081 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
5082 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_path_EMACS="$ac_dir/$ac_word" |
5083 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
5084 |
ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext" |
fi |
5085 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
5086 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
5087 |
;; |
;; |
5088 |
esac |
esac |
5089 |
fi |
fi |
5090 |
EMACS=$ac_cv_path_EMACS |
EMACS="$ac_cv_path_EMACS" |
|
|
|
5091 |
if test -n "$EMACS"; then |
if test -n "$EMACS"; then |
5092 |
echo "$as_me:$LINENO: result: $EMACS" >&5 |
echo "$ac_t""$EMACS" 1>&6 |
|
echo "${ECHO_T}$EMACS" >&6 |
|
5093 |
else |
else |
5094 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
5095 |
fi |
fi |
5096 |
|
|
5097 |
|
|
5109 |
(message ans)) |
(message ans)) |
5110 |
EOF |
EOF |
5111 |
|
|
5112 |
echo "$as_me:$LINENO: checking emacs site lisp directory" >&5 |
echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6 |
5113 |
echo $ECHO_N "checking emacs site lisp directory... $ECHO_C" >&6 |
echo "configure:5114: checking emacs site lisp directory" >&5 |
5114 |
if [ "$EMACS" != "" ] && [ "$EMACS_SITE_LISP" = "unknown" ] ; then |
if [ "$EMACS" != "" ] && [ "$EMACS_SITE_LISP" = "unknown" ] ; then |
5115 |
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 ` |
5116 |
else |
else |
5117 |
EMACS_SITE_LISP="" |
EMACS_SITE_LISP="" |
5118 |
fi |
fi |
5119 |
echo "$as_me:$LINENO: result: $EMACS_SITE_LISP" >&5 |
echo "$ac_t""$EMACS_SITE_LISP" 1>&6 |
|
echo "${ECHO_T}$EMACS_SITE_LISP" >&6 |
|
5120 |
|
|
5121 |
|
|
5122 |
# check for where the emacs site lisp default.el is |
# check for where the emacs site lisp default.el is |
5131 |
(message ans)) |
(message ans)) |
5132 |
EOF |
EOF |
5133 |
|
|
5134 |
echo "$as_me:$LINENO: checking emacs default.el" >&5 |
echo $ac_n "checking emacs default.el""... $ac_c" 1>&6 |
5135 |
echo $ECHO_N "checking emacs default.el... $ECHO_C" >&6 |
echo "configure:5136: checking emacs default.el" >&5 |
5136 |
if [ "$EMACS" != "" ] ; then |
if [ "$EMACS" != "" ] ; then |
5137 |
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 ` |
5138 |
else |
else |
5143 |
EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el |
EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el |
5144 |
fi |
fi |
5145 |
fi |
fi |
5146 |
echo "$as_me:$LINENO: result: $EMACS_DEFAULT_EL" >&5 |
echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6 |
|
echo "${ECHO_T}$EMACS_DEFAULT_EL" >&6 |
|
5147 |
|
|
5148 |
|
|
5149 |
|
|
5154 |
(let ((ans "") file (tem Info-default-directory-list)) |
(let ((ans "") file (tem Info-default-directory-list)) |
5155 |
(while tem |
(while tem |
5156 |
(cond ((file-exists-p (setq file (expand-file-name "dir" (car tem)))) |
(cond ((file-exists-p (setq file (expand-file-name "dir" (car tem)))) |
5157 |
(setq ans (file-name-as-directory (car tem))) |
(setq ans (file-name-as-directory (car tem))) |
5158 |
(setq tem nil) )) |
(setq tem nil) )) |
5159 |
(setq tem (cdr tem))) |
(setq tem (cdr tem))) |
5160 |
(message ans)) |
(message ans)) |
5161 |
EOF |
EOF |
5162 |
|
|
5163 |
echo "$as_me:$LINENO: checking emacs info/dir" >&5 |
echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6 |
5164 |
echo $ECHO_N "checking emacs info/dir... $ECHO_C" >&6 |
echo "configure:5165: checking emacs info/dir" >&5 |
5165 |
if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then |
if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then |
5166 |
INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
5167 |
fi |
fi |
5171 |
else true; |
else true; |
5172 |
fi |
fi |
5173 |
fi |
fi |
5174 |
echo "$as_me:$LINENO: result: $INFO_DIR" >&5 |
echo "$ac_t""$INFO_DIR" 1>&6 |
|
echo "${ECHO_T}$INFO_DIR" >&6 |
|
5175 |
|
|
5176 |
|
|
5177 |
echo "$as_me:$LINENO: checking for tcl/tk" >&5 |
echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6 |
5178 |
echo $ECHO_N "checking for tcl/tk... $ECHO_C" >&6 |
echo "configure:5179: checking for tcl/tk" >&5 |
5179 |
|
|
5180 |
|
|
5181 |
if test -d "${TCL_CONFIG_PREFIX}" ; then true ; else |
if test -d "${TCL_CONFIG_PREFIX}" ; then true ; else |
5185 |
set dir [set tcl_library] |
set dir [set tcl_library] |
5186 |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
5187 |
puts [set dir] |
puts [set dir] |
5188 |
exit |
exit |
5189 |
} |
} |
5190 |
set dir [file dirname [set tcl_library]] |
set dir [file dirname [set tcl_library]] |
5191 |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
5197 |
|
|
5198 |
# 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. |
5199 |
set dummy tclsh; ac_word=$2 |
set dummy tclsh; ac_word=$2 |
5200 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5201 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:5202: checking for $ac_word" >&5 |
5202 |
if test "${ac_cv_prog_TCLSH+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then |
5203 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5204 |
else |
else |
5205 |
if test -n "$TCLSH"; then |
if test -n "$TCLSH"; then |
5206 |
ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test. |
ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test. |
5207 |
else |
else |
5208 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5209 |
for as_dir in $PATH |
ac_dummy="$PATH" |
5210 |
do |
for ac_dir in $ac_dummy; do |
5211 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
5212 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
5213 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_TCLSH="tclsh" |
5214 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
5215 |
ac_cv_prog_TCLSH="tclsh" |
fi |
5216 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
5217 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
5218 |
test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}" |
test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}" |
5219 |
fi |
fi |
5220 |
fi |
fi |
5221 |
TCLSH=$ac_cv_prog_TCLSH |
TCLSH="$ac_cv_prog_TCLSH" |
5222 |
if test -n "$TCLSH"; then |
if test -n "$TCLSH"; then |
5223 |
echo "$as_me:$LINENO: result: $TCLSH" >&5 |
echo "$ac_t""$TCLSH" 1>&6 |
|
echo "${ECHO_T}$TCLSH" >&6 |
|
5224 |
else |
else |
5225 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
5226 |
fi |
fi |
5227 |
|
|
5228 |
#AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH}) |
#AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH}) |
5288 |
else |
else |
5289 |
if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then |
if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then |
5290 |
TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
5291 |
fi |
fi |
5292 |
fi |
fi |
5293 |
if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then |
if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then |
5294 |
TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include |
TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include |
5297 |
TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
5298 |
fi |
fi |
5299 |
fi |
fi |
5300 |
echo "$as_me:$LINENO: checking for main in -llieee" >&5 |
echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6 |
5301 |
echo $ECHO_N "checking for main in -llieee... $ECHO_C" >&6 |
echo "configure:5302: checking for main in -llieee" >&5 |
5302 |
if test "${ac_cv_lib_lieee_main+set}" = set; then |
ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'` |
5303 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5304 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5305 |
else |
else |
5306 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
5307 |
LIBS="-llieee $LIBS" |
LIBS="-llieee $LIBS" |
5308 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5309 |
#line $LINENO "configure" |
#line 5310 "configure" |
5310 |
#include "confdefs.h" |
#include "confdefs.h" |
5311 |
|
|
5312 |
|
int main() { |
5313 |
|
main() |
5314 |
|
; return 0; } |
5315 |
|
EOF |
5316 |
|
if { (eval echo configure:5317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5317 |
|
rm -rf conftest* |
5318 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
5319 |
|
else |
5320 |
|
echo "configure: failed program was:" >&5 |
5321 |
|
cat conftest.$ac_ext >&5 |
5322 |
|
rm -rf conftest* |
5323 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
5324 |
|
fi |
5325 |
|
rm -f conftest* |
5326 |
|
LIBS="$ac_save_LIBS" |
5327 |
|
|
5328 |
#ifdef F77_DUMMY_MAIN |
fi |
5329 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5330 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
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 |
|
|
cat 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 |
|
5331 |
have_ieee=1 |
have_ieee=1 |
5332 |
else |
else |
5333 |
have_ieee=0 |
echo "$ac_t""no" 1>&6 |
5334 |
|
have_ieee=0 |
5335 |
fi |
fi |
5336 |
|
|
5337 |
if test "$have_ieee" = "0" ; then |
if test "$have_ieee" = "0" ; then |
5362 |
|
|
5363 |
|
|
5364 |
if test -d "${TK_CONFIG_PREFIX}" ; then |
if test -d "${TK_CONFIG_PREFIX}" ; then |
5365 |
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 |
|
5366 |
else |
else |
5367 |
echo "$as_me:$LINENO: result: not found" >&5 |
echo "$ac_t""not found" 1>&6 |
|
echo "${ECHO_T}not found" >&6 |
|
5368 |
fi |
fi |
5369 |
|
|
5370 |
NOTIFY=$enable_notify |
NOTIFY=$enable_notify |
5371 |
|
|
5372 |
|
|
5373 |
|
|
5374 |
|
|
5375 |
|
|
5376 |
# for sgbc the mprotect capabilities. |
# for sgbc the mprotect capabilities. |
5377 |
|
|
5378 |
# the time handling for unixtime, add timezone |
# the time handling for unixtime, add timezone |
5379 |
|
|
5380 |
echo "$as_me:$LINENO: checking alloca" >&5 |
echo $ac_n "checking alloca""... $ac_c" 1>&6 |
5381 |
echo $ECHO_N "checking alloca... $ECHO_C" >&6 |
echo "configure:5382: checking alloca" >&5 |
5382 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
5383 |
gcl_ok=no |
gcl_ok=no |
5384 |
else |
else |
5385 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5386 |
#line $LINENO "configure" |
#line 5387 "configure" |
5387 |
#include "confdefs.h" |
#include "confdefs.h" |
5388 |
int main() { exit(alloca(500) != NULL ? 0 : 1);} |
int main() { exit(alloca(500) != NULL ? 0 : 1);} |
5389 |
_ACEOF |
EOF |
5390 |
rm -f conftest$ac_exeext |
if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5391 |
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 |
|
5392 |
: |
: |
5393 |
else |
else |
5394 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
5395 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
5396 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
5397 |
( exit $ac_status ) |
gcl_ok=yes |
|
gcl_ok=yes |
|
5398 |
fi |
fi |
5399 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
5400 |
fi |
fi |
5401 |
|
|
5402 |
if test $gcl_ok = yes ; then |
if test $gcl_ok = yes ; then |
5403 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
5404 |
echo "${ECHO_T}yes" >&6 |
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
5405 |
#define HAVE_ALLOCA 1 |
#define HAVE_ALLOCA 1 |
5406 |
_ACEOF |
EOF |
5407 |
|
|
5408 |
else |
else |
5409 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
5410 |
gcl_ok=no |
gcl_ok=no |
5411 |
else |
else |
5412 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5413 |
#line $LINENO "configure" |
#line 5414 "configure" |
5414 |
#include "confdefs.h" |
#include "confdefs.h" |
5415 |
#include <alloca.h> |
#include <alloca.h> |
5416 |
int main() { exit(alloca(500) != NULL ? 0 : 1)} |
int main() { exit(alloca(500) != NULL ? 0 : 1)} |
5417 |
_ACEOF |
EOF |
5418 |
rm -f conftest$ac_exeext |
if { (eval echo configure:5419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5419 |
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 |
|
5420 |
: |
: |
5421 |
else |
else |
5422 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
5423 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
5424 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
5425 |
( exit $ac_status ) |
gcl_ok=yes |
|
gcl_ok=yes |
|
5426 |
fi |
fi |
5427 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
5428 |
fi |
fi |
5429 |
|
|
5430 |
if test $gcl_ok = yes ; then |
if test $gcl_ok = yes ; then |
5431 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
5432 |
echo "${ECHO_T}yes" >&6 |
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
5433 |
#define HAVE_ALLOCA 1 |
#define HAVE_ALLOCA 1 |
5434 |
_ACEOF |
EOF |
5435 |
|
|
5436 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
5437 |
#define NEED_ALLOCA_H 1 |
#define NEED_ALLOCA_H 1 |
5438 |
_ACEOF |
EOF |
5439 |
|
|
5440 |
fi |
fi |
5441 |
fi |
fi |
5442 |
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 |
|
5443 |
|
|
5444 |
|
|
5445 |
|
|
5455 |
# dlopen etc |
# dlopen etc |
5456 |
# idea make it so you do something dlopen(libX.so,RTLD_GLOBAL) |
# idea make it so you do something dlopen(libX.so,RTLD_GLOBAL) |
5457 |
# 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 |
5458 |
# |
# |
5459 |
|
|
5460 |
# what machine this is, and include then a machine specific hdr. |
# what machine this is, and include then a machine specific hdr. |
5461 |
# and machine specific defs. |
# and machine specific defs. |
5475 |
|
|
5476 |
# redhat/cygnus released for some reason a buggy version of gcc, |
# redhat/cygnus released for some reason a buggy version of gcc, |
5477 |
# which no one else released. Catch that here. |
# which no one else released. Catch that here. |
5478 |
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 |
5479 |
echo $ECHO_N "checking Checking for buggy gcc version from redhat... $ECHO_C" >&6 |
echo "configure:5480: checking Checking for buggy gcc version from redhat" >&5 |
5480 |
if 2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null |
if 2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null |
5481 |
then |
then |
5482 |
BROKEN_O4_OPT=1 |
BROKEN_O4_OPT=1 |
5483 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
5484 |
#define BROKEN_O4_OPT 1 |
#define BROKEN_O4_OPT 1 |
5485 |
_ACEOF |
EOF |
|
|
|
5486 |
|
|
5487 |
|
|
5488 |
echo ODIR_DEBUG=-O >> makedefsafter |
echo ODIR_DEBUG=-O >> makedefsafter |
5489 |
echo >> makedefsafter |
echo >> makedefsafter |
5490 |
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 |
|
5491 |
else |
else |
5492 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
5493 |
echo "${ECHO_T}no" >&6 |
fi |
|
fi |
|
5494 |
|
|
5495 |
LIBS="$LIBS $TLIBS" |
LIBS="$LIBS $TLIBS" |
5496 |
|
|
5505 |
|
|
5506 |
if test -f h/$use.defs ; then |
if test -f h/$use.defs ; then |
5507 |
|
|
5508 |
|
|
5509 |
ac_config_files="$ac_config_files makedefc" |
trap '' 1 2 15 |
5510 |
cat >confcache <<\_ACEOF |
cat > confcache <<\EOF |
5511 |
# This file is a shell script that caches the results of configure |
# This file is a shell script that caches the results of configure |
5512 |
# tests run on this system so they can be shared between configure |
# tests run on this system so they can be shared between configure |
5513 |
# scripts and configure runs, see configure's option --config-cache. |
# scripts and configure runs. It is not useful on other systems. |
5514 |
# 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. |
|
5515 |
# |
# |
5516 |
# config.status only pays attention to the cache file if you give it |
# By default, configure uses ./config.cache as the cache file, |
5517 |
# the --recheck option to rerun configure. |
# creating it if it does not exist already. You can give configure |
5518 |
|
# the --cache-file=FILE option to use a different cache file; that is |
5519 |
|
# what configure does when it calls configure scripts in |
5520 |
|
# subdirectories, so they share the cache. |
5521 |
|
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
5522 |
|
# config.status only pays attention to the cache file if you give it the |
5523 |
|
# --recheck option to rerun configure. |
5524 |
# |
# |
5525 |
# `ac_cv_env_foo' variables (set or unset) will be overriden when |
EOF |
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
|
# following values. |
|
|
|
|
|
_ACEOF |
|
|
|
|
5526 |
# The following way of writing the cache mishandles newlines in values, |
# The following way of writing the cache mishandles newlines in values, |
5527 |
# but we know of no workaround that is simple, portable, and efficient. |
# but we know of no workaround that is simple, portable, and efficient. |
5528 |
# So, don't put newlines in cache variables' values. |
# So, don't put newlines in cache variables' values. |
5529 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
# Ultrix sh set writes to stderr and can't be redirected directly, |
5530 |
# 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. |
5531 |
{ |
(set) 2>&1 | |
5532 |
(set) 2>&1 | |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
5533 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
*ac_space=\ *) |
5534 |
*ac_space=\ *) |
# `set' does not quote correctly, so add quotes (double-quote substitution |
5535 |
# `set' does not quote correctly, so add quotes (double-quote |
# turns \\\\ into \\, and sed turns \\ into \). |
5536 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
sed -n \ |
5537 |
sed -n \ |
-e "s/'/'\\\\''/g" \ |
5538 |
"s/'/'\\\\''/g; |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
5539 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
;; |
5540 |
;; |
*) |
5541 |
*) |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
5542 |
# `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' |
5543 |
sed -n \ |
;; |
5544 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
esac >> confcache |
5545 |
;; |
if cmp -s $cache_file confcache; then |
5546 |
esac; |
: |
5547 |
} | |
else |
|
sed ' |
|
|
t clear |
|
|
: clear |
|
|
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|
|
t end |
|
|
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
|
: end' >>confcache |
|
|
if cmp -s $cache_file confcache; then :; else |
|
5548 |
if test -w $cache_file; then |
if test -w $cache_file; then |
5549 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
echo "updating cache $cache_file" |
5550 |
cat confcache >$cache_file |
cat confcache > $cache_file |
5551 |
else |
else |
5552 |
echo "not updating unwritable cache $cache_file" |
echo "not updating unwritable cache $cache_file" |
5553 |
fi |
fi |
5554 |
fi |
fi |
5555 |
rm -f confcache |
rm -f confcache |
5556 |
|
|
5557 |
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
5558 |
|
|
5559 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
5560 |
# Let make expand exec_prefix. |
# Let make expand exec_prefix. |
5561 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
5562 |
|
|
5563 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
# Any assignment to VPATH causes Sun make to only execute |
5564 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
# the first set of double-colon rules, so remove it if not needed. |
5565 |
# 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). |
|
5566 |
if test "x$srcdir" = x.; then |
if test "x$srcdir" = x.; then |
5567 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
|
s/:*\$(srcdir):*/:/; |
|
|
s/:*\${srcdir}:*/:/; |
|
|
s/:*@srcdir@:*/:/; |
|
|
s/^\([^=]*=[ ]*\):*/\1/; |
|
|
s/:*$//; |
|
|
s/^[^=]*=[ ]*$//; |
|
|
}' |
|
5568 |
fi |
fi |
5569 |
|
|
5570 |
DEFS=-DHAVE_CONFIG_H |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
5571 |
|
|
5572 |
|
DEFS=-DHAVE_CONFIG_H |
5573 |
|
|
5574 |
|
# Without the "./", some shells look in PATH for config.status. |
5575 |
: ${CONFIG_STATUS=./config.status} |
: ${CONFIG_STATUS=./config.status} |
5576 |
ac_clean_files_save=$ac_clean_files |
|
5577 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
echo creating $CONFIG_STATUS |
5578 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
rm -f $CONFIG_STATUS |
5579 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
cat > $CONFIG_STATUS <<EOF |
5580 |
cat >$CONFIG_STATUS <<_ACEOF |
#! /bin/sh |
5581 |
#! $SHELL |
# Generated automatically by configure. |
|
# Generated by $as_me. |
|
5582 |
# Run this file to recreate the current configuration. |
# Run this file to recreate the current configuration. |
5583 |
|
# This directory was configured as follows, |
5584 |
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
5585 |
|
# |
5586 |
|
# $0 $ac_configure_args |
5587 |
|
# |
5588 |
# Compiler output produced by configure, useful for debugging |
# Compiler output produced by configure, useful for debugging |
5589 |
# configure, is in config.log if it exists. |
# configure, is in ./config.log if it exists. |
|
|
|
|
debug=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=: |
|
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
|
|
set -o posix |
|
|
fi |
|
|
|
|
|
# NLS nuisances. |
|
|
# Support unset when possible. |
|
|
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
|
|
as_unset=unset |
|
|
else |
|
|
as_unset=false |
|
|
fi |
|
|
|
|
|
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
|
|
{ $as_unset LANG || test "${LANG+set}" != set; } || |
|
|
{ LANG=C; export LANG; } |
|
|
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
|
|
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
|
|
{ LC_ALL=C; export LC_ALL; } |
|
|
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
|
|
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
|
|
{ LC_TIME=C; export LC_TIME; } |
|
|
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
|
|
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
|
|
{ LC_CTYPE=C; export LC_CTYPE; } |
|
|
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
|
|
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
|
|
{ LANGUAGE=C; export LANGUAGE; } |
|
|
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
|
|
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
|
|
{ LC_COLLATE=C; export LC_COLLATE; } |
|
|
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
|
|
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
|
|
{ LC_NUMERIC=C; export LC_NUMERIC; } |
|
|
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
|
|
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
|
|
{ LC_MESSAGES=C; export LC_MESSAGES; } |
|
|
|
|
|
|
|
|
# Name of the executable. |
|
|
as_me=`(basename "$0") 2>/dev/null || |
|
|
$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" >conftest.sh |
|
|
echo "exit 0" >>conftest.sh |
|
|
chmod +x conftest.sh |
|
|
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
|
|
PATH_SEPARATOR=';' |
|
|
else |
|
|
PATH_SEPARATOR=: |
|
|
fi |
|
|
rm -f conftest.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 |
|
|
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 |
|
|
|
|
|
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 || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
|
|
|
|
|
exec 6>&1 |
|
|
|
|
|
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
|
|
# report actual input values of CONFIG_FILES etc. instead of their |
|
|
# values after options handling. Logging --version etc. is OK. |
|
|
exec 5>>config.log |
|
|
{ |
|
|
echo |
|
|
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.53. 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 |
|
|
-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 |
|
5590 |
|
|
5591 |
cat >>$CONFIG_STATUS <<_ACEOF |
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
5592 |
ac_cs_version="\\ |
for ac_option |
|
config.status |
|
|
configured by $0, generated by GNU Autoconf 2.53, |
|
|
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 |
|
5593 |
do |
do |
5594 |
case $1 in |
case "\$ac_option" in |
|
--*=*) |
|
|
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
|
|
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
|
|
shift |
|
|
set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
|
|
shift |
|
|
;; |
|
|
-*);; |
|
|
*) # This is not an option, so the user has probably given explicit |
|
|
# arguments. |
|
|
ac_need_defaults=false;; |
|
|
esac |
|
|
|
|
|
case $1 in |
|
|
# Handling of the options. |
|
|
_ACEOF |
|
|
cat >>$CONFIG_STATUS <<_ACEOF |
|
5595 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
5596 |
echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
5597 |
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
5598 |
_ACEOF |
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
5599 |
cat >>$CONFIG_STATUS <<\_ACEOF |
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
5600 |
--version | --vers* | -V ) |
exit 0 ;; |
5601 |
echo "$ac_cs_version"; exit 0 ;; |
-help | --help | --hel | --he | --h) |
5602 |
--he | --h) |
echo "\$ac_cs_usage"; exit 0 ;; |
5603 |
# Conflict between --help and --header |
*) echo "\$ac_cs_usage"; exit 1 ;; |
|
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
|
|
Try \`$0 --help' for more information." >&5 |
|
|
echo "$as_me: error: ambiguous option: $1 |
|
|
Try \`$0 --help' for more information." >&2;} |
|
|
{ (exit 1); exit 1; }; };; |
|
|
--help | --hel | -h ) |
|
|
echo "$ac_cs_usage"; exit 0 ;; |
|
|
--debug | --d* | -d ) |
|
|
debug=: ;; |
|
|
--file | --fil | --fi | --f ) |
|
|
shift |
|
|
CONFIG_FILES="$CONFIG_FILES $1" |
|
|
ac_need_defaults=false;; |
|
|
--header | --heade | --head | --hea ) |
|
|
shift |
|
|
CONFIG_HEADERS="$CONFIG_HEADERS $1" |
|
|
ac_need_defaults=false;; |
|
|
|
|
|
# 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 |
|
|
|
|
|
_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" ;; |
|
|
"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; }; };; |
|
5604 |
esac |
esac |
5605 |
done |
done |
5606 |
|
|
5607 |
# 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 |
|
5608 |
|
|
5609 |
# Create a temporary directory, and hook for its removal unless debugging. |
trap 'rm -fr `echo "makedefc h/gclincl.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
5610 |
$debug || |
EOF |
5611 |
{ |
cat >> $CONFIG_STATUS <<EOF |
|
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. |
|
|
: ${TMPDIR=/tmp} |
|
|
{ |
|
|
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
|
|
test -n "$tmp" && test -d "$tmp" |
|
|
} || |
|
|
{ |
|
|
tmp=$TMPDIR/cs$$-$RANDOM |
|
|
(umask 077 && mkdir $tmp) |
|
|
} || |
|
|
{ |
|
|
echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
|
|
{ (exit 1); exit 1; } |
|
|
} |
|
|
|
|
|
_ACEOF |
|
|
|
|
|
cat >>$CONFIG_STATUS <<_ACEOF |
|
5612 |
|
|
5613 |
# |
# Protect against being on the right side of a sed subst in config.status. |
5614 |
# CONFIG_FILES section. |
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
5615 |
# |
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
5616 |
|
$ac_vpsub |
5617 |
|
$extrasub |
5618 |
|
s%@SHELL@%$SHELL%g |
5619 |
|
s%@CFLAGS@%$CFLAGS%g |
5620 |
|
s%@CPPFLAGS@%$CPPFLAGS%g |
5621 |
|
s%@CXXFLAGS@%$CXXFLAGS%g |
5622 |
|
s%@FFLAGS@%$FFLAGS%g |
5623 |
|
s%@DEFS@%$DEFS%g |
5624 |
|
s%@LDFLAGS@%$LDFLAGS%g |
5625 |
|
s%@LIBS@%$LIBS%g |
5626 |
|
s%@exec_prefix@%$exec_prefix%g |
5627 |
|
s%@prefix@%$prefix%g |
5628 |
|
s%@program_transform_name@%$program_transform_name%g |
5629 |
|
s%@bindir@%$bindir%g |
5630 |
|
s%@sbindir@%$sbindir%g |
5631 |
|
s%@libexecdir@%$libexecdir%g |
5632 |
|
s%@datadir@%$datadir%g |
5633 |
|
s%@sysconfdir@%$sysconfdir%g |
5634 |
|
s%@sharedstatedir@%$sharedstatedir%g |
5635 |
|
s%@localstatedir@%$localstatedir%g |
5636 |
|
s%@libdir@%$libdir%g |
5637 |
|
s%@includedir@%$includedir%g |
5638 |
|
s%@oldincludedir@%$oldincludedir%g |
5639 |
|
s%@infodir@%$infodir%g |
5640 |
|
s%@mandir@%$mandir%g |
5641 |
|
s%@host@%$host%g |
5642 |
|
s%@host_alias@%$host_alias%g |
5643 |
|
s%@host_cpu@%$host_cpu%g |
5644 |
|
s%@host_vendor@%$host_vendor%g |
5645 |
|
s%@host_os@%$host_os%g |
5646 |
|
s%@PROCESSOR_FLAGS@%$PROCESSOR_FLAGS%g |
5647 |
|
s%@CC@%$CC%g |
5648 |
|
s%@CPP@%$CPP%g |
5649 |
|
s%@AWK@%$AWK%g |
5650 |
|
s%@MAKEINFO@%$MAKEINFO%g |
5651 |
|
s%@GMP@%$GMP%g |
5652 |
|
s%@GMPDIR@%$GMPDIR%g |
5653 |
|
s%@X_CFLAGS@%$X_CFLAGS%g |
5654 |
|
s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
5655 |
|
s%@X_LIBS@%$X_LIBS%g |
5656 |
|
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
5657 |
|
s%@BUILD_BFD@%$BUILD_BFD%g |
5658 |
|
s%@LITTLE_END@%$LITTLE_END%g |
5659 |
|
s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g |
5660 |
|
s%@FLISP@%$FLISP%g |
5661 |
|
s%@PAGEWIDTH@%$PAGEWIDTH%g |
5662 |
|
s%@RL_OBJS@%$RL_OBJS%g |
5663 |
|
s%@RL_LIB@%$RL_LIB%g |
5664 |
|
s%@NO_PROFILE@%$NO_PROFILE%g |
5665 |
|
s%@HAVE_SETENV@%$HAVE_SETENV%g |
5666 |
|
s%@HAVE_PUTENV@%$HAVE_PUTENV%g |
5667 |
|
s%@USE_CLEANUP@%$USE_CLEANUP%g |
5668 |
|
s%@ENDIAN_ALREADY_DEFINED@%$ENDIAN_ALREADY_DEFINED%g |
5669 |
|
s%@HAVE_SV_ONSTACK@%$HAVE_SV_ONSTACK%g |
5670 |
|
s%@HAVE_SIGSYS@%$HAVE_SIGSYS%g |
5671 |
|
s%@HAVE_SIGEMT@%$HAVE_SIGEMT%g |
5672 |
|
s%@EMACS@%$EMACS%g |
5673 |
|
s%@EMACS_SITE_LISP@%$EMACS_SITE_LISP%g |
5674 |
|
s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g |
5675 |
|
s%@INFO_DIR@%$INFO_DIR%g |
5676 |
|
s%@TCLSH@%$TCLSH%g |
5677 |
|
s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g |
5678 |
|
s%@TK_LIBRARY@%$TK_LIBRARY%g |
5679 |
|
s%@TCL_LIBRARY@%$TCL_LIBRARY%g |
5680 |
|
s%@TK_XINCLUDES@%$TK_XINCLUDES%g |
5681 |
|
s%@TK_INCLUDE@%$TK_INCLUDE%g |
5682 |
|
s%@TCL_INCLUDE@%$TCL_INCLUDE%g |
5683 |
|
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g |
5684 |
|
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g |
5685 |
|
s%@TK_XLIBSW@%$TK_XLIBSW%g |
5686 |
|
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g |
5687 |
|
s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g |
5688 |
|
s%@TCL_LIBS@%$TCL_LIBS%g |
5689 |
|
s%@NOTIFY@%$NOTIFY%g |
5690 |
|
s%@BROKEN_O4_OPT@%$BROKEN_O4_OPT%g |
5691 |
|
s%@FINAL_CFLAGS@%$FINAL_CFLAGS%g |
5692 |
|
s%@O3FLAGS@%$O3FLAGS%g |
5693 |
|
s%@O2FLAGS@%$O2FLAGS%g |
5694 |
|
s%@use@%$use%g |
5695 |
|
|
|
# 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,@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,@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,@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,@O3FLAGS@,$O3FLAGS,;t t |
|
|
s,@O2FLAGS@,$O2FLAGS,;t t |
|
|
s,@use@,$use,;t t |
|
5696 |
CEOF |
CEOF |
5697 |
|
EOF |
5698 |
|
|
5699 |
_ACEOF |
cat >> $CONFIG_STATUS <<\EOF |
5700 |
|
|
5701 |
cat >>$CONFIG_STATUS <<\_ACEOF |
# Split the substitutions into bite-sized pieces for seds with |
5702 |
# Split the substitutions into bite-sized pieces for seds with |
# small command number limits, like on Digital OSF/1 and HP-UX. |
5703 |
# 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. |
5704 |
ac_max_sed_lines=48 |
ac_file=1 # Number of current file. |
5705 |
ac_sed_frag=1 # Number of current file. |
ac_beg=1 # First line for current file. |
5706 |
ac_beg=1 # First line for current file. |
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
5707 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
ac_more_lines=: |
5708 |
ac_more_lines=: |
ac_sed_cmds="" |
5709 |
ac_sed_cmds= |
while $ac_more_lines; do |
5710 |
while $ac_more_lines; do |
if test $ac_beg -gt 1; then |
5711 |
if test $ac_beg -gt 1; then |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
5712 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
else |
5713 |
else |
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
5714 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
fi |
5715 |
fi |
if test ! -s conftest.s$ac_file; then |
5716 |
if test ! -s $tmp/subs.frag; then |
ac_more_lines=false |
5717 |
ac_more_lines=false |
rm -f conftest.s$ac_file |
5718 |
|
else |
5719 |
|
if test -z "$ac_sed_cmds"; then |
5720 |
|
ac_sed_cmds="sed -f conftest.s$ac_file" |
5721 |
else |
else |
5722 |
# 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` |
|
5723 |
fi |
fi |
5724 |
done |
ac_file=`expr $ac_file + 1` |
5725 |
if test -z "$ac_sed_cmds"; then |
ac_beg=$ac_end |
5726 |
ac_sed_cmds=cat |
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
5727 |
fi |
fi |
5728 |
fi # test -n "$CONFIG_FILES" |
done |
5729 |
|
if test -z "$ac_sed_cmds"; then |
5730 |
_ACEOF |
ac_sed_cmds=cat |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
|
|
case $ac_file in |
|
|
- | *:- | *:-:* ) # input from stdin |
|
|
cat >$tmp/stdin |
|
|
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
|
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 ;; |
|
|
esac |
|
|
|
|
|
# Compute @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'` |
|
|
{ case "$ac_dir" in |
|
|
[\\/]* | ?:[\\/]* ) as_incr_dir=;; |
|
|
*) as_incr_dir=.;; |
|
|
esac |
|
|
as_dummy="$ac_dir" |
|
|
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
|
|
case $as_mkdir_dir in |
|
|
# Skip DOS drivespec |
|
|
?:) as_incr_dir=$as_mkdir_dir ;; |
|
|
*) |
|
|
as_incr_dir=$as_incr_dir/$as_mkdir_dir |
|
|
test -d "$as_incr_dir" || |
|
|
mkdir "$as_incr_dir" || |
|
|
{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
|
|
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
;; |
|
|
esac |
|
|
done; } |
|
|
|
|
|
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= |
|
5731 |
fi |
fi |
5732 |
|
EOF |
5733 |
|
|
5734 |
case $srcdir in |
cat >> $CONFIG_STATUS <<EOF |
|
.) # 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` |
|
5735 |
|
|
5736 |
|
CONFIG_FILES=\${CONFIG_FILES-"makedefc"} |
5737 |
|
EOF |
5738 |
|
cat >> $CONFIG_STATUS <<\EOF |
5739 |
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
5740 |
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5741 |
|
case "$ac_file" in |
5742 |
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
5743 |
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
5744 |
|
*) ac_file_in="${ac_file}.in" ;; |
5745 |
|
esac |
5746 |
|
|
5747 |
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
5748 |
|
|
5749 |
if test x"$ac_file" != x-; then |
# Remove last slash and all that follows it. Not all systems have dirname. |
5750 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
5751 |
echo "$as_me: creating $ac_file" >&6;} |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
5752 |
rm -f "$ac_file" |
# The file is in a subdirectory. |
5753 |
fi |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
5754 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
5755 |
# use $as_me), people would be surprised to read: |
# A "../" for each directory in $ac_dir_suffix. |
5756 |
# /* config.h. Generated by config.status. */ |
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
|
if test x"$ac_file" = x-; then |
|
|
configure_input= |
|
5757 |
else |
else |
5758 |
configure_input="$ac_file. " |
ac_dir_suffix= ac_dots= |
5759 |
fi |
fi |
|
configure_input=$configure_input"Generated from `echo $ac_file_in | |
|
|
sed 's,.*/,,'` by configure." |
|
5760 |
|
|
5761 |
# First look for the input files in the build tree, otherwise in the |
case "$ac_given_srcdir" in |
5762 |
# src tree. |
.) srcdir=. |
5763 |
ac_file_inputs=`IFS=: |
if test -z "$ac_dots"; then top_srcdir=. |
5764 |
for f in $ac_file_in; do |
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
5765 |
case $f in |
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
5766 |
-) echo $tmp/stdin ;; |
*) # Relative path. |
5767 |
[\\/$]*) |
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
5768 |
# Absolute (can't be DOS-style, as IFS=:) |
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
5769 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
esac |
|
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 |
|
5770 |
|
|
|
done |
|
|
_ACEOF |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
5771 |
|
|
5772 |
# |
echo creating "$ac_file" |
5773 |
# CONFIG_HEADER section. |
rm -f "$ac_file" |
5774 |
# |
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
5775 |
|
case "$ac_file" in |
5776 |
|
*Makefile*) ac_comsub="1i\\ |
5777 |
|
# $configure_input" ;; |
5778 |
|
*) ac_comsub= ;; |
5779 |
|
esac |
5780 |
|
|
5781 |
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
5782 |
|
sed -e "$ac_comsub |
5783 |
|
s%@configure_input@%$configure_input%g |
5784 |
|
s%@srcdir@%$srcdir%g |
5785 |
|
s%@top_srcdir@%$top_srcdir%g |
5786 |
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
5787 |
|
fi; done |
5788 |
|
rm -f conftest.s* |
5789 |
|
|
5790 |
# 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 |
5791 |
# 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. |
5792 |
# |
# |
5793 |
# ac_d sets the value in "#define NAME VALUE" lines. |
# ac_d sets the value in "#define NAME VALUE" lines. |
5794 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
5795 |
ac_dB='[ ].*$,\1#\2' |
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
5796 |
ac_dC=' ' |
ac_dC='\3' |
5797 |
ac_dD=',;t' |
ac_dD='%g' |
5798 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
5799 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
5800 |
ac_uB='$,\1#\2define\3' |
ac_uB='\([ ]\)%\1#\2define\3' |
5801 |
ac_uC=' ' |
ac_uC=' ' |
5802 |
ac_uD=',;t' |
ac_uD='\4%g' |
5803 |
|
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
5804 |
|
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
5805 |
|
ac_eB='$%\1#\2define\3' |
5806 |
|
ac_eC=' ' |
5807 |
|
ac_eD='%g' |
5808 |
|
|
5809 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
if test "${CONFIG_HEADERS+set}" != set; then |
5810 |
|
EOF |
5811 |
|
cat >> $CONFIG_STATUS <<EOF |
5812 |
|
CONFIG_HEADERS="h/gclincl.h" |
5813 |
|
EOF |
5814 |
|
cat >> $CONFIG_STATUS <<\EOF |
5815 |
|
fi |
5816 |
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
5817 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5818 |
case $ac_file in |
case "$ac_file" in |
5819 |
- | *:- | *:-:* ) # input from stdin |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
5820 |
cat >$tmp/stdin |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
5821 |
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 ;; |
|
5822 |
esac |
esac |
5823 |
|
|
5824 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
echo creating $ac_file |
|
echo "$as_me: creating $ac_file" >&6;} |
|
5825 |
|
|
5826 |
# First look for the input files in the build tree, otherwise in the |
rm -f conftest.frag conftest.in conftest.out |
5827 |
# src tree. |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
5828 |
ac_file_inputs=`IFS=: |
cat $ac_file_inputs > conftest.in |
5829 |
for f in $ac_file_in; do |
|
5830 |
case $f in |
EOF |
5831 |
-) echo $tmp/stdin ;; |
|
5832 |
[\\/$]*) |
# Transform confdefs.h into a sed script conftest.vals that substitutes |
5833 |
# Absolute (can't be DOS-style, as IFS=:) |
# the proper values into config.h.in to produce config.h. And first: |
5834 |
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. |
5835 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
# Protect against being in an unquoted here document in config.status. |
5836 |
{ (exit 1); exit 1; }; } |
rm -f conftest.vals |
5837 |
echo $f;; |
cat > conftest.hdr <<\EOF |
5838 |
*) # Relative |
s/[\\&%]/\\&/g |
5839 |
if test -f "$f"; then |
s%[\\$`]%\\&%g |
5840 |
# Build tree |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
5841 |
echo $f |
s%ac_d%ac_u%gp |
5842 |
elif test -f "$srcdir/$f"; then |
s%ac_u%ac_e%gp |
5843 |
# Source tree |
EOF |
5844 |
echo $srcdir/$f |
sed -n -f conftest.hdr confdefs.h > conftest.vals |
5845 |
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 |
|
5846 |
|
|
5847 |
# This sed command replaces #undef with comments. This is necessary, for |
# This sed command replaces #undef with comments. This is necessary, for |
5848 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
5849 |
# on some systems where configure will not decide to define it. |
# on some systems where configure will not decide to define it. |
5850 |
cat >>conftest.undefs <<\_ACEOF |
cat >> conftest.vals <<\EOF |
5851 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
5852 |
_ACEOF |
EOF |
5853 |
|
|
5854 |
# Break up conftest.defines because some shells have a limit on the size |
# Break up conftest.vals because some shells have a limit on |
5855 |
# of here documents, and old seds have small limits too (100 cmds). |
# the size of here documents, and old seds have small limits too. |
5856 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
|
|
echo ' if egrep "^[ ]*#[ ]*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 # egrep' >>$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 |
|
5857 |
rm -f conftest.tail |
rm -f conftest.tail |
5858 |
while grep . conftest.undefs >/dev/null |
while : |
5859 |
do |
do |
5860 |
# Write a limited-size here document to $tmp/undefs.sed. |
ac_lines=`grep -c . conftest.vals` |
5861 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
# grep -c gives empty output for an empty file on some AIX systems. |
5862 |
# Speed up: don't consider the non `#undef' |
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
5863 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
# Write a limited-size here document to conftest.frag. |
5864 |
# Work around the forget-to-reset-the-flag bug. |
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
5865 |
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 |
|
5866 |
echo 'CEOF |
echo 'CEOF |
5867 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
sed -f conftest.frag conftest.in > conftest.out |
5868 |
rm -f $tmp/in |
rm -f conftest.in |
5869 |
mv $tmp/out $tmp/in |
mv conftest.out conftest.in |
5870 |
' >>$CONFIG_STATUS |
' >> $CONFIG_STATUS |
5871 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
5872 |
rm -f conftest.undefs |
rm -f conftest.vals |
5873 |
mv conftest.tail conftest.undefs |
mv conftest.tail conftest.vals |
5874 |
done |
done |
5875 |
rm -f conftest.undefs |
rm -f conftest.vals |
5876 |
|
|
5877 |
cat >>$CONFIG_STATUS <<\_ACEOF |
cat >> $CONFIG_STATUS <<\EOF |
5878 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
rm -f conftest.frag conftest.h |
5879 |
# use $as_me), people would be surprised to read: |
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
5880 |
# /* config.h. Generated by config.status. */ |
cat conftest.in >> conftest.h |
5881 |
if test x"$ac_file" = x-; then |
rm -f conftest.in |
5882 |
echo "/* Generated by configure. */" >$tmp/config.h |
if cmp -s $ac_file conftest.h 2>/dev/null; then |
5883 |
|
echo "$ac_file is unchanged" |
5884 |
|
rm -f conftest.h |
5885 |
else |
else |
5886 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
# Remove last slash and all that follows it. Not all systems have dirname. |
5887 |
fi |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
5888 |
cat $tmp/in >>$tmp/config.h |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
5889 |
rm -f $tmp/in |
# The file is in a subdirectory. |
5890 |
if test x"$ac_file" != x-; then |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
|
if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
|
|
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
|
|
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'` |
|
|
{ case "$ac_dir" in |
|
|
[\\/]* | ?:[\\/]* ) as_incr_dir=;; |
|
|
*) as_incr_dir=.;; |
|
|
esac |
|
|
as_dummy="$ac_dir" |
|
|
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
|
|
case $as_mkdir_dir in |
|
|
# Skip DOS drivespec |
|
|
?:) as_incr_dir=$as_mkdir_dir ;; |
|
|
*) |
|
|
as_incr_dir=$as_incr_dir/$as_mkdir_dir |
|
|
test -d "$as_incr_dir" || |
|
|
mkdir "$as_incr_dir" || |
|
|
{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
|
|
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
;; |
|
|
esac |
|
|
done; } |
|
|
|
|
|
rm -f $ac_file |
|
|
mv $tmp/config.h $ac_file |
|
5891 |
fi |
fi |
5892 |
else |
rm -f $ac_file |
5893 |
cat $tmp/config.h |
mv conftest.h $ac_file |
|
rm -f $tmp/config.h |
|
5894 |
fi |
fi |
5895 |
done |
fi; done |
|
_ACEOF |
|
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
5896 |
|
|
5897 |
{ (exit 0); exit 0; } |
EOF |
5898 |
_ACEOF |
cat >> $CONFIG_STATUS <<EOF |
|
chmod +x $CONFIG_STATUS |
|
|
ac_clean_files=$ac_clean_files_save |
|
5899 |
|
|
5900 |
|
EOF |
5901 |
|
cat >> $CONFIG_STATUS <<\EOF |
5902 |
|
|
5903 |
# configure is writing to config.log, and then calls config.status. |
exit 0 |
5904 |
# config.status does its own redirection, appending to config.log. |
EOF |
5905 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
chmod +x $CONFIG_STATUS |
5906 |
# by configure, so config.status won't be able to write to it; its |
rm -fr confdefs* $ac_clean_files |
5907 |
# 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=: |
|
|
exec 5>/dev/null |
|
|
$SHELL $CONFIG_STATUS || 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 |
|
5908 |
|
|
5909 |
echo makedefc |
echo makedefc |
5910 |
cat makedefc |
cat makedefc |