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-just486=yes forces use of i486 compatible instructions only, (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-just486=yes forces use of i486 compatible instructions only, (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 |
|
532 |
|
|
|
cat >&5 <<_ACEOF |
|
|
|
|
|
|
|
|
## ----------- ## |
|
|
## Core tests. ## |
|
|
## ----------- ## |
|
|
|
|
|
_ACEOF |
|
|
|
|
|
|
|
|
# Keep a trace of the command line. |
|
|
# Strip out --no-create and --no-recursion so they do not pile up. |
|
|
# Also quote any args containing shell meta-characters. |
|
|
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; |
fi |
606 |
|
|
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-just486 or --disable-just486 was given. |
# Check whether --enable-just486 or --disable-just486 was given. |
673 |
if test "${enable_just486+set}" = set; then |
if test "${enable_just486+set}" = set; then |
675 |
use_just486=$enableval |
use_just486=$enableval |
676 |
else |
else |
677 |
use_just486="yes" |
use_just486="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 |
|
{ (exit 1); exit 1; }; } |
|
|
|
|
|
echo "$as_me:$LINENO: checking build 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/'` |
|
710 |
|
|
711 |
|
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
712 |
|
echo "configure:713: checking host system type" >&5 |
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 |
|
|
803 |
IRIX3*) |
IRIX3*) |
804 |
use=sgi4d;; |
use=sgi4d;; |
805 |
esac ;; |
esac ;; |
806 |
|
|
807 |
|
|
808 |
m68k-apple-aux*) |
m68k-apple-aux*) |
809 |
use=mac2;; |
use=mac2;; |
884 |
then use=mingw |
then use=mingw |
885 |
else use=gnuwin95 |
else use=gnuwin95 |
886 |
fi;; |
fi;; |
887 |
|
|
888 |
esac |
esac |
889 |
|
|
890 |
|
|
899 |
def_custreloc="no" |
def_custreloc="no" |
900 |
def_oldgmp="no" |
def_oldgmp="no" |
901 |
def_pic="no"; |
def_pic="no"; |
902 |
case $use in |
case $use in |
903 |
*linux) |
*linux) |
904 |
ln -snf linux.defs h/$use.defs; |
ln -snf linux.defs h/$use.defs; |
905 |
case $use in |
case $use in |
921 |
# Check whether --enable-dlopen or --disable-dlopen was given. |
# Check whether --enable-dlopen or --disable-dlopen was given. |
922 |
if test "${enable_dlopen+set}" = set; then |
if test "${enable_dlopen+set}" = set; then |
923 |
enableval="$enable_dlopen" |
enableval="$enable_dlopen" |
924 |
|
: |
925 |
else |
else |
926 |
enable_dlopen="$def_dlopen" |
enable_dlopen="$def_dlopen" |
927 |
fi; |
fi |
928 |
|
|
929 |
# Check whether --enable-statsysbfd or --disable-statsysbfd was given. |
# Check whether --enable-statsysbfd or --disable-statsysbfd was given. |
930 |
if test "${enable_statsysbfd+set}" = set; then |
if test "${enable_statsysbfd+set}" = set; then |
931 |
enableval="$enable_statsysbfd" |
enableval="$enable_statsysbfd" |
932 |
|
: |
933 |
else |
else |
934 |
enable_statsysbfd="$def_statsysbfd" |
enable_statsysbfd="$def_statsysbfd" |
935 |
fi; |
fi |
936 |
|
|
937 |
# Check whether --enable-dynsysbfd or --disable-dynsysbfd was given. |
# Check whether --enable-dynsysbfd or --disable-dynsysbfd was given. |
938 |
if test "${enable_dynsysbfd+set}" = set; then |
if test "${enable_dynsysbfd+set}" = set; then |
939 |
enableval="$enable_dynsysbfd" |
enableval="$enable_dynsysbfd" |
940 |
|
: |
941 |
else |
else |
942 |
enable_dynsysbfd="no" |
enable_dynsysbfd="no" |
943 |
fi; |
fi |
944 |
|
|
945 |
# Check whether --enable-locbfd or --disable-locbfd was given. |
# Check whether --enable-locbfd or --disable-locbfd was given. |
946 |
if test "${enable_locbfd+set}" = set; then |
if test "${enable_locbfd+set}" = set; then |
947 |
enableval="$enable_locbfd" |
enableval="$enable_locbfd" |
948 |
|
: |
949 |
else |
else |
950 |
enable_locbfd="no" |
enable_locbfd="no" |
951 |
fi; |
fi |
952 |
|
|
953 |
# Check whether --enable-custreloc or --disable-custreloc was given. |
# Check whether --enable-custreloc or --disable-custreloc was given. |
954 |
if test "${enable_custreloc+set}" = set; then |
if test "${enable_custreloc+set}" = set; then |
955 |
enableval="$enable_custreloc" |
enableval="$enable_custreloc" |
956 |
|
: |
957 |
else |
else |
958 |
enable_custreloc="$def_custreloc" |
enable_custreloc="$def_custreloc" |
959 |
fi; |
fi |
960 |
|
|
961 |
# Check whether --enable-debug or --disable-debug was given. |
# Check whether --enable-debug or --disable-debug was given. |
962 |
if test "${enable_debug+set}" = set; then |
if test "${enable_debug+set}" = set; then |
963 |
enableval="$enable_debug" |
enableval="$enable_debug" |
964 |
|
: |
965 |
else |
else |
966 |
enable_debug="no" |
enable_debug="no" |
967 |
fi; |
fi |
968 |
|
|
969 |
# Check whether --enable-pic or --disable-pic was given. |
# Check whether --enable-pic or --disable-pic was given. |
970 |
if test "${enable_pic+set}" = set; then |
if test "${enable_pic+set}" = set; then |
971 |
enableval="$enable_pic" |
enableval="$enable_pic" |
972 |
|
: |
973 |
else |
else |
974 |
enable_pic="$def_pic" |
enable_pic="$def_pic" |
975 |
fi; |
fi |
976 |
|
|
977 |
|
|
978 |
# Check whether --enable-oldgmp or --disable-oldgmp was given. |
# Check whether --enable-oldgmp or --disable-oldgmp was given. |
979 |
if test "${enable_oldgmp+set}" = set; then |
if test "${enable_oldgmp+set}" = set; then |
980 |
enableval="$enable_oldgmp" |
enableval="$enable_oldgmp" |
981 |
|
: |
982 |
else |
else |
983 |
enable_oldgmp="$def_oldgmp" |
enable_oldgmp="$def_oldgmp" |
984 |
fi; |
fi |
985 |
|
|
986 |
|
|
987 |
# Check whether --enable-dynsysgmp or --disable-dynsysgmp was given. |
# Check whether --enable-dynsysgmp or --disable-dynsysgmp was given. |
988 |
if test "${enable_dynsysgmp+set}" = set; then |
if test "${enable_dynsysgmp+set}" = set; then |
989 |
enableval="$enable_dynsysgmp" |
enableval="$enable_dynsysgmp" |
990 |
|
: |
991 |
else |
else |
992 |
enable_dynsysgmp="no" |
enable_dynsysgmp="no" |
993 |
fi; |
fi |
994 |
|
|
995 |
|
|
996 |
load_opt="0" |
load_opt="0" |
997 |
if test "$enable_dlopen" = "yes" ; then |
if test "$enable_dlopen" = "yes" ; then |
1037 |
## |
## |
1038 |
#if test "$use" = "unknown" ; then |
#if test "$use" = "unknown" ; then |
1039 |
#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"` |
1040 |
#echo got canonical=$canonical, but was not recognized. |
#echo got canonical=$canonical, but was not recognized. |
1041 |
#echo Unable to guess type to use. Try one of |
#echo Unable to guess type to use. Try one of |
1042 |
#exit(1) |
#exit(1) |
1043 |
#fi |
#fi |
1044 |
|
|
1045 |
echo "$as_me:$LINENO: result: use=$use" >&5 |
echo "$ac_t""use=$use" 1>&6 |
|
echo "${ECHO_T}use=$use" >&6 |
|
1046 |
|
|
1047 |
|
|
1048 |
# |
# |
1049 |
# System programs |
# System programs |
1050 |
# |
# |
1051 |
|
|
1052 |
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. |
|
1053 |
set dummy gcc; ac_word=$2 |
set dummy gcc; ac_word=$2 |
1054 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1055 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:1056: checking for $ac_word" >&5 |
1056 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1057 |
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 |
|
1058 |
else |
else |
1059 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1060 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1061 |
else |
else |
1062 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1063 |
for as_dir in $PATH |
ac_dummy="$PATH" |
1064 |
do |
for ac_dir in $ac_dummy; do |
1065 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
1066 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
1067 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_CC="gcc" |
1068 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
1069 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
fi |
1070 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
1071 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1072 |
fi |
fi |
1073 |
fi |
fi |
1074 |
CC=$ac_cv_prog_CC |
CC="$ac_cv_prog_CC" |
1075 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1076 |
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 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
CC=$ac_ct_CC |
|
1077 |
else |
else |
1078 |
CC="$ac_cv_prog_CC" |
echo "$ac_t""no" 1>&6 |
1079 |
fi |
fi |
1080 |
|
|
|
fi |
|
1081 |
if test -z "$CC"; then |
if test -z "$CC"; then |
1082 |
# 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. |
1083 |
set dummy cc; ac_word=$2 |
set dummy cc; ac_word=$2 |
1084 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1085 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:1086: checking for $ac_word" >&5 |
1086 |
if test "${ac_cv_prog_CC+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1087 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1088 |
else |
else |
1089 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1090 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1091 |
else |
else |
1092 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1093 |
ac_prog_rejected=no |
ac_prog_rejected=no |
1094 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
ac_dummy="$PATH" |
1095 |
for as_dir in $PATH |
for ac_dir in $ac_dummy; do |
1096 |
do |
test -z "$ac_dir" && ac_dir=. |
1097 |
IFS=$as_save_IFS |
if test -f $ac_dir/$ac_word; then |
1098 |
test -z "$as_dir" && as_dir=. |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
1099 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_prog_rejected=yes |
1100 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
continue |
1101 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
fi |
1102 |
ac_prog_rejected=yes |
ac_cv_prog_CC="cc" |
1103 |
continue |
break |
1104 |
fi |
fi |
1105 |
ac_cv_prog_CC="cc" |
done |
1106 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
IFS="$ac_save_ifs" |
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1107 |
if test $ac_prog_rejected = yes; then |
if test $ac_prog_rejected = yes; then |
1108 |
# 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. |
1109 |
set dummy $ac_cv_prog_CC |
set dummy $ac_cv_prog_CC |
1110 |
shift |
shift |
1111 |
if test $# != 0; then |
if test $# -gt 0; then |
1112 |
# We chose a different compiler from the bogus one. |
# We chose a different compiler from the bogus one. |
1113 |
# However, it has the same basename, so the bogon will be chosen |
# However, it has the same basename, so the bogon will be chosen |
1114 |
# 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. |
1115 |
shift |
shift |
1116 |
set dummy "$as_dir/$ac_word" ${1+"$@"} |
set dummy "$ac_dir/$ac_word" "$@" |
1117 |
shift |
shift |
1118 |
ac_cv_prog_CC="$@" |
ac_cv_prog_CC="$@" |
1119 |
fi |
fi |
1120 |
fi |
fi |
1121 |
fi |
fi |
1122 |
fi |
fi |
1123 |
CC=$ac_cv_prog_CC |
CC="$ac_cv_prog_CC" |
1124 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1125 |
echo "$as_me:$LINENO: result: $CC" >&5 |
echo "$ac_t""$CC" 1>&6 |
|
echo "${ECHO_T}$CC" >&6 |
|
1126 |
else |
else |
1127 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1128 |
fi |
fi |
1129 |
|
|
1130 |
fi |
if test -z "$CC"; then |
1131 |
if test -z "$CC"; then |
case "`uname -s`" in |
1132 |
if test -n "$ac_tool_prefix"; then |
*win32* | *WIN32*) |
1133 |
for ac_prog in cl |
# Extract the first word of "cl", so it can be a program name with args. |
1134 |
do |
set dummy cl; ac_word=$2 |
1135 |
# 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 |
1136 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
echo "configure:1137: checking for $ac_word" >&5 |
1137 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1138 |
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 |
|
1139 |
else |
else |
1140 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1141 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1142 |
else |
else |
1143 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1144 |
for as_dir in $PATH |
ac_dummy="$PATH" |
1145 |
do |
for ac_dir in $ac_dummy; do |
1146 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
1147 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
1148 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_CC="cl" |
1149 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
1150 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
fi |
1151 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
1152 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1153 |
fi |
fi |
1154 |
fi |
fi |
1155 |
CC=$ac_cv_prog_CC |
CC="$ac_cv_prog_CC" |
1156 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1157 |
echo "$as_me:$LINENO: result: $CC" >&5 |
echo "$ac_t""$CC" 1>&6 |
|
echo "${ECHO_T}$CC" >&6 |
|
1158 |
else |
else |
1159 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1160 |
fi |
fi |
1161 |
|
;; |
1162 |
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 |
|
1163 |
fi |
fi |
1164 |
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 |
|
1165 |
fi |
fi |
1166 |
|
|
1167 |
test -n "$ac_ct_CC" && break |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1168 |
done |
echo "configure:1169: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
|
|
|
|
CC=$ac_ct_CC |
|
|
fi |
|
1169 |
|
|
1170 |
fi |
ac_ext=c |
1171 |
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1172 |
|
ac_cpp='$CPP $CPPFLAGS' |
1173 |
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1174 |
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1175 |
|
cross_compiling=$ac_cv_prog_cc_cross |
1176 |
|
|
1177 |
|
cat > conftest.$ac_ext << EOF |
1178 |
|
|
1179 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
#line 1180 "configure" |
1180 |
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 () |
|
|
{ |
|
1181 |
|
|
1182 |
; |
main(){return(0);} |
1183 |
return 0; |
EOF |
1184 |
} |
if { (eval echo configure:1185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1185 |
_ACEOF |
ac_cv_prog_cc_works=yes |
1186 |
ac_clean_files_save=$ac_clean_files |
# If we can't run a trivial program, we are probably using a cross compiler. |
1187 |
ac_clean_files="$ac_clean_files a.out a.exe" |
if (./conftest; exit) 2>/dev/null; then |
1188 |
# 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 |
|
1189 |
else |
else |
1190 |
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 |
|
1191 |
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 |
|
1192 |
else |
else |
1193 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
echo "configure: failed program was:" >&5 |
1194 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
cat conftest.$ac_ext >&5 |
1195 |
{ (exit 1); exit 1; }; } |
ac_cv_prog_cc_works=no |
1196 |
fi |
fi |
1197 |
|
rm -fr conftest* |
1198 |
rm -f conftest$ac_cv_exeext |
ac_ext=c |
1199 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1200 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
ac_cpp='$CPP $CPPFLAGS' |
1201 |
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1202 |
rm -f conftest.$ac_ext |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1203 |
EXEEXT=$ac_cv_exeext |
cross_compiling=$ac_cv_prog_cc_cross |
1204 |
ac_exeext=$EXEEXT |
|
1205 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1206 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
if test $ac_cv_prog_cc_works = no; then |
1207 |
if test "${ac_cv_objext+set}" = set; then |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1208 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
fi |
1209 |
else |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1210 |
cat >conftest.$ac_ext <<_ACEOF |
echo "configure:1211: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1211 |
#line $LINENO "configure" |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1212 |
#include "confdefs.h" |
cross_compiling=$ac_cv_prog_cc_cross |
1213 |
|
|
1214 |
#ifdef F77_DUMMY_MAIN |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1215 |
# ifdef __cplusplus |
echo "configure:1216: checking whether we are using GNU C" >&5 |
1216 |
extern "C" |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1217 |
# endif |
echo $ac_n "(cached) $ac_c" 1>&6 |
1218 |
int F77_DUMMY_MAIN() { return 1; } |
else |
1219 |
|
cat > conftest.c <<EOF |
1220 |
|
#ifdef __GNUC__ |
1221 |
|
yes; |
1222 |
#endif |
#endif |
1223 |
int |
EOF |
1224 |
main () |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1225 |
{ |
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 |
|
1226 |
else |
else |
1227 |
echo "$as_me: failed program was:" >&5 |
ac_cv_prog_gcc=no |
1228 |
cat conftest.$ac_ext >&5 |
fi |
1229 |
{ { 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 |
|
1230 |
|
|
1231 |
; |
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 () |
|
|
{ |
|
1232 |
|
|
1233 |
; |
if test $ac_cv_prog_gcc = yes; then |
1234 |
return 0; |
GCC=yes |
1235 |
} |
else |
1236 |
_ACEOF |
GCC= |
1237 |
rm -f conftest.$ac_objext |
fi |
1238 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
1239 |
(eval $ac_compile) 2>&5 |
ac_test_CFLAGS="${CFLAGS+set}" |
1240 |
ac_status=$? |
ac_save_CFLAGS="$CFLAGS" |
1241 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
CFLAGS= |
1242 |
(exit $ac_status); } && |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1243 |
{ ac_try='test -s conftest.$ac_objext' |
echo "configure:1244: checking whether ${CC-cc} accepts -g" >&5 |
1244 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1245 |
(eval $ac_try) 2>&5 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1246 |
ac_status=$? |
else |
1247 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo 'void f(){}' > conftest.c |
1248 |
(exit $ac_status); }; }; then |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
1249 |
ac_cv_prog_cc_g=yes |
ac_cv_prog_cc_g=yes |
1250 |
else |
else |
1251 |
echo "$as_me: failed program was:" >&5 |
ac_cv_prog_cc_g=no |
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_prog_cc_g=no |
|
1252 |
fi |
fi |
1253 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
1254 |
|
|
1255 |
fi |
fi |
1256 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
1257 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
1258 |
if test "$ac_test_CFLAGS" = set; then |
if test "$ac_test_CFLAGS" = set; then |
1259 |
CFLAGS=$ac_save_CFLAGS |
CFLAGS="$ac_save_CFLAGS" |
1260 |
elif test $ac_cv_prog_cc_g = yes; then |
elif test $ac_cv_prog_cc_g = yes; then |
1261 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
1262 |
CFLAGS="-g -O2" |
CFLAGS="-g -O2" |
1270 |
CFLAGS= |
CFLAGS= |
1271 |
fi |
fi |
1272 |
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 |
|
1273 |
|
|
1274 |
else |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1275 |
echo "$as_me: failed program was:" >&5 |
echo "configure:1276: 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 |
|
1276 |
# On Suns, sometimes $CPP names a directory. |
# On Suns, sometimes $CPP names a directory. |
1277 |
if test -n "$CPP" && test -d "$CPP"; then |
if test -n "$CPP" && test -d "$CPP"; then |
1278 |
CPP= |
CPP= |
1279 |
fi |
fi |
1280 |
if test -z "$CPP"; then |
if test -z "$CPP"; then |
1281 |
if test "${ac_cv_prog_CPP+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
1282 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1283 |
else |
else |
1284 |
# Double quotes because CPP needs to be expanded |
# This must be in double quotes, not single quotes, because CPP may get |
1285 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
1286 |
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. |
|
1287 |
# 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, |
1288 |
# not just through cpp. "Syntax error" is here to catch this case. |
# not just through cpp. |
1289 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1290 |
#line $LINENO "configure" |
#line 1291 "configure" |
1291 |
#include "confdefs.h" |
#include "confdefs.h" |
1292 |
#include <assert.h> |
#include <assert.h> |
1293 |
Syntax error |
Syntax Error |
1294 |
_ACEOF |
EOF |
1295 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1296 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
{ (eval echo configure:1297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1297 |
ac_status=$? |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1298 |
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 |
|
1299 |
: |
: |
1300 |
else |
else |
1301 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
1302 |
|
echo "configure: failed program was:" >&5 |
1303 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
1304 |
# Broken: fails on valid input. |
rm -rf conftest* |
1305 |
continue |
CPP="${CC-cc} -E -traditional-cpp" |
1306 |
fi |
cat > conftest.$ac_ext <<EOF |
1307 |
rm -f conftest.err conftest.$ac_ext |
#line 1308 "configure" |
1308 |
|
#include "confdefs.h" |
1309 |
# OK, works on sane cases. Now check whether non-existent headers |
#include <assert.h> |
1310 |
# can be detected and how. |
Syntax Error |
1311 |
cat >conftest.$ac_ext <<_ACEOF |
EOF |
1312 |
#line $LINENO "configure" |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1313 |
#include "confdefs.h" |
{ (eval echo configure:1314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1314 |
#include <ac_nonexistent.h> |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1315 |
_ACEOF |
if test -z "$ac_err"; then |
1316 |
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 |
|
1317 |
else |
else |
1318 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
1319 |
|
echo "configure: failed program was:" >&5 |
1320 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
1321 |
# Passes both tests. |
rm -rf conftest* |
1322 |
ac_preproc_ok=: |
CPP="${CC-cc} -nologo -E" |
1323 |
break |
cat > conftest.$ac_ext <<EOF |
1324 |
fi |
#line 1325 "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" |
|
1325 |
#include "confdefs.h" |
#include "confdefs.h" |
1326 |
#include <assert.h> |
#include <assert.h> |
1327 |
Syntax error |
Syntax Error |
1328 |
_ACEOF |
EOF |
1329 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1330 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
{ (eval echo configure:1331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1331 |
ac_status=$? |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1332 |
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 |
|
1333 |
: |
: |
1334 |
else |
else |
1335 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
1336 |
|
echo "configure: failed program was:" >&5 |
1337 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
1338 |
# Broken: fails on valid input. |
rm -rf conftest* |
1339 |
continue |
CPP=/lib/cpp |
1340 |
fi |
fi |
1341 |
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 |
|
1342 |
fi |
fi |
1343 |
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 |
|
1344 |
fi |
fi |
1345 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
1346 |
|
ac_cv_prog_CPP="$CPP" |
1347 |
done |
fi |
1348 |
# 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 |
|
|
: |
|
1349 |
else |
else |
1350 |
{ { 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; }; } |
|
1351 |
fi |
fi |
1352 |
|
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 |
|
1353 |
|
|
1354 |
|
|
1355 |
|
|
1381 |
TO2FLAGS="-O" |
TO2FLAGS="-O" |
1382 |
fi |
fi |
1383 |
|
|
1384 |
case $use in |
case $use in |
1385 |
*linux) |
*linux) |
1386 |
case $use in |
case $use in |
1387 |
alpha*) |
alpha*) |
1394 |
TO2FLAGS="" |
TO2FLAGS="" |
1395 |
;; |
;; |
1396 |
arm*) |
arm*) |
1397 |
TCFLAGS="$TCFLAGS -mlong-calls";; |
TCFLAGS="$TCFLAGS -mlong-calls";; |
1398 |
esac;; |
esac;; |
1399 |
esac |
esac |
1400 |
if test "$enable_pic" = "yes" ; then |
if test "$enable_pic" = "yes" ; then |
1406 |
# 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 |
1407 |
# there are a few systems, like Next, where this doesn't work. |
# there are a few systems, like Next, where this doesn't work. |
1408 |
|
|
1409 |
echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5 |
echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6 |
1410 |
echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6 |
echo "configure:1411: checking system version (for dynamic loading)" >&5 |
1411 |
if machine=`uname -m` ; then true; else machine=unknown ; fi |
if machine=`uname -m` ; then true; else machine=unknown ; fi |
1412 |
|
|
1413 |
for ac_prog in gawk nawk awk |
for ac_prog in gawk nawk awk |
1414 |
do |
do |
1415 |
# 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. |
1416 |
set dummy $ac_prog; ac_word=$2 |
set dummy $ac_prog; ac_word=$2 |
1417 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1418 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:1419: checking for $ac_word" >&5 |
1419 |
if test "${ac_cv_prog_AWK+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1420 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1421 |
else |
else |
1422 |
if test -n "$AWK"; then |
if test -n "$AWK"; then |
1423 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1424 |
else |
else |
1425 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1426 |
for as_dir in $PATH |
ac_dummy="$PATH" |
1427 |
do |
for ac_dir in $ac_dummy; do |
1428 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
1429 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
1430 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_AWK="$ac_prog" |
1431 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
1432 |
ac_cv_prog_AWK="$ac_prog" |
fi |
1433 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
1434 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1435 |
fi |
fi |
1436 |
fi |
fi |
1437 |
AWK=$ac_cv_prog_AWK |
AWK="$ac_cv_prog_AWK" |
1438 |
if test -n "$AWK"; then |
if test -n "$AWK"; then |
1439 |
echo "$as_me:$LINENO: result: $AWK" >&5 |
echo "$ac_t""$AWK" 1>&6 |
|
echo "${ECHO_T}$AWK" >&6 |
|
1440 |
else |
else |
1441 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1442 |
fi |
fi |
1443 |
|
|
1444 |
test -n "$AWK" && break |
test -n "$AWK" && break |
1445 |
done |
done |
1446 |
test -n "$AWK" || AWK="""" |
test -n "$AWK" || AWK="""" |
1447 |
|
|
1448 |
|
|
1449 |
for ac_prog in makeinfo |
for ac_prog in makeinfo |
1450 |
do |
do |
1451 |
# 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. |
1452 |
set dummy $ac_prog; ac_word=$2 |
set dummy $ac_prog; ac_word=$2 |
1453 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1454 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:1455: checking for $ac_word" >&5 |
1455 |
if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then |
1456 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1457 |
else |
else |
1458 |
if test -n "$MAKEINFO"; then |
if test -n "$MAKEINFO"; then |
1459 |
ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
1460 |
else |
else |
1461 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1462 |
for as_dir in $PATH |
ac_dummy="$PATH" |
1463 |
do |
for ac_dir in $ac_dummy; do |
1464 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
1465 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
1466 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_MAKEINFO="$ac_prog" |
1467 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
1468 |
ac_cv_prog_MAKEINFO="$ac_prog" |
fi |
1469 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
1470 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1471 |
fi |
fi |
1472 |
fi |
fi |
1473 |
MAKEINFO=$ac_cv_prog_MAKEINFO |
MAKEINFO="$ac_cv_prog_MAKEINFO" |
1474 |
if test -n "$MAKEINFO"; then |
if test -n "$MAKEINFO"; then |
1475 |
echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
echo "$ac_t""$MAKEINFO" 1>&6 |
|
echo "${ECHO_T}$MAKEINFO" >&6 |
|
1476 |
else |
else |
1477 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1478 |
fi |
fi |
1479 |
|
|
1480 |
test -n "$MAKEINFO" && break |
test -n "$MAKEINFO" && break |
1481 |
done |
done |
1482 |
test -n "$MAKEINFO" || MAKEINFO=""false"" |
test -n "$MAKEINFO" || MAKEINFO=""false"" |
1483 |
|
|
1488 |
else |
else |
1489 |
system=`uname -s`-`uname -r` |
system=`uname -s`-`uname -r` |
1490 |
if test "$?" -ne 0 ; then |
if test "$?" -ne 0 ; then |
1491 |
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 |
|
1492 |
system=unknown |
system=unknown |
1493 |
else |
else |
1494 |
# Special check for weird MP-RAS system (uname returns weird |
# Special check for weird MP-RAS system (uname returns weird |
1495 |
# results, and the version is kept in special file). |
# results, and the version is kept in special file). |
1496 |
|
|
1497 |
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 |
1498 |
system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'` |
system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'` |
1499 |
fi |
fi |
1500 |
if test "`uname -s`" = "AIX" ; then |
if test "`uname -s`" = "AIX" ; then |
1501 |
system=AIX-`uname -v`.`uname -r` |
system=AIX-`uname -v`.`uname -r` |
1502 |
fi |
fi |
1503 |
echo "$as_me:$LINENO: result: $system" >&5 |
echo "$ac_t""$system" 1>&6 |
|
echo "${ECHO_T}$system" >&6 |
|
1504 |
fi |
fi |
1505 |
fi |
fi |
1506 |
|
|
1515 |
MP_INLCUDE="" |
MP_INLCUDE="" |
1516 |
if test $use_gmp = yes ; then |
if test $use_gmp = yes ; then |
1517 |
|
|
1518 |
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 |
1519 |
echo $ECHO_N "checking use_gmp=yes, doing configure in gmp directory... $ECHO_C" >&6 |
echo "configure:1520: checking use_gmp=yes, doing configure in gmp directory" >&5 |
1520 |
echo |
echo |
1521 |
echo "#" |
echo "#" |
1522 |
echo "#" |
echo "#" |
1536 |
else |
else |
1537 |
cd $GMPDIR && ./configure && cd .. |
cd $GMPDIR && ./configure && cd .. |
1538 |
fi |
fi |
1539 |
#MY_SUBDIRS="$MY_SUBDIRS $GMPDIR" |
#MY_SUBDIRS="$MY_SUBDIRS $GMPDIR" |
1540 |
|
|
1541 |
echo "#" |
echo "#" |
1542 |
echo "#" |
echo "#" |
1547 |
|
|
1548 |
PATCHED_SYMBOLS="" |
PATCHED_SYMBOLS="" |
1549 |
if test "$enable_dynsysgmp" = "yes" ; then |
if test "$enable_dynsysgmp" = "yes" ; then |
1550 |
|
ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'` |
1551 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
echo $ac_n "checking for gmp.h""... $ac_c" 1>&6 |
1552 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
echo "configure:1553: checking for gmp.h" >&5 |
1553 |
if test "${ac_cv_header_stdc+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1554 |
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 |
|
1555 |
else |
else |
1556 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
1557 |
fi |
#line 1558 "configure" |
|
if test -z "$ac_cpp_err"; then |
|
|
ac_cv_header_stdc=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
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" |
|
1558 |
#include "confdefs.h" |
#include "confdefs.h" |
1559 |
#include <string.h> |
#include <gmp.h> |
1560 |
|
EOF |
1561 |
_ACEOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1562 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
{ (eval echo configure:1563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1563 |
egrep "memchr" >/dev/null 2>&1; then |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1564 |
: |
if test -z "$ac_err"; then |
1565 |
else |
rm -rf conftest* |
1566 |
ac_cv_header_stdc=no |
eval "ac_cv_header_$ac_safe=yes" |
|
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" |
|
|
#include "confdefs.h" |
|
|
#include <stdlib.h> |
|
|
|
|
|
_ACEOF |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
egrep "free" >/dev/null 2>&1; then |
|
|
: |
|
1567 |
else |
else |
1568 |
ac_cv_header_stdc=no |
echo "$ac_err" >&5 |
1569 |
|
echo "configure: failed program was:" >&5 |
1570 |
|
cat conftest.$ac_ext >&5 |
1571 |
|
rm -rf conftest* |
1572 |
|
eval "ac_cv_header_$ac_safe=no" |
1573 |
fi |
fi |
1574 |
rm -f conftest* |
rm -f conftest* |
|
|
|
1575 |
fi |
fi |
1576 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1577 |
if test $ac_cv_header_stdc = yes; then |
echo "$ac_t""yes" 1>&6 |
1578 |
# /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 |
1579 |
if test "$cross_compiling" = yes; then |
echo "configure:1580: checking for __gmpz_init in -lgmp" >&5 |
1580 |
: |
ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'` |
1581 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1582 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1583 |
else |
else |
1584 |
cat >conftest.$ac_ext <<_ACEOF |
ac_save_LIBS="$LIBS" |
1585 |
#line $LINENO "configure" |
LIBS="-lgmp $LIBS" |
1586 |
|
cat > conftest.$ac_ext <<EOF |
1587 |
|
#line 1588 "configure" |
1588 |
#include "confdefs.h" |
#include "confdefs.h" |
1589 |
#include <ctype.h> |
/* Override any gcc2 internal prototype to avoid an error. */ |
1590 |
#if ((' ' & 0x0FF) == 0x020) |
/* We use char because int might match the return type of a gcc2 |
1591 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
builtin and then its argument prototype would still apply. */ |
1592 |
# 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 |
|
|
|
|
1593 |
|
|
1594 |
if test "${ac_cv_header_gmp_h+set}" = set; then |
int main() { |
1595 |
echo "$as_me:$LINENO: checking for gmp.h" >&5 |
__gmpz_init() |
1596 |
echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6 |
; return 0; } |
1597 |
if test "${ac_cv_header_gmp_h+set}" = set; then |
EOF |
1598 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if { (eval echo configure:1599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1599 |
fi |
rm -rf conftest* |
1600 |
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 |
|
1601 |
else |
else |
1602 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
1603 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
1604 |
ac_header_preproc=no |
rm -rf conftest* |
1605 |
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 |
|
1606 |
fi |
fi |
1607 |
echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5 |
rm -f conftest* |
1608 |
echo "${ECHO_T}$ac_cv_header_gmp_h" >&6 |
LIBS="$ac_save_LIBS" |
1609 |
|
|
1610 |
fi |
fi |
1611 |
if test $ac_cv_header_gmp_h = yes; then |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1612 |
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 |
|
1613 |
MPFILES=$GMPDIR/mpn/mul_n.o |
MPFILES=$GMPDIR/mpn/mul_n.o |
1614 |
PATCHED_SYMBOLS=__gmpn_toom3_mul_n |
PATCHED_SYMBOLS=__gmpn_toom3_mul_n |
1615 |
if test "$use" = "m68k-linux" ; then |
if test "$use" = "m68k-linux" ; then |
1622 |
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 '"'` |
1623 |
rm -f foo.c |
rm -f foo.c |
1624 |
else |
else |
1625 |
echo "Cannot use dynamic gmp lib" ; exit 1 |
echo "$ac_t""no" 1>&6 |
1626 |
|
echo "Cannot use dynamic gmp lib" ; exit 1 |
1627 |
fi |
fi |
1628 |
|
|
1629 |
else |
else |
1630 |
echo "Cannot use dynamic gmp lib" ; exit 1 |
echo "$ac_t""no" 1>&6 |
1631 |
|
echo "Cannot use dynamic gmp lib" ; exit 1 |
1632 |
fi |
fi |
1633 |
|
|
1634 |
|
|
1635 |
|
else |
|
else |
|
1636 |
|
|
1637 |
cp $GMPDIR/gmp.h h/gmp.h |
cp $GMPDIR/gmp.h h/gmp.h |
1638 |
MP_INCLUDE=h/gmp.h |
MP_INCLUDE=h/gmp.h |
1640 |
|
|
1641 |
fi |
fi |
1642 |
|
|
1643 |
echo "$as_me:$LINENO: checking \"for size of gmp limbs\"" >&5 |
echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6 |
1644 |
echo $ECHO_N "checking \"for size of gmp limbs\"... $ECHO_C" >&6 |
echo "configure:1645: checking "for size of gmp limbs"" >&5 |
1645 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
1646 |
mpsize=0 |
mpsize=0 |
1647 |
else |
else |
1648 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1649 |
#line $LINENO "configure" |
#line 1650 "configure" |
1650 |
#include "confdefs.h" |
#include "confdefs.h" |
1651 |
#include <stdio.h> |
#include <stdio.h> |
1652 |
#include "$MP_INCLUDE" |
#include "$MP_INCLUDE" |
1656 |
fclose(fp); |
fclose(fp); |
1657 |
return 0; |
return 0; |
1658 |
} |
} |
1659 |
_ACEOF |
EOF |
1660 |
rm -f conftest$ac_exeext |
if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1661 |
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 |
|
1662 |
mpsize=`cat conftest1` |
mpsize=`cat conftest1` |
1663 |
else |
else |
1664 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
1665 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
1666 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
1667 |
( exit $ac_status ) |
mpsize=0 |
|
mpsize=0 |
|
1668 |
fi |
fi |
1669 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
1670 |
fi |
fi |
1671 |
|
|
1672 |
if test "$mpsize" = "0" ; then |
if test "$mpsize" = "0" ; then |
1673 |
echo "Cannot determine mpsize" |
echo "Cannot determine mpsize" |
1674 |
exit 1 |
exit 1 |
1675 |
fi |
fi |
1676 |
cat >>confdefs.h <<_ACEOF |
cat >> confdefs.h <<EOF |
1677 |
#define MP_LIMB_BYTES $mpsize |
#define MP_LIMB_BYTES $mpsize |
1678 |
_ACEOF |
EOF |
1679 |
|
|
1680 |
echo "$as_me:$LINENO: result: $mpsize" >&5 |
echo "$ac_t""$mpsize" 1>&6 |
|
echo "${ECHO_T}$mpsize" >&6 |
|
1681 |
|
|
1682 |
echo "$as_me:$LINENO: checking \"_SHORT_LIMB\"" >&5 |
echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6 |
1683 |
echo $ECHO_N "checking \"_SHORT_LIMB\"... $ECHO_C" >&6 |
echo "configure:1684: checking "_SHORT_LIMB"" >&5 |
1684 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
1685 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1686 |
else |
else |
1687 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1688 |
#line $LINENO "configure" |
#line 1689 "configure" |
1689 |
#include "confdefs.h" |
#include "confdefs.h" |
1690 |
#include <stdio.h> |
#include <stdio.h> |
1691 |
#include "$MP_INCLUDE" |
#include "$MP_INCLUDE" |
1696 |
return 1; |
return 1; |
1697 |
#endif |
#endif |
1698 |
} |
} |
1699 |
_ACEOF |
EOF |
1700 |
rm -f conftest$ac_exeext |
if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1701 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
1702 |
(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 |
|
1703 |
#define __SHORT_LIMB 1 |
#define __SHORT_LIMB 1 |
1704 |
_ACEOF |
EOF |
1705 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
1706 |
echo "${ECHO_T}yes" >&6 |
else |
1707 |
else |
echo "configure: failed program was:" >&5 |
1708 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
1709 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
1710 |
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 |
|
1711 |
fi |
fi |
1712 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
1713 |
fi |
fi |
1714 |
echo "$as_me:$LINENO: checking \"_LONG_LONG_LIMB\"" >&5 |
|
1715 |
echo $ECHO_N "checking \"_LONG_LONG_LIMB\"... $ECHO_C" >&6 |
echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6 |
1716 |
|
echo "configure:1717: checking "_LONG_LONG_LIMB"" >&5 |
1717 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
1718 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1719 |
else |
else |
1720 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1721 |
#line $LINENO "configure" |
#line 1722 "configure" |
1722 |
#include "confdefs.h" |
#include "confdefs.h" |
1723 |
#include <stdio.h> |
#include <stdio.h> |
1724 |
#include "$MP_INCLUDE" |
#include "$MP_INCLUDE" |
1729 |
return 1; |
return 1; |
1730 |
#endif |
#endif |
1731 |
} |
} |
1732 |
_ACEOF |
EOF |
1733 |
rm -f conftest$ac_exeext |
if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1734 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
1735 |
(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 |
|
1736 |
#define __LONG_LONG_LIMB 1 |
#define __LONG_LONG_LIMB 1 |
1737 |
_ACEOF |
EOF |
1738 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
1739 |
echo "${ECHO_T}yes" >&6 |
else |
1740 |
else |
echo "configure: failed program was:" >&5 |
1741 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
1742 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
1743 |
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 |
|
1744 |
fi |
fi |
1745 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
1746 |
fi |
fi |
1747 |
|
|
1748 |
|
|
1749 |
GMP=1 |
GMP=1 |
1750 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
1751 |
#define GMP 1 |
#define GMP 1 |
1752 |
_ACEOF |
EOF |
|
|
|
|
|
|
1753 |
|
|
1754 |
|
|
1755 |
|
|
1756 |
echo > makedefsafter |
echo > makedefsafter |
1757 |
echo "MPFILES=$MPFILES" >> makedefsafter |
echo "MPFILES=$MPFILES" >> makedefsafter |
1758 |
echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter |
echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter |
1762 |
|
|
1763 |
# |
# |
1764 |
# X windows |
# X windows |
1765 |
# |
# |
|
|
|
|
echo "$as_me:$LINENO: checking for X" >&5 |
|
|
echo $ECHO_N "checking for X... $ECHO_C" >&6 |
|
1766 |
|
|
1767 |
|
# If we find X, set shell vars x_includes and x_libraries to the |
1768 |
|
# paths, otherwise set no_x=yes. |
1769 |
|
# Uses ac_ vars as temps to allow command line to override cache and checks. |
1770 |
|
# --without-x overrides everything else, but does not touch the cache. |
1771 |
|
echo $ac_n "checking for X""... $ac_c" 1>&6 |
1772 |
|
echo "configure:1773: checking for X" >&5 |
1773 |
|
|
1774 |
# Check whether --with-x or --without-x was given. |
# Check whether --with-x or --without-x was given. |
1775 |
if test "${with_x+set}" = set; then |
if test "${with_x+set}" = set; then |
1776 |
withval="$with_x" |
withval="$with_x" |
1777 |
|
: |
1778 |
|
fi |
1779 |
|
|
|
fi; |
|
1780 |
# $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. |
1781 |
if test "x$with_x" = xno; then |
if test "x$with_x" = xno; then |
1782 |
# The user explicitly disabled X. |
# The user explicitly disabled X. |
1786 |
# Both variables are already set. |
# Both variables are already set. |
1787 |
have_x=yes |
have_x=yes |
1788 |
else |
else |
1789 |
if test "${ac_cv_have_x+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
1790 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1791 |
else |
else |
1792 |
# 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. |
1793 |
ac_x_includes=no ac_x_libraries=no |
ac_x_includes=NO ac_x_libraries=NO |
1794 |
rm -fr conftest.dir |
rm -fr conftestdir |
1795 |
if mkdir conftest.dir; then |
if mkdir conftestdir; then |
1796 |
cd conftest.dir |
cd conftestdir |
1797 |
# 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. |
1798 |
cat >Imakefile <<'_ACEOF' |
cat > Imakefile <<'EOF' |
1799 |
acfindx: |
acfindx: |
1800 |
@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}"' |
1801 |
_ACEOF |
EOF |
1802 |
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
1803 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1804 |
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
1805 |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
1806 |
for ac_extension in a so sl; do |
for ac_extension in a so sl; do |
1807 |
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
1808 |
test -f $ac_im_libdir/libX11.$ac_extension; then |
test -f $ac_im_libdir/libX11.$ac_extension; then |
1809 |
ac_im_usrlibdir=$ac_im_libdir; break |
ac_im_usrlibdir=$ac_im_libdir; break |
1810 |
fi |
fi |
1811 |
done |
done |
1812 |
# Screen out bogus values from the imake configuration. They are |
# Screen out bogus values from the imake configuration. They are |
1813 |
# bogus both because they are the default anyway, and because |
# bogus both because they are the default anyway, and because |
1814 |
# using them would break gcc on systems where it needs fixed includes. |
# using them would break gcc on systems where it needs fixed includes. |
1815 |
case $ac_im_incroot in |
case "$ac_im_incroot" in |
1816 |
/usr/include) ;; |
/usr/include) ;; |
1817 |
*) 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" ;; |
1818 |
esac |
esac |
1819 |
case $ac_im_usrlibdir in |
case "$ac_im_usrlibdir" in |
1820 |
/usr/lib | /lib) ;; |
/usr/lib | /lib) ;; |
1821 |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
1822 |
esac |
esac |
1823 |
fi |
fi |
1824 |
cd .. |
cd .. |
1825 |
rm -fr conftest.dir |
rm -fr conftestdir |
1826 |
fi |
fi |
1827 |
|
|
1828 |
# Standard set of common directories for X headers. |
if test "$ac_x_includes" = NO; then |
1829 |
# 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. |
1830 |
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 |
|
1831 |
|
|
|
/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. |
|
1832 |
# First, try using that file with no special directory specified. |
# First, try using that file with no special directory specified. |
1833 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1834 |
#line $LINENO "configure" |
#line 1835 "configure" |
1835 |
#include "confdefs.h" |
#include "confdefs.h" |
1836 |
#include <X11/Intrinsic.h> |
#include <$x_direct_test_include> |
1837 |
_ACEOF |
EOF |
1838 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1839 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
{ (eval echo configure:1840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1840 |
ac_status=$? |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1841 |
egrep -v '^ *\+' conftest.er1 >conftest.err |
if test -z "$ac_err"; then |
1842 |
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 |
|
1843 |
# We can compile using X headers with no special include directory. |
# We can compile using X headers with no special include directory. |
1844 |
ac_x_includes= |
ac_x_includes= |
1845 |
else |
else |
1846 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
1847 |
|
echo "configure: failed program was:" >&5 |
1848 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
1849 |
for ac_dir in $ac_x_header_dirs; do |
rm -rf conftest* |
1850 |
if test -r "$ac_dir/X11/Intrinsic.h"; then |
# Look for the header file in a standard set of common directories. |
1851 |
ac_x_includes=$ac_dir |
# Check X11 before X11Rn because it is often a symlink to the current release. |
1852 |
break |
for ac_dir in \ |
1853 |
fi |
/usr/X11/include \ |
1854 |
done |
/usr/X11R6/include \ |
1855 |
|
/usr/X11R5/include \ |
1856 |
|
/usr/X11R4/include \ |
1857 |
|
\ |
1858 |
|
/usr/include/X11 \ |
1859 |
|
/usr/include/X11R6 \ |
1860 |
|
/usr/include/X11R5 \ |
1861 |
|
/usr/include/X11R4 \ |
1862 |
|
\ |
1863 |
|
/usr/local/X11/include \ |
1864 |
|
/usr/local/X11R6/include \ |
1865 |
|
/usr/local/X11R5/include \ |
1866 |
|
/usr/local/X11R4/include \ |
1867 |
|
\ |
1868 |
|
/usr/local/include/X11 \ |
1869 |
|
/usr/local/include/X11R6 \ |
1870 |
|
/usr/local/include/X11R5 \ |
1871 |
|
/usr/local/include/X11R4 \ |
1872 |
|
\ |
1873 |
|
/usr/X386/include \ |
1874 |
|
/usr/x386/include \ |
1875 |
|
/usr/XFree86/include/X11 \ |
1876 |
|
\ |
1877 |
|
/usr/include \ |
1878 |
|
/usr/local/include \ |
1879 |
|
/usr/unsupported/include \ |
1880 |
|
/usr/athena/include \ |
1881 |
|
/usr/local/x11r5/include \ |
1882 |
|
/usr/lpp/Xamples/include \ |
1883 |
|
\ |
1884 |
|
/usr/openwin/include \ |
1885 |
|
/usr/openwin/share/include \ |
1886 |
|
; \ |
1887 |
|
do |
1888 |
|
if test -r "$ac_dir/$x_direct_test_include"; then |
1889 |
|
ac_x_includes=$ac_dir |
1890 |
|
break |
1891 |
|
fi |
1892 |
|
done |
1893 |
fi |
fi |
1894 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
1895 |
fi # $ac_x_includes = no |
fi # $ac_x_includes = NO |
1896 |
|
|
1897 |
if test "$ac_x_libraries" = no; then |
if test "$ac_x_libraries" = NO; then |
1898 |
# Check for the libraries. |
# Check for the libraries. |
1899 |
|
|
1900 |
|
test -z "$x_direct_test_library" && x_direct_test_library=Xt |
1901 |
|
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
1902 |
|
|
1903 |
# See if we find them without any special options. |
# See if we find them without any special options. |
1904 |
# Don't add to $LIBS permanently. |
# Don't add to $LIBS permanently. |
1905 |
ac_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
1906 |
LIBS="-lXt $LIBS" |
LIBS="-l$x_direct_test_library $LIBS" |
1907 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
1908 |
#line $LINENO "configure" |
#line 1909 "configure" |
1909 |
#include "confdefs.h" |
#include "confdefs.h" |
1910 |
#include <X11/Intrinsic.h> |
|
1911 |
#ifdef F77_DUMMY_MAIN |
int main() { |
1912 |
# ifdef __cplusplus |
${x_direct_test_function}() |
1913 |
extern "C" |
; return 0; } |
1914 |
# endif |
EOF |
1915 |
int F77_DUMMY_MAIN() { return 1; } |
if { (eval echo configure:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1916 |
#endif |
rm -rf conftest* |
1917 |
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 |
|
1918 |
# We can link X programs with no special library path. |
# We can link X programs with no special library path. |
1919 |
ac_x_libraries= |
ac_x_libraries= |
1920 |
else |
else |
1921 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
1922 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
1923 |
LIBS=$ac_save_LIBS |
rm -rf conftest* |
1924 |
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
LIBS="$ac_save_LIBS" |
1925 |
|
# First see if replacing the include by lib works. |
1926 |
|
# Check X11 before X11Rn because it is often a symlink to the current release. |
1927 |
|
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
1928 |
|
/usr/X11/lib \ |
1929 |
|
/usr/X11R6/lib \ |
1930 |
|
/usr/X11R5/lib \ |
1931 |
|
/usr/X11R4/lib \ |
1932 |
|
\ |
1933 |
|
/usr/lib/X11 \ |
1934 |
|
/usr/lib/X11R6 \ |
1935 |
|
/usr/lib/X11R5 \ |
1936 |
|
/usr/lib/X11R4 \ |
1937 |
|
\ |
1938 |
|
/usr/local/X11/lib \ |
1939 |
|
/usr/local/X11R6/lib \ |
1940 |
|
/usr/local/X11R5/lib \ |
1941 |
|
/usr/local/X11R4/lib \ |
1942 |
|
\ |
1943 |
|
/usr/local/lib/X11 \ |
1944 |
|
/usr/local/lib/X11R6 \ |
1945 |
|
/usr/local/lib/X11R5 \ |
1946 |
|
/usr/local/lib/X11R4 \ |
1947 |
|
\ |
1948 |
|
/usr/X386/lib \ |
1949 |
|
/usr/x386/lib \ |
1950 |
|
/usr/XFree86/lib/X11 \ |
1951 |
|
\ |
1952 |
|
/usr/lib \ |
1953 |
|
/usr/local/lib \ |
1954 |
|
/usr/unsupported/lib \ |
1955 |
|
/usr/athena/lib \ |
1956 |
|
/usr/local/x11r5/lib \ |
1957 |
|
/usr/lpp/Xamples/lib \ |
1958 |
|
/lib/usr/lib/X11 \ |
1959 |
|
\ |
1960 |
|
/usr/openwin/lib \ |
1961 |
|
/usr/openwin/share/lib \ |
1962 |
|
; \ |
1963 |
do |
do |
|
# Don't even attempt the hair of trying to link an X program! |
|
1964 |
for ac_extension in a so sl; do |
for ac_extension in a so sl; do |
1965 |
if test -r $ac_dir/libXt.$ac_extension; then |
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
1966 |
ac_x_libraries=$ac_dir |
ac_x_libraries=$ac_dir |
1967 |
break 2 |
break 2 |
1968 |
fi |
fi |
1969 |
done |
done |
1970 |
done |
done |
1971 |
fi |
fi |
1972 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
1973 |
fi # $ac_x_libraries = no |
fi # $ac_x_libraries = NO |
1974 |
|
|
1975 |
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
1976 |
# Didn't find X anywhere. Cache the known absence of X. |
# Didn't find X anywhere. Cache the known absence of X. |
1977 |
ac_cv_have_x="have_x=no" |
ac_cv_have_x="have_x=no" |
1978 |
else |
else |
1981 |
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
1982 |
fi |
fi |
1983 |
fi |
fi |
|
|
|
1984 |
fi |
fi |
1985 |
eval "$ac_cv_have_x" |
eval "$ac_cv_have_x" |
1986 |
fi # $with_x != no |
fi # $with_x != no |
1987 |
|
|
1988 |
if test "$have_x" != yes; then |
if test "$have_x" != yes; then |
1989 |
echo "$as_me:$LINENO: result: $have_x" >&5 |
echo "$ac_t""$have_x" 1>&6 |
|
echo "${ECHO_T}$have_x" >&6 |
|
1990 |
no_x=yes |
no_x=yes |
1991 |
else |
else |
1992 |
# 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. |
1995 |
# Update the cache value to reflect the command line values. |
# Update the cache value to reflect the command line values. |
1996 |
ac_cv_have_x="have_x=yes \ |
ac_cv_have_x="have_x=yes \ |
1997 |
ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
1998 |
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 |
|
1999 |
fi |
fi |
2000 |
|
|
2001 |
if test "$no_x" = yes; then |
if test "$no_x" = yes; then |
2002 |
# 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. |
2003 |
|
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
2004 |
#define X_DISPLAY_MISSING 1 |
#define X_DISPLAY_MISSING 1 |
2005 |
_ACEOF |
EOF |
2006 |
|
|
2007 |
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
2008 |
else |
else |
2015 |
X_LIBS="$X_LIBS -L$x_libraries" |
X_LIBS="$X_LIBS -L$x_libraries" |
2016 |
# 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 |
2017 |
# others require no space. Words are not sufficient . . . . |
# others require no space. Words are not sufficient . . . . |
2018 |
case `(uname -sr) 2>/dev/null` in |
case "`(uname -sr) 2>/dev/null`" in |
2019 |
"SunOS 5"*) |
"SunOS 5"*) |
2020 |
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 |
2021 |
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
echo "configure:2022: checking whether -R must be followed by a space" >&5 |
2022 |
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
2023 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2024 |
#line $LINENO "configure" |
#line 2025 "configure" |
2025 |
#include "confdefs.h" |
#include "confdefs.h" |
2026 |
|
|
2027 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
2028 |
|
|
2029 |
; |
; return 0; } |
2030 |
return 0; |
EOF |
2031 |
} |
if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2032 |
_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 |
|
2033 |
ac_R_nospace=yes |
ac_R_nospace=yes |
2034 |
else |
else |
2035 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
2036 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
2037 |
ac_R_nospace=no |
rm -rf conftest* |
2038 |
|
ac_R_nospace=no |
2039 |
fi |
fi |
2040 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
2041 |
if test $ac_R_nospace = yes; then |
if test $ac_R_nospace = yes; then |
2042 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
2043 |
X_LIBS="$X_LIBS -R$x_libraries" |
X_LIBS="$X_LIBS -R$x_libraries" |
2044 |
else |
else |
2045 |
LIBS="$ac_xsave_LIBS -R $x_libraries" |
LIBS="$ac_xsave_LIBS -R $x_libraries" |
2046 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2047 |
#line $LINENO "configure" |
#line 2048 "configure" |
2048 |
#include "confdefs.h" |
#include "confdefs.h" |
2049 |
|
|
2050 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
2051 |
|
|
2052 |
; |
; return 0; } |
2053 |
return 0; |
EOF |
2054 |
} |
if { (eval echo configure:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2055 |
_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 |
|
2056 |
ac_R_space=yes |
ac_R_space=yes |
2057 |
else |
else |
2058 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
2059 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
2060 |
ac_R_space=no |
rm -rf conftest* |
2061 |
|
ac_R_space=no |
2062 |
fi |
fi |
2063 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
2064 |
if test $ac_R_space = yes; then |
if test $ac_R_space = yes; then |
2065 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
2066 |
X_LIBS="$X_LIBS -R $x_libraries" |
X_LIBS="$X_LIBS -R $x_libraries" |
2067 |
else |
else |
2068 |
echo "$as_me:$LINENO: result: neither works" >&5 |
echo "$ac_t""neither works" 1>&6 |
|
echo "${ECHO_T}neither works" >&6 |
|
2069 |
fi |
fi |
2070 |
fi |
fi |
2071 |
LIBS=$ac_xsave_LIBS |
LIBS="$ac_xsave_LIBS" |
2072 |
esac |
esac |
2073 |
fi |
fi |
2074 |
|
|
2079 |
if test "$ISC" = yes; then |
if test "$ISC" = yes; then |
2080 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
2081 |
else |
else |
2082 |
# 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 |
2083 |
# libraries were built with DECnet support. And Karl Berry says |
# libraries were built with DECnet support. And karl@cs.umb.edu says |
2084 |
# the Alpha needs dnet_stub (dnet does not exist). |
# the Alpha needs dnet_stub (dnet does not exist). |
2085 |
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
2086 |
cat >conftest.$ac_ext <<_ACEOF |
echo "configure:2087: checking for dnet_ntoa in -ldnet" >&5 |
2087 |
#line $LINENO "configure" |
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
2088 |
#include "confdefs.h" |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2089 |
|
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 |
|
|
: |
|
2090 |
else |
else |
2091 |
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 |
|
2092 |
LIBS="-ldnet $LIBS" |
LIBS="-ldnet $LIBS" |
2093 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2094 |
#line $LINENO "configure" |
#line 2095 "configure" |
2095 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2096 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2097 |
/* 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 |
2098 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2099 |
char dnet_ntoa (); |
char dnet_ntoa(); |
2100 |
#ifdef F77_DUMMY_MAIN |
|
2101 |
# ifdef __cplusplus |
int main() { |
2102 |
extern "C" |
dnet_ntoa() |
2103 |
# endif |
; return 0; } |
2104 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2105 |
#endif |
if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2106 |
int |
rm -rf conftest* |
2107 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2108 |
{ |
else |
2109 |
dnet_ntoa (); |
echo "configure: failed program was:" >&5 |
2110 |
; |
cat conftest.$ac_ext >&5 |
2111 |
return 0; |
rm -rf conftest* |
2112 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2113 |
_ACEOF |
fi |
2114 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2115 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2116 |
(eval $ac_link) 2>&5 |
|
2117 |
ac_status=$? |
fi |
2118 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2119 |
(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 |
|
2120 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
2121 |
|
else |
2122 |
|
echo "$ac_t""no" 1>&6 |
2123 |
fi |
fi |
2124 |
|
|
2125 |
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
2126 |
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 |
2127 |
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
echo "configure:2128: checking for dnet_ntoa in -ldnet_stub" >&5 |
2128 |
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
2129 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2130 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2131 |
else |
else |
2132 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2133 |
LIBS="-ldnet_stub $LIBS" |
LIBS="-ldnet_stub $LIBS" |
2134 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2135 |
#line $LINENO "configure" |
#line 2136 "configure" |
2136 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2137 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2138 |
/* 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 |
2139 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2140 |
char dnet_ntoa (); |
char dnet_ntoa(); |
2141 |
#ifdef F77_DUMMY_MAIN |
|
2142 |
# ifdef __cplusplus |
int main() { |
2143 |
extern "C" |
dnet_ntoa() |
2144 |
# endif |
; return 0; } |
2145 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2146 |
#endif |
if { (eval echo configure:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2147 |
int |
rm -rf conftest* |
2148 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2149 |
{ |
else |
2150 |
dnet_ntoa (); |
echo "configure: failed program was:" >&5 |
2151 |
; |
cat conftest.$ac_ext >&5 |
2152 |
return 0; |
rm -rf conftest* |
2153 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2154 |
_ACEOF |
fi |
2155 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2156 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2157 |
(eval $ac_link) 2>&5 |
|
2158 |
ac_status=$? |
fi |
2159 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2160 |
(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 |
|
2161 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
2162 |
|
else |
2163 |
|
echo "$ac_t""no" 1>&6 |
2164 |
fi |
fi |
2165 |
|
|
2166 |
fi |
fi |
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS="$ac_xsave_LIBS" |
|
2167 |
|
|
2168 |
# 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, |
2169 |
# to get the SysV transport functions. |
# to get the SysV transport functions. |
2170 |
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
# chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
2171 |
# needs -lnsl. |
# needs -lnsl. |
2172 |
# The nsl library prevents programs from opening the X display |
# The nsl library prevents programs from opening the X display |
2173 |
# on Irix 5.2, according to T.E. Dickey. |
# on Irix 5.2, according to dickey@clark.net. |
2174 |
# The functions gethostbyname, getservbyname, and inet_addr are |
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
2175 |
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
echo "configure:2176: checking for gethostbyname" >&5 |
2176 |
echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
2177 |
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 |
|
2178 |
else |
else |
2179 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2180 |
#line $LINENO "configure" |
#line 2181 "configure" |
2181 |
#include "confdefs.h" |
#include "confdefs.h" |
2182 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2183 |
which can conflict with char gethostbyname (); below. */ |
which can conflict with char gethostbyname(); below. */ |
2184 |
#include <assert.h> |
#include <assert.h> |
2185 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2186 |
/* 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 |
2187 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2188 |
char gethostbyname (); |
char gethostbyname(); |
2189 |
char (*f) (); |
|
2190 |
|
int main() { |
2191 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
2192 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2193 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2194 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2195 |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
2196 |
choke me |
choke me |
2197 |
#else |
#else |
2198 |
f = gethostbyname; |
gethostbyname(); |
2199 |
#endif |
#endif |
2200 |
|
|
2201 |
; |
; return 0; } |
2202 |
return 0; |
EOF |
2203 |
} |
if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2204 |
_ACEOF |
rm -rf conftest* |
2205 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_gethostbyname=yes" |
2206 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
2207 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
2208 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
2209 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
2210 |
(exit $ac_status); } && |
eval "ac_cv_func_gethostbyname=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_gethostbyname=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_func_gethostbyname=no |
|
2211 |
fi |
fi |
2212 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
2213 |
|
fi |
2214 |
|
|
2215 |
|
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
2216 |
|
echo "$ac_t""yes" 1>&6 |
2217 |
|
: |
2218 |
|
else |
2219 |
|
echo "$ac_t""no" 1>&6 |
2220 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
|
2221 |
|
|
2222 |
if test $ac_cv_func_gethostbyname = no; then |
if test $ac_cv_func_gethostbyname = no; then |
2223 |
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
2224 |
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
echo "configure:2225: checking for gethostbyname in -lnsl" >&5 |
2225 |
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
2226 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2227 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2228 |
else |
else |
2229 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2230 |
LIBS="-lnsl $LIBS" |
LIBS="-lnsl $LIBS" |
2231 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2232 |
#line $LINENO "configure" |
#line 2233 "configure" |
2233 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2234 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2235 |
/* 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 |
2236 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2237 |
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 |
|
2238 |
|
|
2239 |
if test $ac_cv_lib_nsl_gethostbyname = no; then |
int main() { |
2240 |
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
gethostbyname() |
2241 |
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
; return 0; } |
2242 |
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
EOF |
2243 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2244 |
else |
rm -rf conftest* |
2245 |
ac_check_lib_save_LIBS=$LIBS |
eval "ac_cv_lib_$ac_lib_var=yes" |
2246 |
LIBS="-lbsd $LIBS" |
else |
2247 |
cat >conftest.$ac_ext <<_ACEOF |
echo "configure: failed program was:" >&5 |
2248 |
#line $LINENO "configure" |
cat conftest.$ac_ext >&5 |
2249 |
#include "confdefs.h" |
rm -rf conftest* |
2250 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2251 |
|
fi |
2252 |
|
rm -f conftest* |
2253 |
|
LIBS="$ac_save_LIBS" |
2254 |
|
|
2255 |
/* Override any gcc2 internal prototype to avoid an error. */ |
fi |
2256 |
#ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2257 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
2258 |
#endif |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
2259 |
/* We use char because int might match the return type of a gcc2 |
else |
2260 |
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" |
|
2261 |
fi |
fi |
2262 |
|
|
|
fi |
|
2263 |
fi |
fi |
2264 |
|
|
2265 |
# lieder@skyler.mavd.honeywell.com says without -lsocket, |
# lieder@skyler.mavd.honeywell.com says without -lsocket, |
2266 |
# socket/setsockopt and other routines are undefined under SCO ODT |
# socket/setsockopt and other routines are undefined under SCO ODT |
2267 |
# 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 |
2268 |
# on later versions), says Simon Leinen: it contains gethostby* |
# on later versions), says simon@lia.di.epfl.ch: it contains |
2269 |
# variants that don't use the nameserver (or something). -lsocket |
# gethostby* variants that don't use the nameserver (or something). |
2270 |
# must be given before -lnsl if both are needed. We assume that |
# -lsocket must be given before -lnsl if both are needed. |
2271 |
# if connect needs -lnsl, so does gethostbyname. |
# We assume that if connect needs -lnsl, so does gethostbyname. |
2272 |
echo "$as_me:$LINENO: checking for connect" >&5 |
echo $ac_n "checking for connect""... $ac_c" 1>&6 |
2273 |
echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
echo "configure:2274: checking for connect" >&5 |
2274 |
if test "${ac_cv_func_connect+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
2275 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2276 |
else |
else |
2277 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2278 |
#line $LINENO "configure" |
#line 2279 "configure" |
2279 |
#include "confdefs.h" |
#include "confdefs.h" |
2280 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2281 |
which can conflict with char connect (); below. */ |
which can conflict with char connect(); below. */ |
2282 |
#include <assert.h> |
#include <assert.h> |
2283 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2284 |
/* 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 |
2285 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2286 |
char connect (); |
char connect(); |
2287 |
char (*f) (); |
|
2288 |
|
int main() { |
2289 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
2290 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2291 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2292 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2293 |
#if defined (__stub_connect) || defined (__stub___connect) |
#if defined (__stub_connect) || defined (__stub___connect) |
2294 |
choke me |
choke me |
2295 |
#else |
#else |
2296 |
f = connect; |
connect(); |
2297 |
#endif |
#endif |
2298 |
|
|
2299 |
; |
; return 0; } |
2300 |
return 0; |
EOF |
2301 |
} |
if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2302 |
_ACEOF |
rm -rf conftest* |
2303 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_connect=yes" |
2304 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
2305 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
2306 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
2307 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
2308 |
(exit $ac_status); } && |
eval "ac_cv_func_connect=no" |
2309 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
2310 |
{ (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_connect=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_func_connect=no |
|
2311 |
fi |
fi |
2312 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
2313 |
|
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
2314 |
|
echo "$ac_t""yes" 1>&6 |
2315 |
|
: |
2316 |
|
else |
2317 |
|
echo "$ac_t""no" 1>&6 |
2318 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_connect" >&6 |
|
2319 |
|
|
2320 |
if test $ac_cv_func_connect = no; then |
if test $ac_cv_func_connect = no; then |
2321 |
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
2322 |
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
echo "configure:2323: checking for connect in -lsocket" >&5 |
2323 |
if test "${ac_cv_lib_socket_connect+set}" = set; then |
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
2324 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2325 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2326 |
else |
else |
2327 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2328 |
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
2329 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2330 |
#line $LINENO "configure" |
#line 2331 "configure" |
2331 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2332 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2333 |
/* 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 |
2334 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2335 |
char connect (); |
char connect(); |
2336 |
#ifdef F77_DUMMY_MAIN |
|
2337 |
# ifdef __cplusplus |
int main() { |
2338 |
extern "C" |
connect() |
2339 |
# endif |
; return 0; } |
2340 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2341 |
#endif |
if { (eval echo configure:2342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2342 |
int |
rm -rf conftest* |
2343 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2344 |
{ |
else |
2345 |
connect (); |
echo "configure: failed program was:" >&5 |
2346 |
; |
cat conftest.$ac_ext >&5 |
2347 |
return 0; |
rm -rf conftest* |
2348 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2349 |
_ACEOF |
fi |
2350 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2351 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2352 |
(eval $ac_link) 2>&5 |
|
2353 |
ac_status=$? |
fi |
2354 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2355 |
(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 |
|
2356 |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
2357 |
|
else |
2358 |
|
echo "$ac_t""no" 1>&6 |
2359 |
fi |
fi |
2360 |
|
|
2361 |
fi |
fi |
2362 |
|
|
2363 |
# Guillermo Gomez says -lposix is necessary on A/UX. |
# gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
2364 |
echo "$as_me:$LINENO: checking for remove" >&5 |
echo $ac_n "checking for remove""... $ac_c" 1>&6 |
2365 |
echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
echo "configure:2366: checking for remove" >&5 |
2366 |
if test "${ac_cv_func_remove+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
2367 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2368 |
else |
else |
2369 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2370 |
#line $LINENO "configure" |
#line 2371 "configure" |
2371 |
#include "confdefs.h" |
#include "confdefs.h" |
2372 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2373 |
which can conflict with char remove (); below. */ |
which can conflict with char remove(); below. */ |
2374 |
#include <assert.h> |
#include <assert.h> |
2375 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2376 |
/* 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 |
2377 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2378 |
char remove (); |
char remove(); |
2379 |
char (*f) (); |
|
2380 |
|
int main() { |
2381 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
2382 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2383 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2384 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2385 |
#if defined (__stub_remove) || defined (__stub___remove) |
#if defined (__stub_remove) || defined (__stub___remove) |
2386 |
choke me |
choke me |
2387 |
#else |
#else |
2388 |
f = remove; |
remove(); |
2389 |
#endif |
#endif |
2390 |
|
|
2391 |
; |
; return 0; } |
2392 |
return 0; |
EOF |
2393 |
} |
if { (eval echo configure:2394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2394 |
_ACEOF |
rm -rf conftest* |
2395 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_remove=yes" |
2396 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
2397 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
2398 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
2399 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
2400 |
(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 |
|
2401 |
fi |
fi |
2402 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
2403 |
|
fi |
2404 |
|
|
2405 |
|
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
2406 |
|
echo "$ac_t""yes" 1>&6 |
2407 |
|
: |
2408 |
|
else |
2409 |
|
echo "$ac_t""no" 1>&6 |
2410 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_remove" >&6 |
|
2411 |
|
|
2412 |
if test $ac_cv_func_remove = no; then |
if test $ac_cv_func_remove = no; then |
2413 |
echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
2414 |
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
echo "configure:2415: checking for remove in -lposix" >&5 |
2415 |
if test "${ac_cv_lib_posix_remove+set}" = set; then |
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
2416 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2417 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2418 |
else |
else |
2419 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2420 |
LIBS="-lposix $LIBS" |
LIBS="-lposix $LIBS" |
2421 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2422 |
#line $LINENO "configure" |
#line 2423 "configure" |
2423 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2424 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2425 |
/* 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 |
2426 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2427 |
char remove (); |
char remove(); |
2428 |
#ifdef F77_DUMMY_MAIN |
|
2429 |
# ifdef __cplusplus |
int main() { |
2430 |
extern "C" |
remove() |
2431 |
# endif |
; return 0; } |
2432 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2433 |
#endif |
if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2434 |
int |
rm -rf conftest* |
2435 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2436 |
{ |
else |
2437 |
remove (); |
echo "configure: failed program was:" >&5 |
2438 |
; |
cat conftest.$ac_ext >&5 |
2439 |
return 0; |
rm -rf conftest* |
2440 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2441 |
_ACEOF |
fi |
2442 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2443 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2444 |
(eval $ac_link) 2>&5 |
|
2445 |
ac_status=$? |
fi |
2446 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2447 |
(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 |
|
2448 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
2449 |
|
else |
2450 |
|
echo "$ac_t""no" 1>&6 |
2451 |
fi |
fi |
2452 |
|
|
2453 |
fi |
fi |
2454 |
|
|
2455 |
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
2456 |
echo "$as_me:$LINENO: checking for shmat" >&5 |
echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
2457 |
echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
echo "configure:2458: checking for shmat" >&5 |
2458 |
if test "${ac_cv_func_shmat+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
2459 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2460 |
else |
else |
2461 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2462 |
#line $LINENO "configure" |
#line 2463 "configure" |
2463 |
#include "confdefs.h" |
#include "confdefs.h" |
2464 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2465 |
which can conflict with char shmat (); below. */ |
which can conflict with char shmat(); below. */ |
2466 |
#include <assert.h> |
#include <assert.h> |
2467 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2468 |
/* 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 |
2469 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2470 |
char shmat (); |
char shmat(); |
2471 |
char (*f) (); |
|
2472 |
|
int main() { |
2473 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
2474 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2475 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2476 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2477 |
#if defined (__stub_shmat) || defined (__stub___shmat) |
#if defined (__stub_shmat) || defined (__stub___shmat) |
2478 |
choke me |
choke me |
2479 |
#else |
#else |
2480 |
f = shmat; |
shmat(); |
2481 |
#endif |
#endif |
2482 |
|
|
2483 |
; |
; return 0; } |
2484 |
return 0; |
EOF |
2485 |
} |
if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2486 |
_ACEOF |
rm -rf conftest* |
2487 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_shmat=yes" |
2488 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
2489 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
2490 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
2491 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
2492 |
(exit $ac_status); } && |
eval "ac_cv_func_shmat=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_shmat=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_func_shmat=no |
|
2493 |
fi |
fi |
2494 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
2495 |
|
fi |
2496 |
|
|
2497 |
|
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
2498 |
|
echo "$ac_t""yes" 1>&6 |
2499 |
|
: |
2500 |
|
else |
2501 |
|
echo "$ac_t""no" 1>&6 |
2502 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
|
2503 |
|
|
2504 |
if test $ac_cv_func_shmat = no; then |
if test $ac_cv_func_shmat = no; then |
2505 |
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
2506 |
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
echo "configure:2507: checking for shmat in -lipc" >&5 |
2507 |
if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
2508 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2509 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2510 |
else |
else |
2511 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2512 |
LIBS="-lipc $LIBS" |
LIBS="-lipc $LIBS" |
2513 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2514 |
#line $LINENO "configure" |
#line 2515 "configure" |
2515 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2516 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2517 |
/* 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 |
2518 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2519 |
char shmat (); |
char shmat(); |
2520 |
#ifdef F77_DUMMY_MAIN |
|
2521 |
# ifdef __cplusplus |
int main() { |
2522 |
extern "C" |
shmat() |
2523 |
# endif |
; return 0; } |
2524 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2525 |
#endif |
if { (eval echo configure:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2526 |
int |
rm -rf conftest* |
2527 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2528 |
{ |
else |
2529 |
shmat (); |
echo "configure: failed program was:" >&5 |
2530 |
; |
cat conftest.$ac_ext >&5 |
2531 |
return 0; |
rm -rf conftest* |
2532 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2533 |
_ACEOF |
fi |
2534 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2535 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2536 |
(eval $ac_link) 2>&5 |
|
2537 |
ac_status=$? |
fi |
2538 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2539 |
(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 |
|
2540 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
2541 |
|
else |
2542 |
|
echo "$ac_t""no" 1>&6 |
2543 |
fi |
fi |
2544 |
|
|
2545 |
fi |
fi |
2546 |
fi |
fi |
2547 |
|
|
2548 |
# Check for libraries that X11R6 Xt/Xaw programs need. |
# Check for libraries that X11R6 Xt/Xaw programs need. |
2549 |
ac_save_LDFLAGS=$LDFLAGS |
ac_save_LDFLAGS="$LDFLAGS" |
2550 |
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
2551 |
# 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 |
2552 |
# 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 |
2553 |
# 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. |
2554 |
# These have to be linked with before -lX11, unlike the other |
# These have to be linked with before -lX11, unlike the other |
2555 |
# libraries we check for below, so use a different variable. |
# libraries we check for below, so use a different variable. |
2556 |
# John Interrante, Karl Berry |
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
2557 |
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
2558 |
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
echo "configure:2559: checking for IceConnectionNumber in -lICE" >&5 |
2559 |
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
2560 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2561 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2562 |
else |
else |
2563 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2564 |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
2565 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2566 |
#line $LINENO "configure" |
#line 2567 "configure" |
2567 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2568 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2569 |
/* 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 |
2570 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2571 |
char IceConnectionNumber (); |
char IceConnectionNumber(); |
2572 |
#ifdef F77_DUMMY_MAIN |
|
2573 |
# ifdef __cplusplus |
int main() { |
2574 |
extern "C" |
IceConnectionNumber() |
2575 |
# endif |
; return 0; } |
2576 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2577 |
#endif |
if { (eval echo configure:2578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2578 |
int |
rm -rf conftest* |
2579 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2580 |
{ |
else |
2581 |
IceConnectionNumber (); |
echo "configure: failed program was:" >&5 |
2582 |
; |
cat conftest.$ac_ext >&5 |
2583 |
return 0; |
rm -rf conftest* |
2584 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2585 |
_ACEOF |
fi |
2586 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2587 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2588 |
(eval $ac_link) 2>&5 |
|
2589 |
ac_status=$? |
fi |
2590 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2591 |
(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 |
|
2592 |
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
2593 |
|
else |
2594 |
|
echo "$ac_t""no" 1>&6 |
2595 |
fi |
fi |
2596 |
|
|
2597 |
LDFLAGS=$ac_save_LDFLAGS |
LDFLAGS="$ac_save_LDFLAGS" |
2598 |
|
|
2599 |
fi |
fi |
2600 |
|
|
2604 |
echo $X_PRE_LIBS |
echo $X_PRE_LIBS |
2605 |
|
|
2606 |
miss=0 |
miss=0 |
2607 |
echo "$as_me:$LINENO: checking for main in -lXmu" >&5 |
echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6 |
2608 |
echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6 |
echo "configure:2609: checking for main in -lXmu" >&5 |
2609 |
if test "${ac_cv_lib_Xmu_main+set}" = set; then |
ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'` |
2610 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2611 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2612 |
else |
else |
2613 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2614 |
LIBS="-lXmu $X_LIBS $LIBS" |
LIBS="-lXmu $X_LIBS $LIBS" |
2615 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2616 |
#line $LINENO "configure" |
#line 2617 "configure" |
2617 |
#include "confdefs.h" |
#include "confdefs.h" |
2618 |
|
|
2619 |
|
int main() { |
2620 |
|
main() |
2621 |
|
; return 0; } |
2622 |
|
EOF |
2623 |
|
if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2624 |
|
rm -rf conftest* |
2625 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2626 |
|
else |
2627 |
|
echo "configure: failed program was:" >&5 |
2628 |
|
cat conftest.$ac_ext >&5 |
2629 |
|
rm -rf conftest* |
2630 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2631 |
|
fi |
2632 |
|
rm -f conftest* |
2633 |
|
LIBS="$ac_save_LIBS" |
2634 |
|
|
2635 |
#ifdef F77_DUMMY_MAIN |
fi |
2636 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2637 |
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 |
|
2638 |
X_LIBS="$X_LIBS -lXmu" |
X_LIBS="$X_LIBS -lXmu" |
2639 |
else |
else |
2640 |
miss=1 |
echo "$ac_t""no" 1>&6 |
2641 |
|
miss=1 |
2642 |
fi |
fi |
2643 |
|
|
2644 |
echo "$as_me:$LINENO: checking for main in -lXt" >&5 |
echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6 |
2645 |
echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 |
echo "configure:2646: checking for main in -lXt" >&5 |
2646 |
if test "${ac_cv_lib_Xt_main+set}" = set; then |
ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'` |
2647 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2648 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2649 |
else |
else |
2650 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2651 |
LIBS="-lXt $X_LIBS $LIBS" |
LIBS="-lXt $X_LIBS $LIBS" |
2652 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2653 |
#line $LINENO "configure" |
#line 2654 "configure" |
2654 |
#include "confdefs.h" |
#include "confdefs.h" |
2655 |
|
|
2656 |
|
int main() { |
2657 |
|
main() |
2658 |
|
; return 0; } |
2659 |
|
EOF |
2660 |
|
if { (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2661 |
|
rm -rf conftest* |
2662 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2663 |
|
else |
2664 |
|
echo "configure: failed program was:" >&5 |
2665 |
|
cat conftest.$ac_ext >&5 |
2666 |
|
rm -rf conftest* |
2667 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2668 |
|
fi |
2669 |
|
rm -f conftest* |
2670 |
|
LIBS="$ac_save_LIBS" |
2671 |
|
|
2672 |
#ifdef F77_DUMMY_MAIN |
fi |
2673 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2674 |
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 |
|
2675 |
X_LIBS="$X_LIBS -lXt" |
X_LIBS="$X_LIBS -lXt" |
2676 |
else |
else |
2677 |
miss=1 |
echo "$ac_t""no" 1>&6 |
2678 |
|
miss=1 |
2679 |
fi |
fi |
2680 |
|
|
2681 |
echo "$as_me:$LINENO: checking for main in -lXext" >&5 |
echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6 |
2682 |
echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6 |
echo "configure:2683: checking for main in -lXext" >&5 |
2683 |
if test "${ac_cv_lib_Xext_main+set}" = set; then |
ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'` |
2684 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2685 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2686 |
else |
else |
2687 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2688 |
LIBS="-lXext $X_LIBS $LIBS" |
LIBS="-lXext $X_LIBS $LIBS" |
2689 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2690 |
#line $LINENO "configure" |
#line 2691 "configure" |
2691 |
#include "confdefs.h" |
#include "confdefs.h" |
2692 |
|
|
2693 |
|
int main() { |
2694 |
|
main() |
2695 |
|
; return 0; } |
2696 |
|
EOF |
2697 |
|
if { (eval echo configure:2698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2698 |
|
rm -rf conftest* |
2699 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2700 |
|
else |
2701 |
|
echo "configure: failed program was:" >&5 |
2702 |
|
cat conftest.$ac_ext >&5 |
2703 |
|
rm -rf conftest* |
2704 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2705 |
|
fi |
2706 |
|
rm -f conftest* |
2707 |
|
LIBS="$ac_save_LIBS" |
2708 |
|
|
2709 |
#ifdef F77_DUMMY_MAIN |
fi |
2710 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2711 |
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 |
|
2712 |
X_LIBS="$X_LIBS -lXext" |
X_LIBS="$X_LIBS -lXext" |
2713 |
else |
else |
2714 |
miss=1 |
echo "$ac_t""no" 1>&6 |
2715 |
|
miss=1 |
2716 |
fi |
fi |
2717 |
|
|
2718 |
echo "$as_me:$LINENO: checking for main in -lXaw" >&5 |
echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6 |
2719 |
echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6 |
echo "configure:2720: checking for main in -lXaw" >&5 |
2720 |
if test "${ac_cv_lib_Xaw_main+set}" = set; then |
ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'` |
2721 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2722 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2723 |
else |
else |
2724 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2725 |
LIBS="-lXaw $X_LIBS $LIBS" |
LIBS="-lXaw $X_LIBS $LIBS" |
2726 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2727 |
#line $LINENO "configure" |
#line 2728 "configure" |
2728 |
#include "confdefs.h" |
#include "confdefs.h" |
2729 |
|
|
2730 |
|
int main() { |
2731 |
|
main() |
2732 |
|
; return 0; } |
2733 |
|
EOF |
2734 |
|
if { (eval echo configure:2735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2735 |
|
rm -rf conftest* |
2736 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2737 |
|
else |
2738 |
|
echo "configure: failed program was:" >&5 |
2739 |
|
cat conftest.$ac_ext >&5 |
2740 |
|
rm -rf conftest* |
2741 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2742 |
|
fi |
2743 |
|
rm -f conftest* |
2744 |
|
LIBS="$ac_save_LIBS" |
2745 |
|
|
2746 |
#ifdef F77_DUMMY_MAIN |
fi |
2747 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2748 |
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 |
|
2749 |
X_LIBS="$X_LIBS -lXaw" |
X_LIBS="$X_LIBS -lXaw" |
2750 |
else |
else |
2751 |
miss=1 |
echo "$ac_t""no" 1>&6 |
2752 |
|
miss=1 |
2753 |
fi |
fi |
2754 |
|
|
2755 |
echo "$as_me:$LINENO: checking for main in -lX11" >&5 |
echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6 |
2756 |
echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 |
echo "configure:2757: checking for main in -lX11" >&5 |
2757 |
if test "${ac_cv_lib_X11_main+set}" = set; then |
ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'` |
2758 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2759 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2760 |
else |
else |
2761 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2762 |
LIBS="-lX11 $X_LIBS $LIBS" |
LIBS="-lX11 $X_LIBS $LIBS" |
2763 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2764 |
#line $LINENO "configure" |
#line 2765 "configure" |
2765 |
#include "confdefs.h" |
#include "confdefs.h" |
2766 |
|
|
2767 |
|
int main() { |
2768 |
|
main() |
2769 |
|
; return 0; } |
2770 |
|
EOF |
2771 |
|
if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2772 |
|
rm -rf conftest* |
2773 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2774 |
|
else |
2775 |
|
echo "configure: failed program was:" >&5 |
2776 |
|
cat conftest.$ac_ext >&5 |
2777 |
|
rm -rf conftest* |
2778 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2779 |
|
fi |
2780 |
|
rm -f conftest* |
2781 |
|
LIBS="$ac_save_LIBS" |
2782 |
|
|
2783 |
#ifdef F77_DUMMY_MAIN |
fi |
2784 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2785 |
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 |
|
2786 |
X_LIBS="$X_LIBS -lX11" |
X_LIBS="$X_LIBS -lX11" |
2787 |
else |
else |
2788 |
miss=1 |
echo "$ac_t""no" 1>&6 |
2789 |
|
miss=1 |
2790 |
fi |
fi |
2791 |
|
|
2792 |
|
|
2793 |
if test "$miss" = "1" ; then |
if test "$miss" = "1" ; then |
2794 |
X_CFLAGS= |
X_CFLAGS= |
2795 |
X_LIBS= |
X_LIBS= |
2806 |
|
|
2807 |
if test "$enable_dlopen" = "yes" ; then |
if test "$enable_dlopen" = "yes" ; then |
2808 |
|
|
2809 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
2810 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
echo "configure:2811: checking for dlopen in -ldl" >&5 |
2811 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
2812 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2813 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2814 |
else |
else |
2815 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2816 |
LIBS="-ldl $LIBS" |
LIBS="-ldl $LIBS" |
2817 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2818 |
#line $LINENO "configure" |
#line 2819 "configure" |
2819 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2820 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2821 |
/* 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 |
2822 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2823 |
char dlopen (); |
char dlopen(); |
2824 |
#ifdef F77_DUMMY_MAIN |
|
2825 |
# ifdef __cplusplus |
int main() { |
2826 |
extern "C" |
dlopen() |
2827 |
# endif |
; return 0; } |
2828 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2829 |
#endif |
if { (eval echo configure:2830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2830 |
int |
rm -rf conftest* |
2831 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2832 |
{ |
else |
2833 |
dlopen (); |
echo "configure: failed program was:" >&5 |
2834 |
; |
cat conftest.$ac_ext >&5 |
2835 |
return 0; |
rm -rf conftest* |
2836 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2837 |
_ACEOF |
fi |
2838 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2839 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2840 |
(eval $ac_link) 2>&5 |
|
2841 |
ac_status=$? |
fi |
2842 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2843 |
(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 |
|
2844 |
have_dl=1 |
have_dl=1 |
2845 |
else |
else |
2846 |
have_dl=0 |
echo "$ac_t""no" 1>&6 |
2847 |
|
have_dl=0 |
2848 |
fi |
fi |
2849 |
|
|
2850 |
if test "$have_dl" = "0" ; then |
if test "$have_dl" = "0" ; then |
2853 |
fi |
fi |
2854 |
|
|
2855 |
TLIBS="$TLIBS -ldl -rdynamic" |
TLIBS="$TLIBS -ldl -rdynamic" |
2856 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
2857 |
#define USE_DLOPEN 1 |
#define USE_DLOPEN 1 |
2858 |
_ACEOF |
EOF |
2859 |
|
|
2860 |
fi |
fi |
2861 |
|
|
2862 |
if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then |
if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then |
2863 |
if test "${ac_cv_header_bfd_h+set}" = set; then |
ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'` |
2864 |
echo "$as_me:$LINENO: checking for bfd.h" >&5 |
echo $ac_n "checking for bfd.h""... $ac_c" 1>&6 |
2865 |
echo $ECHO_N "checking for bfd.h... $ECHO_C" >&6 |
echo "configure:2866: checking for bfd.h" >&5 |
2866 |
if test "${ac_cv_header_bfd_h+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2867 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2868 |
fi |
else |
2869 |
echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5 |
cat > conftest.$ac_ext <<EOF |
2870 |
echo "${ECHO_T}$ac_cv_header_bfd_h" >&6 |
#line 2871 "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" |
|
2871 |
#include "confdefs.h" |
#include "confdefs.h" |
2872 |
#include <bfd.h> |
#include <bfd.h> |
2873 |
_ACEOF |
EOF |
2874 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2875 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
{ (eval echo configure:2876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2876 |
ac_status=$? |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2877 |
egrep -v '^ *\+' conftest.er1 >conftest.err |
if test -z "$ac_err"; then |
2878 |
rm -f conftest.er1 |
rm -rf conftest* |
2879 |
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 |
|
2880 |
else |
else |
2881 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
2882 |
|
echo "configure: failed program was:" >&5 |
2883 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
2884 |
ac_header_preproc=no |
rm -rf conftest* |
2885 |
|
eval "ac_cv_header_$ac_safe=no" |
2886 |
fi |
fi |
2887 |
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 |
|
|
|
|
2888 |
fi |
fi |
2889 |
if test $ac_cv_header_bfd_h = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
2890 |
echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5 |
echo "$ac_t""yes" 1>&6 |
2891 |
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 |
2892 |
if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then |
echo "configure:2893: checking for bfd_init in -lbfd" >&5 |
2893 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'` |
2894 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2895 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2896 |
else |
else |
2897 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
2898 |
LIBS="-lbfd -liberty $LIBS" |
LIBS="-lbfd -liberty $LIBS" |
2899 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2900 |
#line $LINENO "configure" |
#line 2901 "configure" |
2901 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
2902 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2903 |
/* 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 |
2904 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2905 |
char bfd_init (); |
char bfd_init(); |
2906 |
#ifdef F77_DUMMY_MAIN |
|
2907 |
# ifdef __cplusplus |
int main() { |
2908 |
extern "C" |
bfd_init() |
2909 |
# endif |
; return 0; } |
2910 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
2911 |
#endif |
if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2912 |
int |
rm -rf conftest* |
2913 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
2914 |
{ |
else |
2915 |
bfd_init (); |
echo "configure: failed program was:" >&5 |
2916 |
; |
cat conftest.$ac_ext >&5 |
2917 |
return 0; |
rm -rf conftest* |
2918 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
2919 |
_ACEOF |
fi |
2920 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
2921 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
2922 |
(eval $ac_link) 2>&5 |
|
2923 |
ac_status=$? |
fi |
2924 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2925 |
(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 |
|
2926 |
# |
# |
2927 |
# Old binutils appear to need CONST defined to const |
# Old binutils appear to need CONST defined to const |
2928 |
# |
# |
2929 |
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 |
2930 |
echo $ECHO_N "checking if need to define CONST for bfd... $ECHO_C" >&6 |
echo "configure:2931: checking if need to define CONST for bfd" >&5 |
2931 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
2932 |
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; |
|
2933 |
else |
else |
2934 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
2935 |
#line $LINENO "configure" |
#line 2936 "configure" |
2936 |
#include "confdefs.h" |
#include "confdefs.h" |
2937 |
#define IN_GCC |
#define IN_GCC |
2938 |
#include <bfd.h> |
#include <bfd.h> |
2939 |
int main() { symbol_info t; return 0;} |
int main() { symbol_info t; return 0;} |
2940 |
_ACEOF |
EOF |
2941 |
rm -f conftest$ac_exeext |
if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2942 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
2943 |
(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; |
|
2944 |
else |
else |
2945 |
cat >conftest.$ac_ext <<_ACEOF |
echo "configure: failed program was:" >&5 |
2946 |
#line $LINENO "configure" |
cat conftest.$ac_ext >&5 |
2947 |
|
rm -fr conftest* |
2948 |
|
if test "$cross_compiling" = yes; then |
2949 |
|
echo "$ac_t""cannot use bfd" 1>&6 exit 1; |
2950 |
|
else |
2951 |
|
cat > conftest.$ac_ext <<EOF |
2952 |
|
#line 2953 "configure" |
2953 |
#include "confdefs.h" |
#include "confdefs.h" |
2954 |
#define CONST const |
#define CONST const |
2955 |
#define IN_GCC |
#define IN_GCC |
2956 |
#include <bfd.h> |
#include <bfd.h> |
2957 |
int main() {symbol_info t; return 0;} |
int main() {symbol_info t; return 0;} |
2958 |
_ACEOF |
EOF |
2959 |
rm -f conftest$ac_exeext |
if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2960 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
2961 |
(eval $ac_link) 2>&5 |
echo "$ac_t""yes" 1>&6 |
2962 |
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 |
|
2963 |
#define NEED_CONST 1 |
#define NEED_CONST 1 |
2964 |
_ACEOF |
EOF |
2965 |
|
|
2966 |
else |
else |
2967 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
2968 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
2969 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
2970 |
( 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; |
|
2971 |
fi |
fi |
2972 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
2973 |
fi |
fi |
2974 |
|
|
2975 |
fi |
fi |
2976 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
2977 |
fi |
fi |
2978 |
|
|
2979 |
|
|
2980 |
|
else |
2981 |
|
echo "$ac_t""no" 1>&6 |
2982 |
fi |
fi |
2983 |
|
|
2984 |
|
else |
2985 |
|
echo "$ac_t""no" 1>&6 |
2986 |
fi |
fi |
2987 |
|
|
2988 |
|
|
2989 |
|
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
2990 |
#define HAVE_LIBBFD 1 |
#define HAVE_LIBBFD 1 |
2991 |
_ACEOF |
EOF |
2992 |
|
|
2993 |
|
|
2994 |
# |
# |
3013 |
echo "#" |
echo "#" |
3014 |
echo "#" |
echo "#" |
3015 |
cd binutils/libiberty && chmod +x configure && ./configure && cd ../.. |
cd binutils/libiberty && chmod +x configure && ./configure && cd ../.. |
3016 |
# MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty " |
# MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty " |
3017 |
echo "#" |
echo "#" |
3018 |
echo "#" |
echo "#" |
3019 |
echo "#" |
echo "#" |
3027 |
echo "#" |
echo "#" |
3028 |
echo "#" |
echo "#" |
3029 |
cd binutils/bfd && chmod +x configure && ./configure && cd ../.. |
cd binutils/bfd && chmod +x configure && ./configure && cd ../.. |
3030 |
# MY_SUBDIRS="$MY_SUBDIRS binutils/bfd " |
# MY_SUBDIRS="$MY_SUBDIRS binutils/bfd " |
3031 |
echo "#" |
echo "#" |
3032 |
echo "#" |
echo "#" |
3033 |
echo "#" |
echo "#" |
3035 |
echo "# ------------------------" |
echo "# ------------------------" |
3036 |
echo "#" |
echo "#" |
3037 |
TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a" |
TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a" |
3038 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
3039 |
#define HAVE_LIBBFD 1 |
#define HAVE_LIBBFD 1 |
3040 |
_ACEOF |
EOF |
3041 |
|
|
3042 |
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" |
3043 |
|
|
3044 |
fi |
fi |
3045 |
|
|
3046 |
#AC_CONFIG_SUBDIRS($MY_SUBDIRS) |
#AC_CONFIG_SUBDIRS($MY_SUBDIRS) |
3049 |
# mechanism, in the PAGE macro. This offset is subtracted from |
# mechanism, in the PAGE macro. This offset is subtracted from |
3050 |
# addresses, in calculating a page for an address in the heap. |
# addresses, in calculating a page for an address in the heap. |
3051 |
|
|
3052 |
echo "$as_me:$LINENO: checking for long *" >&5 |
echo $ac_n "checking size of long *""... $ac_c" 1>&6 |
3053 |
echo $ECHO_N "checking for long *... $ECHO_C" >&6 |
echo "configure:3054: checking size of long *" >&5 |
3054 |
if test "${ac_cv_type_long_p+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_sizeof_long_p'+set}'`\" = set"; then |
3055 |
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 |
|
3056 |
else |
else |
3057 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3058 |
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
ac_cv_sizeof_long_p=0 |
3059 |
echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
else |
3060 |
{ (exit 1); exit 1; }; } |
cat > conftest.$ac_ext <<EOF |
3061 |
else |
#line 3062 "configure" |
3062 |
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 *)); } |
|
3063 |
#include <stdio.h> |
#include <stdio.h> |
3064 |
#include <stdlib.h> |
#include <sys/types.h> |
3065 |
#ifdef F77_DUMMY_MAIN |
main() |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
3066 |
{ |
{ |
3067 |
|
FILE *f=fopen("conftestval", "w"); |
3068 |
FILE *f = fopen ("conftest.val", "w"); |
if (!f) exit(1); |
3069 |
if (! f) |
fprintf(f, "%d\n", sizeof(long *)); |
3070 |
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; |
|
3071 |
} |
} |
3072 |
_ACEOF |
EOF |
3073 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3074 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3075 |
(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 |
|
3076 |
else |
else |
3077 |
|
echo "configure: failed program was:" >&5 |
3078 |
|
cat conftest.$ac_ext >&5 |
3079 |
|
rm -fr conftest* |
3080 |
ac_cv_sizeof_long_p=0 |
ac_cv_sizeof_long_p=0 |
3081 |
fi |
fi |
3082 |
|
rm -fr conftest* |
3083 |
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 |
|
3084 |
|
|
3085 |
|
fi |
3086 |
|
echo "$ac_t""$ac_cv_sizeof_long_p" 1>&6 |
3087 |
|
cat >> confdefs.h <<EOF |
3088 |
|
#define SIZEOF_LONG_P $ac_cv_sizeof_long_p |
3089 |
|
EOF |
3090 |
|
|
3091 |
|
|
3092 |
|
|
3093 |
for ac_header in endian.h |
for ac_hdr in endian.h |
3094 |
do |
do |
3095 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3096 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3097 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:3098: checking for $ac_hdr" >&5 |
3098 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3099 |
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 |
|
3100 |
else |
else |
3101 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
3102 |
fi |
#line 3103 "configure" |
3103 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
3104 |
ac_header_preproc=yes |
#include <$ac_hdr> |
3105 |
|
EOF |
3106 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3107 |
|
{ (eval echo configure:3108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3108 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3109 |
|
if test -z "$ac_err"; then |
3110 |
|
rm -rf conftest* |
3111 |
|
eval "ac_cv_header_$ac_safe=yes" |
3112 |
else |
else |
3113 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
3114 |
|
echo "configure: failed program was:" >&5 |
3115 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
3116 |
ac_header_preproc=no |
rm -rf conftest* |
3117 |
|
eval "ac_cv_header_$ac_safe=no" |
3118 |
fi |
fi |
3119 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
3120 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
fi |
3121 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3122 |
|
echo "$ac_t""yes" 1>&6 |
3123 |
# So? What about this header? |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3124 |
case $ac_header_compiler:$ac_header_preproc in |
cat >> confdefs.h <<EOF |
3125 |
yes:no ) |
#define $ac_tr_hdr 1 |
3126 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
EOF |
3127 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
echo $ac_n "checking "endianness"""... $ac_c" 1>&6 |
3128 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
echo "configure:3129: 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 |
|
3129 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3130 |
echo "$as_me:$LINENO: result: big" >&5 |
echo "$ac_t""big" 1>&6 |
|
echo "${ECHO_T}big" >&6 |
|
3131 |
else |
else |
3132 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3133 |
#line $LINENO "configure" |
#line 3134 "configure" |
3134 |
#include "confdefs.h" |
#include "confdefs.h" |
3135 |
#define __ARMEB__ |
#define __ARMEB__ |
3136 |
#include <endian.h> |
#include <endian.h> |
3137 |
int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;} |
int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;} |
3138 |
_ACEOF |
EOF |
3139 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3140 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3141 |
(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 |
|
3142 |
#define LITTLE_END 1 |
#define LITTLE_END 1 |
3143 |
_ACEOF |
EOF |
3144 |
echo "$as_me:$LINENO: result: little" >&5 |
echo "$ac_t""little" 1>&6 |
3145 |
echo "${ECHO_T}little" >&6 |
else |
3146 |
else |
echo "configure: failed program was:" >&5 |
3147 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
3148 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
3149 |
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 |
|
3150 |
fi |
fi |
3151 |
|
rm -fr conftest* |
3152 |
fi |
fi |
3153 |
|
|
3154 |
|
else |
3155 |
|
echo "$ac_t""no" 1>&6 |
3156 |
|
fi |
3157 |
done |
done |
3158 |
|
|
3159 |
|
|
3160 |
|
|
3161 |
echo "$as_me:$LINENO: checking \"finding DBEGIN\"" >&5 |
echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6 |
3162 |
echo $ECHO_N "checking \"finding DBEGIN\"... $ECHO_C" >&6 |
echo "configure:3163: checking "finding DBEGIN"" >&5 |
3163 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3164 |
dbegin=0 |
dbegin=0 |
3165 |
else |
else |
3166 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3167 |
#line $LINENO "configure" |
#line 3168 "configure" |
3168 |
#include "confdefs.h" |
#include "confdefs.h" |
3169 |
#include <stdio.h> |
#include <stdio.h> |
3170 |
#include <stdlib.h> |
#include <stdlib.h> |
3180 |
fclose(fp); |
fclose(fp); |
3181 |
return 0; |
return 0; |
3182 |
} |
} |
3183 |
_ACEOF |
EOF |
3184 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3185 |
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 |
|
3186 |
dbegin=`cat conftest1` |
dbegin=`cat conftest1` |
3187 |
else |
else |
3188 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3189 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3190 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
3191 |
( exit $ac_status ) |
dbegin=0 |
|
dbegin=0 |
|
3192 |
fi |
fi |
3193 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3194 |
fi |
fi |
3195 |
cat >>confdefs.h <<_ACEOF |
|
3196 |
|
cat >> confdefs.h <<EOF |
3197 |
#define DBEGIN $dbegin \ |
#define DBEGIN $dbegin \ |
3198 |
/* where data begins */ |
/* where data begins */ |
3199 |
|
|
3200 |
_ACEOF |
EOF |
3201 |
|
|
3202 |
echo "$as_me:$LINENO: result: got $dbegin" >&5 |
echo "$ac_t""got $dbegin" 1>&6 |
|
echo "${ECHO_T}got $dbegin" >&6 |
|
3203 |
|
|
3204 |
|
|
3205 |
echo "$as_me:$LINENO: checking \"finding CSTACK_ADDRESS\"" >&5 |
echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6 |
3206 |
echo $ECHO_N "checking \"finding CSTACK_ADDRESS\"... $ECHO_C" >&6 |
echo "configure:3207: checking "finding CSTACK_ADDRESS"" >&5 |
3207 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3208 |
cstack_address=0 |
cstack_address=0 |
3209 |
else |
else |
3210 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3211 |
#line $LINENO "configure" |
#line 3212 "configure" |
3212 |
#include "confdefs.h" |
#include "confdefs.h" |
3213 |
#include <stdio.h> |
#include <stdio.h> |
3214 |
main() |
main() |
3219 |
fclose(fp); |
fclose(fp); |
3220 |
return 0; |
return 0; |
3221 |
} |
} |
3222 |
_ACEOF |
EOF |
3223 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3224 |
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 |
|
3225 |
cstack_address=`cat conftest1` |
cstack_address=`cat conftest1` |
3226 |
else |
else |
3227 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3228 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3229 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
3230 |
( exit $ac_status ) |
cstack_address=0 |
|
cstack_address=0 |
|
3231 |
fi |
fi |
3232 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3233 |
fi |
fi |
3234 |
cat >>confdefs.h <<_ACEOF |
|
3235 |
|
cat >> confdefs.h <<EOF |
3236 |
#define CSTACK_ADDRESS $cstack_address \ |
#define CSTACK_ADDRESS $cstack_address \ |
3237 |
|
|
3238 |
_ACEOF |
EOF |
3239 |
|
|
3240 |
echo "$as_me:$LINENO: result: got $cstack_address" >&5 |
echo "$ac_t""got $cstack_address" 1>&6 |
|
echo "${ECHO_T}got $cstack_address" >&6 |
|
3241 |
|
|
3242 |
|
|
3243 |
|
|
3244 |
echo "$as_me:$LINENO: checking \"sizeof long long int\"" >&5 |
echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6 |
3245 |
echo $ECHO_N "checking \"sizeof long long int\"... $ECHO_C" >&6 |
echo "configure:3246: checking "sizeof long long int"" >&5 |
3246 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3247 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
3248 |
|
|
3249 |
else |
else |
3250 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3251 |
#line $LINENO "configure" |
#line 3252 "configure" |
3252 |
#include "confdefs.h" |
#include "confdefs.h" |
3253 |
#include <stdio.h> |
#include <stdio.h> |
3254 |
main() |
main() |
3257 |
return 1; |
return 1; |
3258 |
} |
} |
3259 |
|
|
3260 |
_ACEOF |
EOF |
3261 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3262 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3263 |
(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 |
|
3264 |
#define HAVE_LONG_LONG 1 |
#define HAVE_LONG_LONG 1 |
3265 |
_ACEOF |
EOF |
3266 |
|
|
3267 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
3268 |
else |
else |
3269 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3270 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3271 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
3272 |
( exit $ac_status ) |
echo "$ac_t""no" 1>&6 |
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
3273 |
fi |
fi |
3274 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3275 |
fi |
fi |
3276 |
|
|
3277 |
|
|
3278 |
|
|
3279 |
|
|
3280 |
# readline |
# readline |
3281 |
# Check whether --enable-readline or --disable-readline was given. |
# Check whether --enable-readline or --disable-readline was given. |
3282 |
if test "${enable_readline+set}" = set; then |
if test "${enable_readline+set}" = set; then |
3283 |
enableval="$enable_readline" |
enableval="$enable_readline" |
3284 |
|
: |
3285 |
else |
else |
3286 |
enable_readline="yes" |
enable_readline="yes" |
3287 |
fi; |
fi |
3288 |
|
|
3289 |
|
|
3290 |
# ansi lisp |
# ansi lisp |
3291 |
# Check whether --enable-ansi or --disable-ansi was given. |
# Check whether --enable-ansi or --disable-ansi was given. |
3292 |
if test "${enable_ansi+set}" = set; then |
if test "${enable_ansi+set}" = set; then |
3293 |
enableval="$enable_ansi" |
enableval="$enable_ansi" |
3294 |
|
: |
3295 |
else |
else |
3296 |
enable_ansi="no" |
enable_ansi="no" |
3297 |
fi; |
fi |
3298 |
|
|
3299 |
|
|
3300 |
if test "$enable_ansi" = "yes" ; then |
if test "$enable_ansi" = "yes" ; then |
3301 |
FLISP=saved_ansi_gcl; |
FLISP=saved_ansi_gcl; |
3302 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
3303 |
#define ANSI_COMMON_LISP 1 |
#define ANSI_COMMON_LISP 1 |
3304 |
_ACEOF |
EOF |
3305 |
|
|
3306 |
else |
else |
3307 |
FLISP=saved_gcl |
FLISP=saved_gcl |
3310 |
|
|
3311 |
|
|
3312 |
# pagewidth |
# pagewidth |
3313 |
echo "$as_me:$LINENO: checking for pagewidth" >&5 |
echo $ac_n "checking for pagewidth""... $ac_c" 1>&6 |
3314 |
echo $ECHO_N "checking for pagewidth... $ECHO_C" >&6 |
echo "configure:3315: checking for pagewidth" >&5 |
3315 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3316 |
PAGEWIDTH=0 |
PAGEWIDTH=0 |
3317 |
else |
else |
3318 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3319 |
#line $LINENO "configure" |
#line 3320 "configure" |
3320 |
#include "confdefs.h" |
#include "confdefs.h" |
3321 |
#include <stdio.h> |
#include <stdio.h> |
3322 |
#include <unistd.h> |
#include <unistd.h> |
3323 |
int main() {size_t i=getpagesize(),j; |
int main() {size_t i=getpagesize(),j; |
3324 |
FILE *fp=fopen("conftest1","w"); |
FILE *fp=fopen("conftest1","w"); |
3325 |
for (j=0;i>>=1;j++); |
for (j=0;i>>=1;j++); |
3326 |
fprintf(fp,"%u",j); |
fprintf(fp,"%u",j); |
3327 |
return 0;} |
return 0;} |
3328 |
_ACEOF |
EOF |
3329 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3330 |
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 |
|
3331 |
PAGEWIDTH=`cat conftest1` |
PAGEWIDTH=`cat conftest1` |
3332 |
else |
else |
3333 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3334 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3335 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
3336 |
( exit $ac_status ) |
PAGEWIDTH=0 |
3337 |
PAGEWIDTH=0 |
fi |
3338 |
fi |
rm -fr conftest* |
3339 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fi |
3340 |
fi |
|
3341 |
echo "$as_me:$LINENO: result: $PAGEWIDTH" >&5 |
echo "$ac_t""$PAGEWIDTH" 1>&6 |
3342 |
echo "${ECHO_T}$PAGEWIDTH" >&6 |
cat >> confdefs.h <<EOF |
|
cat >>confdefs.h <<_ACEOF |
|
3343 |
#define PAGEWIDTH $PAGEWIDTH |
#define PAGEWIDTH $PAGEWIDTH |
3344 |
_ACEOF |
EOF |
3345 |
|
|
3346 |
|
|
3347 |
|
|
3350 |
|
|
3351 |
|
|
3352 |
# Check if Posix compliant getcwd exists, if not we'll use getwd. |
# Check if Posix compliant getcwd exists, if not we'll use getwd. |
|
|
|
3353 |
for ac_func in getcwd |
for ac_func in getcwd |
3354 |
do |
do |
3355 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3356 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
echo "configure:3357: checking for $ac_func" >&5 |
3357 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3358 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3359 |
else |
else |
3360 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3361 |
#line $LINENO "configure" |
#line 3362 "configure" |
3362 |
#include "confdefs.h" |
#include "confdefs.h" |
3363 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
3364 |
which can conflict with char $ac_func (); below. */ |
which can conflict with char $ac_func(); below. */ |
3365 |
#include <assert.h> |
#include <assert.h> |
3366 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3367 |
/* 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 |
3368 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3369 |
char $ac_func (); |
char $ac_func(); |
3370 |
char (*f) (); |
|
3371 |
|
int main() { |
3372 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
3373 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
3374 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
3375 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
3376 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
3377 |
choke me |
choke me |
3378 |
#else |
#else |
3379 |
f = $ac_func; |
$ac_func(); |
3380 |
#endif |
#endif |
3381 |
|
|
3382 |
; |
; return 0; } |
3383 |
return 0; |
EOF |
3384 |
} |
if { (eval echo configure:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3385 |
_ACEOF |
rm -rf conftest* |
3386 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_$ac_func=yes" |
3387 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
3388 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
3389 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
3390 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
3391 |
(exit $ac_status); } && |
eval "ac_cv_func_$ac_func=no" |
3392 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
3393 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
3394 |
(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 |
|
3395 |
|
|
3396 |
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3397 |
|
echo "$ac_t""yes" 1>&6 |
3398 |
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3399 |
|
cat >> confdefs.h <<EOF |
3400 |
|
#define $ac_tr_func 1 |
3401 |
|
EOF |
3402 |
|
|
3403 |
|
else |
3404 |
|
echo "$ac_t""no" 1>&6 |
3405 |
fi |
fi |
3406 |
done |
done |
3407 |
|
|
|
|
|
3408 |
for ac_func in getwd |
for ac_func in getwd |
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 |
echo "$as_me:$LINENO: checking for uname" >&5 |
echo $ac_n "checking for uname""... $ac_c" 1>&6 |
3464 |
echo $ECHO_N "checking for uname... $ECHO_C" >&6 |
echo "configure:3465: checking for uname" >&5 |
3465 |
if test "${ac_cv_func_uname+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then |
3466 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3467 |
else |
else |
3468 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3469 |
#line $LINENO "configure" |
#line 3470 "configure" |
3470 |
#include "confdefs.h" |
#include "confdefs.h" |
3471 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
3472 |
which can conflict with char uname (); below. */ |
which can conflict with char uname(); below. */ |
3473 |
#include <assert.h> |
#include <assert.h> |
3474 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3475 |
/* 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 |
3476 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3477 |
char uname (); |
char uname(); |
3478 |
char (*f) (); |
|
3479 |
|
int main() { |
3480 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
3481 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
3482 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
3483 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
3484 |
#if defined (__stub_uname) || defined (__stub___uname) |
#if defined (__stub_uname) || defined (__stub___uname) |
3485 |
choke me |
choke me |
3486 |
#else |
#else |
3487 |
f = uname; |
uname(); |
3488 |
#endif |
#endif |
3489 |
|
|
3490 |
; |
; return 0; } |
3491 |
return 0; |
EOF |
3492 |
} |
if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3493 |
_ACEOF |
rm -rf conftest* |
3494 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_uname=yes" |
3495 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
3496 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
3497 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
3498 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
3499 |
(exit $ac_status); } && |
eval "ac_cv_func_uname=no" |
3500 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
3501 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
3502 |
(eval $ac_try) 2>&5 |
fi |
3503 |
ac_status=$? |
|
3504 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then |
3505 |
(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 |
|
3506 |
: |
: |
3507 |
else |
else |
3508 |
cat >>confdefs.h <<\_ACEOF |
echo "$ac_t""no" 1>&6 |
3509 |
|
cat >> confdefs.h <<\EOF |
3510 |
#define NO_UNAME 1 |
#define NO_UNAME 1 |
3511 |
_ACEOF |
EOF |
3512 |
|
|
3513 |
fi |
fi |
3514 |
|
|
3515 |
echo "$as_me:$LINENO: checking for gettimeofday" >&5 |
echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
3516 |
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 |
echo "configure:3517: checking for gettimeofday" >&5 |
3517 |
if test "${ac_cv_func_gettimeofday+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
3518 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3519 |
else |
else |
3520 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3521 |
#line $LINENO "configure" |
#line 3522 "configure" |
3522 |
#include "confdefs.h" |
#include "confdefs.h" |
3523 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
3524 |
which can conflict with char gettimeofday (); below. */ |
which can conflict with char gettimeofday(); below. */ |
3525 |
#include <assert.h> |
#include <assert.h> |
3526 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3527 |
/* 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 |
3528 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3529 |
char gettimeofday (); |
char gettimeofday(); |
3530 |
char (*f) (); |
|
3531 |
|
int main() { |
3532 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
3533 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
3534 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
3535 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
3536 |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
3537 |
choke me |
choke me |
3538 |
#else |
#else |
3539 |
f = gettimeofday; |
gettimeofday(); |
3540 |
#endif |
#endif |
3541 |
|
|
3542 |
; |
; return 0; } |
3543 |
return 0; |
EOF |
3544 |
} |
if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3545 |
_ACEOF |
rm -rf conftest* |
3546 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_gettimeofday=yes" |
3547 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
3548 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
3549 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
3550 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
3551 |
(exit $ac_status); } && |
eval "ac_cv_func_gettimeofday=no" |
3552 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
3553 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
3554 |
(eval $ac_try) 2>&5 |
fi |
3555 |
ac_status=$? |
|
3556 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
3557 |
(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 |
|
3558 |
: |
: |
3559 |
else |
else |
3560 |
cat >>confdefs.h <<\_ACEOF |
echo "$ac_t""no" 1>&6 |
3561 |
|
cat >> confdefs.h <<\EOF |
3562 |
#define NO_GETTOD 1 |
#define NO_GETTOD 1 |
3563 |
_ACEOF |
EOF |
3564 |
|
|
3565 |
fi |
fi |
3566 |
|
|
3567 |
|
|
3568 |
|
|
3569 |
|
for ac_hdr in sys/ioctl.h |
|
for ac_header in sys/ioctl.h |
|
3570 |
do |
do |
3571 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3572 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3573 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:3574: checking for $ac_hdr" >&5 |
3574 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3575 |
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 |
|
3576 |
else |
else |
3577 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
3578 |
fi |
#line 3579 "configure" |
3579 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
3580 |
ac_header_preproc=yes |
#include <$ac_hdr> |
3581 |
|
EOF |
3582 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3583 |
|
{ (eval echo configure:3584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3584 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3585 |
|
if test -z "$ac_err"; then |
3586 |
|
rm -rf conftest* |
3587 |
|
eval "ac_cv_header_$ac_safe=yes" |
3588 |
else |
else |
3589 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
3590 |
|
echo "configure: failed program was:" >&5 |
3591 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
3592 |
ac_header_preproc=no |
rm -rf conftest* |
3593 |
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" |
|
3594 |
fi |
fi |
3595 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
rm -f conftest* |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
3596 |
fi |
fi |
3597 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3598 |
cat >>confdefs.h <<_ACEOF |
echo "$ac_t""yes" 1>&6 |
3599 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3600 |
_ACEOF |
cat >> confdefs.h <<EOF |
3601 |
|
#define $ac_tr_hdr 1 |
3602 |
|
EOF |
3603 |
|
|
3604 |
|
else |
3605 |
|
echo "$ac_t""no" 1>&6 |
3606 |
fi |
fi |
|
|
|
3607 |
done |
done |
3608 |
|
|
3609 |
|
|
3619 |
# declare it. |
# declare it. |
3620 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
3621 |
|
|
3622 |
echo "$as_me:$LINENO: checking for BSDgettimeofday" >&5 |
echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6 |
3623 |
echo $ECHO_N "checking for BSDgettimeofday... $ECHO_C" >&6 |
echo "configure:3624: checking for BSDgettimeofday" >&5 |
3624 |
if test "${ac_cv_func_BSDgettimeofday+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then |
3625 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3626 |
else |
else |
3627 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3628 |
#line $LINENO "configure" |
#line 3629 "configure" |
3629 |
#include "confdefs.h" |
#include "confdefs.h" |
3630 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
3631 |
which can conflict with char BSDgettimeofday (); below. */ |
which can conflict with char BSDgettimeofday(); below. */ |
3632 |
#include <assert.h> |
#include <assert.h> |
3633 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3634 |
/* 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 |
3635 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3636 |
char BSDgettimeofday (); |
char BSDgettimeofday(); |
3637 |
char (*f) (); |
|
3638 |
|
int main() { |
3639 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
3640 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
3641 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
3642 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
3643 |
#if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday) |
#if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday) |
3644 |
choke me |
choke me |
3645 |
#else |
#else |
3646 |
f = BSDgettimeofday; |
BSDgettimeofday(); |
3647 |
#endif |
#endif |
3648 |
|
|
3649 |
; |
; return 0; } |
3650 |
return 0; |
EOF |
3651 |
} |
if { (eval echo configure:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3652 |
_ACEOF |
rm -rf conftest* |
3653 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_BSDgettimeofday=yes" |
3654 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
3655 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
3656 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
3657 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
3658 |
(exit $ac_status); } && |
eval "ac_cv_func_BSDgettimeofday=no" |
3659 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
3660 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
3661 |
(eval $ac_try) 2>&5 |
fi |
3662 |
ac_status=$? |
|
3663 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then |
3664 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
3665 |
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 |
|
3666 |
#define HAVE_BSDGETTIMEOFDAY 1 |
#define HAVE_BSDGETTIMEOFDAY 1 |
3667 |
_ACEOF |
EOF |
3668 |
|
|
3669 |
else |
else |
3670 |
echo "$as_me:$LINENO: checking for gettimeofday" >&5 |
echo "$ac_t""no" 1>&6 |
3671 |
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 |
echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
3672 |
if test "${ac_cv_func_gettimeofday+set}" = set; then |
echo "configure:3673: checking for gettimeofday" >&5 |
3673 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
3674 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3675 |
else |
else |
3676 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3677 |
#line $LINENO "configure" |
#line 3678 "configure" |
3678 |
#include "confdefs.h" |
#include "confdefs.h" |
3679 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
3680 |
which can conflict with char gettimeofday (); below. */ |
which can conflict with char gettimeofday(); below. */ |
3681 |
#include <assert.h> |
#include <assert.h> |
3682 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3683 |
/* 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 |
3684 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3685 |
char gettimeofday (); |
char gettimeofday(); |
3686 |
char (*f) (); |
|
3687 |
|
int main() { |
3688 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
3689 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
3690 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
3691 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
3692 |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
3693 |
choke me |
choke me |
3694 |
#else |
#else |
3695 |
f = gettimeofday; |
gettimeofday(); |
3696 |
#endif |
#endif |
3697 |
|
|
3698 |
; |
; return 0; } |
3699 |
return 0; |
EOF |
3700 |
} |
if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3701 |
_ACEOF |
rm -rf conftest* |
3702 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_gettimeofday=yes" |
3703 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
3704 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
3705 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
3706 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
3707 |
(exit $ac_status); } && |
eval "ac_cv_func_gettimeofday=no" |
3708 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
3709 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
3710 |
(eval $ac_try) 2>&5 |
fi |
3711 |
ac_status=$? |
|
3712 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
3713 |
(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 |
|
3714 |
: |
: |
3715 |
else |
else |
3716 |
cat >>confdefs.h <<\_ACEOF |
echo "$ac_t""no" 1>&6 |
3717 |
|
cat >> confdefs.h <<\EOF |
3718 |
#define NO_GETTOD 1 |
#define NO_GETTOD 1 |
3719 |
_ACEOF |
EOF |
3720 |
|
|
3721 |
fi |
fi |
3722 |
|
|
3723 |
fi |
fi |
3724 |
|
|
3725 |
|
|
3726 |
echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5 |
echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6 |
3727 |
echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6 |
echo "configure:3728: checking for gettimeofday declaration" >&5 |
3728 |
|
|
3729 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3730 |
#line $LINENO "configure" |
#line 3731 "configure" |
3731 |
#include "confdefs.h" |
#include "confdefs.h" |
3732 |
#include <sys/time.h> |
#include <sys/time.h> |
3733 |
|
EOF |
|
_ACEOF |
|
3734 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3735 |
egrep "gettimeofday" >/dev/null 2>&1; then |
egrep "gettimeofday" >/dev/null 2>&1; then |
3736 |
echo "$as_me:$LINENO: result: present" >&5 |
rm -rf conftest* |
3737 |
echo "${ECHO_T}present" >&6 |
echo "$ac_t""present" 1>&6 |
3738 |
else |
else |
3739 |
echo "$as_me:$LINENO: result: missing" >&5 |
rm -rf conftest* |
3740 |
echo "${ECHO_T}missing" >&6 |
echo "$ac_t""missing" 1>&6 |
3741 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
3742 |
#define GETTOD_NOT_DECLARED 1 |
#define GETTOD_NOT_DECLARED 1 |
3743 |
_ACEOF |
EOF |
3744 |
|
|
3745 |
fi |
fi |
3746 |
rm -f conftest* |
rm -f conftest* |
3747 |
|
|
3748 |
|
|
3749 |
|
|
3750 |
echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 |
3751 |
echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 |
echo "configure:3752: checking for sin in -lm" >&5 |
3752 |
if test "${ac_cv_lib_m_sin+set}" = set; then |
ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` |
3753 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3754 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3755 |
else |
else |
3756 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
3757 |
LIBS="-lm $LIBS" |
LIBS="-lm $LIBS" |
3758 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3759 |
#line $LINENO "configure" |
#line 3760 "configure" |
3760 |
#include "confdefs.h" |
#include "confdefs.h" |
|
|
|
3761 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
3762 |
/* 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 |
3763 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
3764 |
char sin (); |
char sin(); |
3765 |
#ifdef F77_DUMMY_MAIN |
|
3766 |
# ifdef __cplusplus |
int main() { |
3767 |
extern "C" |
sin() |
3768 |
# endif |
; return 0; } |
3769 |
int F77_DUMMY_MAIN() { return 1; } |
EOF |
3770 |
#endif |
if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3771 |
int |
rm -rf conftest* |
3772 |
main () |
eval "ac_cv_lib_$ac_lib_var=yes" |
3773 |
{ |
else |
3774 |
sin (); |
echo "configure: failed program was:" >&5 |
3775 |
; |
cat conftest.$ac_ext >&5 |
3776 |
return 0; |
rm -rf conftest* |
3777 |
} |
eval "ac_cv_lib_$ac_lib_var=no" |
3778 |
_ACEOF |
fi |
3779 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -f conftest* |
3780 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
LIBS="$ac_save_LIBS" |
3781 |
(eval $ac_link) 2>&5 |
|
3782 |
ac_status=$? |
fi |
3783 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3784 |
(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 |
|
3785 |
LIBS="${LIBS} -lm" |
LIBS="${LIBS} -lm" |
3786 |
else |
else |
3787 |
true |
echo "$ac_t""no" 1>&6 |
3788 |
|
true |
3789 |
fi |
fi |
3790 |
|
|
3791 |
echo "$as_me:$LINENO: checking for main in -lmingwex" >&5 |
echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6 |
3792 |
echo $ECHO_N "checking for main in -lmingwex... $ECHO_C" >&6 |
echo "configure:3793: checking for main in -lmingwex" >&5 |
3793 |
if test "${ac_cv_lib_mingwex_main+set}" = set; then |
ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'` |
3794 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3795 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3796 |
else |
else |
3797 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
3798 |
LIBS="-lmingwex $LIBS" |
LIBS="-lmingwex $LIBS" |
3799 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3800 |
#line $LINENO "configure" |
#line 3801 "configure" |
3801 |
#include "confdefs.h" |
#include "confdefs.h" |
3802 |
|
|
3803 |
|
int main() { |
3804 |
|
main() |
3805 |
|
; return 0; } |
3806 |
|
EOF |
3807 |
|
if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3808 |
|
rm -rf conftest* |
3809 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3810 |
|
else |
3811 |
|
echo "configure: failed program was:" >&5 |
3812 |
|
cat conftest.$ac_ext >&5 |
3813 |
|
rm -rf conftest* |
3814 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
3815 |
|
fi |
3816 |
|
rm -f conftest* |
3817 |
|
LIBS="$ac_save_LIBS" |
3818 |
|
|
3819 |
#ifdef F77_DUMMY_MAIN |
fi |
3820 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3821 |
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 |
|
3822 |
LIBS="${LIBS} -lmingwex" |
LIBS="${LIBS} -lmingwex" |
3823 |
else |
else |
3824 |
true |
echo "$ac_t""no" 1>&6 |
3825 |
|
true |
3826 |
fi |
fi |
3827 |
|
|
3828 |
|
|
3829 |
# Should really find a way to check for prototypes, but this |
# Should really find a way to check for prototypes, but this |
3830 |
# basically works for now. CM |
# basically works for now. CM |
3831 |
# |
# |
3832 |
|
for ac_hdr in math.h |
|
for ac_header in math.h |
|
3833 |
do |
do |
3834 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3835 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3836 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:3837: checking for $ac_hdr" >&5 |
3837 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3838 |
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 |
|
3839 |
else |
else |
3840 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
3841 |
fi |
#line 3842 "configure" |
3842 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
3843 |
ac_header_preproc=yes |
#include <$ac_hdr> |
3844 |
|
EOF |
3845 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3846 |
|
{ (eval echo configure:3847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3847 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3848 |
|
if test -z "$ac_err"; then |
3849 |
|
rm -rf conftest* |
3850 |
|
eval "ac_cv_header_$ac_safe=yes" |
3851 |
else |
else |
3852 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
3853 |
|
echo "configure: failed program was:" >&5 |
3854 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
3855 |
ac_header_preproc=no |
rm -rf conftest* |
3856 |
|
eval "ac_cv_header_$ac_safe=no" |
3857 |
fi |
fi |
3858 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
3859 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
fi |
3860 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3861 |
|
echo "$ac_t""yes" 1>&6 |
3862 |
# So? What about this header? |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3863 |
case $ac_header_compiler:$ac_header_preproc in |
cat >> confdefs.h <<EOF |
3864 |
yes:no ) |
#define $ac_tr_hdr 1 |
3865 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
EOF |
3866 |
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 |
|
3867 |
#define HAVE_MATH_H 1 |
#define HAVE_MATH_H 1 |
3868 |
_ACEOF |
EOF |
3869 |
|
|
3870 |
|
else |
3871 |
|
echo "$ac_t""no" 1>&6 |
3872 |
fi |
fi |
|
|
|
3873 |
done |
done |
3874 |
|
|
3875 |
|
|
3876 |
# |
# |
3877 |
# For DBL_MAX et. al. on (only) certain Linux arches, apparently CM |
# For DBL_MAX et. al. on (only) certain Linux arches, apparently CM |
3878 |
# |
# |
3879 |
|
for ac_hdr in values.h |
|
for ac_header in values.h |
|
3880 |
do |
do |
3881 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3882 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3883 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:3884: checking for $ac_hdr" >&5 |
3884 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3885 |
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 |
|
3886 |
else |
else |
3887 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
3888 |
fi |
#line 3889 "configure" |
3889 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
3890 |
ac_header_preproc=yes |
#include <$ac_hdr> |
3891 |
|
EOF |
3892 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3893 |
|
{ (eval echo configure:3894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3894 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3895 |
|
if test -z "$ac_err"; then |
3896 |
|
rm -rf conftest* |
3897 |
|
eval "ac_cv_header_$ac_safe=yes" |
3898 |
else |
else |
3899 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
3900 |
|
echo "configure: failed program was:" >&5 |
3901 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
3902 |
ac_header_preproc=no |
rm -rf conftest* |
3903 |
|
eval "ac_cv_header_$ac_safe=no" |
3904 |
fi |
fi |
3905 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
3906 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
fi |
3907 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3908 |
|
echo "$ac_t""yes" 1>&6 |
3909 |
# So? What about this header? |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3910 |
case $ac_header_compiler:$ac_header_preproc in |
cat >> confdefs.h <<EOF |
3911 |
yes:no ) |
#define $ac_tr_hdr 1 |
3912 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
EOF |
3913 |
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 |
|
3914 |
#define HAVE_VALUES_H 1 |
#define HAVE_VALUES_H 1 |
3915 |
_ACEOF |
EOF |
3916 |
|
|
3917 |
|
else |
3918 |
|
echo "$ac_t""no" 1>&6 |
3919 |
fi |
fi |
|
|
|
3920 |
done |
done |
3921 |
|
|
3922 |
|
|
3923 |
# |
# |
3924 |
# 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 |
3925 |
# |
# |
3926 |
|
for ac_hdr in float.h |
|
for ac_header in float.h |
|
3927 |
do |
do |
3928 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3929 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3930 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:3931: checking for $ac_hdr" >&5 |
3931 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3932 |
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 |
|
3933 |
else |
else |
3934 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
3935 |
fi |
#line 3936 "configure" |
3936 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
3937 |
ac_header_preproc=yes |
#include <$ac_hdr> |
3938 |
|
EOF |
3939 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3940 |
|
{ (eval echo configure:3941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3941 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3942 |
|
if test -z "$ac_err"; then |
3943 |
|
rm -rf conftest* |
3944 |
|
eval "ac_cv_header_$ac_safe=yes" |
3945 |
else |
else |
3946 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
3947 |
|
echo "configure: failed program was:" >&5 |
3948 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
3949 |
ac_header_preproc=no |
rm -rf conftest* |
3950 |
|
eval "ac_cv_header_$ac_safe=no" |
3951 |
fi |
fi |
3952 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
3953 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
fi |
3954 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3955 |
|
echo "$ac_t""yes" 1>&6 |
3956 |
# So? What about this header? |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3957 |
case $ac_header_compiler:$ac_header_preproc in |
cat >> confdefs.h <<EOF |
3958 |
yes:no ) |
#define $ac_tr_hdr 1 |
3959 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
EOF |
3960 |
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 |
|
3961 |
#define HAVE_FLOAT_H 1 |
#define HAVE_FLOAT_H 1 |
3962 |
_ACEOF |
EOF |
3963 |
|
|
3964 |
|
else |
3965 |
|
echo "$ac_t""no" 1>&6 |
3966 |
fi |
fi |
|
|
|
3967 |
done |
done |
3968 |
|
|
3969 |
|
|
3972 |
# a more comprehensive later, i.e. checking that the fpclass |
# a more comprehensive later, i.e. checking that the fpclass |
3973 |
# test makes sense. CM |
# test makes sense. CM |
3974 |
# |
# |
3975 |
echo "$as_me:$LINENO: checking for isnormal" >&5 |
echo $ac_n "checking for isnormal""... $ac_c" 1>&6 |
3976 |
echo $ECHO_N "checking for isnormal... $ECHO_C" >&6 |
echo "configure:3977: checking for isnormal" >&5 |
3977 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3978 |
HAVE_ISNORMAL=0 echo "$as_me:$LINENO: result: no" >&5 |
HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
3979 |
else |
else |
3980 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3981 |
#line $LINENO "configure" |
#line 3982 "configure" |
3982 |
#include "confdefs.h" |
#include "confdefs.h" |
3983 |
#define _GNU_SOURCE |
#define _GNU_SOURCE |
3984 |
#include <math.h> |
#include <math.h> |
3986 |
float f; |
float f; |
3987 |
return isnormal(f) || !isnormal(f) ? 0 : 1; |
return isnormal(f) || !isnormal(f) ? 0 : 1; |
3988 |
} |
} |
3989 |
_ACEOF |
EOF |
3990 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3991 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3992 |
(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 |
|
3993 |
#define HAVE_ISNORMAL 1 |
#define HAVE_ISNORMAL 1 |
3994 |
_ACEOF |
EOF |
3995 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
3996 |
echo "${ECHO_T}yes" >&6 |
else |
3997 |
else |
echo "configure: failed program was:" >&5 |
3998 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
3999 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
4000 |
cat conftest.$ac_ext >&5 |
echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6 |
4001 |
( exit $ac_status ) |
echo "configure:4002: 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 |
|
4002 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
4003 |
HAVE_IEEEFP=0 echo "$as_me:$LINENO: result: no" >&5 |
HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
4004 |
else |
else |
4005 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4006 |
#line $LINENO "configure" |
#line 4007 "configure" |
4007 |
#include "confdefs.h" |
#include "confdefs.h" |
4008 |
#include <ieeefp.h> |
#include <ieeefp.h> |
4009 |
int main() { |
int main() { |
4010 |
float f; |
float f; |
4011 |
return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1; |
return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1; |
4012 |
} |
} |
4013 |
_ACEOF |
EOF |
4014 |
rm -f conftest$ac_exeext |
if { (eval echo configure:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4015 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
4016 |
(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 |
|
4017 |
#define HAVE_IEEEFP 1 |
#define HAVE_IEEEFP 1 |
4018 |
_ACEOF |
EOF |
4019 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
4020 |
else |
else |
4021 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
4022 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
4023 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
4024 |
( 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 |
|
4025 |
fi |
fi |
4026 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
4027 |
fi |
fi |
4028 |
|
|
4029 |
|
|
4030 |
fi |
fi |
4031 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
4032 |
fi |
fi |
4033 |
|
|
4034 |
echo "$as_me:$LINENO: checking for isfinite" >&5 |
|
4035 |
echo $ECHO_N "checking for isfinite... $ECHO_C" >&6 |
echo $ac_n "checking for isfinite""... $ac_c" 1>&6 |
4036 |
|
echo "configure:4037: checking for isfinite" >&5 |
4037 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
4038 |
HAVE_ISFINITE=0 echo "$as_me:$LINENO: result: no" >&5 |
HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
4039 |
else |
else |
4040 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4041 |
#line $LINENO "configure" |
#line 4042 "configure" |
4042 |
#include "confdefs.h" |
#include "confdefs.h" |
4043 |
#define _GNU_SOURCE |
#define _GNU_SOURCE |
4044 |
#include <math.h> |
#include <math.h> |
4046 |
float f; |
float f; |
4047 |
return isfinite(f) || !isfinite(f) ? 0 : 1; |
return isfinite(f) || !isfinite(f) ? 0 : 1; |
4048 |
} |
} |
4049 |
_ACEOF |
EOF |
4050 |
rm -f conftest$ac_exeext |
if { (eval echo configure:4051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4051 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
4052 |
(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 |
|
4053 |
#define HAVE_ISFINITE 1 |
#define HAVE_ISFINITE 1 |
4054 |
_ACEOF |
EOF |
4055 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
4056 |
echo "${ECHO_T}yes" >&6 |
else |
4057 |
else |
echo "configure: failed program was:" >&5 |
4058 |
echo "$as_me: program exited with status $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
4059 |
echo "$as_me: failed program was:" >&5 |
rm -fr conftest* |
4060 |
cat conftest.$ac_ext >&5 |
echo $ac_n "checking for finite()""... $ac_c" 1>&6 |
4061 |
( exit $ac_status ) |
echo "configure:4062: checking for finite()" >&5 |
|
echo "$as_me:$LINENO: checking for finite()" >&5 |
|
|
echo $ECHO_N "checking for finite()... $ECHO_C" >&6 |
|
4062 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
4063 |
HAVE_FINITE=0 echo "$as_me:$LINENO: result: no" >&5 |
HAVE_FINITE=0 echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
4064 |
else |
else |
4065 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4066 |
#line $LINENO "configure" |
#line 4067 "configure" |
4067 |
#include "confdefs.h" |
#include "confdefs.h" |
4068 |
#include <math.h> |
#include <math.h> |
4069 |
#include <ieeefp.h> |
#include <ieeefp.h> |
4071 |
float f; |
float f; |
4072 |
return finite(f) || !finite(f) ? 0 : 1; |
return finite(f) || !finite(f) ? 0 : 1; |
4073 |
} |
} |
4074 |
_ACEOF |
EOF |
4075 |
rm -f conftest$ac_exeext |
if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4076 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
4077 |
(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 |
|
4078 |
#define HAVE_FINITE 1 |
#define HAVE_FINITE 1 |
4079 |
_ACEOF |
EOF |
4080 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
4081 |
else |
else |
4082 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
4083 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
4084 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
4085 |
( 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 |
|
4086 |
fi |
fi |
4087 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
4088 |
fi |
fi |
4089 |
|
|
4090 |
|
|
4091 |
fi |
fi |
4092 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
4093 |
fi |
fi |
4094 |
|
|
4095 |
|
|
4096 |
|
|
4097 |
|
|
4098 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
4099 |
# Check for the existence of the -lsocket and -lnsl libraries. |
# Check for the existence of the -lsocket and -lnsl libraries. |
4100 |
# 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 |
4112 |
# To get around this problem, check for both libraries together |
# To get around this problem, check for both libraries together |
4113 |
# if -lsocket doesn't work by itself. |
# if -lsocket doesn't work by itself. |
4114 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
4115 |
echo "$as_me:$LINENO: checking for sockets" >&5 |
echo $ac_n "checking for sockets""... $ac_c" 1>&6 |
4116 |
echo $ECHO_N "checking for sockets... $ECHO_C" >&6 |
echo "configure:4117: checking for sockets" >&5 |
4117 |
tcl_checkBoth=0 |
tcl_checkBoth=0 |
4118 |
echo "$as_me:$LINENO: checking for connect" >&5 |
echo $ac_n "checking for connect""... $ac_c" 1>&6 |
4119 |
echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
echo "configure:4120: checking for connect" >&5 |
4120 |
if test "${ac_cv_func_connect+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
4121 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4122 |
else |
else |
4123 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4124 |
#line $LINENO "configure" |
#line 4125 "configure" |
4125 |
#include "confdefs.h" |
#include "confdefs.h" |
4126 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4127 |
which can conflict with char connect (); below. */ |
which can conflict with char connect(); below. */ |
4128 |
#include <assert.h> |
#include <assert.h> |
4129 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4130 |
/* 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 |
4131 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4132 |
char connect (); |
char connect(); |
4133 |
char (*f) (); |
|
4134 |
|
int main() { |
4135 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4136 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4137 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4138 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4139 |
#if defined (__stub_connect) || defined (__stub___connect) |
#if defined (__stub_connect) || defined (__stub___connect) |
4140 |
choke me |
choke me |
4141 |
#else |
#else |
4142 |
f = connect; |
connect(); |
4143 |
#endif |
#endif |
4144 |
|
|
4145 |
; |
; return 0; } |
4146 |
return 0; |
EOF |
4147 |
} |
if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4148 |
_ACEOF |
rm -rf conftest* |
4149 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_connect=yes" |
4150 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4151 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4152 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4153 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4154 |
(exit $ac_status); } && |
eval "ac_cv_func_connect=no" |
4155 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4156 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4157 |
(eval $ac_try) 2>&5 |
fi |
4158 |
ac_status=$? |
|
4159 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
4160 |
(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 |
|
4161 |
tcl_checkSocket=0 |
tcl_checkSocket=0 |
4162 |
else |
else |
4163 |
tcl_checkSocket=1 |
echo "$ac_t""no" 1>&6 |
4164 |
|
tcl_checkSocket=1 |
4165 |
fi |
fi |
4166 |
|
|
4167 |
if test "$tcl_checkSocket" = 1; then |
if test "$tcl_checkSocket" = 1; then |
4168 |
echo "$as_me:$LINENO: checking for main in -lsocket" >&5 |
echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 |
4169 |
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6 |
echo "configure:4170: checking for main in -lsocket" >&5 |
4170 |
if test "${ac_cv_lib_socket_main+set}" = set; then |
ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` |
4171 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4172 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
4173 |
else |
else |
4174 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
4175 |
LIBS="-lsocket $LIBS" |
LIBS="-lsocket $LIBS" |
4176 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4177 |
#line $LINENO "configure" |
#line 4178 "configure" |
4178 |
#include "confdefs.h" |
#include "confdefs.h" |
4179 |
|
|
4180 |
|
int main() { |
4181 |
|
main() |
4182 |
|
; return 0; } |
4183 |
|
EOF |
4184 |
|
if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4185 |
|
rm -rf conftest* |
4186 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
4187 |
|
else |
4188 |
|
echo "configure: failed program was:" >&5 |
4189 |
|
cat conftest.$ac_ext >&5 |
4190 |
|
rm -rf conftest* |
4191 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
4192 |
|
fi |
4193 |
|
rm -f conftest* |
4194 |
|
LIBS="$ac_save_LIBS" |
4195 |
|
|
4196 |
#ifdef F77_DUMMY_MAIN |
fi |
4197 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
4198 |
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 |
|
4199 |
TLIBS="$TLIBS -lsocket" |
TLIBS="$TLIBS -lsocket" |
4200 |
else |
else |
4201 |
tcl_checkBoth=1 |
echo "$ac_t""no" 1>&6 |
4202 |
|
tcl_checkBoth=1 |
4203 |
fi |
fi |
4204 |
|
|
4205 |
fi |
fi |
4208 |
if test "$tcl_checkBoth" = 1; then |
if test "$tcl_checkBoth" = 1; then |
4209 |
tk_oldLibs=$TLIBS |
tk_oldLibs=$TLIBS |
4210 |
TLIBS="$TLIBS -lsocket -lnsl" |
TLIBS="$TLIBS -lsocket -lnsl" |
4211 |
echo "$as_me:$LINENO: checking for accept" >&5 |
echo $ac_n "checking for accept""... $ac_c" 1>&6 |
4212 |
echo $ECHO_N "checking for accept... $ECHO_C" >&6 |
echo "configure:4213: checking for accept" >&5 |
4213 |
if test "${ac_cv_func_accept+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then |
4214 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4215 |
else |
else |
4216 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4217 |
#line $LINENO "configure" |
#line 4218 "configure" |
4218 |
#include "confdefs.h" |
#include "confdefs.h" |
4219 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4220 |
which can conflict with char accept (); below. */ |
which can conflict with char accept(); below. */ |
4221 |
#include <assert.h> |
#include <assert.h> |
4222 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4223 |
/* 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 |
4224 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4225 |
char accept (); |
char accept(); |
4226 |
char (*f) (); |
|
4227 |
|
int main() { |
4228 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4229 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4230 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4231 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4232 |
#if defined (__stub_accept) || defined (__stub___accept) |
#if defined (__stub_accept) || defined (__stub___accept) |
4233 |
choke me |
choke me |
4234 |
#else |
#else |
4235 |
f = accept; |
accept(); |
4236 |
#endif |
#endif |
4237 |
|
|
4238 |
; |
; return 0; } |
4239 |
return 0; |
EOF |
4240 |
} |
if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4241 |
_ACEOF |
rm -rf conftest* |
4242 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_accept=yes" |
4243 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4244 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4245 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4246 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4247 |
(exit $ac_status); } && |
eval "ac_cv_func_accept=no" |
4248 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4249 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4250 |
(eval $ac_try) 2>&5 |
fi |
4251 |
ac_status=$? |
|
4252 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then |
4253 |
(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 |
|
4254 |
tcl_checkNsl=0 |
tcl_checkNsl=0 |
4255 |
else |
else |
4256 |
TLIBS=$tk_oldLibs |
echo "$ac_t""no" 1>&6 |
4257 |
|
TLIBS=$tk_oldLibs |
4258 |
fi |
fi |
4259 |
|
|
4260 |
fi |
fi |
4261 |
echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
4262 |
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
echo "configure:4263: checking for gethostbyname" >&5 |
4263 |
if test "${ac_cv_func_gethostbyname+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
4264 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4265 |
else |
else |
4266 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4267 |
#line $LINENO "configure" |
#line 4268 "configure" |
4268 |
#include "confdefs.h" |
#include "confdefs.h" |
4269 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4270 |
which can conflict with char gethostbyname (); below. */ |
which can conflict with char gethostbyname(); below. */ |
4271 |
#include <assert.h> |
#include <assert.h> |
4272 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4273 |
/* 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 |
4274 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4275 |
char gethostbyname (); |
char gethostbyname(); |
4276 |
char (*f) (); |
|
4277 |
|
int main() { |
4278 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4279 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4280 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4281 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4282 |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
4283 |
choke me |
choke me |
4284 |
#else |
#else |
4285 |
f = gethostbyname; |
gethostbyname(); |
4286 |
#endif |
#endif |
4287 |
|
|
4288 |
; |
; return 0; } |
4289 |
return 0; |
EOF |
4290 |
} |
if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4291 |
_ACEOF |
rm -rf conftest* |
4292 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_gethostbyname=yes" |
4293 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4294 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4295 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4296 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4297 |
(exit $ac_status); } && |
eval "ac_cv_func_gethostbyname=no" |
4298 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4299 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4300 |
(eval $ac_try) 2>&5 |
fi |
4301 |
ac_status=$? |
|
4302 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
4303 |
(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 |
|
4304 |
: |
: |
4305 |
else |
else |
4306 |
echo "$as_me:$LINENO: checking for main in -lnsl" >&5 |
echo "$ac_t""no" 1>&6 |
4307 |
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6 |
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 |
4308 |
if test "${ac_cv_lib_nsl_main+set}" = set; then |
echo "configure:4309: checking for main in -lnsl" >&5 |
4309 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` |
4310 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4311 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
4312 |
else |
else |
4313 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
4314 |
LIBS="-lnsl $LIBS" |
LIBS="-lnsl $LIBS" |
4315 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4316 |
#line $LINENO "configure" |
#line 4317 "configure" |
4317 |
#include "confdefs.h" |
#include "confdefs.h" |
4318 |
|
|
4319 |
|
int main() { |
4320 |
|
main() |
4321 |
|
; return 0; } |
4322 |
|
EOF |
4323 |
|
if { (eval echo configure:4324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4324 |
|
rm -rf conftest* |
4325 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
4326 |
|
else |
4327 |
|
echo "configure: failed program was:" >&5 |
4328 |
|
cat conftest.$ac_ext >&5 |
4329 |
|
rm -rf conftest* |
4330 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
4331 |
|
fi |
4332 |
|
rm -f conftest* |
4333 |
|
LIBS="$ac_save_LIBS" |
4334 |
|
|
4335 |
#ifdef F77_DUMMY_MAIN |
fi |
4336 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
4337 |
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 |
|
4338 |
TLIBS="$TLIBS -lnsl" |
TLIBS="$TLIBS -lnsl" |
4339 |
|
else |
4340 |
|
echo "$ac_t""no" 1>&6 |
4341 |
fi |
fi |
4342 |
|
|
4343 |
fi |
fi |
4344 |
|
|
4345 |
|
|
4346 |
if test "$enable_readline" = "yes" ; then |
if test "$enable_readline" = "yes" ; then |
4347 |
echo "$as_me:$LINENO: checking for main in -lreadline" >&5 |
echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6 |
4348 |
echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6 |
echo "configure:4349: checking for main in -lreadline" >&5 |
4349 |
if test "${ac_cv_lib_readline_main+set}" = set; then |
ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'` |
4350 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4351 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
4352 |
else |
else |
4353 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
4354 |
LIBS="-lreadline -lncurses $LIBS" |
LIBS="-lreadline -lncurses $LIBS" |
4355 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4356 |
#line $LINENO "configure" |
#line 4357 "configure" |
4357 |
#include "confdefs.h" |
#include "confdefs.h" |
4358 |
|
|
4359 |
|
int main() { |
4360 |
|
main() |
4361 |
|
; return 0; } |
4362 |
|
EOF |
4363 |
|
if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4364 |
|
rm -rf conftest* |
4365 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
4366 |
|
else |
4367 |
|
echo "configure: failed program was:" >&5 |
4368 |
|
cat conftest.$ac_ext >&5 |
4369 |
|
rm -rf conftest* |
4370 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
4371 |
|
fi |
4372 |
|
rm -f conftest* |
4373 |
|
LIBS="$ac_save_LIBS" |
4374 |
|
|
4375 |
#ifdef F77_DUMMY_MAIN |
fi |
4376 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
4377 |
extern "C" |
echo "$ac_t""yes" 1>&6 |
4378 |
# 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 |
|
4379 |
#define HAVE_READLINE 1 |
#define HAVE_READLINE 1 |
4380 |
_ACEOF |
EOF |
4381 |
|
|
4382 |
TLIBS="$TLIBS -lreadline -lncurses" |
TLIBS="$TLIBS -lreadline -lncurses" |
4383 |
RL_OBJS=readline.o |
RL_OBJS=readline.o |
4384 |
RL_LIB=lsp/readline.o |
RL_LIB=lsp/readline.o |
4385 |
|
else |
4386 |
|
echo "$ac_t""no" 1>&6 |
4387 |
fi |
fi |
4388 |
|
|
4389 |
fi |
fi |
4391 |
|
|
4392 |
|
|
4393 |
|
|
4394 |
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 |
4395 |
echo $ECHO_N "checking For network code for nsocket.c... $ECHO_C" >&6 |
echo "configure:4396: checking For network code for nsocket.c" >&5 |
4396 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4397 |
#line $LINENO "configure" |
#line 4398 "configure" |
4398 |
#include "confdefs.h" |
#include "confdefs.h" |
4399 |
|
|
4400 |
#include <sys/time.h> |
#include <sys/time.h> |
4405 |
#include <fcntl.h> |
#include <fcntl.h> |
4406 |
#include <stdio.h> |
#include <stdio.h> |
4407 |
|
|
4408 |
/************* for the sockets ******************/ |
/************* for the sockets ******************/ |
4409 |
#include <sys/socket.h> /* struct sockaddr, SOCK_STREAM, ... */ |
#include <sys/socket.h> /* struct sockaddr, SOCK_STREAM, ... */ |
4410 |
#ifndef NO_UNAME |
#ifndef NO_UNAME |
4411 |
# include <sys/utsname.h> /* uname system call. */ |
# include <sys/utsname.h> /* uname system call. */ |
4414 |
#include <arpa/inet.h> /* inet_ntoa() */ |
#include <arpa/inet.h> /* inet_ntoa() */ |
4415 |
#include <netdb.h> /* gethostbyname() */ |
#include <netdb.h> /* gethostbyname() */ |
4416 |
|
|
4417 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4418 |
connect(0,(struct sockaddr *)0,0); |
connect(0,(struct sockaddr *)0,0); |
4419 |
gethostbyname("jil"); |
gethostbyname("jil"); |
4420 |
socket(AF_INET, SOCK_STREAM, 0); |
socket(AF_INET, SOCK_STREAM, 0); |
4421 |
|
|
4422 |
; |
; return 0; } |
4423 |
return 0; |
EOF |
4424 |
} |
if { (eval echo configure:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4425 |
_ACEOF |
rm -rf conftest* |
4426 |
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 |
|
4427 |
#define HAVE_NSOCKET 1 |
#define HAVE_NSOCKET 1 |
4428 |
_ACEOF |
EOF |
4429 |
|
|
4430 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
4431 |
else |
else |
4432 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
4433 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4434 |
echo "$as_me:$LINENO: result: no" >&5 |
rm -rf conftest* |
4435 |
echo "${ECHO_T}no" >&6 |
echo "$ac_t""no" 1>&6 |
4436 |
fi |
fi |
4437 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
rm -f conftest* |
4438 |
|
|
4439 |
|
|
4440 |
echo "$as_me:$LINENO: checking check for listen using fcntl" >&5 |
echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6 |
4441 |
echo $ECHO_N "checking check for listen using fcntl... $ECHO_C" >&6 |
echo "configure:4442: checking check for listen using fcntl" >&5 |
4442 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4443 |
#line $LINENO "configure" |
#line 4444 "configure" |
4444 |
#include "confdefs.h" |
#include "confdefs.h" |
4445 |
#include <stdio.h> |
#include <stdio.h> |
4446 |
#include <fcntl.h> |
#include <fcntl.h> |
4447 |
|
|
4448 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4449 |
FILE *fp=fopen("configure.in","r"); |
FILE *fp=fopen("configure.in","r"); |
4450 |
int orig; |
int orig; |
4451 |
orig = fcntl(fileno(fp), F_GETFL); |
orig = fcntl(fileno(fp), F_GETFL); |
4452 |
if (! (orig & O_NONBLOCK )) return 0; |
if (! (orig & O_NONBLOCK )) return 0; |
4453 |
|
|
4454 |
; |
; return 0; } |
4455 |
return 0; |
EOF |
4456 |
} |
if { (eval echo configure:4457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4457 |
_ACEOF |
rm -rf conftest* |
4458 |
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 |
|
4459 |
#define LISTEN_USE_FCNTL 1 |
#define LISTEN_USE_FCNTL 1 |
4460 |
_ACEOF |
EOF |
4461 |
|
|
4462 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
|
echo "${ECHO_T}yes" >&6 |
|
4463 |
else |
else |
4464 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
4465 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4466 |
echo "$as_me:$LINENO: result: no" >&5 |
rm -rf conftest* |
4467 |
echo "${ECHO_T}no" >&6 |
echo "$ac_t""no" 1>&6 |
4468 |
fi |
fi |
4469 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
4470 |
|
|
4471 |
|
|
4472 |
|
|
4473 |
|
|
4474 |
echo "$as_me:$LINENO: checking for profil" >&5 |
echo $ac_n "checking for profil""... $ac_c" 1>&6 |
4475 |
echo $ECHO_N "checking for profil... $ECHO_C" >&6 |
echo "configure:4476: checking for profil" >&5 |
4476 |
if test "${ac_cv_func_profil+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then |
4477 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4478 |
else |
else |
4479 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4480 |
#line $LINENO "configure" |
#line 4481 "configure" |
4481 |
#include "confdefs.h" |
#include "confdefs.h" |
4482 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4483 |
which can conflict with char profil (); below. */ |
which can conflict with char profil(); below. */ |
4484 |
#include <assert.h> |
#include <assert.h> |
4485 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4486 |
/* 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 |
4487 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4488 |
char profil (); |
char profil(); |
4489 |
char (*f) (); |
|
4490 |
|
int main() { |
4491 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4492 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4493 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4494 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4495 |
#if defined (__stub_profil) || defined (__stub___profil) |
#if defined (__stub_profil) || defined (__stub___profil) |
4496 |
choke me |
choke me |
4497 |
#else |
#else |
4498 |
f = profil; |
profil(); |
4499 |
#endif |
#endif |
4500 |
|
|
4501 |
; |
; return 0; } |
4502 |
return 0; |
EOF |
4503 |
} |
if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4504 |
_ACEOF |
rm -rf conftest* |
4505 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_profil=yes" |
4506 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4507 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4508 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4509 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4510 |
(exit $ac_status); } && |
eval "ac_cv_func_profil=no" |
4511 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4512 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4513 |
(eval $ac_try) 2>&5 |
fi |
4514 |
ac_status=$? |
|
4515 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then |
4516 |
(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 |
|
4517 |
: |
: |
4518 |
else |
else |
4519 |
cat >>confdefs.h <<\_ACEOF |
echo "$ac_t""no" 1>&6 |
4520 |
|
cat >> confdefs.h <<\EOF |
4521 |
#define NO_PROFILE 1 |
#define NO_PROFILE 1 |
4522 |
_ACEOF |
EOF |
4523 |
|
|
4524 |
fi |
fi |
4525 |
|
|
4526 |
|
|
4527 |
echo "$as_me:$LINENO: checking for setenv" >&5 |
echo $ac_n "checking for setenv""... $ac_c" 1>&6 |
4528 |
echo $ECHO_N "checking for setenv... $ECHO_C" >&6 |
echo "configure:4529: checking for setenv" >&5 |
4529 |
if test "${ac_cv_func_setenv+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then |
4530 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4531 |
else |
else |
4532 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4533 |
#line $LINENO "configure" |
#line 4534 "configure" |
4534 |
#include "confdefs.h" |
#include "confdefs.h" |
4535 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4536 |
which can conflict with char setenv (); below. */ |
which can conflict with char setenv(); below. */ |
4537 |
#include <assert.h> |
#include <assert.h> |
4538 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4539 |
/* 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 |
4540 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4541 |
char setenv (); |
char setenv(); |
4542 |
char (*f) (); |
|
4543 |
|
int main() { |
4544 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4545 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4546 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4547 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4548 |
#if defined (__stub_setenv) || defined (__stub___setenv) |
#if defined (__stub_setenv) || defined (__stub___setenv) |
4549 |
choke me |
choke me |
4550 |
#else |
#else |
4551 |
f = setenv; |
setenv(); |
4552 |
#endif |
#endif |
4553 |
|
|
4554 |
; |
; return 0; } |
4555 |
return 0; |
EOF |
4556 |
} |
if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4557 |
_ACEOF |
rm -rf conftest* |
4558 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_setenv=yes" |
4559 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4560 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4561 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4562 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4563 |
(exit $ac_status); } && |
eval "ac_cv_func_setenv=no" |
4564 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4565 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4566 |
(eval $ac_try) 2>&5 |
fi |
4567 |
ac_status=$? |
|
4568 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then |
4569 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
4570 |
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 |
|
4571 |
#define HAVE_SETENV 1 |
#define HAVE_SETENV 1 |
4572 |
_ACEOF |
EOF |
4573 |
|
|
4574 |
else |
else |
4575 |
no_setenv=1 |
echo "$ac_t""no" 1>&6 |
4576 |
|
no_setenv=1 |
4577 |
fi |
fi |
4578 |
|
|
4579 |
|
|
4580 |
if test "$no_setenv" = "1" ; then |
if test "$no_setenv" = "1" ; then |
4581 |
echo "$as_me:$LINENO: checking for putenv" >&5 |
echo $ac_n "checking for putenv""... $ac_c" 1>&6 |
4582 |
echo $ECHO_N "checking for putenv... $ECHO_C" >&6 |
echo "configure:4583: checking for putenv" >&5 |
4583 |
if test "${ac_cv_func_putenv+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then |
4584 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4585 |
else |
else |
4586 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4587 |
#line $LINENO "configure" |
#line 4588 "configure" |
4588 |
#include "confdefs.h" |
#include "confdefs.h" |
4589 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4590 |
which can conflict with char putenv (); below. */ |
which can conflict with char putenv(); below. */ |
4591 |
#include <assert.h> |
#include <assert.h> |
4592 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4593 |
/* 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 |
4594 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4595 |
char putenv (); |
char putenv(); |
4596 |
char (*f) (); |
|
4597 |
|
int main() { |
4598 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4599 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4600 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4601 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4602 |
#if defined (__stub_putenv) || defined (__stub___putenv) |
#if defined (__stub_putenv) || defined (__stub___putenv) |
4603 |
choke me |
choke me |
4604 |
#else |
#else |
4605 |
f = putenv; |
putenv(); |
4606 |
#endif |
#endif |
4607 |
|
|
4608 |
; |
; return 0; } |
4609 |
return 0; |
EOF |
4610 |
} |
if { (eval echo configure:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4611 |
_ACEOF |
rm -rf conftest* |
4612 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func_putenv=yes" |
4613 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4614 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4615 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4616 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4617 |
(exit $ac_status); } && |
eval "ac_cv_func_putenv=no" |
4618 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4619 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4620 |
(eval $ac_try) 2>&5 |
fi |
4621 |
ac_status=$? |
|
4622 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then |
4623 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
4624 |
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 |
|
4625 |
#define HAVE_PUTENV 1 |
#define HAVE_PUTENV 1 |
4626 |
_ACEOF |
EOF |
4627 |
|
|
4628 |
|
else |
4629 |
|
echo "$ac_t""no" 1>&6 |
4630 |
fi |
fi |
4631 |
|
|
4632 |
|
|
4633 |
fi |
fi |
4634 |
|
|
4635 |
echo "$as_me:$LINENO: checking for _cleanup" >&5 |
echo $ac_n "checking for _cleanup""... $ac_c" 1>&6 |
4636 |
echo $ECHO_N "checking for _cleanup... $ECHO_C" >&6 |
echo "configure:4637: checking for _cleanup" >&5 |
4637 |
if test "${ac_cv_func__cleanup+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then |
4638 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4639 |
else |
else |
4640 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4641 |
#line $LINENO "configure" |
#line 4642 "configure" |
4642 |
#include "confdefs.h" |
#include "confdefs.h" |
4643 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4644 |
which can conflict with char _cleanup (); below. */ |
which can conflict with char _cleanup(); below. */ |
4645 |
#include <assert.h> |
#include <assert.h> |
4646 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
4647 |
/* 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 |
4648 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4649 |
char _cleanup (); |
char _cleanup(); |
4650 |
char (*f) (); |
|
4651 |
|
int main() { |
4652 |
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4653 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4654 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4655 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4656 |
#if defined (__stub__cleanup) || defined (__stub____cleanup) |
#if defined (__stub__cleanup) || defined (__stub____cleanup) |
4657 |
choke me |
choke me |
4658 |
#else |
#else |
4659 |
f = _cleanup; |
_cleanup(); |
4660 |
#endif |
#endif |
4661 |
|
|
4662 |
; |
; return 0; } |
4663 |
return 0; |
EOF |
4664 |
} |
if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4665 |
_ACEOF |
rm -rf conftest* |
4666 |
rm -f conftest.$ac_objext conftest$ac_exeext |
eval "ac_cv_func__cleanup=yes" |
4667 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
4668 |
(eval $ac_link) 2>&5 |
echo "configure: failed program was:" >&5 |
4669 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4670 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -rf conftest* |
4671 |
(exit $ac_status); } && |
eval "ac_cv_func__cleanup=no" |
4672 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
4673 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
rm -f conftest* |
4674 |
(eval $ac_try) 2>&5 |
fi |
4675 |
ac_status=$? |
|
4676 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then |
4677 |
(exit $ac_status); }; }; then |
echo "$ac_t""yes" 1>&6 |
4678 |
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 |
|
4679 |
#define USE_CLEANUP 1 |
#define USE_CLEANUP 1 |
4680 |
_ACEOF |
EOF |
4681 |
|
|
4682 |
|
else |
4683 |
|
echo "$ac_t""no" 1>&6 |
4684 |
fi |
fi |
4685 |
|
|
4686 |
|
|
4687 |
gcl_ok=no |
gcl_ok=no |
4688 |
|
|
4689 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4690 |
#line $LINENO "configure" |
#line 4691 "configure" |
4691 |
#include "confdefs.h" |
#include "confdefs.h" |
4692 |
#include <ctype.h> |
#include <ctype.h> |
4693 |
|
EOF |
|
_ACEOF |
|
4694 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4695 |
egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then |
egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then |
4696 |
|
rm -rf conftest* |
4697 |
gcl_ok=yes |
gcl_ok=yes |
4698 |
else |
else |
4699 |
|
rm -rf conftest* |
4700 |
gcl_ok=noo |
gcl_ok=noo |
4701 |
fi |
fi |
4702 |
rm -f conftest* |
rm -f conftest* |
4703 |
|
|
4704 |
if test $gcl_ok = yes ; then |
if test $gcl_ok = yes ; then |
4705 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
4706 |
#define ENDIAN_ALREADY_DEFINED 1 |
#define ENDIAN_ALREADY_DEFINED 1 |
4707 |
_ACEOF |
EOF |
4708 |
|
|
4709 |
fi |
fi |
4710 |
|
|
4714 |
|
|
4715 |
|
|
4716 |
# if test "x$enable_machine" = "x" ; then |
# if test "x$enable_machine" = "x" ; then |
4717 |
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 |
4718 |
echo $ECHO_N "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... $ECHO_C" >&6 |
echo "configure:4719: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5 |
4719 |
|
|
4720 |
case $system in |
case $system in |
4721 |
OSF*) |
OSF*) |
4722 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
4723 |
#define USE_FIONBIO 1 |
#define USE_FIONBIO 1 |
4724 |
_ACEOF |
EOF |
4725 |
|
|
4726 |
echo "$as_me:$LINENO: result: FIONBIO" >&5 |
echo "$ac_t""FIONBIO" 1>&6 |
|
echo "${ECHO_T}FIONBIO" >&6 |
|
4727 |
;; |
;; |
4728 |
SunOS-4*) |
SunOS-4*) |
4729 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
4730 |
#define USE_FIONBIO 1 |
#define USE_FIONBIO 1 |
4731 |
_ACEOF |
EOF |
4732 |
|
|
4733 |
echo "$as_me:$LINENO: result: FIONBIO" >&5 |
echo "$ac_t""FIONBIO" 1>&6 |
|
echo "${ECHO_T}FIONBIO" >&6 |
|
4734 |
;; |
;; |
4735 |
ULTRIX-4.*) |
ULTRIX-4.*) |
4736 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
4737 |
#define USE_FIONBIO 1 |
#define USE_FIONBIO 1 |
4738 |
_ACEOF |
EOF |
4739 |
|
|
4740 |
echo "$as_me:$LINENO: result: FIONBIO" >&5 |
echo "$ac_t""FIONBIO" 1>&6 |
|
echo "${ECHO_T}FIONBIO" >&6 |
|
4741 |
;; |
;; |
4742 |
*) |
*) |
4743 |
echo "$as_me:$LINENO: result: O_NONBLOCK" >&5 |
echo "$ac_t""O_NONBLOCK" 1>&6 |
|
echo "${ECHO_T}O_NONBLOCK" >&6 |
|
4744 |
;; |
;; |
4745 |
esac |
esac |
4746 |
|
|
4747 |
|
|
4748 |
echo "$as_me:$LINENO: checking check for SV_ONSTACK" >&5 |
echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6 |
4749 |
echo $ECHO_N "checking check for SV_ONSTACK... $ECHO_C" >&6 |
echo "configure:4750: checking check for SV_ONSTACK" >&5 |
4750 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4751 |
#line $LINENO "configure" |
#line 4752 "configure" |
4752 |
#include "confdefs.h" |
#include "confdefs.h" |
4753 |
#include <signal.h> |
#include <signal.h> |
4754 |
int joe=SV_ONSTACK; |
int joe=SV_ONSTACK; |
4755 |
|
|
4756 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4757 |
|
|
4758 |
; |
; return 0; } |
4759 |
return 0; |
EOF |
4760 |
} |
if { (eval echo configure:4761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4761 |
_ACEOF |
rm -rf conftest* |
4762 |
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 |
|
4763 |
#define HAVE_SV_ONSTACK 1 |
#define HAVE_SV_ONSTACK 1 |
4764 |
_ACEOF |
EOF |
|
|
|
4765 |
|
|
4766 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
4767 |
echo "${ECHO_T}yes" >&6 |
echo "$ac_t""yes" 1>&6 |
4768 |
else |
else |
4769 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
4770 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4771 |
echo "$as_me:$LINENO: result: no" >&5 |
rm -rf conftest* |
4772 |
echo "${ECHO_T}no" >&6 |
echo "$ac_t""no" 1>&6 |
4773 |
fi |
fi |
4774 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
4775 |
|
|
4776 |
echo "$as_me:$LINENO: checking check for SIGSYS" >&5 |
echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6 |
4777 |
echo $ECHO_N "checking check for SIGSYS... $ECHO_C" >&6 |
echo "configure:4778: checking check for SIGSYS" >&5 |
4778 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4779 |
#line $LINENO "configure" |
#line 4780 "configure" |
4780 |
#include "confdefs.h" |
#include "confdefs.h" |
4781 |
#include <signal.h> |
#include <signal.h> |
4782 |
int joe=SIGSYS; |
int joe=SIGSYS; |
4783 |
|
|
4784 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4785 |
|
|
4786 |
; |
; return 0; } |
4787 |
return 0; |
EOF |
4788 |
} |
if { (eval echo configure:4789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4789 |
_ACEOF |
rm -rf conftest* |
4790 |
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 |
|
4791 |
#define HAVE_SIGSYS 1 |
#define HAVE_SIGSYS 1 |
4792 |
_ACEOF |
EOF |
|
|
|
4793 |
|
|
4794 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
4795 |
echo "${ECHO_T}yes" >&6 |
echo "$ac_t""yes" 1>&6 |
4796 |
else |
else |
4797 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
4798 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4799 |
echo "$as_me:$LINENO: result: no" >&5 |
rm -rf conftest* |
4800 |
echo "${ECHO_T}no" >&6 |
echo "$ac_t""no" 1>&6 |
4801 |
fi |
fi |
4802 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
4803 |
|
|
4804 |
|
|
4805 |
echo "$as_me:$LINENO: checking check for SIGEMT" >&5 |
echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6 |
4806 |
echo $ECHO_N "checking check for SIGEMT... $ECHO_C" >&6 |
echo "configure:4807: checking check for SIGEMT" >&5 |
4807 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4808 |
#line $LINENO "configure" |
#line 4809 "configure" |
4809 |
#include "confdefs.h" |
#include "confdefs.h" |
4810 |
#include <signal.h> |
#include <signal.h> |
4811 |
int joe=SIGEMT; |
int joe=SIGEMT; |
4812 |
|
|
4813 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4814 |
|
|
4815 |
; |
; return 0; } |
4816 |
return 0; |
EOF |
4817 |
} |
if { (eval echo configure:4818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4818 |
_ACEOF |
rm -rf conftest* |
4819 |
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 |
|
4820 |
#define HAVE_SIGEMT 1 |
#define HAVE_SIGEMT 1 |
4821 |
_ACEOF |
EOF |
|
|
|
4822 |
|
|
4823 |
echo "$as_me:$LINENO: result: yes" >&5 |
|
4824 |
echo "${ECHO_T}yes" >&6 |
echo "$ac_t""yes" 1>&6 |
4825 |
else |
else |
4826 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
4827 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4828 |
echo "$as_me:$LINENO: result: no" >&5 |
rm -rf conftest* |
4829 |
echo "${ECHO_T}no" >&6 |
echo "$ac_t""no" 1>&6 |
4830 |
fi |
fi |
4831 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
4832 |
|
|
4833 |
|
|
4834 |
|
|
4835 |
|
|
4836 |
#if test $use = "386-linux" ; then |
#if test $use = "386-linux" ; then |
4837 |
|
for ac_hdr in asm/sigcontext.h |
|
for ac_header in asm/sigcontext.h |
|
4838 |
do |
do |
4839 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4840 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4841 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:4842: checking for $ac_hdr" >&5 |
4842 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4843 |
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 |
|
4844 |
else |
else |
4845 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
4846 |
fi |
#line 4847 "configure" |
4847 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
4848 |
ac_header_preproc=yes |
#include <$ac_hdr> |
4849 |
|
EOF |
4850 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4851 |
|
{ (eval echo configure:4852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4852 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4853 |
|
if test -z "$ac_err"; then |
4854 |
|
rm -rf conftest* |
4855 |
|
eval "ac_cv_header_$ac_safe=yes" |
4856 |
else |
else |
4857 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
4858 |
|
echo "configure: failed program was:" >&5 |
4859 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4860 |
ac_header_preproc=no |
rm -rf conftest* |
4861 |
|
eval "ac_cv_header_$ac_safe=no" |
4862 |
fi |
fi |
4863 |
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 |
|
|
|
|
4864 |
fi |
fi |
4865 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4866 |
cat >>confdefs.h <<_ACEOF |
echo "$ac_t""yes" 1>&6 |
4867 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
4868 |
_ACEOF |
cat >> confdefs.h <<EOF |
4869 |
|
#define $ac_tr_hdr 1 |
4870 |
|
EOF |
4871 |
|
|
4872 |
|
else |
4873 |
|
echo "$ac_t""no" 1>&6 |
4874 |
fi |
fi |
|
|
|
4875 |
done |
done |
4876 |
|
|
4877 |
|
for ac_hdr in asm/signal.h |
|
for ac_header in asm/signal.h |
|
4878 |
do |
do |
4879 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4880 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4881 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
echo "configure:4882: checking for $ac_hdr" >&5 |
4882 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4883 |
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 |
|
4884 |
else |
else |
4885 |
ac_cpp_err=yes |
cat > conftest.$ac_ext <<EOF |
4886 |
fi |
#line 4887 "configure" |
4887 |
if test -z "$ac_cpp_err"; then |
#include "confdefs.h" |
4888 |
ac_header_preproc=yes |
#include <$ac_hdr> |
4889 |
|
EOF |
4890 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4891 |
|
{ (eval echo configure:4892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4892 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4893 |
|
if test -z "$ac_err"; then |
4894 |
|
rm -rf conftest* |
4895 |
|
eval "ac_cv_header_$ac_safe=yes" |
4896 |
else |
else |
4897 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_err" >&5 |
4898 |
|
echo "configure: failed program was:" >&5 |
4899 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4900 |
ac_header_preproc=no |
rm -rf conftest* |
4901 |
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" |
|
4902 |
fi |
fi |
4903 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
rm -f conftest* |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
4904 |
fi |
fi |
4905 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4906 |
cat >>confdefs.h <<_ACEOF |
echo "$ac_t""yes" 1>&6 |
4907 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
4908 |
_ACEOF |
cat >> confdefs.h <<EOF |
4909 |
|
#define $ac_tr_hdr 1 |
4910 |
|
EOF |
4911 |
|
|
4912 |
|
else |
4913 |
|
echo "$ac_t""no" 1>&6 |
4914 |
fi |
fi |
|
|
|
4915 |
done |
done |
4916 |
|
|
4917 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4918 |
#line $LINENO "configure" |
#line 4919 "configure" |
4919 |
#include "confdefs.h" |
#include "confdefs.h" |
4920 |
#include <signal.h> |
#include <signal.h> |
4921 |
long code; |
long code; |
4922 |
|
|
4923 |
#ifdef F77_DUMMY_MAIN |
int main() { |
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
4924 |
|
|
4925 |
void *p = ((void *)(((struct sigcontext_struct *)(&code)))); |
void *p = ((void *)(((struct sigcontext_struct *)(&code)))); |
4926 |
|
|
4927 |
; |
; return 0; } |
4928 |
return 0; |
EOF |
4929 |
} |
if { (eval echo configure:4930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4930 |
_ACEOF |
rm -rf conftest* |
4931 |
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 |
|
|
|
|
4932 |
sigcontext_struct_works=1; |
sigcontext_struct_works=1; |
4933 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
4934 |
#define SIGNAL_H_HAS_SIGCONTEXT 1 |
#define SIGNAL_H_HAS_SIGCONTEXT 1 |
4935 |
_ACEOF |
EOF |
|
|
|
|
echo "$as_me:$LINENO: result: \"sigcontext in signal.h\"" >&5 |
|
|
echo "${ECHO_T}\"sigcontext in signal.h\"" >&6 |
|
4936 |
|
|
4937 |
|
echo "$ac_t"""sigcontext in signal.h"" 1>&6 |
4938 |
|
|
4939 |
else |
else |
4940 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
4941 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4942 |
sigcontext_struct_works=0; |
rm -rf conftest* |
4943 |
echo "$as_me:$LINENO: result: \"sigcontext NOT in signal.h\"" >&5 |
sigcontext_struct_works=0; |
4944 |
echo "${ECHO_T}\"sigcontext NOT in signal.h\"" >&6 |
echo "$ac_t"""sigcontext NOT in signal.h"" 1>&6 |
4945 |
|
|
4946 |
fi |
fi |
4947 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
4948 |
if test "$sigcontext_struct_works" = 0 ; then |
if test "$sigcontext_struct_works" = 0 ; then |
4949 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4950 |
#line $LINENO "configure" |
#line 4951 "configure" |
4951 |
#include "confdefs.h" |
#include "confdefs.h" |
4952 |
#include <signal.h> |
#include <signal.h> |
4953 |
#ifdef HAVE_ASM_SIGCONTEXT_H |
#ifdef HAVE_ASM_SIGCONTEXT_H |
4954 |
#include <asm/sigcontext.h> |
#include <asm/sigcontext.h> |
4955 |
#endif |
#endif |
4956 |
#ifdef HAVE_ASM_SIGNAL_H |
#ifdef HAVE_ASM_SIGNAL_H |
4957 |
#include <asm/signal.h> |
#include <asm/signal.h> |
4958 |
#endif |
#endif |
4959 |
long code; |
long code; |
4960 |
|
|
4961 |
#ifdef F77_DUMMY_MAIN |
int main() { |
4962 |
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
4963 |
void *p = ((void *)(((struct sigcontext *)(&code)))); |
void *p = ((void *)(((struct sigcontext *)(&code)))); |
4964 |
|
|
4965 |
; |
; return 0; } |
4966 |
return 0; |
EOF |
4967 |
} |
if { (eval echo configure:4968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4968 |
_ACEOF |
rm -rf conftest* |
4969 |
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 |
|
|
|
|
4970 |
sigcontext_works=1 ; |
sigcontext_works=1 ; |
4971 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
4972 |
#define HAVE_SIGCONTEXT 1 |
#define HAVE_SIGCONTEXT 1 |
4973 |
_ACEOF |
EOF |
|
|
|
|
echo "$as_me:$LINENO: result: \"use struct sigcontext\"" >&5 |
|
|
echo "${ECHO_T}\"use struct sigcontext\"" >&6 |
|
4974 |
|
|
4975 |
|
echo "$ac_t"""use struct sigcontext"" 1>&6 |
4976 |
|
|
4977 |
else |
else |
4978 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
4979 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
4980 |
|
rm -rf conftest* |
4981 |
sigcontext_works=0 ; |
|
4982 |
|
sigcontext_works=0 ; |
4983 |
|
|
4984 |
fi |
fi |
4985 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
4986 |
|
|
4987 |
|
|
4988 |
fi |
fi |
4989 |
# echo 'foo() {}' > conftest1.c |
# echo 'foo() {}' > conftest1.c |
4990 |
# $CC -S conftest1.c |
# $CC -S conftest1.c |
4991 |
# use_underscore=0 |
# use_underscore=0 |
4992 |
# if fgrep _foo conftest1.s ; then use_underscore=1 ; fi |
# if fgrep _foo conftest1.s ; then use_underscore=1 ; fi |
4993 |
# if test $use_underscore = 0 ; then |
# if test $use_underscore = 0 ; then |
4994 |
# MPI_FILE=mpi-386_no_under.o |
# MPI_FILE=mpi-386_no_under.o |
5006 |
|
|
5007 |
# 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. |
5008 |
set dummy emacs; ac_word=$2 |
set dummy emacs; ac_word=$2 |
5009 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5010 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:5011: checking for $ac_word" >&5 |
5011 |
if test "${ac_cv_path_EMACS+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then |
5012 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5013 |
else |
else |
5014 |
case $EMACS in |
case "$EMACS" in |
5015 |
[\\/]* | ?:[\\/]*) |
/*) |
5016 |
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. |
5017 |
;; |
;; |
5018 |
|
?:/*) |
5019 |
|
ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path. |
5020 |
|
;; |
5021 |
*) |
*) |
5022 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5023 |
for as_dir in $PATH |
ac_dummy="$PATH" |
5024 |
do |
for ac_dir in $ac_dummy; do |
5025 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
5026 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
5027 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_path_EMACS="$ac_dir/$ac_word" |
5028 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
5029 |
ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext" |
fi |
5030 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
5031 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
5032 |
;; |
;; |
5033 |
esac |
esac |
5034 |
fi |
fi |
5035 |
EMACS=$ac_cv_path_EMACS |
EMACS="$ac_cv_path_EMACS" |
|
|
|
5036 |
if test -n "$EMACS"; then |
if test -n "$EMACS"; then |
5037 |
echo "$as_me:$LINENO: result: $EMACS" >&5 |
echo "$ac_t""$EMACS" 1>&6 |
|
echo "${ECHO_T}$EMACS" >&6 |
|
5038 |
else |
else |
5039 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
5040 |
fi |
fi |
5041 |
|
|
5042 |
|
|
5054 |
(message ans)) |
(message ans)) |
5055 |
EOF |
EOF |
5056 |
|
|
5057 |
echo "$as_me:$LINENO: checking emacs site lisp directory" >&5 |
echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6 |
5058 |
echo $ECHO_N "checking emacs site lisp directory... $ECHO_C" >&6 |
echo "configure:5059: checking emacs site lisp directory" >&5 |
5059 |
if [ "$EMACS" != "" ] && [ "$EMACS_SITE_LISP" = "unknown" ] ; then |
if [ "$EMACS" != "" ] && [ "$EMACS_SITE_LISP" = "unknown" ] ; then |
5060 |
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 ` |
5061 |
else |
else |
5062 |
EMACS_SITE_LISP="" |
EMACS_SITE_LISP="" |
5063 |
fi |
fi |
5064 |
echo "$as_me:$LINENO: result: $EMACS_SITE_LISP" >&5 |
echo "$ac_t""$EMACS_SITE_LISP" 1>&6 |
|
echo "${ECHO_T}$EMACS_SITE_LISP" >&6 |
|
5065 |
|
|
5066 |
|
|
5067 |
# check for where the emacs site lisp default.el is |
# check for where the emacs site lisp default.el is |
5076 |
(message ans)) |
(message ans)) |
5077 |
EOF |
EOF |
5078 |
|
|
5079 |
echo "$as_me:$LINENO: checking emacs default.el" >&5 |
echo $ac_n "checking emacs default.el""... $ac_c" 1>&6 |
5080 |
echo $ECHO_N "checking emacs default.el... $ECHO_C" >&6 |
echo "configure:5081: checking emacs default.el" >&5 |
5081 |
if [ "$EMACS" != "" ] ; then |
if [ "$EMACS" != "" ] ; then |
5082 |
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 ` |
5083 |
else |
else |
5088 |
EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el |
EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el |
5089 |
fi |
fi |
5090 |
fi |
fi |
5091 |
echo "$as_me:$LINENO: result: $EMACS_DEFAULT_EL" >&5 |
echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6 |
|
echo "${ECHO_T}$EMACS_DEFAULT_EL" >&6 |
|
5092 |
|
|
5093 |
|
|
5094 |
|
|
5099 |
(let ((ans "") file (tem Info-default-directory-list)) |
(let ((ans "") file (tem Info-default-directory-list)) |
5100 |
(while tem |
(while tem |
5101 |
(cond ((file-exists-p (setq file (expand-file-name "dir" (car tem)))) |
(cond ((file-exists-p (setq file (expand-file-name "dir" (car tem)))) |
5102 |
(setq ans (file-name-as-directory (car tem))) |
(setq ans (file-name-as-directory (car tem))) |
5103 |
(setq tem nil) )) |
(setq tem nil) )) |
5104 |
(setq tem (cdr tem))) |
(setq tem (cdr tem))) |
5105 |
(message ans)) |
(message ans)) |
5106 |
EOF |
EOF |
5107 |
|
|
5108 |
echo "$as_me:$LINENO: checking emacs info/dir" >&5 |
echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6 |
5109 |
echo $ECHO_N "checking emacs info/dir... $ECHO_C" >&6 |
echo "configure:5110: checking emacs info/dir" >&5 |
5110 |
if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then |
if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then |
5111 |
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 ` |
5112 |
fi |
fi |
5116 |
else true; |
else true; |
5117 |
fi |
fi |
5118 |
fi |
fi |
5119 |
echo "$as_me:$LINENO: result: $INFO_DIR" >&5 |
echo "$ac_t""$INFO_DIR" 1>&6 |
|
echo "${ECHO_T}$INFO_DIR" >&6 |
|
5120 |
|
|
5121 |
|
|
5122 |
echo "$as_me:$LINENO: checking for tcl/tk" >&5 |
echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6 |
5123 |
echo $ECHO_N "checking for tcl/tk... $ECHO_C" >&6 |
echo "configure:5124: checking for tcl/tk" >&5 |
5124 |
|
|
5125 |
|
|
5126 |
if test -d "${TCL_CONFIG_PREFIX}" ; then true ; else |
if test -d "${TCL_CONFIG_PREFIX}" ; then true ; else |
5130 |
set dir [set tcl_library] |
set dir [set tcl_library] |
5131 |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
5132 |
puts [set dir] |
puts [set dir] |
5133 |
exit |
exit |
5134 |
} |
} |
5135 |
set dir [file dirname [set tcl_library]] |
set dir [file dirname [set tcl_library]] |
5136 |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
5142 |
|
|
5143 |
# 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. |
5144 |
set dummy tclsh; ac_word=$2 |
set dummy tclsh; ac_word=$2 |
5145 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5146 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:5147: checking for $ac_word" >&5 |
5147 |
if test "${ac_cv_prog_TCLSH+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then |
5148 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5149 |
else |
else |
5150 |
if test -n "$TCLSH"; then |
if test -n "$TCLSH"; then |
5151 |
ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test. |
ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test. |
5152 |
else |
else |
5153 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5154 |
for as_dir in $PATH |
ac_dummy="$PATH" |
5155 |
do |
for ac_dir in $ac_dummy; do |
5156 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
5157 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
5158 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_TCLSH="tclsh" |
5159 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
5160 |
ac_cv_prog_TCLSH="tclsh" |
fi |
5161 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
5162 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
5163 |
test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}" |
test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}" |
5164 |
fi |
fi |
5165 |
fi |
fi |
5166 |
TCLSH=$ac_cv_prog_TCLSH |
TCLSH="$ac_cv_prog_TCLSH" |
5167 |
if test -n "$TCLSH"; then |
if test -n "$TCLSH"; then |
5168 |
echo "$as_me:$LINENO: result: $TCLSH" >&5 |
echo "$ac_t""$TCLSH" 1>&6 |
|
echo "${ECHO_T}$TCLSH" >&6 |
|
5169 |
else |
else |
5170 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
5171 |
fi |
fi |
5172 |
|
|
5173 |
#AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH}) |
#AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH}) |
5233 |
else |
else |
5234 |
if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then |
if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then |
5235 |
TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
5236 |
fi |
fi |
5237 |
fi |
fi |
5238 |
if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then |
if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then |
5239 |
TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include |
TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include |
5242 |
TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
5243 |
fi |
fi |
5244 |
fi |
fi |
5245 |
echo "$as_me:$LINENO: checking for main in -llieee" >&5 |
echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6 |
5246 |
echo $ECHO_N "checking for main in -llieee... $ECHO_C" >&6 |
echo "configure:5247: checking for main in -llieee" >&5 |
5247 |
if test "${ac_cv_lib_lieee_main+set}" = set; then |
ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'` |
5248 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5249 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5250 |
else |
else |
5251 |
ac_check_lib_save_LIBS=$LIBS |
ac_save_LIBS="$LIBS" |
5252 |
LIBS="-llieee $LIBS" |
LIBS="-llieee $LIBS" |
5253 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5254 |
#line $LINENO "configure" |
#line 5255 "configure" |
5255 |
#include "confdefs.h" |
#include "confdefs.h" |
5256 |
|
|
5257 |
|
int main() { |
5258 |
|
main() |
5259 |
|
; return 0; } |
5260 |
|
EOF |
5261 |
|
if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5262 |
|
rm -rf conftest* |
5263 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
5264 |
|
else |
5265 |
|
echo "configure: failed program was:" >&5 |
5266 |
|
cat conftest.$ac_ext >&5 |
5267 |
|
rm -rf conftest* |
5268 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
5269 |
|
fi |
5270 |
|
rm -f conftest* |
5271 |
|
LIBS="$ac_save_LIBS" |
5272 |
|
|
5273 |
#ifdef F77_DUMMY_MAIN |
fi |
5274 |
# ifdef __cplusplus |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5275 |
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 |
|
5276 |
have_ieee=1 |
have_ieee=1 |
5277 |
else |
else |
5278 |
have_ieee=0 |
echo "$ac_t""no" 1>&6 |
5279 |
|
have_ieee=0 |
5280 |
fi |
fi |
5281 |
|
|
5282 |
if test "$have_ieee" = "0" ; then |
if test "$have_ieee" = "0" ; then |
5307 |
|
|
5308 |
|
|
5309 |
if test -d "${TK_CONFIG_PREFIX}" ; then |
if test -d "${TK_CONFIG_PREFIX}" ; then |
5310 |
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 |
|
5311 |
else |
else |
5312 |
echo "$as_me:$LINENO: result: not found" >&5 |
echo "$ac_t""not found" 1>&6 |
|
echo "${ECHO_T}not found" >&6 |
|
5313 |
fi |
fi |
5314 |
|
|
5315 |
NOTIFY=$enable_notify |
NOTIFY=$enable_notify |
5316 |
|
|
5317 |
|
|
5318 |
|
|
5319 |
|
|
5320 |
|
|
5321 |
# for sgbc the mprotect capabilities. |
# for sgbc the mprotect capabilities. |
5322 |
|
|
5323 |
# the time handling for unixtime, add timezone |
# the time handling for unixtime, add timezone |
5324 |
|
|
5325 |
echo "$as_me:$LINENO: checking alloca" >&5 |
echo $ac_n "checking alloca""... $ac_c" 1>&6 |
5326 |
echo $ECHO_N "checking alloca... $ECHO_C" >&6 |
echo "configure:5327: checking alloca" >&5 |
5327 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
5328 |
gcl_ok=no |
gcl_ok=no |
5329 |
else |
else |
5330 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5331 |
#line $LINENO "configure" |
#line 5332 "configure" |
5332 |
#include "confdefs.h" |
#include "confdefs.h" |
5333 |
int main() { exit(alloca(500) != NULL ? 0 : 1);} |
int main() { exit(alloca(500) != NULL ? 0 : 1);} |
5334 |
_ACEOF |
EOF |
5335 |
rm -f conftest$ac_exeext |
if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5336 |
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 |
|
5337 |
: |
: |
5338 |
else |
else |
5339 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
5340 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
5341 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
5342 |
( exit $ac_status ) |
gcl_ok=yes |
|
gcl_ok=yes |
|
5343 |
fi |
fi |
5344 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
5345 |
fi |
fi |
5346 |
|
|
5347 |
if test $gcl_ok = yes ; then |
if test $gcl_ok = yes ; then |
5348 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
5349 |
echo "${ECHO_T}yes" >&6 |
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
5350 |
#define HAVE_ALLOCA 1 |
#define HAVE_ALLOCA 1 |
5351 |
_ACEOF |
EOF |
5352 |
|
|
5353 |
else |
else |
5354 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
5355 |
gcl_ok=no |
gcl_ok=no |
5356 |
else |
else |
5357 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5358 |
#line $LINENO "configure" |
#line 5359 "configure" |
5359 |
#include "confdefs.h" |
#include "confdefs.h" |
5360 |
#include <alloca.h> |
#include <alloca.h> |
5361 |
int main() { exit(alloca(500) != NULL ? 0 : 1)} |
int main() { exit(alloca(500) != NULL ? 0 : 1)} |
5362 |
_ACEOF |
EOF |
5363 |
rm -f conftest$ac_exeext |
if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5364 |
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 |
|
5365 |
: |
: |
5366 |
else |
else |
5367 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
5368 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
5369 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
5370 |
( exit $ac_status ) |
gcl_ok=yes |
|
gcl_ok=yes |
|
5371 |
fi |
fi |
5372 |
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
5373 |
fi |
fi |
5374 |
|
|
5375 |
if test $gcl_ok = yes ; then |
if test $gcl_ok = yes ; then |
5376 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$ac_t""yes" 1>&6 |
5377 |
echo "${ECHO_T}yes" >&6 |
cat >> confdefs.h <<\EOF |
|
cat >>confdefs.h <<\_ACEOF |
|
5378 |
#define HAVE_ALLOCA 1 |
#define HAVE_ALLOCA 1 |
5379 |
_ACEOF |
EOF |
5380 |
|
|
5381 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
5382 |
#define NEED_ALLOCA_H 1 |
#define NEED_ALLOCA_H 1 |
5383 |
_ACEOF |
EOF |
5384 |
|
|
5385 |
fi |
fi |
5386 |
fi |
fi |
5387 |
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 |
|
5388 |
|
|
5389 |
|
|
5390 |
|
|
5400 |
# dlopen etc |
# dlopen etc |
5401 |
# idea make it so you do something dlopen(libX.so,RTLD_GLOBAL) |
# idea make it so you do something dlopen(libX.so,RTLD_GLOBAL) |
5402 |
# 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 |
5403 |
# |
# |
5404 |
|
|
5405 |
# what machine this is, and include then a machine specific hdr. |
# what machine this is, and include then a machine specific hdr. |
5406 |
# and machine specific defs. |
# and machine specific defs. |
5420 |
|
|
5421 |
# redhat/cygnus released for some reason a buggy version of gcc, |
# redhat/cygnus released for some reason a buggy version of gcc, |
5422 |
# which no one else released. Catch that here. |
# which no one else released. Catch that here. |
5423 |
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 |
5424 |
echo $ECHO_N "checking Checking for buggy gcc version from redhat... $ECHO_C" >&6 |
echo "configure:5425: checking Checking for buggy gcc version from redhat" >&5 |
5425 |
if 2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null |
if 2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null |
5426 |
then |
then |
5427 |
BROKEN_O4_OPT=1 |
BROKEN_O4_OPT=1 |
5428 |
cat >>confdefs.h <<\_ACEOF |
cat >> confdefs.h <<\EOF |
5429 |
#define BROKEN_O4_OPT 1 |
#define BROKEN_O4_OPT 1 |
5430 |
_ACEOF |
EOF |
|
|
|
5431 |
|
|
5432 |
|
|
5433 |
echo ODIR_DEBUG=-O >> makedefsafter |
echo ODIR_DEBUG=-O >> makedefsafter |
5434 |
echo >> makedefsafter |
echo >> makedefsafter |
5435 |
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 |
|
5436 |
else |
else |
5437 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
5438 |
echo "${ECHO_T}no" >&6 |
fi |
|
fi |
|
5439 |
|
|
5440 |
LIBS="$LIBS $TLIBS" |
LIBS="$LIBS $TLIBS" |
5441 |
|
|
5450 |
|
|
5451 |
if test -f h/$use.defs ; then |
if test -f h/$use.defs ; then |
5452 |
|
|
5453 |
|
|
5454 |
ac_config_files="$ac_config_files makedefc" |
trap '' 1 2 15 |
5455 |
cat >confcache <<\_ACEOF |
cat > confcache <<\EOF |
5456 |
# This file is a shell script that caches the results of configure |
# This file is a shell script that caches the results of configure |
5457 |
# tests run on this system so they can be shared between configure |
# tests run on this system so they can be shared between configure |
5458 |
# scripts and configure runs, see configure's option --config-cache. |
# scripts and configure runs. It is not useful on other systems. |
5459 |
# 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. |
|
5460 |
# |
# |
5461 |
# config.status only pays attention to the cache file if you give it |
# By default, configure uses ./config.cache as the cache file, |
5462 |
# the --recheck option to rerun configure. |
# creating it if it does not exist already. You can give configure |
5463 |
|
# the --cache-file=FILE option to use a different cache file; that is |
5464 |
|
# what configure does when it calls configure scripts in |
5465 |
|
# subdirectories, so they share the cache. |
5466 |
|
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
5467 |
|
# config.status only pays attention to the cache file if you give it the |
5468 |
|
# --recheck option to rerun configure. |
5469 |
# |
# |
5470 |
# `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 |
|
|
|
|
5471 |
# The following way of writing the cache mishandles newlines in values, |
# The following way of writing the cache mishandles newlines in values, |
5472 |
# but we know of no workaround that is simple, portable, and efficient. |
# but we know of no workaround that is simple, portable, and efficient. |
5473 |
# So, don't put newlines in cache variables' values. |
# So, don't put newlines in cache variables' values. |
5474 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
# Ultrix sh set writes to stderr and can't be redirected directly, |
5475 |
# 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. |
5476 |
{ |
(set) 2>&1 | |
5477 |
(set) 2>&1 | |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
5478 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
*ac_space=\ *) |
5479 |
*ac_space=\ *) |
# `set' does not quote correctly, so add quotes (double-quote substitution |
5480 |
# `set' does not quote correctly, so add quotes (double-quote |
# turns \\\\ into \\, and sed turns \\ into \). |
5481 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
sed -n \ |
5482 |
sed -n \ |
-e "s/'/'\\\\''/g" \ |
5483 |
"s/'/'\\\\''/g; |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
5484 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
;; |
5485 |
;; |
*) |
5486 |
*) |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
5487 |
# `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' |
5488 |
sed -n \ |
;; |
5489 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
esac >> confcache |
5490 |
;; |
if cmp -s $cache_file confcache; then |
5491 |
esac; |
: |
5492 |
} | |
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 |
|
5493 |
if test -w $cache_file; then |
if test -w $cache_file; then |
5494 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
echo "updating cache $cache_file" |
5495 |
cat confcache >$cache_file |
cat confcache > $cache_file |
5496 |
else |
else |
5497 |
echo "not updating unwritable cache $cache_file" |
echo "not updating unwritable cache $cache_file" |
5498 |
fi |
fi |
5499 |
fi |
fi |
5500 |
rm -f confcache |
rm -f confcache |
5501 |
|
|
5502 |
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
5503 |
|
|
5504 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
5505 |
# Let make expand exec_prefix. |
# Let make expand exec_prefix. |
5506 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
5507 |
|
|
5508 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
# Any assignment to VPATH causes Sun make to only execute |
5509 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
# the first set of double-colon rules, so remove it if not needed. |
5510 |
# 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). |
|
5511 |
if test "x$srcdir" = x.; then |
if test "x$srcdir" = x.; then |
5512 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
|
s/:*\$(srcdir):*/:/; |
|
|
s/:*\${srcdir}:*/:/; |
|
|
s/:*@srcdir@:*/:/; |
|
|
s/^\([^=]*=[ ]*\):*/\1/; |
|
|
s/:*$//; |
|
|
s/^[^=]*=[ ]*$//; |
|
|
}' |
|
5513 |
fi |
fi |
5514 |
|
|
5515 |
DEFS=-DHAVE_CONFIG_H |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
5516 |
|
|
5517 |
|
DEFS=-DHAVE_CONFIG_H |
5518 |
|
|
5519 |
|
# Without the "./", some shells look in PATH for config.status. |
5520 |
: ${CONFIG_STATUS=./config.status} |
: ${CONFIG_STATUS=./config.status} |
5521 |
ac_clean_files_save=$ac_clean_files |
|
5522 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
echo creating $CONFIG_STATUS |
5523 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
rm -f $CONFIG_STATUS |
5524 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
cat > $CONFIG_STATUS <<EOF |
5525 |
cat >$CONFIG_STATUS <<_ACEOF |
#! /bin/sh |
5526 |
#! $SHELL |
# Generated automatically by configure. |
|
# Generated by $as_me. |
|
5527 |
# Run this file to recreate the current configuration. |
# Run this file to recreate the current configuration. |
5528 |
|
# This directory was configured as follows, |
5529 |
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
5530 |
|
# |
5531 |
|
# $0 $ac_configure_args |
5532 |
|
# |
5533 |
# Compiler output produced by configure, useful for debugging |
# Compiler output produced by configure, useful for debugging |
5534 |
# 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 |
|
5535 |
|
|
5536 |
cat >>$CONFIG_STATUS <<_ACEOF |
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
5537 |
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 |
|
5538 |
do |
do |
5539 |
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 |
|
5540 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
5541 |
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" |
5542 |
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
5543 |
_ACEOF |
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
5544 |
cat >>$CONFIG_STATUS <<\_ACEOF |
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
5545 |
--version | --vers* | -V ) |
exit 0 ;; |
5546 |
echo "$ac_cs_version"; exit 0 ;; |
-help | --help | --hel | --he | --h) |
5547 |
--he | --h) |
echo "\$ac_cs_usage"; exit 0 ;; |
5548 |
# 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; }; };; |
|
5549 |
esac |
esac |
5550 |
done |
done |
5551 |
|
|
5552 |
# 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 |
|
5553 |
|
|
5554 |
# 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 |
5555 |
$debug || |
EOF |
5556 |
{ |
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 |
|
5557 |
|
|
5558 |
# |
# Protect against being on the right side of a sed subst in config.status. |
5559 |
# CONFIG_FILES section. |
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
5560 |
# |
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
5561 |
|
$ac_vpsub |
5562 |
|
$extrasub |
5563 |
|
s%@SHELL@%$SHELL%g |
5564 |
|
s%@CFLAGS@%$CFLAGS%g |
5565 |
|
s%@CPPFLAGS@%$CPPFLAGS%g |
5566 |
|
s%@CXXFLAGS@%$CXXFLAGS%g |
5567 |
|
s%@FFLAGS@%$FFLAGS%g |
5568 |
|
s%@DEFS@%$DEFS%g |
5569 |
|
s%@LDFLAGS@%$LDFLAGS%g |
5570 |
|
s%@LIBS@%$LIBS%g |
5571 |
|
s%@exec_prefix@%$exec_prefix%g |
5572 |
|
s%@prefix@%$prefix%g |
5573 |
|
s%@program_transform_name@%$program_transform_name%g |
5574 |
|
s%@bindir@%$bindir%g |
5575 |
|
s%@sbindir@%$sbindir%g |
5576 |
|
s%@libexecdir@%$libexecdir%g |
5577 |
|
s%@datadir@%$datadir%g |
5578 |
|
s%@sysconfdir@%$sysconfdir%g |
5579 |
|
s%@sharedstatedir@%$sharedstatedir%g |
5580 |
|
s%@localstatedir@%$localstatedir%g |
5581 |
|
s%@libdir@%$libdir%g |
5582 |
|
s%@includedir@%$includedir%g |
5583 |
|
s%@oldincludedir@%$oldincludedir%g |
5584 |
|
s%@infodir@%$infodir%g |
5585 |
|
s%@mandir@%$mandir%g |
5586 |
|
s%@host@%$host%g |
5587 |
|
s%@host_alias@%$host_alias%g |
5588 |
|
s%@host_cpu@%$host_cpu%g |
5589 |
|
s%@host_vendor@%$host_vendor%g |
5590 |
|
s%@host_os@%$host_os%g |
5591 |
|
s%@PROCESSOR_FLAGS@%$PROCESSOR_FLAGS%g |
5592 |
|
s%@CC@%$CC%g |
5593 |
|
s%@CPP@%$CPP%g |
5594 |
|
s%@AWK@%$AWK%g |
5595 |
|
s%@MAKEINFO@%$MAKEINFO%g |
5596 |
|
s%@GMP@%$GMP%g |
5597 |
|
s%@GMPDIR@%$GMPDIR%g |
5598 |
|
s%@X_CFLAGS@%$X_CFLAGS%g |
5599 |
|
s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
5600 |
|
s%@X_LIBS@%$X_LIBS%g |
5601 |
|
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
5602 |
|
s%@BUILD_BFD@%$BUILD_BFD%g |
5603 |
|
s%@LITTLE_END@%$LITTLE_END%g |
5604 |
|
s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g |
5605 |
|
s%@FLISP@%$FLISP%g |
5606 |
|
s%@PAGEWIDTH@%$PAGEWIDTH%g |
5607 |
|
s%@RL_OBJS@%$RL_OBJS%g |
5608 |
|
s%@RL_LIB@%$RL_LIB%g |
5609 |
|
s%@NO_PROFILE@%$NO_PROFILE%g |
5610 |
|
s%@HAVE_SETENV@%$HAVE_SETENV%g |
5611 |
|
s%@HAVE_PUTENV@%$HAVE_PUTENV%g |
5612 |
|
s%@USE_CLEANUP@%$USE_CLEANUP%g |
5613 |
|
s%@ENDIAN_ALREADY_DEFINED@%$ENDIAN_ALREADY_DEFINED%g |
5614 |
|
s%@HAVE_SV_ONSTACK@%$HAVE_SV_ONSTACK%g |
5615 |
|
s%@HAVE_SIGSYS@%$HAVE_SIGSYS%g |
5616 |
|
s%@HAVE_SIGEMT@%$HAVE_SIGEMT%g |
5617 |
|
s%@EMACS@%$EMACS%g |
5618 |
|
s%@EMACS_SITE_LISP@%$EMACS_SITE_LISP%g |
5619 |
|
s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g |
5620 |
|
s%@INFO_DIR@%$INFO_DIR%g |
5621 |
|
s%@TCLSH@%$TCLSH%g |
5622 |
|
s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g |
5623 |
|
s%@TK_LIBRARY@%$TK_LIBRARY%g |
5624 |
|
s%@TCL_LIBRARY@%$TCL_LIBRARY%g |
5625 |
|
s%@TK_XINCLUDES@%$TK_XINCLUDES%g |
5626 |
|
s%@TK_INCLUDE@%$TK_INCLUDE%g |
5627 |
|
s%@TCL_INCLUDE@%$TCL_INCLUDE%g |
5628 |
|
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g |
5629 |
|
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g |
5630 |
|
s%@TK_XLIBSW@%$TK_XLIBSW%g |
5631 |
|
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g |
5632 |
|
s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g |
5633 |
|
s%@TCL_LIBS@%$TCL_LIBS%g |
5634 |
|
s%@NOTIFY@%$NOTIFY%g |
5635 |
|
s%@BROKEN_O4_OPT@%$BROKEN_O4_OPT%g |
5636 |
|
s%@FINAL_CFLAGS@%$FINAL_CFLAGS%g |
5637 |
|
s%@O3FLAGS@%$O3FLAGS%g |
5638 |
|
s%@O2FLAGS@%$O2FLAGS%g |
5639 |
|
s%@use@%$use%g |
5640 |
|
|
|
# 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 |
|
5641 |
CEOF |
CEOF |
5642 |
|
EOF |
5643 |
|
|
5644 |
_ACEOF |
cat >> $CONFIG_STATUS <<\EOF |
5645 |
|
|
5646 |
cat >>$CONFIG_STATUS <<\_ACEOF |
# Split the substitutions into bite-sized pieces for seds with |
5647 |
# Split the substitutions into bite-sized pieces for seds with |
# small command number limits, like on Digital OSF/1 and HP-UX. |
5648 |
# 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. |
5649 |
ac_max_sed_lines=48 |
ac_file=1 # Number of current file. |
5650 |
ac_sed_frag=1 # Number of current file. |
ac_beg=1 # First line for current file. |
5651 |
ac_beg=1 # First line for current file. |
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
5652 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
ac_more_lines=: |
5653 |
ac_more_lines=: |
ac_sed_cmds="" |
5654 |
ac_sed_cmds= |
while $ac_more_lines; do |
5655 |
while $ac_more_lines; do |
if test $ac_beg -gt 1; then |
5656 |
if test $ac_beg -gt 1; then |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
5657 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
else |
5658 |
else |
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
5659 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
fi |
5660 |
fi |
if test ! -s conftest.s$ac_file; then |
5661 |
if test ! -s $tmp/subs.frag; then |
ac_more_lines=false |
5662 |
ac_more_lines=false |
rm -f conftest.s$ac_file |
5663 |
|
else |
5664 |
|
if test -z "$ac_sed_cmds"; then |
5665 |
|
ac_sed_cmds="sed -f conftest.s$ac_file" |
5666 |
else |
else |
5667 |
# 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` |
|
5668 |
fi |
fi |
5669 |
done |
ac_file=`expr $ac_file + 1` |
5670 |
if test -z "$ac_sed_cmds"; then |
ac_beg=$ac_end |
5671 |
ac_sed_cmds=cat |
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
5672 |
fi |
fi |
5673 |
fi # test -n "$CONFIG_FILES" |
done |
5674 |
|
if test -z "$ac_sed_cmds"; then |
5675 |
_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= |
|
5676 |
fi |
fi |
5677 |
|
EOF |
5678 |
|
|
5679 |
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` |
|
5680 |
|
|
5681 |
|
CONFIG_FILES=\${CONFIG_FILES-"makedefc"} |
5682 |
|
EOF |
5683 |
|
cat >> $CONFIG_STATUS <<\EOF |
5684 |
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
5685 |
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5686 |
|
case "$ac_file" in |
5687 |
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
5688 |
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
5689 |
|
*) ac_file_in="${ac_file}.in" ;; |
5690 |
|
esac |
5691 |
|
|
5692 |
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
5693 |
|
|
5694 |
if test x"$ac_file" != x-; then |
# Remove last slash and all that follows it. Not all systems have dirname. |
5695 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
5696 |
echo "$as_me: creating $ac_file" >&6;} |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
5697 |
rm -f "$ac_file" |
# The file is in a subdirectory. |
5698 |
fi |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
5699 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
5700 |
# use $as_me), people would be surprised to read: |
# A "../" for each directory in $ac_dir_suffix. |
5701 |
# /* config.h. Generated by config.status. */ |
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
|
if test x"$ac_file" = x-; then |
|
|
configure_input= |
|
5702 |
else |
else |
5703 |
configure_input="$ac_file. " |
ac_dir_suffix= ac_dots= |
5704 |
fi |
fi |
|
configure_input=$configure_input"Generated from `echo $ac_file_in | |
|
|
sed 's,.*/,,'` by configure." |
|
5705 |
|
|
5706 |
# First look for the input files in the build tree, otherwise in the |
case "$ac_given_srcdir" in |
5707 |
# src tree. |
.) srcdir=. |
5708 |
ac_file_inputs=`IFS=: |
if test -z "$ac_dots"; then top_srcdir=. |
5709 |
for f in $ac_file_in; do |
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
5710 |
case $f in |
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
5711 |
-) echo $tmp/stdin ;; |
*) # Relative path. |
5712 |
[\\/$]*) |
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
5713 |
# Absolute (can't be DOS-style, as IFS=:) |
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
5714 |
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 |
|
5715 |
|
|
|
done |
|
|
_ACEOF |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
5716 |
|
|
5717 |
# |
echo creating "$ac_file" |
5718 |
# CONFIG_HEADER section. |
rm -f "$ac_file" |
5719 |
# |
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
5720 |
|
case "$ac_file" in |
5721 |
|
*Makefile*) ac_comsub="1i\\ |
5722 |
|
# $configure_input" ;; |
5723 |
|
*) ac_comsub= ;; |
5724 |
|
esac |
5725 |
|
|
5726 |
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
5727 |
|
sed -e "$ac_comsub |
5728 |
|
s%@configure_input@%$configure_input%g |
5729 |
|
s%@srcdir@%$srcdir%g |
5730 |
|
s%@top_srcdir@%$top_srcdir%g |
5731 |
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
5732 |
|
fi; done |
5733 |
|
rm -f conftest.s* |
5734 |
|
|
5735 |
# 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 |
5736 |
# 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. |
5737 |
# |
# |
5738 |
# ac_d sets the value in "#define NAME VALUE" lines. |
# ac_d sets the value in "#define NAME VALUE" lines. |
5739 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
5740 |
ac_dB='[ ].*$,\1#\2' |
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
5741 |
ac_dC=' ' |
ac_dC='\3' |
5742 |
ac_dD=',;t' |
ac_dD='%g' |
5743 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
5744 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
5745 |
ac_uB='$,\1#\2define\3' |
ac_uB='\([ ]\)%\1#\2define\3' |
5746 |
ac_uC=' ' |
ac_uC=' ' |
5747 |
ac_uD=',;t' |
ac_uD='\4%g' |
5748 |
|
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
5749 |
|
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
5750 |
|
ac_eB='$%\1#\2define\3' |
5751 |
|
ac_eC=' ' |
5752 |
|
ac_eD='%g' |
5753 |
|
|
5754 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
if test "${CONFIG_HEADERS+set}" != set; then |
5755 |
|
EOF |
5756 |
|
cat >> $CONFIG_STATUS <<EOF |
5757 |
|
CONFIG_HEADERS="h/gclincl.h" |
5758 |
|
EOF |
5759 |
|
cat >> $CONFIG_STATUS <<\EOF |
5760 |
|
fi |
5761 |
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
5762 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5763 |
case $ac_file in |
case "$ac_file" in |
5764 |
- | *:- | *:-:* ) # input from stdin |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
5765 |
cat >$tmp/stdin |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
5766 |
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 ;; |
|
5767 |
esac |
esac |
5768 |
|
|
5769 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
echo creating $ac_file |
|
echo "$as_me: creating $ac_file" >&6;} |
|
5770 |
|
|
5771 |
# First look for the input files in the build tree, otherwise in the |
rm -f conftest.frag conftest.in conftest.out |
5772 |
# src tree. |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
5773 |
ac_file_inputs=`IFS=: |
cat $ac_file_inputs > conftest.in |
5774 |
for f in $ac_file_in; do |
|
5775 |
case $f in |
EOF |
5776 |
-) echo $tmp/stdin ;; |
|
5777 |
[\\/$]*) |
# Transform confdefs.h into a sed script conftest.vals that substitutes |
5778 |
# Absolute (can't be DOS-style, as IFS=:) |
# the proper values into config.h.in to produce config.h. And first: |
5779 |
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. |
5780 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
# Protect against being in an unquoted here document in config.status. |
5781 |
{ (exit 1); exit 1; }; } |
rm -f conftest.vals |
5782 |
echo $f;; |
cat > conftest.hdr <<\EOF |
5783 |
*) # Relative |
s/[\\&%]/\\&/g |
5784 |
if test -f "$f"; then |
s%[\\$`]%\\&%g |
5785 |
# Build tree |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
5786 |
echo $f |
s%ac_d%ac_u%gp |
5787 |
elif test -f "$srcdir/$f"; then |
s%ac_u%ac_e%gp |
5788 |
# Source tree |
EOF |
5789 |
echo $srcdir/$f |
sed -n -f conftest.hdr confdefs.h > conftest.vals |
5790 |
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 |
|
5791 |
|
|
5792 |
# This sed command replaces #undef with comments. This is necessary, for |
# This sed command replaces #undef with comments. This is necessary, for |
5793 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
5794 |
# on some systems where configure will not decide to define it. |
# on some systems where configure will not decide to define it. |
5795 |
cat >>conftest.undefs <<\_ACEOF |
cat >> conftest.vals <<\EOF |
5796 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
5797 |
_ACEOF |
EOF |
5798 |
|
|
5799 |
# Break up conftest.defines because some shells have a limit on the size |
# Break up conftest.vals because some shells have a limit on |
5800 |
# of here documents, and old seds have small limits too (100 cmds). |
# the size of here documents, and old seds have small limits too. |
5801 |
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 |
|
5802 |
rm -f conftest.tail |
rm -f conftest.tail |
5803 |
while grep . conftest.undefs >/dev/null |
while : |
5804 |
do |
do |
5805 |
# Write a limited-size here document to $tmp/undefs.sed. |
ac_lines=`grep -c . conftest.vals` |
5806 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
# grep -c gives empty output for an empty file on some AIX systems. |
5807 |
# Speed up: don't consider the non `#undef' |
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
5808 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
# Write a limited-size here document to conftest.frag. |
5809 |
# Work around the forget-to-reset-the-flag bug. |
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
5810 |
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 |
|
5811 |
echo 'CEOF |
echo 'CEOF |
5812 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
sed -f conftest.frag conftest.in > conftest.out |
5813 |
rm -f $tmp/in |
rm -f conftest.in |
5814 |
mv $tmp/out $tmp/in |
mv conftest.out conftest.in |
5815 |
' >>$CONFIG_STATUS |
' >> $CONFIG_STATUS |
5816 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
5817 |
rm -f conftest.undefs |
rm -f conftest.vals |
5818 |
mv conftest.tail conftest.undefs |
mv conftest.tail conftest.vals |
5819 |
done |
done |
5820 |
rm -f conftest.undefs |
rm -f conftest.vals |
5821 |
|
|
5822 |
cat >>$CONFIG_STATUS <<\_ACEOF |
cat >> $CONFIG_STATUS <<\EOF |
5823 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
rm -f conftest.frag conftest.h |
5824 |
# use $as_me), people would be surprised to read: |
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
5825 |
# /* config.h. Generated by config.status. */ |
cat conftest.in >> conftest.h |
5826 |
if test x"$ac_file" = x-; then |
rm -f conftest.in |
5827 |
echo "/* Generated by configure. */" >$tmp/config.h |
if cmp -s $ac_file conftest.h 2>/dev/null; then |
5828 |
|
echo "$ac_file is unchanged" |
5829 |
|
rm -f conftest.h |
5830 |
else |
else |
5831 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
# Remove last slash and all that follows it. Not all systems have dirname. |
5832 |
fi |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
5833 |
cat $tmp/in >>$tmp/config.h |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
5834 |
rm -f $tmp/in |
# The file is in a subdirectory. |
5835 |
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 |
|
5836 |
fi |
fi |
5837 |
else |
rm -f $ac_file |
5838 |
cat $tmp/config.h |
mv conftest.h $ac_file |
|
rm -f $tmp/config.h |
|
5839 |
fi |
fi |
5840 |
done |
fi; done |
|
_ACEOF |
|
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
5841 |
|
|
5842 |
{ (exit 0); exit 0; } |
EOF |
5843 |
_ACEOF |
cat >> $CONFIG_STATUS <<EOF |
|
chmod +x $CONFIG_STATUS |
|
|
ac_clean_files=$ac_clean_files_save |
|
5844 |
|
|
5845 |
|
EOF |
5846 |
|
cat >> $CONFIG_STATUS <<\EOF |
5847 |
|
|
5848 |
# configure is writing to config.log, and then calls config.status. |
exit 0 |
5849 |
# config.status does its own redirection, appending to config.log. |
EOF |
5850 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
chmod +x $CONFIG_STATUS |
5851 |
# by configure, so config.status won't be able to write to it; its |
rm -fr confdefs* $ac_clean_files |
5852 |
# 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 |
|
5853 |
|
|
5854 |
echo makedefc |
echo makedefc |
5855 |
cat makedefc |
cat makedefc |