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.59. |
# Generated automatically using autoconf version 2.13 |
5 |
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 |
# |
# |
|
# Copyright (C) 2003 Free Software Foundation, Inc. |
|
7 |
# This configure script is free software; the Free Software Foundation |
# This configure script is free software; the Free Software Foundation |
8 |
# gives unlimited permission to copy, distribute and modify it. |
# gives unlimited permission to copy, distribute and modify it. |
|
## --------------------- ## |
|
|
## M4sh Initialization. ## |
|
|
## --------------------- ## |
|
|
|
|
|
# Be Bourne compatible |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
|
emulate sh |
|
|
NULLCMD=: |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
|
# is contrary to our usage. Disable this feature. |
|
|
alias -g '${1+"$@"}'='"$@"' |
|
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
|
|
set -o posix |
|
|
fi |
|
|
DUALCASE=1; export DUALCASE # for MKS sh |
|
|
|
|
|
# Support unset when possible. |
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
|
as_unset=unset |
|
|
else |
|
|
as_unset=false |
|
|
fi |
|
|
|
|
|
|
|
|
# Work around bugs in pre-3.0 UWIN ksh. |
|
|
$as_unset ENV MAIL MAILPATH |
|
|
PS1='$ ' |
|
|
PS2='> ' |
|
|
PS4='+ ' |
|
|
|
|
|
# NLS nuisances. |
|
|
for as_var in \ |
|
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
|
LC_TELEPHONE LC_TIME |
|
|
do |
|
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
|
eval $as_var=C; export $as_var |
|
|
else |
|
|
$as_unset $as_var |
|
|
fi |
|
|
done |
|
|
|
|
|
# Required to use basename. |
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
|
as_expr=expr |
|
|
else |
|
|
as_expr=false |
|
|
fi |
|
|
|
|
|
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
|
|
as_basename=basename |
|
|
else |
|
|
as_basename=false |
|
|
fi |
|
|
|
|
|
|
|
|
# Name of the executable. |
|
|
as_me=`$as_basename "$0" || |
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
|
X"$0" : 'X\(//\)$' \| \ |
|
|
X"$0" : 'X\(/\)$' \| \ |
|
|
. : '\(.\)' 2>/dev/null || |
|
|
echo X/"$0" | |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
|
|
/^X\/\(\/\/\)$/{ s//\1/; q; } |
|
|
/^X\/\(\/\).*/{ s//\1/; q; } |
|
|
s/.*/./; q'` |
|
|
|
|
|
|
|
|
# PATH needs CR, and LINENO needs CR and PATH. |
|
|
# Avoid depending upon Character Ranges. |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
as_cr_digits='0123456789' |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
|
|
|
|
# The user is always right. |
|
|
if test "${PATH_SEPARATOR+set}" != set; then |
|
|
echo "#! /bin/sh" >conf$$.sh |
|
|
echo "exit 0" >>conf$$.sh |
|
|
chmod +x conf$$.sh |
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
|
PATH_SEPARATOR=';' |
|
|
else |
|
|
PATH_SEPARATOR=: |
|
|
fi |
|
|
rm -f conf$$.sh |
|
|
fi |
|
|
|
|
|
|
|
|
as_lineno_1=$LINENO |
|
|
as_lineno_2=$LINENO |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" || { |
|
|
# Find who we are. Look in the path if we contain no path at all |
|
|
# relative or not. |
|
|
case $0 in |
|
|
*[\\/]* ) as_myself=$0 ;; |
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
|
done |
|
|
|
|
|
;; |
|
|
esac |
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND' |
|
|
# in which case we are not to be found in the path. |
|
|
if test "x$as_myself" = x; then |
|
|
as_myself=$0 |
|
|
fi |
|
|
if test ! -f "$as_myself"; then |
|
|
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
|
case $CONFIG_SHELL in |
|
|
'') |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for as_base in sh bash ksh sh5; do |
|
|
case $as_dir in |
|
|
/*) |
|
|
if ("$as_dir/$as_base" -c ' |
|
|
as_lineno_1=$LINENO |
|
|
as_lineno_2=$LINENO |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
|
|
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
|
|
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
|
|
CONFIG_SHELL=$as_dir/$as_base |
|
|
export CONFIG_SHELL |
|
|
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
|
|
fi;; |
|
|
esac |
|
|
done |
|
|
done |
|
|
;; |
|
|
esac |
|
9 |
|
|
10 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
# Defaults: |
11 |
# uniformly replaced by the line number. The first 'sed' inserts a |
ac_help= |
|
# line-number line before each line; the second 'sed' does the real |
|
|
# work. The second script uses 'N' to pair each line-number line |
|
|
# with the numbered line, and appends trailing '-' during |
|
|
# substitution so that $LINENO is not a special case at line end. |
|
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
|
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
|
|
sed '=' <$as_myself | |
|
|
sed ' |
|
|
N |
|
|
s,$,-, |
|
|
: loop |
|
|
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
|
|
t loop |
|
|
s,-$,, |
|
|
s,^['$as_cr_digits']*\n,, |
|
|
' >$as_me.lineno && |
|
|
chmod +x $as_me.lineno || |
|
|
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
|
|
{ (exit 1); exit 1; }; } |
|
|
|
|
|
# Don't try to exec as it changes $[0], causing all sort of problems |
|
|
# (the dirname of $[0] is not the place where we might find the |
|
|
# original and so on. Autoconf is especially sensible to this). |
|
|
. ./$as_me.lineno |
|
|
# Exit status is that of the last command. |
|
|
exit |
|
|
} |
|
|
|
|
|
|
|
|
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
|
|
*c*,-n*) ECHO_N= ECHO_C=' |
|
|
' ECHO_T=' ' ;; |
|
|
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
|
|
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
|
|
esac |
|
|
|
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then |
|
|
as_expr=expr |
|
|
else |
|
|
as_expr=false |
|
|
fi |
|
|
|
|
|
rm -f conf$$ conf$$.exe conf$$.file |
|
|
echo >conf$$.file |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
|
# We could just check for DJGPP; but this test a) works b) is more generic |
|
|
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
|
|
if test -f conf$$.exe; then |
|
|
# Don't use ln at all; we don't have any links |
|
|
as_ln_s='cp -p' |
|
|
else |
|
|
as_ln_s='ln -s' |
|
|
fi |
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
|
as_ln_s=ln |
|
|
else |
|
|
as_ln_s='cp -p' |
|
|
fi |
|
|
rm -f conf$$ conf$$.exe conf$$.file |
|
|
|
|
|
if mkdir -p . 2>/dev/null; then |
|
|
as_mkdir_p=: |
|
|
else |
|
|
test -d ./-p && rmdir ./-p |
|
|
as_mkdir_p=false |
|
|
fi |
|
|
|
|
|
as_executable_p="test -f" |
|
|
|
|
|
# Sed expression to map a string onto a valid CPP name. |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
|
|
|
|
# Sed expression to map a string onto a valid variable name. |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
|
|
|
|
|
|
|
# IFS |
|
|
# We need space, tab and new line, in precisely that order. |
|
|
as_nl=' |
|
|
' |
|
|
IFS=" $as_nl" |
|
|
|
|
|
# CDPATH. |
|
|
$as_unset CDPATH |
|
|
|
|
|
|
|
|
# Name of the host. |
|
|
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
|
|
# so uname gets run too. |
|
|
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|
|
|
|
|
exec 6>&1 |
|
|
|
|
|
# |
|
|
# Initializations. |
|
|
# |
|
12 |
ac_default_prefix=/usr/local |
ac_default_prefix=/usr/local |
13 |
ac_config_libobj_dir=. |
# Any additions from configure.in: |
14 |
cross_compiling=no |
ac_help="$ac_help |
15 |
subdirs= |
--enable-holediv=XXXX will specify that 1/XXXX of the core should be used as the hole between the heap and relocatable memory area" |
16 |
MFLAGS= |
ac_help="$ac_help |
17 |
MAKEFLAGS= |
--enable-vssize=XXXX will compile in a value stack of size XXX" |
18 |
SHELL=${CONFIG_SHELL-/bin/sh} |
ac_help="$ac_help |
19 |
|
--enable-bdssize=XXXX will compile in a binding stack of size XXX" |
20 |
# Maximum number of lines to put in a shell here document. |
ac_help="$ac_help |
21 |
# This variable seems obsolete. It should probably be removed, and |
--enable-ihssize=XXXX will compile in a invocation history stack of size XXX" |
22 |
# only ac_max_sed_lines should be used. |
ac_help="$ac_help |
23 |
: ${ac_max_here_lines=38} |
--enable-frssize=XXXX will compile in a frame stack of size XXX" |
24 |
|
ac_help="$ac_help |
25 |
# Identity of this package. |
--enable-cssize=XXXX produces executables with a C stack of size XXX" |
26 |
PACKAGE_NAME= |
ac_help="$ac_help |
27 |
PACKAGE_TARNAME= |
--enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs " |
28 |
PACKAGE_VERSION= |
ac_help="$ac_help |
29 |
PACKAGE_STRING= |
--enable-immfix will enable an immediate fixnum table above the C stack" |
30 |
PACKAGE_BUGREPORT= |
ac_help="$ac_help |
31 |
|
--enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems " |
32 |
ac_unique_file="src/mpi_defglue.lsp" |
ac_help="$ac_help |
33 |
# Factoring default headers for most tests. |
--enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh " |
34 |
ac_includes_default="\ |
ac_help="$ac_help |
35 |
#include <stdio.h> |
--enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh " |
36 |
#if HAVE_SYS_TYPES_H |
ac_help="$ac_help |
37 |
# include <sys/types.h> |
--enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info " |
38 |
#endif |
ac_help="$ac_help |
39 |
#if HAVE_SYS_STAT_H |
--enable-emacsdir=XXXX will manually specify the location for elisp files " |
40 |
# include <sys/stat.h> |
ac_help="$ac_help |
41 |
#endif |
--enable-common-binary=yes forces use of lowest common denominator instruction sets, (default is =yes) " |
42 |
#if STDC_HEADERS |
ac_help="$ac_help |
43 |
# include <stdlib.h> |
--enable-japi=yes will compile in support for the JAPI graphical interface if present on your system" |
44 |
# include <stddef.h> |
ac_help="$ac_help |
45 |
#else |
--enable-xdr=yes will compile in support for XDR" |
46 |
# if HAVE_STDLIB_H |
ac_help="$ac_help |
47 |
# include <stdlib.h> |
--enable-dlopen uses dlopen for loading objects, which can then not be retained in saved images |
48 |
# endif |
" |
49 |
#endif |
ac_help="$ac_help |
50 |
#if HAVE_STRING_H |
--enable-statsysbfd uses a static sytem bfd library for loading and relocationing object files |
51 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
" |
52 |
# include <memory.h> |
ac_help="$ac_help |
53 |
# endif |
--enable-dynsysbfd uses a dynamic shared sytem bfd library for loading and relocationing object files |
54 |
# include <string.h> |
" |
55 |
#endif |
ac_help="$ac_help |
56 |
#if HAVE_STRINGS_H |
--enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files |
57 |
# include <strings.h> |
" |
58 |
#endif |
ac_help="$ac_help |
59 |
#if HAVE_INTTYPES_H |
--enable-custreloc uses custom gcl code if available for loading and relocationing object files |
60 |
# include <inttypes.h> |
" |
61 |
#else |
ac_help="$ac_help |
62 |
# if HAVE_STDINT_H |
--enable-debug builds gcl with -g in CFLAGS to enable running under gdb |
63 |
# include <stdint.h> |
" |
64 |
# endif |
ac_help="$ac_help |
65 |
#endif |
--enable-gprof builds gcl with -pg in CFLAGS to enable profiling with gprof |
66 |
#if HAVE_UNISTD_H |
" |
67 |
# include <unistd.h> |
ac_help="$ac_help |
68 |
#endif" |
--enable-static will link your GCL against static as opposed to shared system libraries " |
69 |
|
ac_help="$ac_help |
70 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP PARGCL_VERSION PARGCL_UPDATED GCL GCL_SRC PWD HOSTNAME LIBSFORSOCKETS LIBSFORPTHREAD LIBSFORMPI CFLAGS_FOR_POSIX_1C HAVE_PTHREAD LIBEFENCE STRIP_LIBS STRIP MPICC MPICXX LIBOBJS LTLIBOBJS' |
--enable-pic builds gcl with -fPIC in CFLAGS |
71 |
ac_subst_files='' |
" |
72 |
|
ac_help="$ac_help |
73 |
|
--enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source |
74 |
|
" |
75 |
|
ac_help="$ac_help |
76 |
|
--with-x use the X Window System" |
77 |
|
ac_help="$ac_help |
78 |
|
--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)" |
79 |
|
ac_help="$ac_help |
80 |
|
--enable-readine enables command line completion via the readline library " |
81 |
|
ac_help="$ac_help |
82 |
|
--enable-ansi builds a large gcl aiming for ansi compliance, |
83 |
|
--disable-ansi builds the smaller traditional CLtL1 image" |
84 |
|
|
85 |
# Initialize some variables set by options. |
# Initialize some variables set by options. |
|
ac_init_help= |
|
|
ac_init_version=false |
|
86 |
# The variables have the same names as the options, with |
# The variables have the same names as the options, with |
87 |
# dashes changed to underlines. |
# dashes changed to underlines. |
88 |
cache_file=/dev/null |
build=NONE |
89 |
|
cache_file=./config.cache |
90 |
exec_prefix=NONE |
exec_prefix=NONE |
91 |
|
host=NONE |
92 |
no_create= |
no_create= |
93 |
|
nonopt=NONE |
94 |
no_recursion= |
no_recursion= |
95 |
prefix=NONE |
prefix=NONE |
96 |
program_prefix=NONE |
program_prefix=NONE |
99 |
silent= |
silent= |
100 |
site= |
site= |
101 |
srcdir= |
srcdir= |
102 |
|
target=NONE |
103 |
verbose= |
verbose= |
104 |
x_includes=NONE |
x_includes=NONE |
105 |
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. |
|
106 |
bindir='${exec_prefix}/bin' |
bindir='${exec_prefix}/bin' |
107 |
sbindir='${exec_prefix}/sbin' |
sbindir='${exec_prefix}/sbin' |
108 |
libexecdir='${exec_prefix}/libexec' |
libexecdir='${exec_prefix}/libexec' |
116 |
infodir='${prefix}/info' |
infodir='${prefix}/info' |
117 |
mandir='${prefix}/man' |
mandir='${prefix}/man' |
118 |
|
|
119 |
|
# Initialize some other variables. |
120 |
|
subdirs= |
121 |
|
MFLAGS= MAKEFLAGS= |
122 |
|
SHELL=${CONFIG_SHELL-/bin/sh} |
123 |
|
# Maximum number of lines to put in a shell here document. |
124 |
|
ac_max_here_lines=12 |
125 |
|
|
126 |
ac_prev= |
ac_prev= |
127 |
for ac_option |
for ac_option |
128 |
do |
do |
129 |
|
|
130 |
# If the previous option needs an argument, assign it. |
# If the previous option needs an argument, assign it. |
131 |
if test -n "$ac_prev"; then |
if test -n "$ac_prev"; then |
132 |
eval "$ac_prev=\$ac_option" |
eval "$ac_prev=\$ac_option" |
134 |
continue |
continue |
135 |
fi |
fi |
136 |
|
|
137 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
case "$ac_option" in |
138 |
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
139 |
|
*) ac_optarg= ;; |
140 |
|
esac |
141 |
|
|
142 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
# Accept the important Cygnus configure options, so we can diagnose typos. |
143 |
|
|
144 |
case $ac_option in |
case "$ac_option" in |
145 |
|
|
146 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
147 |
ac_prev=bindir ;; |
ac_prev=bindir ;; |
148 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
149 |
bindir=$ac_optarg ;; |
bindir="$ac_optarg" ;; |
150 |
|
|
151 |
-build | --build | --buil | --bui | --bu) |
-build | --build | --buil | --bui | --bu) |
152 |
ac_prev=build_alias ;; |
ac_prev=build ;; |
153 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
154 |
build_alias=$ac_optarg ;; |
build="$ac_optarg" ;; |
155 |
|
|
156 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
157 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
158 |
ac_prev=cache_file ;; |
ac_prev=cache_file ;; |
159 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
160 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
161 |
cache_file=$ac_optarg ;; |
cache_file="$ac_optarg" ;; |
|
|
|
|
--config-cache | -C) |
|
|
cache_file=config.cache ;; |
|
162 |
|
|
163 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
164 |
ac_prev=datadir ;; |
ac_prev=datadir ;; |
165 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
166 |
| --da=*) |
| --da=*) |
167 |
datadir=$ac_optarg ;; |
datadir="$ac_optarg" ;; |
168 |
|
|
169 |
-disable-* | --disable-*) |
-disable-* | --disable-*) |
170 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
171 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
172 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
173 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
174 |
{ (exit 1); exit 1; }; } |
fi |
175 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
176 |
eval "enable_$ac_feature=no" ;; |
eval "enable_${ac_feature}=no" ;; |
177 |
|
|
178 |
-enable-* | --enable-*) |
-enable-* | --enable-*) |
179 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
180 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
181 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
182 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
183 |
{ (exit 1); exit 1; }; } |
fi |
184 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
185 |
case $ac_option in |
case "$ac_option" in |
186 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
*=*) ;; |
187 |
*) ac_optarg=yes ;; |
*) ac_optarg=yes ;; |
188 |
esac |
esac |
189 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
eval "enable_${ac_feature}='$ac_optarg'" ;; |
190 |
|
|
191 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
192 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
195 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
196 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
197 |
| --exec=* | --exe=* | --ex=*) |
| --exec=* | --exe=* | --ex=*) |
198 |
exec_prefix=$ac_optarg ;; |
exec_prefix="$ac_optarg" ;; |
199 |
|
|
200 |
-gas | --gas | --ga | --g) |
-gas | --gas | --ga | --g) |
201 |
# Obsolete; use --with-gas. |
# Obsolete; use --with-gas. |
202 |
with_gas=yes ;; |
with_gas=yes ;; |
203 |
|
|
204 |
-help | --help | --hel | --he | -h) |
-help | --help | --hel | --he) |
205 |
ac_init_help=long ;; |
# Omit some internal or obsolete options to make the list less imposing. |
206 |
-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. |
207 |
ac_init_help=recursive ;; |
cat << EOF |
208 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
Usage: configure [options] [host] |
209 |
ac_init_help=short ;; |
Options: [defaults in brackets after descriptions] |
210 |
|
Configuration: |
211 |
|
--cache-file=FILE cache test results in FILE |
212 |
|
--help print this message |
213 |
|
--no-create do not create output files |
214 |
|
--quiet, --silent do not print \`checking...' messages |
215 |
|
--version print the version of autoconf that created configure |
216 |
|
Directory and file names: |
217 |
|
--prefix=PREFIX install architecture-independent files in PREFIX |
218 |
|
[$ac_default_prefix] |
219 |
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
220 |
|
[same as prefix] |
221 |
|
--bindir=DIR user executables in DIR [EPREFIX/bin] |
222 |
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
223 |
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
224 |
|
--datadir=DIR read-only architecture-independent data in DIR |
225 |
|
[PREFIX/share] |
226 |
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
227 |
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
228 |
|
[PREFIX/com] |
229 |
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
230 |
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
231 |
|
--includedir=DIR C header files in DIR [PREFIX/include] |
232 |
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
233 |
|
--infodir=DIR info documentation in DIR [PREFIX/info] |
234 |
|
--mandir=DIR man documentation in DIR [PREFIX/man] |
235 |
|
--srcdir=DIR find the sources in DIR [configure dir or ..] |
236 |
|
--program-prefix=PREFIX prepend PREFIX to installed program names |
237 |
|
--program-suffix=SUFFIX append SUFFIX to installed program names |
238 |
|
--program-transform-name=PROGRAM |
239 |
|
run sed PROGRAM on installed program names |
240 |
|
EOF |
241 |
|
cat << EOF |
242 |
|
Host type: |
243 |
|
--build=BUILD configure for building on BUILD [BUILD=HOST] |
244 |
|
--host=HOST configure for HOST [guessed] |
245 |
|
--target=TARGET configure for TARGET [TARGET=HOST] |
246 |
|
Features and packages: |
247 |
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
248 |
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
249 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
250 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
251 |
|
--x-includes=DIR X include files are in DIR |
252 |
|
--x-libraries=DIR X library files are in DIR |
253 |
|
EOF |
254 |
|
if test -n "$ac_help"; then |
255 |
|
echo "--enable and --with options recognized:$ac_help" |
256 |
|
fi |
257 |
|
exit 0 ;; |
258 |
|
|
259 |
-host | --host | --hos | --ho) |
-host | --host | --hos | --ho) |
260 |
ac_prev=host_alias ;; |
ac_prev=host ;; |
261 |
-host=* | --host=* | --hos=* | --ho=*) |
-host=* | --host=* | --hos=* | --ho=*) |
262 |
host_alias=$ac_optarg ;; |
host="$ac_optarg" ;; |
263 |
|
|
264 |
-includedir | --includedir | --includedi | --included | --include \ |
-includedir | --includedir | --includedi | --included | --include \ |
265 |
| --includ | --inclu | --incl | --inc) |
| --includ | --inclu | --incl | --inc) |
266 |
ac_prev=includedir ;; |
ac_prev=includedir ;; |
267 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
268 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
269 |
includedir=$ac_optarg ;; |
includedir="$ac_optarg" ;; |
270 |
|
|
271 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
272 |
ac_prev=infodir ;; |
ac_prev=infodir ;; |
273 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
274 |
infodir=$ac_optarg ;; |
infodir="$ac_optarg" ;; |
275 |
|
|
276 |
-libdir | --libdir | --libdi | --libd) |
-libdir | --libdir | --libdi | --libd) |
277 |
ac_prev=libdir ;; |
ac_prev=libdir ;; |
278 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
279 |
libdir=$ac_optarg ;; |
libdir="$ac_optarg" ;; |
280 |
|
|
281 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
282 |
| --libexe | --libex | --libe) |
| --libexe | --libex | --libe) |
283 |
ac_prev=libexecdir ;; |
ac_prev=libexecdir ;; |
284 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
285 |
| --libexe=* | --libex=* | --libe=*) |
| --libexe=* | --libex=* | --libe=*) |
286 |
libexecdir=$ac_optarg ;; |
libexecdir="$ac_optarg" ;; |
287 |
|
|
288 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
289 |
| --localstate | --localstat | --localsta | --localst \ |
| --localstate | --localstat | --localsta | --localst \ |
292 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
293 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
294 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
295 |
localstatedir=$ac_optarg ;; |
localstatedir="$ac_optarg" ;; |
296 |
|
|
297 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
298 |
ac_prev=mandir ;; |
ac_prev=mandir ;; |
299 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
300 |
mandir=$ac_optarg ;; |
mandir="$ac_optarg" ;; |
301 |
|
|
302 |
-nfp | --nfp | --nf) |
-nfp | --nfp | --nf) |
303 |
# Obsolete; use --without-fp. |
# Obsolete; use --without-fp. |
304 |
with_fp=no ;; |
with_fp=no ;; |
305 |
|
|
306 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
307 |
| --no-cr | --no-c | -n) |
| --no-cr | --no-c) |
308 |
no_create=yes ;; |
no_create=yes ;; |
309 |
|
|
310 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
318 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
319 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
320 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
321 |
oldincludedir=$ac_optarg ;; |
oldincludedir="$ac_optarg" ;; |
322 |
|
|
323 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
324 |
ac_prev=prefix ;; |
ac_prev=prefix ;; |
325 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
326 |
prefix=$ac_optarg ;; |
prefix="$ac_optarg" ;; |
327 |
|
|
328 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
329 |
| --program-pre | --program-pr | --program-p) |
| --program-pre | --program-pr | --program-p) |
330 |
ac_prev=program_prefix ;; |
ac_prev=program_prefix ;; |
331 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
332 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
333 |
program_prefix=$ac_optarg ;; |
program_prefix="$ac_optarg" ;; |
334 |
|
|
335 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
336 |
| --program-suf | --program-su | --program-s) |
| --program-suf | --program-su | --program-s) |
337 |
ac_prev=program_suffix ;; |
ac_prev=program_suffix ;; |
338 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
339 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
340 |
program_suffix=$ac_optarg ;; |
program_suffix="$ac_optarg" ;; |
341 |
|
|
342 |
-program-transform-name | --program-transform-name \ |
-program-transform-name | --program-transform-name \ |
343 |
| --program-transform-nam | --program-transform-na \ |
| --program-transform-nam | --program-transform-na \ |
354 |
| --program-transfo=* | --program-transf=* \ |
| --program-transfo=* | --program-transf=* \ |
355 |
| --program-trans=* | --program-tran=* \ |
| --program-trans=* | --program-tran=* \ |
356 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| --progr-tra=* | --program-tr=* | --program-t=*) |
357 |
program_transform_name=$ac_optarg ;; |
program_transform_name="$ac_optarg" ;; |
358 |
|
|
359 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
360 |
| -silent | --silent | --silen | --sile | --sil) |
| -silent | --silent | --silen | --sile | --sil) |
364 |
ac_prev=sbindir ;; |
ac_prev=sbindir ;; |
365 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
366 |
| --sbi=* | --sb=*) |
| --sbi=* | --sb=*) |
367 |
sbindir=$ac_optarg ;; |
sbindir="$ac_optarg" ;; |
368 |
|
|
369 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
370 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
375 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
376 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
377 |
| --sha=* | --sh=*) |
| --sha=* | --sh=*) |
378 |
sharedstatedir=$ac_optarg ;; |
sharedstatedir="$ac_optarg" ;; |
379 |
|
|
380 |
-site | --site | --sit) |
-site | --site | --sit) |
381 |
ac_prev=site ;; |
ac_prev=site ;; |
382 |
-site=* | --site=* | --sit=*) |
-site=* | --site=* | --sit=*) |
383 |
site=$ac_optarg ;; |
site="$ac_optarg" ;; |
384 |
|
|
385 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
386 |
ac_prev=srcdir ;; |
ac_prev=srcdir ;; |
387 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
388 |
srcdir=$ac_optarg ;; |
srcdir="$ac_optarg" ;; |
389 |
|
|
390 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
391 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| --syscon | --sysco | --sysc | --sys | --sy) |
392 |
ac_prev=sysconfdir ;; |
ac_prev=sysconfdir ;; |
393 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
394 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
395 |
sysconfdir=$ac_optarg ;; |
sysconfdir="$ac_optarg" ;; |
396 |
|
|
397 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
-target | --target | --targe | --targ | --tar | --ta | --t) |
398 |
ac_prev=target_alias ;; |
ac_prev=target ;; |
399 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
400 |
target_alias=$ac_optarg ;; |
target="$ac_optarg" ;; |
401 |
|
|
402 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
403 |
verbose=yes ;; |
verbose=yes ;; |
404 |
|
|
405 |
-version | --version | --versio | --versi | --vers | -V) |
-version | --version | --versio | --versi | --vers) |
406 |
ac_init_version=: ;; |
echo "configure generated by autoconf version 2.13" |
407 |
|
exit 0 ;; |
408 |
|
|
409 |
-with-* | --with-*) |
-with-* | --with-*) |
410 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
411 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
412 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
413 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
414 |
{ (exit 1); exit 1; }; } |
fi |
415 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
416 |
case $ac_option in |
case "$ac_option" in |
417 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
*=*) ;; |
418 |
*) ac_optarg=yes ;; |
*) ac_optarg=yes ;; |
419 |
esac |
esac |
420 |
eval "with_$ac_package='$ac_optarg'" ;; |
eval "with_${ac_package}='$ac_optarg'" ;; |
421 |
|
|
422 |
-without-* | --without-*) |
-without-* | --without-*) |
423 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
424 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
425 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
426 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
427 |
{ (exit 1); exit 1; }; } |
fi |
428 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
429 |
eval "with_$ac_package=no" ;; |
eval "with_${ac_package}=no" ;; |
430 |
|
|
431 |
--x) |
--x) |
432 |
# Obsolete; use --with-x. |
# Obsolete; use --with-x. |
437 |
ac_prev=x_includes ;; |
ac_prev=x_includes ;; |
438 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
439 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
440 |
x_includes=$ac_optarg ;; |
x_includes="$ac_optarg" ;; |
441 |
|
|
442 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
443 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
444 |
ac_prev=x_libraries ;; |
ac_prev=x_libraries ;; |
445 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
446 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
447 |
x_libraries=$ac_optarg ;; |
x_libraries="$ac_optarg" ;; |
448 |
|
|
449 |
-*) { 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; }; } |
|
450 |
;; |
;; |
451 |
|
|
|
*=*) |
|
|
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 ;; |
|
|
|
|
452 |
*) |
*) |
453 |
# FIXME: should be removed in autoconf 3.0. |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
454 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
455 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
fi |
456 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
if test "x$nonopt" != xNONE; then |
457 |
: ${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; } |
458 |
|
fi |
459 |
|
nonopt="$ac_option" |
460 |
;; |
;; |
461 |
|
|
462 |
esac |
esac |
463 |
done |
done |
464 |
|
|
465 |
if test -n "$ac_prev"; then |
if test -n "$ac_prev"; then |
466 |
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; }; } |
|
467 |
fi |
fi |
468 |
|
|
469 |
# Be sure to have absolute paths. |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
470 |
for ac_var in exec_prefix prefix |
|
471 |
do |
# File descriptor usage: |
472 |
eval ac_val=$`echo $ac_var` |
# 0 standard input |
473 |
case $ac_val in |
# 1 file creation |
474 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
# 2 errors and warnings |
475 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
# 3 some systems may open it to /dev/tty |
476 |
{ (exit 1); exit 1; }; };; |
# 4 used on the Kubota Titan |
477 |
esac |
# 6 checking for... messages and results |
478 |
done |
# 5 compiler messages saved in config.log |
479 |
|
if test "$silent" = yes; then |
480 |
|
exec 6>/dev/null |
481 |
|
else |
482 |
|
exec 6>&1 |
483 |
|
fi |
484 |
|
exec 5>./config.log |
485 |
|
|
486 |
|
echo "\ |
487 |
|
This file contains any messages produced by compilers while |
488 |
|
running configure, to aid debugging if configure makes a mistake. |
489 |
|
" 1>&5 |
490 |
|
|
491 |
# Be sure to have absolute paths. |
# Strip out --no-create and --no-recursion so they do not pile up. |
492 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
# Also quote any args containing shell metacharacters. |
493 |
localstatedir libdir includedir oldincludedir infodir mandir |
ac_configure_args= |
494 |
|
for ac_arg |
495 |
do |
do |
496 |
eval ac_val=$`echo $ac_var` |
case "$ac_arg" in |
497 |
case $ac_val in |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
498 |
[\\/$]* | ?:[\\/]* ) ;; |
| --no-cr | --no-c) ;; |
499 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
500 |
{ (exit 1); exit 1; }; };; |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
501 |
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
502 |
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
503 |
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
504 |
esac |
esac |
505 |
done |
done |
506 |
|
|
507 |
# There might be people who depend on the old broken behavior: `$host' |
# NLS nuisances. |
508 |
# used to hold the argument of --host etc. |
# Only set these to C if already set. These must not be set unconditionally |
509 |
# FIXME: To remove some day. |
# because not all systems understand e.g. LANG=C (notably SCO). |
510 |
build=$build_alias |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
511 |
host=$host_alias |
# Non-C LC_CTYPE values break the ctype check. |
512 |
target=$target_alias |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
513 |
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
514 |
# FIXME: To remove some day. |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
515 |
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- |
|
516 |
|
|
517 |
test "$silent" = yes && exec 6>/dev/null |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
518 |
|
rm -rf conftest* confdefs.h |
519 |
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
520 |
|
echo > confdefs.h |
521 |
|
|
522 |
|
# A filename unique to this package, relative to the directory that |
523 |
|
# configure is in, which we can look for to find out if srcdir is correct. |
524 |
|
ac_unique_file= |
525 |
|
|
526 |
# Find the source files, if location was not specified. |
# Find the source files, if location was not specified. |
527 |
if test -z "$srcdir"; then |
if test -z "$srcdir"; then |
528 |
ac_srcdir_defaulted=yes |
ac_srcdir_defaulted=yes |
529 |
# Try the directory containing this script, then its parent. |
# Try the directory containing this script, then its parent. |
530 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
ac_prog=$0 |
531 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
532 |
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'` |
|
533 |
srcdir=$ac_confdir |
srcdir=$ac_confdir |
534 |
if test ! -r $srcdir/$ac_unique_file; then |
if test ! -r $srcdir/$ac_unique_file; then |
535 |
srcdir=.. |
srcdir=.. |
539 |
fi |
fi |
540 |
if test ! -r $srcdir/$ac_unique_file; then |
if test ! -r $srcdir/$ac_unique_file; then |
541 |
if test "$ac_srcdir_defaulted" = yes; then |
if test "$ac_srcdir_defaulted" = yes; then |
542 |
{ 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; } |
543 |
{ (exit 1); exit 1; }; } |
else |
544 |
|
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
545 |
|
fi |
546 |
|
fi |
547 |
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
548 |
|
|
549 |
|
# Prefer explicitly selected file to automatically selected ones. |
550 |
|
if test -z "$CONFIG_SITE"; then |
551 |
|
if test "x$prefix" != xNONE; then |
552 |
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
553 |
|
else |
554 |
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
555 |
|
fi |
556 |
|
fi |
557 |
|
for ac_site_file in $CONFIG_SITE; do |
558 |
|
if test -r "$ac_site_file"; then |
559 |
|
echo "loading site script $ac_site_file" |
560 |
|
. "$ac_site_file" |
561 |
|
fi |
562 |
|
done |
563 |
|
|
564 |
|
if test -r "$cache_file"; then |
565 |
|
echo "loading cache $cache_file" |
566 |
|
. $cache_file |
567 |
|
else |
568 |
|
echo "creating cache $cache_file" |
569 |
|
> $cache_file |
570 |
|
fi |
571 |
|
|
572 |
|
ac_ext=c |
573 |
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
574 |
|
ac_cpp='$CPP $CPPFLAGS' |
575 |
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
576 |
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
577 |
|
cross_compiling=$ac_cv_prog_cc_cross |
578 |
|
|
579 |
|
ac_exeext= |
580 |
|
ac_objext=o |
581 |
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
582 |
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
583 |
|
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
584 |
|
ac_n= ac_c=' |
585 |
|
' ac_t=' ' |
586 |
else |
else |
587 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ac_n=-n ac_c= ac_t= |
|
{ (exit 1); exit 1; }; } |
|
588 |
fi |
fi |
589 |
|
else |
590 |
|
ac_n= ac_c='\c' ac_t= |
591 |
fi |
fi |
592 |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
|
593 |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
|
594 |
{ (exit 1); exit 1; }; } |
|
595 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
|
596 |
ac_env_build_alias_set=${build_alias+set} |
VERSION=`cat majvers`.`cat minvers` |
597 |
ac_env_build_alias_value=$build_alias |
|
598 |
ac_cv_env_build_alias_set=${build_alias+set} |
|
599 |
ac_cv_env_build_alias_value=$build_alias |
# some parts of this configure script are taken from the tcl configure.in |
|
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 |
|
600 |
|
|
601 |
# |
# |
602 |
# Report the --help message. |
# Arguments |
603 |
# |
# |
|
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. |
|
604 |
|
|
605 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
# Check whether --enable-holediv or --disable-holediv was given. |
606 |
|
if test "${enable_holediv+set}" = set; then |
607 |
|
enableval="$enable_holediv" |
608 |
|
: |
609 |
|
else |
610 |
|
enable_holediv=4 |
611 |
|
fi |
612 |
|
|
613 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
cat >> confdefs.h <<EOF |
614 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
#define HOLEDIV $enable_holediv |
615 |
|
EOF |
616 |
|
|
|
Defaults for the options are specified in brackets. |
|
617 |
|
|
|
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 \`..'] |
|
618 |
|
|
619 |
_ACEOF |
# Check whether --enable-vssize or --disable-vssize was given. |
620 |
|
if test "${enable_vssize+set}" = set; then |
621 |
|
enableval="$enable_vssize" |
622 |
|
: |
623 |
|
else |
624 |
|
enable_vssize=131072 |
625 |
|
fi |
626 |
|
|
627 |
cat <<_ACEOF |
cat >> confdefs.h <<EOF |
628 |
Installation directories: |
#define VSSIZE $enable_vssize |
629 |
--prefix=PREFIX install architecture-independent files in PREFIX |
EOF |
|
[$ac_default_prefix] |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
|
[PREFIX] |
|
630 |
|
|
631 |
By default, \`make install' will install all the files in |
|
632 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
633 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
# Check whether --enable-bdssize or --disable-bdssize was given. |
634 |
for instance \`--prefix=\$HOME'. |
if test "${enable_bdssize+set}" = set; then |
635 |
|
enableval="$enable_bdssize" |
636 |
For better control, use the options below. |
: |
637 |
|
else |
638 |
Fine tuning of the installation directories: |
enable_bdssize=2048 |
|
--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 |
|
|
_ACEOF |
|
639 |
fi |
fi |
640 |
|
|
641 |
if test -n "$ac_init_help"; then |
cat >> confdefs.h <<EOF |
642 |
|
#define BDSSIZE $enable_bdssize |
643 |
|
EOF |
644 |
|
|
|
cat <<\_ACEOF |
|
645 |
|
|
|
Optional Packages: |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
|
--with-gcl=PATH defines location of gcl |
|
|
--with-mpicc=PATH if don't want built-in MPI, define path to mpicc |
|
646 |
|
|
647 |
Some influential environment variables: |
# Check whether --enable-ihssize or --disable-ihssize was given. |
648 |
CC C compiler command |
if test "${enable_ihssize+set}" = set; then |
649 |
CFLAGS C compiler flags |
enableval="$enable_ihssize" |
650 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
: |
651 |
nonstandard directory <lib dir> |
else |
652 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
enable_ihssize=4096 |
653 |
headers in a nonstandard directory <include dir> |
fi |
|
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 |
|
654 |
|
|
655 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
cat >> confdefs.h <<EOF |
656 |
# the directories may not exist. |
#define IHSSIZE $enable_ihssize |
657 |
case `pwd` in |
EOF |
|
.) ac_abs_builddir="$ac_dir";; |
|
|
*) |
|
|
case "$ac_dir" in |
|
|
.) ac_abs_builddir=`pwd`;; |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
|
|
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
|
|
esac;; |
|
|
esac |
|
|
case $ac_abs_builddir in |
|
|
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
|
*) |
|
|
case ${ac_top_builddir}. in |
|
|
.) ac_abs_top_builddir=$ac_abs_builddir;; |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
|
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
|
|
esac;; |
|
|
esac |
|
|
case $ac_abs_builddir in |
|
|
.) ac_abs_srcdir=$ac_srcdir;; |
|
|
*) |
|
|
case $ac_srcdir in |
|
|
.) ac_abs_srcdir=$ac_abs_builddir;; |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
|
|
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
|
|
esac;; |
|
|
esac |
|
|
case $ac_abs_builddir in |
|
|
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
|
*) |
|
|
case $ac_top_srcdir in |
|
|
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
|
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
|
|
esac;; |
|
|
esac |
|
658 |
|
|
659 |
cd $ac_dir |
|
660 |
# Check for guested configure; otherwise get Cygnus style configure. |
# Check whether --enable-frssize or --disable-frssize was given. |
661 |
if test -f $ac_srcdir/configure.gnu; then |
if test "${enable_frssize+set}" = set; then |
662 |
echo |
enableval="$enable_frssize" |
663 |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
: |
664 |
elif test -f $ac_srcdir/configure; then |
else |
665 |
echo |
enable_frssize=4096 |
|
$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 |
|
666 |
fi |
fi |
667 |
|
|
668 |
test -n "$ac_init_help" && exit 0 |
cat >> confdefs.h <<EOF |
669 |
if $ac_init_version; then |
#define FRSSIZE $enable_frssize |
670 |
cat <<\_ACEOF |
EOF |
671 |
|
|
672 |
Copyright (C) 2003 Free Software Foundation, Inc. |
|
673 |
This configure script is free software; the Free Software Foundation |
# Check whether --enable-cssize or --disable-cssize was given. |
674 |
gives unlimited permission to copy, distribute and modify it. |
if test "${enable_cssize+set}" = set; then |
675 |
_ACEOF |
enableval="$enable_cssize" |
676 |
exit 0 |
: |
677 |
|
else |
678 |
|
enable_cssize=1024*1024*2 |
679 |
fi |
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. |
|
680 |
|
|
681 |
It was created by $as_me, which was |
#AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize) |
682 |
generated by GNU Autoconf 2.59. Invocation command line was |
|
683 |
|
# Check whether --enable-machine or --disable-machine was given. |
684 |
|
if test "${enable_machine+set}" = set; then |
685 |
|
enableval="$enable_machine" |
686 |
|
enable_machine=$enableval |
687 |
|
else |
688 |
|
enable_machine="" |
689 |
|
fi |
690 |
|
|
|
$ $0 $@ |
|
691 |
|
|
692 |
_ACEOF |
# Check whether --enable-immfix or --disable-immfix was given. |
693 |
{ |
if test "${enable_immfix+set}" = set; then |
694 |
cat <<_ASUNAME |
enableval="$enable_immfix" |
695 |
## --------- ## |
: |
696 |
## Platform. ## |
else |
697 |
## --------- ## |
enable_immfix=yes |
698 |
|
fi |
|
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` |
|
699 |
|
|
|
_ASUNAME |
|
700 |
|
|
701 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
#AC_ARG_ENABLE(gmp,[ --enable-gmp=no will disable use of GMP gnu multiprecision arithmetic, (default is =yes)] , |
702 |
for as_dir in $PATH |
#[use_gmp=$enableval],[use_gmp="yes"]) |
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
echo "PATH: $as_dir" |
|
|
done |
|
703 |
|
|
704 |
} >&5 |
use_gmp="yes" |
705 |
|
|
706 |
cat >&5 <<_ACEOF |
# Check whether --enable-notify or --disable-notify was given. |
707 |
|
if test "${enable_notify+set}" = set; then |
708 |
|
enableval="$enable_notify" |
709 |
|
enable_notify=$enableval |
710 |
|
else |
711 |
|
enable_notify="yes" |
712 |
|
fi |
713 |
|
|
714 |
|
|
715 |
## ----------- ## |
# Check whether --enable-tkconfig or --disable-tkconfig was given. |
716 |
## Core tests. ## |
if test "${enable_tkconfig+set}" = set; then |
717 |
## ----------- ## |
enableval="$enable_tkconfig" |
718 |
|
TK_CONFIG_PREFIX=$enableval |
719 |
|
else |
720 |
|
TK_CONFIG_PREFIX="unknown" |
721 |
|
fi |
722 |
|
|
|
_ACEOF |
|
723 |
|
|
724 |
|
|
725 |
# Keep a trace of the command line. |
# Check whether --enable-tclconfig or --disable-tclconfig was given. |
726 |
# Strip out --no-create and --no-recursion so they do not pile up. |
if test "${enable_tclconfig+set}" = set; then |
727 |
# Strip out --silent because we don't want to record it for future runs. |
enableval="$enable_tclconfig" |
728 |
# Also quote any args containing shell meta-characters. |
TCL_CONFIG_PREFIX=$enableval |
729 |
# Make two passes to allow for proper duplicate-argument suppression. |
else |
730 |
ac_configure_args= |
TCL_CONFIG_PREFIX="unknown" |
731 |
ac_configure_args0= |
fi |
|
ac_configure_args1= |
|
|
ac_sep= |
|
|
ac_must_keep_next=false |
|
|
for ac_pass in 1 2 |
|
|
do |
|
|
for ac_arg |
|
|
do |
|
|
case $ac_arg in |
|
|
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
|
| -silent | --silent | --silen | --sile | --sil) |
|
|
continue ;; |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
|
|
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
esac |
|
|
case $ac_pass in |
|
|
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
|
|
2) |
|
|
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
|
|
if test $ac_must_keep_next = true; then |
|
|
ac_must_keep_next=false # Got value, back to normal. |
|
|
else |
|
|
case $ac_arg in |
|
|
*=* | --config-cache | -C | -disable-* | --disable-* \ |
|
|
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
|
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
|
| -with-* | --with-* | -without-* | --without-* | --x) |
|
|
case "$ac_configure_args0 " in |
|
|
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
|
esac |
|
|
;; |
|
|
-* ) ac_must_keep_next=true ;; |
|
|
esac |
|
|
fi |
|
|
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
|
|
# Get rid of the leading space. |
|
|
ac_sep=" " |
|
|
;; |
|
|
esac |
|
|
done |
|
|
done |
|
|
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
|
|
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
|
732 |
|
|
|
# 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 |
|
733 |
|
|
734 |
cat <<\_ASBOX |
# Check whether --enable-infodir or --disable-infodir was given. |
735 |
## ----------------- ## |
if test "${enable_infodir+set}" = set; then |
736 |
## Output variables. ## |
enableval="$enable_infodir" |
737 |
## ----------------- ## |
INFO_DIR=$enableval |
738 |
_ASBOX |
else |
739 |
echo |
INFO_DIR="unknown" |
740 |
for ac_var in $ac_subst_vars |
fi |
|
do |
|
|
eval ac_val=$`echo $ac_var` |
|
|
echo "$ac_var='"'"'$ac_val'"'"'" |
|
|
done | sort |
|
|
echo |
|
|
|
|
|
if test -n "$ac_subst_files"; then |
|
|
cat <<\_ASBOX |
|
|
## ------------- ## |
|
|
## Output files. ## |
|
|
## ------------- ## |
|
|
_ASBOX |
|
|
echo |
|
|
for ac_var in $ac_subst_files |
|
|
do |
|
|
eval ac_val=$`echo $ac_var` |
|
|
echo "$ac_var='"'"'$ac_val'"'"'" |
|
|
done | sort |
|
|
echo |
|
|
fi |
|
741 |
|
|
742 |
if test -s confdefs.h; then |
INFO_DIR=`eval echo $INFO_DIR/` |
|
cat <<\_ASBOX |
|
|
## ----------- ## |
|
|
## confdefs.h. ## |
|
|
## ----------- ## |
|
|
_ASBOX |
|
|
echo |
|
|
sed "/^$/d" confdefs.h | sort |
|
|
echo |
|
|
fi |
|
|
test "$ac_signal" != 0 && |
|
|
echo "$as_me: caught signal $ac_signal" |
|
|
echo "$as_me: exit $exit_status" |
|
|
} >&5 |
|
|
rm -f core *.core && |
|
|
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 |
|
743 |
|
|
744 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
# Check whether --enable-emacsdir or --disable-emacsdir was given. |
745 |
rm -rf conftest* confdefs.h |
if test "${enable_emacsdir+set}" = set; then |
746 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
enableval="$enable_emacsdir" |
747 |
echo >confdefs.h |
EMACS_SITE_LISP=$enableval |
748 |
|
else |
749 |
|
EMACS_SITE_LISP="unknown" |
750 |
|
fi |
751 |
|
|
752 |
# Predefined preprocessor variables. |
EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP` |
753 |
|
|
754 |
cat >>confdefs.h <<_ACEOF |
# Check whether --enable-common-binary or --disable-common-binary was given. |
755 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
if test "${enable_common_binary+set}" = set; then |
756 |
_ACEOF |
enableval="$enable_common_binary" |
757 |
|
use_common_binary=$enableval |
758 |
|
else |
759 |
|
use_common_binary="yes" |
760 |
|
fi |
761 |
|
|
762 |
|
|
763 |
cat >>confdefs.h <<_ACEOF |
# Check whether --enable-japi or --disable-japi was given. |
764 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
if test "${enable_japi+set}" = set; then |
765 |
_ACEOF |
enableval="$enable_japi" |
766 |
|
try_japi=$enableval |
767 |
|
else |
768 |
|
try_japi="no" |
769 |
|
fi |
770 |
|
|
771 |
|
|
772 |
cat >>confdefs.h <<_ACEOF |
# Check whether --enable-xdr or --disable-xdr was given. |
773 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
if test "${enable_xdr+set}" = set; then |
774 |
_ACEOF |
enableval="$enable_xdr" |
775 |
|
try_xdr=$enableval |
776 |
|
else |
777 |
|
try_xdr="no" |
778 |
|
fi |
779 |
|
|
780 |
|
|
781 |
cat >>confdefs.h <<_ACEOF |
# |
782 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
# Host information |
783 |
_ACEOF |
# |
784 |
|
|
785 |
|
|
786 |
cat >>confdefs.h <<_ACEOF |
ac_aux_dir= |
787 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
788 |
_ACEOF |
if test -f $ac_dir/install-sh; then |
789 |
|
ac_aux_dir=$ac_dir |
790 |
|
ac_install_sh="$ac_aux_dir/install-sh -c" |
791 |
|
break |
792 |
|
elif test -f $ac_dir/install.sh; then |
793 |
|
ac_aux_dir=$ac_dir |
794 |
|
ac_install_sh="$ac_aux_dir/install.sh -c" |
795 |
|
break |
796 |
|
fi |
797 |
|
done |
798 |
|
if test -z "$ac_aux_dir"; then |
799 |
|
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
800 |
|
fi |
801 |
|
ac_config_guess=$ac_aux_dir/config.guess |
802 |
|
ac_config_sub=$ac_aux_dir/config.sub |
803 |
|
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
804 |
|
|
805 |
|
|
806 |
|
# Make sure we can run config.sub. |
807 |
|
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
808 |
|
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
809 |
|
fi |
810 |
|
|
811 |
|
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
812 |
|
echo "configure:813: checking host system type" >&5 |
813 |
|
|
814 |
|
host_alias=$host |
815 |
|
case "$host_alias" in |
816 |
|
NONE) |
817 |
|
case $nonopt in |
818 |
|
NONE) |
819 |
|
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
820 |
|
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
821 |
|
fi ;; |
822 |
|
*) host_alias=$nonopt ;; |
823 |
|
esac ;; |
824 |
|
esac |
825 |
|
|
826 |
|
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
827 |
|
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
828 |
|
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
829 |
|
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
830 |
|
echo "$ac_t""$host" 1>&6 |
831 |
|
|
832 |
# Let the site file select an alternate cache file if it wants to. |
canonical=$host |
833 |
# Prefer explicitly selected file to automatically selected ones. |
my_host_kernel=`echo $host_os | awk '{j=split($1,A,"-");print A[1]}'` |
834 |
if test -z "$CONFIG_SITE"; then |
my_host_system=`echo $host_os | awk '{j=split($1,A,"-");if (j>=2) print A[2]}'` |
835 |
if test "x$prefix" != xNONE; then |
cat >> confdefs.h <<EOF |
836 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
#define HOST_CPU "`echo $host_cpu | awk '{print toupper($0)}'`" |
837 |
else |
EOF |
838 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
|
839 |
fi |
cat >> confdefs.h <<EOF |
840 |
fi |
#define HOST_KERNEL "`echo $my_host_kernel | awk '{print toupper($0)}'`" |
841 |
for ac_site_file in $CONFIG_SITE; do |
EOF |
842 |
if test -r "$ac_site_file"; then |
|
843 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
if test "$my_host_system" != "" ; then |
844 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
cat >> confdefs.h <<EOF |
845 |
sed 's/^/| /' "$ac_site_file" >&5 |
#define HOST_SYSTEM "`echo $my_host_system | awk '{print toupper($0)}'`" |
846 |
. "$ac_site_file" |
EOF |
|
fi |
|
|
done |
|
847 |
|
|
|
if test -r "$cache_file"; then |
|
|
# Some versions of bash will fail to source /dev/null (special |
|
|
# files actually), so we avoid doing that. |
|
|
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 |
|
|
else |
|
|
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
|
|
echo "$as_me: creating cache $cache_file" >&6;} |
|
|
>$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; }; } |
|
848 |
fi |
fi |
849 |
|
echo "$ac_t""host=$host" 1>&6 |
850 |
|
|
851 |
ac_ext=c |
PROCESSOR_FLAGS=${PROCESSOR_FLAGS:-""} |
852 |
ac_cpp='$CPP $CPPFLAGS' |
LD_STACK_FLAGS="" |
|
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 |
|
853 |
|
|
854 |
|
use=unknown |
855 |
|
TLDFLAGS="" |
856 |
|
case $canonical in |
857 |
|
older) |
858 |
|
use=386-bsd;; |
859 |
|
|
860 |
|
*x86_64*linux*) |
861 |
|
use=amd64-linux;; |
862 |
|
|
863 |
|
*86*linux*) |
864 |
|
use=386-linux;; |
865 |
|
|
866 |
|
# m6800 not working with gcc-3.2 |
867 |
|
m68k*linux*) |
868 |
|
if test "$use_common_binary" = "yes"; then |
869 |
|
host=m68020-unknown-linux-gnu |
870 |
|
echo "The host is canonicalised to $host" |
871 |
|
fi |
872 |
|
use=m68k-linux;; |
873 |
|
|
874 |
|
alpha*linux*) |
875 |
|
use=alpha-linux;; |
876 |
|
|
877 |
|
mips*linux*) |
878 |
|
use=mips-linux;; |
879 |
|
|
880 |
|
mipsel*linux*) |
881 |
|
use=mipsel-linux;; |
882 |
|
|
883 |
|
sparc*linux*) |
884 |
|
use=sparc-linux;; |
885 |
|
|
886 |
|
arm*linux*) |
887 |
|
use=arm-linux;; |
888 |
|
|
889 |
|
s390*linux*) |
890 |
|
use=s390-linux;; |
891 |
|
|
892 |
|
ia64*linux*) |
893 |
|
use=ia64-linux;; |
894 |
|
|
895 |
|
hppa*linux*) |
896 |
|
use=hppa-linux;; |
897 |
|
|
898 |
|
powerpc*linux*) |
899 |
|
use=powerpc-linux;; |
900 |
|
|
901 |
|
powerpc-*-darwin*) |
902 |
|
use=powerpc-macosx;; |
903 |
|
|
904 |
|
alpha-dec-osf) |
905 |
|
use=alpha-osf1;; |
906 |
|
|
907 |
|
mips-dec-ultrix) |
908 |
|
use=dec3100;; |
909 |
|
|
910 |
|
old) |
911 |
|
use=dos-go32;; |
912 |
|
|
913 |
|
*86*-freebsd*) |
914 |
|
use=FreeBSD;; |
915 |
|
|
916 |
|
hp3*-*hpux*) |
917 |
|
use=hp300;; |
918 |
|
|
919 |
|
hp3*-*-*bsd*) |
920 |
|
use=hp300-bsd;; |
921 |
|
|
922 |
PARGCL_VERSION=0.9.3-beta1 |
hppa*-*hpux*) |
923 |
PARGCL_UPDATED="June, 2005" |
use=hp800;; |
924 |
|
|
925 |
ac_ext=c |
mips-sgi-irix) |
926 |
ac_cpp='$CPP $CPPFLAGS' |
case $system in |
927 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
IRIX5*) |
928 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
use=irix5;; |
929 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
IRIX6*) |
930 |
if test -n "$ac_tool_prefix"; then |
use=irix6;; |
931 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
IRIX3*) |
932 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
use=sgi4d;; |
933 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
esac ;; |
934 |
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 |
|
935 |
|
|
936 |
fi |
m68k-apple-aux*) |
937 |
fi |
use=mac2;; |
938 |
CC=$ac_cv_prog_CC |
|
939 |
if test -n "$CC"; then |
old) |
940 |
echo "$as_me:$LINENO: result: $CC" >&5 |
use=mp386;; |
941 |
echo "${ECHO_T}$CC" >&6 |
|
942 |
|
*86-ncr-sysv4) |
943 |
|
use=ncr;; |
944 |
|
|
945 |
|
*3-986-*netbsd*) |
946 |
|
use=NetBSD;; |
947 |
|
|
948 |
|
old) |
949 |
|
use=NeXT;; |
950 |
|
|
951 |
|
old) |
952 |
|
use=NeXT30-m68k;; |
953 |
|
|
954 |
|
*86-*nextstep*) |
955 |
|
use=NeXT32-i386;; |
956 |
|
|
957 |
|
*m68*-*nextstep*) |
958 |
|
use=NeXT32-m68k;; |
959 |
|
|
960 |
|
*rs6000-*-aix4*) |
961 |
|
use=rios;; |
962 |
|
|
963 |
|
*rs6000-*-aix3*) |
964 |
|
use=rios-aix3;; |
965 |
|
|
966 |
|
old) |
967 |
|
use=rt_aix;; |
968 |
|
|
969 |
|
old) |
970 |
|
use=sgi;; |
971 |
|
|
972 |
|
sparc-sun-solaris*) |
973 |
|
use=solaris;; |
974 |
|
|
975 |
|
i?86-pc-solaris*) |
976 |
|
use=solaris-i386;; |
977 |
|
|
978 |
|
old) |
979 |
|
use=sun2r3;; |
980 |
|
|
981 |
|
old) |
982 |
|
use=sun3;; |
983 |
|
|
984 |
|
m68*-sunos*) |
985 |
|
use=sun3-os4;; |
986 |
|
|
987 |
|
old) |
988 |
|
use=sun386i;; |
989 |
|
|
990 |
|
sparc*sunos*) |
991 |
|
use=sun4;; |
992 |
|
|
993 |
|
*86-sequent-dynix) |
994 |
|
use=symmetry;; |
995 |
|
|
996 |
|
u370*aix) |
997 |
|
use=u370_aix;; |
998 |
|
|
999 |
|
old) |
1000 |
|
use=vax;; |
1001 |
|
|
1002 |
|
i*mingw*) |
1003 |
|
if test "$use_common_binary" = "yes"; then |
1004 |
|
host=i386-pc-mingw32 |
1005 |
|
PROCESSOR_FLAGS="-march=i686 -mfpmath=387" |
1006 |
|
echo "The host is canonicalised to $host" |
1007 |
|
fi |
1008 |
|
# If we have set the C stack size on the command line then send them to |
1009 |
|
# the linker. Set a default otherwise of 2 Mbytes (Windows default). |
1010 |
|
if test "$enable_cssize" == "" ; then |
1011 |
|
enable_cssize=1024*1024*2 |
1012 |
|
fi |
1013 |
|
use=mingw;; |
1014 |
|
|
1015 |
|
i*cygwin*) |
1016 |
|
if $CC -v 2>&1 | fgrep ming > /dev/null ; |
1017 |
|
then use=mingw |
1018 |
|
else use=gnuwin95 |
1019 |
|
fi;; |
1020 |
|
|
1021 |
|
*openbsd*) |
1022 |
|
# 'ld -Z' means disable W^X |
1023 |
|
TLDFLAGS="$TLDFLAGS -Z" |
1024 |
|
use=FreeBSD;; |
1025 |
|
|
1026 |
|
esac |
1027 |
|
|
1028 |
|
|
1029 |
|
|
1030 |
|
echo enable_machine=$enable_machine |
1031 |
|
if test "x$enable_machine" != "x" ; then |
1032 |
|
use=$enable_machine |
1033 |
|
fi |
1034 |
|
|
1035 |
|
def_dlopen="no" |
1036 |
|
def_statsysbfd="yes" |
1037 |
|
def_custreloc="no" |
1038 |
|
def_locbfd="no" |
1039 |
|
def_pic="no"; |
1040 |
|
def_static="no"; |
1041 |
|
case $use in |
1042 |
|
*linux) |
1043 |
|
ln -snf linux.defs h/$use.defs; |
1044 |
|
case $use in |
1045 |
|
# alpha*) |
1046 |
|
# def_dlopen="yes" ; def_statsysbfd="no" ;; |
1047 |
|
# MIPS bfd support added 20050407 CM |
1048 |
|
# mips*) |
1049 |
|
# def_dlopen="yes" ; def_statsysbfd="no" ;; |
1050 |
|
# def_static -- Function descriptors are currently realized at runtime in a non-reproducible fashion |
1051 |
|
# on these architectures -- CM |
1052 |
|
ia64*) |
1053 |
|
def_dlopen="yes" ; def_statsysbfd="no" ;; |
1054 |
|
hppa*) |
1055 |
|
def_dlopen="yes" ; def_statsysbfd="no" ; def_pic="yes" ; def_debug="yes" ;; |
1056 |
|
esac;; |
1057 |
|
*mingw*) |
1058 |
|
def_statsysbfd="no" ; def_custreloc="yes" ;; |
1059 |
|
powerpc-macosx) |
1060 |
|
def_statsysbfd="no" ; def_custreloc="yes" ;; |
1061 |
|
esac |
1062 |
|
|
1063 |
|
# Check whether --enable-dlopen or --disable-dlopen was given. |
1064 |
|
if test "${enable_dlopen+set}" = set; then |
1065 |
|
enableval="$enable_dlopen" |
1066 |
|
: |
1067 |
else |
else |
1068 |
echo "$as_me:$LINENO: result: no" >&5 |
enable_dlopen="$def_dlopen" |
|
echo "${ECHO_T}no" >&6 |
|
1069 |
fi |
fi |
1070 |
|
|
1071 |
fi |
# Check whether --enable-statsysbfd or --disable-statsysbfd was given. |
1072 |
if test -z "$ac_cv_prog_CC"; then |
if test "${enable_statsysbfd+set}" = set; then |
1073 |
ac_ct_CC=$CC |
enableval="$enable_statsysbfd" |
1074 |
# Extract the first word of "gcc", so it can be a program name with args. |
: |
|
set dummy 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_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. |
|
1075 |
else |
else |
1076 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
enable_statsysbfd="$def_statsysbfd" |
|
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 |
|
|
|
|
1077 |
fi |
fi |
1078 |
|
|
1079 |
|
# Check whether --enable-dynsysbfd or --disable-dynsysbfd was given. |
1080 |
|
if test "${enable_dynsysbfd+set}" = set; then |
1081 |
|
enableval="$enable_dynsysbfd" |
1082 |
|
: |
1083 |
|
else |
1084 |
|
enable_dynsysbfd="no" |
1085 |
fi |
fi |
1086 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
1087 |
if test -n "$ac_ct_CC"; then |
# Check whether --enable-locbfd or --disable-locbfd was given. |
1088 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
if test "${enable_locbfd+set}" = set; then |
1089 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
enableval="$enable_locbfd" |
1090 |
|
: |
1091 |
else |
else |
1092 |
echo "$as_me:$LINENO: result: no" >&5 |
enable_locbfd="$def_locbfd" |
|
echo "${ECHO_T}no" >&6 |
|
1093 |
fi |
fi |
1094 |
|
|
1095 |
CC=$ac_ct_CC |
# Check whether --enable-custreloc or --disable-custreloc was given. |
1096 |
|
if test "${enable_custreloc+set}" = set; then |
1097 |
|
enableval="$enable_custreloc" |
1098 |
|
: |
1099 |
else |
else |
1100 |
CC="$ac_cv_prog_CC" |
enable_custreloc="$def_custreloc" |
1101 |
fi |
fi |
1102 |
|
|
1103 |
if test -z "$CC"; then |
# Check whether --enable-debug or --disable-debug was given. |
1104 |
if test -n "$ac_tool_prefix"; then |
if test "${enable_debug+set}" = set; then |
1105 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
enableval="$enable_debug" |
1106 |
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 |
|
1107 |
else |
else |
1108 |
if test -n "$CC"; then |
enable_debug="$def_debug" |
1109 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
fi |
1110 |
|
|
1111 |
|
# Check whether --enable-gprof or --disable-gprof was given. |
1112 |
|
if test "${enable_gprof+set}" = set; then |
1113 |
|
enableval="$enable_gprof" |
1114 |
|
: |
1115 |
else |
else |
1116 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
enable_gprof="no" |
1117 |
for as_dir in $PATH |
fi |
|
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}cc" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
1118 |
|
|
1119 |
|
# Check whether --enable-static or --disable-static was given. |
1120 |
|
if test "${enable_static+set}" = set; then |
1121 |
|
enableval="$enable_static" |
1122 |
|
enable_static=$enableval |
1123 |
|
else |
1124 |
|
enable_static="$def_static" |
1125 |
fi |
fi |
1126 |
|
|
1127 |
|
# Check whether --enable-pic or --disable-pic was given. |
1128 |
|
if test "${enable_pic+set}" = set; then |
1129 |
|
enableval="$enable_pic" |
1130 |
|
: |
1131 |
|
else |
1132 |
|
enable_pic="$def_pic" |
1133 |
fi |
fi |
1134 |
CC=$ac_cv_prog_CC |
|
1135 |
if test -n "$CC"; then |
|
1136 |
echo "$as_me:$LINENO: result: $CC" >&5 |
# Check whether --enable-dynsysgmp or --disable-dynsysgmp was given. |
1137 |
echo "${ECHO_T}$CC" >&6 |
if test "${enable_dynsysgmp+set}" = set; then |
1138 |
|
enableval="$enable_dynsysgmp" |
1139 |
|
: |
1140 |
else |
else |
1141 |
echo "$as_me:$LINENO: result: no" >&5 |
enable_dynsysgmp="yes" |
|
echo "${ECHO_T}no" >&6 |
|
1142 |
fi |
fi |
1143 |
|
|
1144 |
|
|
1145 |
|
load_opt="0" |
1146 |
|
if test "$enable_dlopen" = "yes" ; then |
1147 |
|
load_opt=1 |
1148 |
|
fi |
1149 |
|
if test "$enable_statsysbfd" = "yes" ; then |
1150 |
|
case $load_opt in |
1151 |
|
0) load_opt=1;; |
1152 |
|
1) load_opt=2;; |
1153 |
|
esac |
1154 |
|
fi |
1155 |
|
if test "$enable_dynsysbfd" = "yes" ; then |
1156 |
|
case $load_opt in |
1157 |
|
0) load_opt=1;; |
1158 |
|
1) load_opt=2;; |
1159 |
|
2) load_opt=3;; |
1160 |
|
esac |
1161 |
|
fi |
1162 |
|
if test "$enable_locbfd" = "yes" ; then |
1163 |
|
case $load_opt in |
1164 |
|
0) load_opt=1;; |
1165 |
|
1) load_opt=2;; |
1166 |
|
2) load_opt=3;; |
1167 |
|
3) load_opt=4;; |
1168 |
|
esac |
1169 |
|
fi |
1170 |
|
if test "$enable_custreloc" = "yes" ; then |
1171 |
|
case $load_opt in |
1172 |
|
0) load_opt=1;; |
1173 |
|
1) load_opt=2;; |
1174 |
|
2) load_opt=3;; |
1175 |
|
3) load_opt=4;; |
1176 |
|
4) load_opt=5;; |
1177 |
|
esac |
1178 |
|
fi |
1179 |
|
|
1180 |
|
if test "$load_opt" != "1" ; then |
1181 |
|
echo "Exactly one loader option must be chosen: dlopen=$enable_dlopen statsysbfd=$enable_statsysbfd dynsysbfd=$enable_dynsysbfd locbfd=$enable_locbfd custreloc=$enable_custreloc" |
1182 |
|
exit 1 |
1183 |
|
fi |
1184 |
|
|
1185 |
|
TLIBS="" |
1186 |
|
if test "$enable_static" = "yes" ; then |
1187 |
|
TLIBS="-static -Wl,-zmuldefs $TLIBS"; |
1188 |
|
cat >> confdefs.h <<\EOF |
1189 |
|
#define STATIC_LINKING 1 |
1190 |
|
EOF |
1191 |
|
|
1192 |
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 |
|
1193 |
|
|
1194 |
|
## finally warn if we did not find a recognized machine.s |
1195 |
|
## |
1196 |
|
#if test "$use" = "unknown" ; then |
1197 |
|
#types=`echo h/*.defs` | sed -e "s:h/::g" -e "s:\.defs:g"` |
1198 |
|
#echo got canonical=$canonical, but was not recognized. |
1199 |
|
#echo Unable to guess type to use. Try one of |
1200 |
|
#exit(1) |
1201 |
|
#fi |
1202 |
|
|
1203 |
|
echo "$ac_t""use=$use" 1>&6 |
1204 |
|
|
1205 |
|
|
1206 |
|
# |
1207 |
|
# System programs |
1208 |
|
# |
1209 |
|
|
1210 |
|
# We set the default CFLAGS below, and don't want the autoconf default |
1211 |
|
# CM 20040106 |
1212 |
|
if test "$CFLAGS" = "" ; then |
1213 |
|
CFLAGS=" " |
1214 |
fi |
fi |
1215 |
|
if test "$LDFLAGS" = "" ; then |
1216 |
|
LDFLAGS=" " |
1217 |
fi |
fi |
1218 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
1219 |
if test -n "$ac_ct_CC"; then |
# Extract the first word of "gcc", so it can be a program name with args. |
1220 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
set dummy gcc; ac_word=$2 |
1221 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1222 |
|
echo "configure:1223: checking for $ac_word" >&5 |
1223 |
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1224 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1225 |
else |
else |
1226 |
echo "$as_me:$LINENO: result: no" >&5 |
if test -n "$CC"; then |
1227 |
echo "${ECHO_T}no" >&6 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1228 |
|
else |
1229 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1230 |
|
ac_dummy="$PATH" |
1231 |
|
for ac_dir in $ac_dummy; do |
1232 |
|
test -z "$ac_dir" && ac_dir=. |
1233 |
|
if test -f $ac_dir/$ac_word; then |
1234 |
|
ac_cv_prog_CC="gcc" |
1235 |
|
break |
1236 |
|
fi |
1237 |
|
done |
1238 |
|
IFS="$ac_save_ifs" |
1239 |
fi |
fi |
1240 |
|
fi |
1241 |
CC=$ac_ct_CC |
CC="$ac_cv_prog_CC" |
1242 |
|
if test -n "$CC"; then |
1243 |
|
echo "$ac_t""$CC" 1>&6 |
1244 |
else |
else |
1245 |
CC="$ac_cv_prog_CC" |
echo "$ac_t""no" 1>&6 |
1246 |
fi |
fi |
1247 |
|
|
|
fi |
|
1248 |
if test -z "$CC"; then |
if test -z "$CC"; then |
1249 |
# 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. |
1250 |
set dummy cc; ac_word=$2 |
set dummy cc; ac_word=$2 |
1251 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1252 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo "configure:1253: checking for $ac_word" >&5 |
1253 |
if test "${ac_cv_prog_CC+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1254 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1255 |
else |
else |
1256 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1257 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1258 |
else |
else |
1259 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1260 |
ac_prog_rejected=no |
ac_prog_rejected=no |
1261 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
ac_dummy="$PATH" |
1262 |
for as_dir in $PATH |
for ac_dir in $ac_dummy; do |
1263 |
do |
test -z "$ac_dir" && ac_dir=. |
1264 |
IFS=$as_save_IFS |
if test -f $ac_dir/$ac_word; then |
1265 |
test -z "$as_dir" && as_dir=. |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
1266 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_prog_rejected=yes |
1267 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
continue |
1268 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
fi |
1269 |
ac_prog_rejected=yes |
ac_cv_prog_CC="cc" |
1270 |
continue |
break |
1271 |
fi |
fi |
1272 |
ac_cv_prog_CC="cc" |
done |
1273 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
IFS="$ac_save_ifs" |
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1274 |
if test $ac_prog_rejected = yes; then |
if test $ac_prog_rejected = yes; then |
1275 |
# 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. |
1276 |
set dummy $ac_cv_prog_CC |
set dummy $ac_cv_prog_CC |
1277 |
shift |
shift |
1278 |
if test $# != 0; then |
if test $# -gt 0; then |
1279 |
# We chose a different compiler from the bogus one. |
# We chose a different compiler from the bogus one. |
1280 |
# However, it has the same basename, so the bogon will be chosen |
# However, it has the same basename, so the bogon will be chosen |
1281 |
# 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. |
1282 |
shift |
shift |
1283 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
set dummy "$ac_dir/$ac_word" "$@" |
1284 |
|
shift |
1285 |
|
ac_cv_prog_CC="$@" |
1286 |
fi |
fi |
1287 |
fi |
fi |
1288 |
fi |
fi |
1289 |
fi |
fi |
1290 |
CC=$ac_cv_prog_CC |
CC="$ac_cv_prog_CC" |
1291 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1292 |
echo "$as_me:$LINENO: result: $CC" >&5 |
echo "$ac_t""$CC" 1>&6 |
|
echo "${ECHO_T}$CC" >&6 |
|
1293 |
else |
else |
1294 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
1295 |
fi |
fi |
1296 |
|
|
1297 |
fi |
if test -z "$CC"; then |
1298 |
if test -z "$CC"; then |
case "`uname -s`" in |
1299 |
if test -n "$ac_tool_prefix"; then |
*win32* | *WIN32*) |
1300 |
for ac_prog in cl |
# Extract the first word of "cl", so it can be a program name with args. |
1301 |
do |
set dummy cl; ac_word=$2 |
1302 |
# 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 |
1303 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
echo "configure:1304: checking for $ac_word" >&5 |
1304 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1305 |
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 |
|
1306 |
else |
else |
1307 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1308 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1309 |
else |
else |
1310 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1311 |
for as_dir in $PATH |
ac_dummy="$PATH" |
1312 |
do |
for ac_dir in $ac_dummy; do |
1313 |
IFS=$as_save_IFS |
test -z "$ac_dir" && ac_dir=. |
1314 |
test -z "$as_dir" && as_dir=. |
if test -f $ac_dir/$ac_word; then |
1315 |
for ac_exec_ext in '' $ac_executable_extensions; do |
ac_cv_prog_CC="cl" |
1316 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
break |
1317 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
fi |
1318 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
done |
1319 |
break 2 |
IFS="$ac_save_ifs" |
|
fi |
|
|
done |
|
|
done |
|
|
|
|
1320 |
fi |
fi |
1321 |
fi |
fi |
1322 |
CC=$ac_cv_prog_CC |
CC="$ac_cv_prog_CC" |
1323 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1324 |
echo "$as_me:$LINENO: result: $CC" >&5 |
echo "$ac_t""$CC" 1>&6 |
|
echo "${ECHO_T}$CC" >&6 |
|
1325 |
else |
else |
1326 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""no" 1>&6 |
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
test -n "$CC" && break |
|
|
done |
|
1327 |
fi |
fi |
1328 |
if test -z "$CC"; then |
;; |
1329 |
ac_ct_CC=$CC |
esac |
|
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 |
|
1330 |
fi |
fi |
1331 |
done |
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
if test -n "$ac_ct_CC"; then |
|
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
test -n "$ac_ct_CC" && break |
|
|
done |
|
|
|
|
|
CC=$ac_ct_CC |
|
|
fi |
|
|
|
|
1332 |
fi |
fi |
1333 |
|
|
1334 |
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1335 |
|
echo "configure:1336: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1336 |
|
|
1337 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
ac_ext=c |
1338 |
See \`config.log' for more details." >&5 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1339 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
ac_cpp='$CPP $CPPFLAGS' |
1340 |
See \`config.log' for more details." >&2;} |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1341 |
{ (exit 1); exit 1; }; } |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1342 |
|
cross_compiling=$ac_cv_prog_cc_cross |
1343 |
# Provide some information about the compiler. |
|
1344 |
echo "$as_me:$LINENO:" \ |
cat > conftest.$ac_ext << EOF |
1345 |
"checking for C compiler version" >&5 |
|
1346 |
ac_compiler=`set X $ac_compile; echo $2` |
#line 1347 "configure" |
1347 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
#include "confdefs.h" |
1348 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
1349 |
ac_status=$? |
main(){return(0);} |
1350 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
EOF |
1351 |
(exit $ac_status); } |
if { (eval echo configure:1352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1352 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
ac_cv_prog_cc_works=yes |
1353 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
# If we can't run a trivial program, we are probably using a cross compiler. |
1354 |
ac_status=$? |
if (./conftest; exit) 2>/dev/null; then |
1355 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ac_cv_prog_cc_cross=no |
|
(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 |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
ac_clean_files_save=$ac_clean_files |
|
|
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
|
|
# Try to create an executable without -o first, disregard a.out. |
|
|
# It will help us diagnose broken compilers, and finding out an intuition |
|
|
# of exeext. |
|
|
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
|
|
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
|
|
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
|
|
(eval $ac_link_default) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; then |
|
|
# Find the output, starting from the most likely. This scheme is |
|
|
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
|
|
# resort. |
|
|
|
|
|
# Be careful to initialize this variable, since it used to be cached. |
|
|
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
|
|
ac_cv_exeext= |
|
|
# b.out is created by i960 compilers. |
|
|
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
|
|
do |
|
|
test -f "$ac_file" || continue |
|
|
case $ac_file in |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
|
|
;; |
|
|
conftest.$ac_ext ) |
|
|
# This is the source file. |
|
|
;; |
|
|
[ab].out ) |
|
|
# We found the default executable, but exeext='' is most |
|
|
# certainly right. |
|
|
break;; |
|
|
*.* ) |
|
|
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
|
# FIXME: I believe we export ac_cv_exeext for Libtool, |
|
|
# but it would be cool to find out if it's true. Does anybody |
|
|
# maintain Libtool? --akim. |
|
|
export ac_cv_exeext |
|
|
break;; |
|
|
* ) |
|
|
break;; |
|
|
esac |
|
|
done |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
|
|
See \`config.log' for more details." >&5 |
|
|
echo "$as_me: error: C compiler cannot create executables |
|
|
See \`config.log' for more details." >&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 |
|
1356 |
else |
else |
1357 |
if test "$cross_compiling" = maybe; then |
ac_cv_prog_cc_cross=yes |
|
cross_compiling=yes |
|
|
else |
|
|
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
|
|
If you meant to cross compile, use \`--host'. |
|
|
See \`config.log' for more details." >&5 |
|
|
echo "$as_me: error: cannot run C compiled programs. |
|
|
If you meant to cross compile, use \`--host'. |
|
|
See \`config.log' for more details." >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
1358 |
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 b.out |
|
|
ac_clean_files=$ac_clean_files_save |
|
|
# Check the compiler produces executables we can run. If not, either |
|
|
# the compiler is broken, or we cross compile. |
|
|
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 conftest.exe conftest conftest.*; do |
|
|
test -f "$ac_file" || continue |
|
|
case $ac_file in |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
|
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
|
export ac_cv_exeext |
|
|
break;; |
|
|
* ) break;; |
|
|
esac |
|
|
done |
|
1359 |
else |
else |
1360 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
echo "configure: failed program was:" >&5 |
1361 |
See \`config.log' for more details." >&5 |
cat conftest.$ac_ext >&5 |
1362 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ac_cv_prog_cc_works=no |
1363 |
See \`config.log' for more details." >&2;} |
fi |
1364 |
{ (exit 1); exit 1; }; } |
rm -fr conftest* |
1365 |
fi |
ac_ext=c |
1366 |
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1367 |
rm -f conftest$ac_cv_exeext |
ac_cpp='$CPP $CPPFLAGS' |
1368 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1369 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1370 |
|
cross_compiling=$ac_cv_prog_cc_cross |
|
rm -f conftest.$ac_ext |
|
|
EXEEXT=$ac_cv_exeext |
|
|
ac_exeext=$EXEEXT |
|
|
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
|
|
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
|
|
if test "${ac_cv_objext+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
1371 |
|
|
1372 |
int |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1373 |
main () |
if test $ac_cv_prog_cc_works = no; then |
1374 |
{ |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1375 |
|
fi |
1376 |
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1377 |
|
echo "configure:1378: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1378 |
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1379 |
|
cross_compiling=$ac_cv_prog_cc_cross |
1380 |
|
|
1381 |
; |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1382 |
return 0; |
echo "configure:1383: checking whether we are using GNU C" >&5 |
1383 |
} |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1384 |
_ACEOF |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
rm -f conftest.o conftest.obj |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; then |
|
|
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
|
|
case $ac_file in |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
|
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
|
break;; |
|
|
esac |
|
|
done |
|
1385 |
else |
else |
1386 |
echo "$as_me: failed program was:" >&5 |
cat > conftest.c <<EOF |
1387 |
sed 's/^/| /' conftest.$ac_ext >&5 |
#ifdef __GNUC__ |
1388 |
|
yes; |
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
|
|
See \`config.log' for more details." >&5 |
|
|
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
|
|
See \`config.log' for more details." >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
|
|
|
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
|
|
echo "${ECHO_T}$ac_cv_objext" >&6 |
|
|
OBJEXT=$ac_cv_objext |
|
|
ac_objext=$OBJEXT |
|
|
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
|
|
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
|
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
#ifndef __GNUC__ |
|
|
choke me |
|
1389 |
#endif |
#endif |
1390 |
|
EOF |
1391 |
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1392 |
|
ac_cv_prog_gcc=yes |
1393 |
|
else |
1394 |
|
ac_cv_prog_gcc=no |
1395 |
|
fi |
1396 |
|
fi |
1397 |
|
|
1398 |
; |
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>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_compiler_gnu=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_compiler_gnu=no |
|
|
fi |
|
|
rm -f conftest.err 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 |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
1399 |
|
|
1400 |
int |
if test $ac_cv_prog_gcc = yes; then |
1401 |
main () |
GCC=yes |
1402 |
{ |
else |
1403 |
|
GCC= |
1404 |
|
fi |
1405 |
|
|
1406 |
; |
ac_test_CFLAGS="${CFLAGS+set}" |
1407 |
return 0; |
ac_save_CFLAGS="$CFLAGS" |
1408 |
} |
CFLAGS= |
1409 |
_ACEOF |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1410 |
rm -f conftest.$ac_objext |
echo "configure:1411: checking whether ${CC-cc} accepts -g" >&5 |
1411 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1412 |
(eval $ac_compile) 2>conftest.er1 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1413 |
ac_status=$? |
else |
1414 |
grep -v '^ *+' conftest.er1 >conftest.err |
echo 'void f(){}' > conftest.c |
1415 |
rm -f conftest.er1 |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ 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 |
|
1416 |
ac_cv_prog_cc_g=yes |
ac_cv_prog_cc_g=yes |
1417 |
else |
else |
1418 |
echo "$as_me: failed program was:" >&5 |
ac_cv_prog_cc_g=no |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_prog_cc_g=no |
|
1419 |
fi |
fi |
1420 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
rm -f conftest* |
1421 |
|
|
1422 |
fi |
fi |
1423 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
1424 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
1425 |
if test "$ac_test_CFLAGS" = set; then |
if test "$ac_test_CFLAGS" = set; then |
1426 |
CFLAGS=$ac_save_CFLAGS |
CFLAGS="$ac_save_CFLAGS" |
1427 |
elif test $ac_cv_prog_cc_g = yes; then |
elif test $ac_cv_prog_cc_g = yes; then |
1428 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
1429 |
CFLAGS="-g -O2" |
CFLAGS="-g -O2" |
1437 |
CFLAGS= |
CFLAGS= |
1438 |
fi |
fi |
1439 |
fi |
fi |
|
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
|
|
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_cv_prog_cc_stdc=no |
|
|
ac_save_CC=$CC |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stdarg.h> |
|
|
#include <stdio.h> |
|
|
#include <sys/types.h> |
|
|
#include <sys/stat.h> |
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
|
struct buf { int x; }; |
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
static char *e (p, i) |
|
|
char **p; |
|
|
int i; |
|
|
{ |
|
|
return p[i]; |
|
|
} |
|
|
static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
{ |
|
|
char *s; |
|
|
va_list v; |
|
|
va_start (v,p); |
|
|
s = g (p, va_arg (v,int)); |
|
|
va_end (v); |
|
|
return s; |
|
|
} |
|
1440 |
|
|
1441 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1442 |
function prototypes and stuff, but not '\xHH' hex character constants. |
echo "configure:1443: checking how to run the C preprocessor" >&5 |
1443 |
These don't provoke an error unfortunately, instead are silently treated |
# On Suns, sometimes $CPP names a directory. |
1444 |
as 'x'. The following induces an error, until -std1 is added to get |
if test -n "$CPP" && test -d "$CPP"; then |
1445 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
CPP= |
1446 |
array size at least. It's necessary to write '\x00'==0 to get something |
fi |
1447 |
that's true only with -std1. */ |
if test -z "$CPP"; then |
1448 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
1449 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1450 |
int test (int i, double x); |
else |
1451 |
struct s1 {int (*f) (int a);}; |
# This must be in double quotes, not single quotes, because CPP may get |
1452 |
struct s2 {int (*f) (double a);}; |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
1453 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
CPP="${CC-cc} -E" |
1454 |
int argc; |
# On the NeXT, cc -E runs the code through the compiler's parser, |
1455 |
char **argv; |
# not just through cpp. |
1456 |
int |
cat > conftest.$ac_ext <<EOF |
1457 |
main () |
#line 1458 "configure" |
1458 |
{ |
#include "confdefs.h" |
1459 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
#include <assert.h> |
1460 |
; |
Syntax Error |
1461 |
return 0; |
EOF |
1462 |
} |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1463 |
_ACEOF |
{ (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1464 |
# Don't try gcc -ansi; that turns off useful extensions and |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1465 |
# breaks some systems' header files. |
if test -z "$ac_err"; then |
1466 |
# AIX -qlanglvl=ansi |
: |
1467 |
# Ultrix and OSF/1 -std1 |
else |
1468 |
# HP-UX 10.20 and later -Ae |
echo "$ac_err" >&5 |
1469 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
echo "configure: failed program was:" >&5 |
1470 |
# SVR4 -Xc -D__EXTENSIONS__ |
cat conftest.$ac_ext >&5 |
1471 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
rm -rf conftest* |
1472 |
do |
CPP="${CC-cc} -E -traditional-cpp" |
1473 |
CC="$ac_save_CC $ac_arg" |
cat > conftest.$ac_ext <<EOF |
1474 |
rm -f conftest.$ac_objext |
#line 1475 "configure" |
1475 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
#include "confdefs.h" |
1476 |
(eval $ac_compile) 2>conftest.er1 |
#include <assert.h> |
1477 |
ac_status=$? |
Syntax Error |
1478 |
grep -v '^ *+' conftest.er1 >conftest.err |
EOF |
1479 |
rm -f conftest.er1 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1480 |
cat conftest.err >&5 |
{ (eval echo configure:1481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1481 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1482 |
(exit $ac_status); } && |
if test -z "$ac_err"; then |
1483 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
: |
1484 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
else |
1485 |
(eval $ac_try) 2>&5 |
echo "$ac_err" >&5 |
1486 |
ac_status=$? |
echo "configure: failed program was:" >&5 |
1487 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
cat conftest.$ac_ext >&5 |
1488 |
(exit $ac_status); }; } && |
rm -rf conftest* |
1489 |
{ ac_try='test -s conftest.$ac_objext' |
CPP="${CC-cc} -nologo -E" |
1490 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
cat > conftest.$ac_ext <<EOF |
1491 |
(eval $ac_try) 2>&5 |
#line 1492 "configure" |
1492 |
ac_status=$? |
#include "confdefs.h" |
1493 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
#include <assert.h> |
1494 |
(exit $ac_status); }; }; then |
Syntax Error |
1495 |
ac_cv_prog_cc_stdc=$ac_arg |
EOF |
1496 |
break |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1497 |
|
{ (eval echo configure:1498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1498 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1499 |
|
if test -z "$ac_err"; then |
1500 |
|
: |
1501 |
|
else |
1502 |
|
echo "$ac_err" >&5 |
1503 |
|
echo "configure: failed program was:" >&5 |
1504 |
|
cat conftest.$ac_ext >&5 |
1505 |
|
rm -rf conftest* |
1506 |
|
CPP=/lib/cpp |
1507 |
|
fi |
1508 |
|
rm -f conftest* |
1509 |
|
fi |
1510 |
|
rm -f conftest* |
1511 |
|
fi |
1512 |
|
rm -f conftest* |
1513 |
|
ac_cv_prog_CPP="$CPP" |
1514 |
|
fi |
1515 |
|
CPP="$ac_cv_prog_CPP" |
1516 |
else |
else |
1517 |
echo "$as_me: failed program was:" >&5 |
ac_cv_prog_CPP="$CPP" |
1518 |
sed 's/^/| /' conftest.$ac_ext >&5 |
fi |
1519 |
|
echo "$ac_t""$CPP" 1>&6 |
1520 |
|
|
1521 |
|
|
1522 |
|
|
1523 |
|
|
1524 |
|
# can only test for numbers -- CM |
1525 |
|
# if test "${GCC}" -eq "yes" ; then |
1526 |
|
#if [[ "${GCC}" = "yes" ]] ; then |
1527 |
|
# Allog for environment variable overrides on compiler selection -- CM |
1528 |
|
#GCC=$CC |
1529 |
|
#else |
1530 |
|
#GCC="" |
1531 |
|
#fi |
1532 |
|
# subst GCC not only under 386-linux, but where available -- CM |
1533 |
|
|
1534 |
|
|
1535 |
|
TCFLAGS="-Wall -DVOL=volatile -fsigned-char" |
1536 |
|
if test "$GCC" = "yes" ; then |
1537 |
|
TCFLAGS="$TCFLAGS -pipe" |
1538 |
|
case $use in |
1539 |
|
*mingw*) |
1540 |
|
echo "WARNING: Remove -fno-zero-initialized-in-bss from makedefs if gcc less than 3.3.1." |
1541 |
|
echo " It is ptherwise needed for the Unexec stuff to work." |
1542 |
|
TCFLAGS="$TCFLAGS -fno-zero-initialized-in-bss -mms-bitfields";; |
1543 |
|
esac |
1544 |
|
fi |
1545 |
|
#if test -f /proc/sys/kernel/exec-shield ; then |
1546 |
|
# exec_stat=`cat /proc/sys/kernel/exec-shield` |
1547 |
|
# if test "$exec_stat" != "0" ; then |
1548 |
|
# # CFLAGS here to hopefully cover the DBEGIN routine below |
1549 |
|
# CFLAGS="$CFLAGS -Wa,--execstack" |
1550 |
|
# fi |
1551 |
|
#fi |
1552 |
|
|
1553 |
|
TO3FLAGS="" |
1554 |
|
TO2FLAGS="" |
1555 |
|
|
1556 |
|
#TFPFLAG="-fomit-frame-pointer" |
1557 |
|
# FIXME -- remove when mingw compiler issues are fixed |
1558 |
|
case "$use" in |
1559 |
|
*mingw*) |
1560 |
|
TFPFLAG="";; |
1561 |
|
*) |
1562 |
|
TFPFLAG="-fomit-frame-pointer";; |
1563 |
|
esac |
1564 |
|
|
1565 |
|
for ac_prog in gawk nawk awk |
1566 |
|
do |
1567 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1568 |
|
set dummy $ac_prog; ac_word=$2 |
1569 |
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1570 |
|
echo "configure:1571: checking for $ac_word" >&5 |
1571 |
|
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1572 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1573 |
|
else |
1574 |
|
if test -n "$AWK"; then |
1575 |
|
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1576 |
|
else |
1577 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1578 |
|
ac_dummy="$PATH" |
1579 |
|
for ac_dir in $ac_dummy; do |
1580 |
|
test -z "$ac_dir" && ac_dir=. |
1581 |
|
if test -f $ac_dir/$ac_word; then |
1582 |
|
ac_cv_prog_AWK="$ac_prog" |
1583 |
|
break |
1584 |
|
fi |
1585 |
|
done |
1586 |
|
IFS="$ac_save_ifs" |
1587 |
|
fi |
1588 |
|
fi |
1589 |
|
AWK="$ac_cv_prog_AWK" |
1590 |
|
if test -n "$AWK"; then |
1591 |
|
echo "$ac_t""$AWK" 1>&6 |
1592 |
|
else |
1593 |
|
echo "$ac_t""no" 1>&6 |
1594 |
fi |
fi |
1595 |
rm -f conftest.err conftest.$ac_objext |
|
1596 |
|
test -n "$AWK" && break |
1597 |
done |
done |
1598 |
rm -f conftest.$ac_ext conftest.$ac_objext |
test -n "$AWK" || AWK="""" |
1599 |
CC=$ac_save_CC |
|
1600 |
|
|
1601 |
|
if test "$enable_gprof" = "yes" ; then |
1602 |
|
TCFLAGS="$TCFLAGS -pg" |
1603 |
|
TLIBS="$TLIBS -pg" |
1604 |
|
TFPFLAG="" |
1605 |
|
cat >> confdefs.h <<\EOF |
1606 |
|
#define GCL_GPROF 1 |
1607 |
|
EOF |
1608 |
|
|
1609 |
|
echo $ac_n "checking for text start""... $ac_c" 1>&6 |
1610 |
|
echo "configure:1611: checking for text start" >&5 |
1611 |
|
echo 'int main () {return(0);}' >foo.c |
1612 |
|
$CC foo.c -o foo |
1613 |
|
GCL_GPROF_START=`nm foo | $AWK '/ *T *__*start$/ {print $NF}'` |
1614 |
|
rm -f foo.c foo |
1615 |
|
echo "$ac_t""$GCL_GPROF_START" 1>&6 |
1616 |
|
cat >> confdefs.h <<EOF |
1617 |
|
#define GCL_GPROF_START $GCL_GPROF_START |
1618 |
|
EOF |
1619 |
|
|
1620 |
|
case "$use" in |
1621 |
|
arm*) |
1622 |
|
#FIXME report and remove this when done |
1623 |
|
echo "$ac_t""Reducing optimization on profiling arm build to workaround gcc bug" 1>&6 |
1624 |
|
enable_debug=yes;; |
1625 |
|
esac |
1626 |
fi |
fi |
1627 |
|
|
1628 |
case "x$ac_cv_prog_cc_stdc" in |
if test "$enable_debug" = "yes" ; then |
1629 |
x|xno) |
TCFLAGS="$TCFLAGS -g" |
1630 |
echo "$as_me:$LINENO: result: none needed" >&5 |
# for subconfigurations |
1631 |
echo "${ECHO_T}none needed" >&6 ;; |
CFLAGS="$CFLAGS -g" |
1632 |
*) |
else |
1633 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
# FIXME -- remove when mingw compiler issues are fixed |
1634 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
case "$use" in |
1635 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
*mingw*) |
1636 |
|
TO3FLAGS="-O3 $TFPFLAG";; |
1637 |
|
*) |
1638 |
|
TO3FLAGS="-O3 $TFPFLAG";; |
1639 |
|
esac |
1640 |
|
# TO3FLAGS="-O3 $TFPFLAG" |
1641 |
|
TO2FLAGS="-O" |
1642 |
|
fi |
1643 |
|
|
1644 |
|
# gcc on ppc cannot compile our new_init.c with full opts --CM |
1645 |
|
TONIFLAGS="" |
1646 |
|
case $use in |
1647 |
|
*linux) |
1648 |
|
case $use in |
1649 |
|
# amd64*) # stack-boundary option does not work |
1650 |
|
# TCFLAGS="$TCFLAGS -m64 -mpreferred-stack-boundary=8";; |
1651 |
|
# 386*) |
1652 |
|
# TCFLAGS="$TCFLAGS -mpreferred-stack-boundary=2";; |
1653 |
|
# amd64*) |
1654 |
|
# TCFLAGS="$TCFLAGS -mpreferred-stack-boundary=3";; |
1655 |
|
alpha*) |
1656 |
|
TCFLAGS="$TCFLAGS -mieee";; |
1657 |
|
# m68k*) |
1658 |
|
# TCFLAGS="$TCFLAGS -ffloat-store";; |
1659 |
|
hppa*) |
1660 |
|
TCFLAGS="$TCFLAGS -ffunction-sections -march=2.0 " #FIXME |
1661 |
|
if test "$enable_debug" != "yes" ; then TO3FLAGS="-O $TFPFLAG" ; fi |
1662 |
|
if test "$enable_debug" != "yes" ; then TO2FLAGS="-O" ; fi |
1663 |
|
;; |
1664 |
|
arm*) |
1665 |
|
TCFLAGS="$TCFLAGS -mlong-calls -fdollars-in-identifiers ";; |
1666 |
|
powerpc*) |
1667 |
|
if $CC -v 2>&1 | grep -q "gcc version 3.2" ; then |
1668 |
|
echo Reducing optimization for buggy gcc-3.2 |
1669 |
|
if test "$enable_debug" != "yes" ; then TONIFLAGS="-O $TFPFLAG" ; fi |
1670 |
|
fi; |
1671 |
|
echo Probing for longcall |
1672 |
|
if ! $CC -v 2>&1 | $AWK '/^gcc version / {split($3,A,".");if (A[1]+0>3 || (A[1]+0>=3 && A[2]+0>=3)) exit 1;}'; then |
1673 |
|
echo Enabling longcall on gcc 3.3 or later |
1674 |
|
TCFLAGS="$TCFLAGS -mlongcall" |
1675 |
|
echo Reducing optimization for buggy gcc 3.3 or later |
1676 |
|
if test "$enable_debug" != "yes" ; then TONIFLAGS="-O $TFPFLAG" ; fi |
1677 |
|
fi;; |
1678 |
|
esac;; |
1679 |
esac |
esac |
1680 |
|
if test "$enable_pic" = "yes" ; then |
1681 |
|
TCFLAGS="$TCFLAGS -fPIC" |
1682 |
|
fi |
1683 |
|
|
1684 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
|
1685 |
# in C++ we need to declare it. In case someone uses the same compiler |
# Step 1: set the variable "system" to hold the name and version number |
1686 |
# for both compiling C and C++ we need to have the C++ compiler decide |
# for the system. This can usually be done via the "uname" command, but |
1687 |
# the declaration of exit, since it's the most demanding environment. |
# there are a few systems, like Next, where this doesn't work. |
1688 |
cat >conftest.$ac_ext <<_ACEOF |
|
1689 |
#ifndef __cplusplus |
echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6 |
1690 |
choke me |
echo "configure:1691: checking system version (for dynamic loading)" >&5 |
1691 |
#endif |
if machine=`uname -m` ; then true; else machine=unknown ; fi |
1692 |
_ACEOF |
|
1693 |
rm -f conftest.$ac_objext |
for ac_prog in makeinfo |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ 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 \ |
|
|
'' \ |
|
|
'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);' |
|
1694 |
do |
do |
1695 |
cat >conftest.$ac_ext <<_ACEOF |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1696 |
/* confdefs.h. */ |
set dummy $ac_prog; ac_word=$2 |
1697 |
_ACEOF |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1698 |
cat confdefs.h >>conftest.$ac_ext |
echo "configure:1699: checking for $ac_word" >&5 |
1699 |
cat >>conftest.$ac_ext <<_ACEOF |
if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then |
1700 |
/* end confdefs.h. */ |
echo $ac_n "(cached) $ac_c" 1>&6 |
1701 |
$ac_declaration |
else |
1702 |
#include <stdlib.h> |
if test -n "$MAKEINFO"; then |
1703 |
int |
ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
1704 |
main () |
else |
1705 |
{ |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1706 |
exit (42); |
ac_dummy="$PATH" |
1707 |
; |
for ac_dir in $ac_dummy; do |
1708 |
return 0; |
test -z "$ac_dir" && ac_dir=. |
1709 |
} |
if test -f $ac_dir/$ac_word; then |
1710 |
_ACEOF |
ac_cv_prog_MAKEINFO="$ac_prog" |
1711 |
rm -f conftest.$ac_objext |
break |
1712 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
fi |
1713 |
(eval $ac_compile) 2>conftest.er1 |
done |
1714 |
ac_status=$? |
IFS="$ac_save_ifs" |
1715 |
grep -v '^ *+' conftest.er1 >conftest.err |
fi |
1716 |
rm -f conftest.er1 |
fi |
1717 |
cat conftest.err >&5 |
MAKEINFO="$ac_cv_prog_MAKEINFO" |
1718 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if test -n "$MAKEINFO"; then |
1719 |
(exit $ac_status); } && |
echo "$ac_t""$MAKEINFO" 1>&6 |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ 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 |
|
|
: |
|
1720 |
else |
else |
1721 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_t""no" 1>&6 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
continue |
|
1722 |
fi |
fi |
1723 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1724 |
cat >conftest.$ac_ext <<_ACEOF |
test -n "$MAKEINFO" && break |
1725 |
/* confdefs.h. */ |
done |
1726 |
_ACEOF |
test -n "$MAKEINFO" || MAKEINFO=""false"" |
1727 |
cat confdefs.h >>conftest.$ac_ext |
|
1728 |
cat >>conftest.$ac_ext <<_ACEOF |
|
1729 |
/* end confdefs.h. */ |
|
1730 |
$ac_declaration |
if test -f /usr/lib/NextStep/software_version; then |
1731 |
int |
system=NEXTSTEP-`${AWK} '/3/,/3/' /usr/lib/NextStep/software_version` |
|
main () |
|
|
{ |
|
|
exit (42); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ 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 |
|
1732 |
else |
else |
1733 |
echo "$as_me: failed program was:" >&5 |
system=`uname -s`-`uname -r` |
1734 |
sed 's/^/| /' conftest.$ac_ext >&5 |
if test "$?" -ne 0 ; then |
1735 |
|
echo "$ac_t""unknown (can't find uname command)" 1>&6 |
1736 |
|
system=unknown |
1737 |
|
else |
1738 |
|
# Special check for weird MP-RAS system (uname returns weird |
1739 |
|
# results, and the version is kept in special file). |
1740 |
|
|
1741 |
|
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then |
1742 |
|
system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'` |
1743 |
|
fi |
1744 |
|
if test "`uname -s`" = "AIX" ; then |
1745 |
|
system=AIX-`uname -v`.`uname -r` |
1746 |
|
fi |
1747 |
|
echo "$ac_t""$system" 1>&6 |
1748 |
|
fi |
1749 |
|
fi |
1750 |
|
|
1751 |
|
# sysconf |
1752 |
|
|
1753 |
|
ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'` |
1754 |
|
echo $ac_n "checking for unistd.h""... $ac_c" 1>&6 |
1755 |
|
echo "configure:1756: checking for unistd.h" >&5 |
1756 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1757 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1758 |
|
else |
1759 |
|
cat > conftest.$ac_ext <<EOF |
1760 |
|
#line 1761 "configure" |
1761 |
|
#include "confdefs.h" |
1762 |
|
#include <unistd.h> |
1763 |
|
EOF |
1764 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1765 |
|
{ (eval echo configure:1766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1766 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1767 |
|
if test -z "$ac_err"; then |
1768 |
|
rm -rf conftest* |
1769 |
|
eval "ac_cv_header_$ac_safe=yes" |
1770 |
|
else |
1771 |
|
echo "$ac_err" >&5 |
1772 |
|
echo "configure: failed program was:" >&5 |
1773 |
|
cat conftest.$ac_ext >&5 |
1774 |
|
rm -rf conftest* |
1775 |
|
eval "ac_cv_header_$ac_safe=no" |
1776 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
1777 |
rm -f conftest* |
rm -f conftest* |
|
if test -n "$ac_declaration"; then |
|
|
echo '#ifdef __cplusplus' >>confdefs.h |
|
|
echo $ac_declaration >>confdefs.h |
|
|
echo '#endif' >>confdefs.h |
|
1778 |
fi |
fi |
1779 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1780 |
|
echo "$ac_t""yes" 1>&6 |
1781 |
|
echo $ac_n "checking for sysconf in -lc""... $ac_c" 1>&6 |
1782 |
|
echo "configure:1783: checking for sysconf in -lc" >&5 |
1783 |
|
ac_lib_var=`echo c'_'sysconf | sed 'y%./+-%__p_%'` |
1784 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1785 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1786 |
|
else |
1787 |
|
ac_save_LIBS="$LIBS" |
1788 |
|
LIBS="-lc $LIBS" |
1789 |
|
cat > conftest.$ac_ext <<EOF |
1790 |
|
#line 1791 "configure" |
1791 |
|
#include "confdefs.h" |
1792 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1793 |
|
/* We use char because int might match the return type of a gcc2 |
1794 |
|
builtin and then its argument prototype would still apply. */ |
1795 |
|
char sysconf(); |
1796 |
|
|
1797 |
|
int main() { |
1798 |
|
sysconf() |
1799 |
|
; return 0; } |
1800 |
|
EOF |
1801 |
|
if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1802 |
|
rm -rf conftest* |
1803 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1804 |
|
else |
1805 |
|
echo "configure: failed program was:" >&5 |
1806 |
|
cat conftest.$ac_ext >&5 |
1807 |
|
rm -rf conftest* |
1808 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
1809 |
|
fi |
1810 |
|
rm -f conftest* |
1811 |
|
LIBS="$ac_save_LIBS" |
1812 |
|
|
1813 |
|
fi |
1814 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1815 |
|
echo "$ac_t""yes" 1>&6 |
1816 |
|
echo $ac_n "checking "for _SC_CLK_TCK"""... $ac_c" 1>&6 |
1817 |
|
echo "configure:1818: checking "for _SC_CLK_TCK"" >&5 |
1818 |
|
if test "$cross_compiling" = yes; then |
1819 |
|
hz=0 |
1820 |
else |
else |
1821 |
echo "$as_me: failed program was:" >&5 |
cat > conftest.$ac_ext <<EOF |
1822 |
sed 's/^/| /' conftest.$ac_ext >&5 |
#line 1823 "configure" |
1823 |
|
#include "confdefs.h" |
1824 |
|
#include <unistd.h> |
1825 |
|
#include <stdio.h> |
1826 |
|
int |
1827 |
|
main() { |
1828 |
|
FILE *fp=fopen("conftest1","w"); |
1829 |
|
fprintf(fp,"%lu\n",sysconf(_SC_CLK_TCK)); |
1830 |
|
fclose(fp); |
1831 |
|
return 0; |
1832 |
|
} |
1833 |
|
EOF |
1834 |
|
if { (eval echo configure:1835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1835 |
|
then |
1836 |
|
hz=`cat conftest1` |
1837 |
|
cat >> confdefs.h <<EOF |
1838 |
|
#define HZ $hz |
1839 |
|
EOF |
1840 |
|
|
1841 |
|
|
1842 |
|
else |
1843 |
|
echo "configure: failed program was:" >&5 |
1844 |
|
cat conftest.$ac_ext >&5 |
1845 |
|
rm -fr conftest* |
1846 |
|
hz=0 |
1847 |
fi |
fi |
1848 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
1849 |
ac_ext=c |
fi |
1850 |
ac_cpp='$CPP $CPPFLAGS' |
|
1851 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
echo "$ac_t""$hz" 1>&6 |
|
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 whether ln -s works" >&5 |
|
|
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
|
|
LN_S=$as_ln_s |
|
|
if test "$LN_S" = "ln -s"; then |
|
|
echo "$as_me:$LINENO: result: yes" >&5 |
|
|
echo "${ECHO_T}yes" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
|
echo "${ECHO_T}no, using $LN_S" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
|
|
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
|
|
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
|
|
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.make <<\_ACEOF |
|
|
all: |
|
|
@echo 'ac_maketemp="$(MAKE)"' |
|
|
_ACEOF |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
|
|
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
|
|
if test -n "$ac_maketemp"; then |
|
|
eval ac_cv_prog_make_${ac_make}_set=yes |
|
|
else |
|
|
eval ac_cv_prog_make_${ac_make}_set=no |
|
|
fi |
|
|
rm -f conftest.make |
|
|
fi |
|
|
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
|
|
echo "$as_me:$LINENO: result: yes" >&5 |
|
|
echo "${ECHO_T}yes" >&6 |
|
|
SET_MAKE= |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
SET_MAKE="MAKE=${MAKE-make}" |
|
|
fi |
|
|
|
|
|
if test -n "$ac_tool_prefix"; then |
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1852 |
else |
else |
1853 |
if test -n "$RANLIB"; then |
echo "$ac_t""no" 1>&6 |
1854 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
fi |
1855 |
|
|
1856 |
else |
else |
1857 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
echo "$ac_t""no" 1>&6 |
1858 |
for as_dir in $PATH |
fi |
1859 |
do |
|
1860 |
IFS=$as_save_IFS |
|
1861 |
test -z "$as_dir" && as_dir=. |
|
1862 |
for ac_exec_ext in '' $ac_executable_extensions; do |
#MY_SUBDIRS= |
1863 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
1864 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
# |
1865 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
# GMP |
1866 |
break 2 |
# |
1867 |
fi |
|
1868 |
done |
rm -f makedefsafter |
1869 |
done |
|
1870 |
|
MP_INCLUDE="" |
1871 |
|
if test $use_gmp = yes ; then |
1872 |
|
|
1873 |
|
GMPDIR=gmp3 |
1874 |
|
PATCHED_SYMBOLS="" |
1875 |
|
if test "$enable_dynsysgmp" = "yes" ; then |
1876 |
|
ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'` |
1877 |
|
echo $ac_n "checking for gmp.h""... $ac_c" 1>&6 |
1878 |
|
echo "configure:1879: checking for gmp.h" >&5 |
1879 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1880 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1881 |
|
else |
1882 |
|
cat > conftest.$ac_ext <<EOF |
1883 |
|
#line 1884 "configure" |
1884 |
|
#include "confdefs.h" |
1885 |
|
#include <gmp.h> |
1886 |
|
EOF |
1887 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1888 |
|
{ (eval echo configure:1889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1889 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1890 |
|
if test -z "$ac_err"; then |
1891 |
|
rm -rf conftest* |
1892 |
|
eval "ac_cv_header_$ac_safe=yes" |
1893 |
|
else |
1894 |
|
echo "$ac_err" >&5 |
1895 |
|
echo "configure: failed program was:" >&5 |
1896 |
|
cat conftest.$ac_ext >&5 |
1897 |
|
rm -rf conftest* |
1898 |
|
eval "ac_cv_header_$ac_safe=no" |
1899 |
|
fi |
1900 |
|
rm -f conftest* |
1901 |
|
fi |
1902 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1903 |
|
echo "$ac_t""yes" 1>&6 |
1904 |
|
echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6 |
1905 |
|
echo "configure:1906: checking for __gmpz_init in -lgmp" >&5 |
1906 |
|
ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'` |
1907 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1908 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1909 |
|
else |
1910 |
|
ac_save_LIBS="$LIBS" |
1911 |
|
LIBS="-lgmp $LIBS" |
1912 |
|
cat > conftest.$ac_ext <<EOF |
1913 |
|
#line 1914 "configure" |
1914 |
|
#include "confdefs.h" |
1915 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1916 |
|
/* We use char because int might match the return type of a gcc2 |
1917 |
|
builtin and then its argument prototype would still apply. */ |
1918 |
|
char __gmpz_init(); |
1919 |
|
|
1920 |
|
int main() { |
1921 |
|
__gmpz_init() |
1922 |
|
; return 0; } |
1923 |
|
EOF |
1924 |
|
if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1925 |
|
rm -rf conftest* |
1926 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1927 |
|
else |
1928 |
|
echo "configure: failed program was:" >&5 |
1929 |
|
cat conftest.$ac_ext >&5 |
1930 |
|
rm -rf conftest* |
1931 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
1932 |
fi |
fi |
1933 |
|
rm -f conftest* |
1934 |
|
LIBS="$ac_save_LIBS" |
1935 |
|
|
1936 |
fi |
fi |
1937 |
RANLIB=$ac_cv_prog_RANLIB |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1938 |
if test -n "$RANLIB"; then |
echo "$ac_t""yes" 1>&6 |
1939 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
echo $ac_n "checking "for external gmp version"""... $ac_c" 1>&6 |
1940 |
echo "${ECHO_T}$RANLIB" >&6 |
echo "configure:1941: checking "for external gmp version"" >&5 |
1941 |
else |
if test "$cross_compiling" = yes; then |
1942 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "Cannot use dynamic gmp lib" |
1943 |
echo "${ECHO_T}no" >&6 |
else |
1944 |
|
cat > conftest.$ac_ext <<EOF |
1945 |
|
#line 1946 "configure" |
1946 |
|
#include "confdefs.h" |
1947 |
|
#include <gmp.h> |
1948 |
|
int main() { |
1949 |
|
#if __GNU_MP_VERSION == 4 |
1950 |
|
return 0; |
1951 |
|
#else |
1952 |
|
return -1; |
1953 |
|
#endif |
1954 |
|
} |
1955 |
|
EOF |
1956 |
|
if { (eval echo configure:1957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1957 |
|
then |
1958 |
|
# MPFILES=$GMPDIR/mpn/mul_n.o |
1959 |
|
# PATCHED_SYMBOLS=__gmpn_toom3_mul_n |
1960 |
|
MPFILES= |
1961 |
|
PATCHED_SYMBOLS= |
1962 |
|
if test "$use" = "m68k-linux" ; then |
1963 |
|
MPFILES="$MPFILES $GMPDIR/mpn/lshift.o $GMPDIR/mpn/rshift.o" |
1964 |
|
PATCHED_SYMBOLS="$PATCHED_SYMBOLS __gmpn_lshift __gmpn_rshift" |
1965 |
|
fi |
1966 |
|
TLIBS="$TLIBS -lgmp" |
1967 |
|
echo "#include \"gmp.h\"" >foo.c |
1968 |
|
echo "int main() {return 0;}" >>foo.c |
1969 |
|
MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -n 1 | $AWK '{print $3}' | tr -d '"'` |
1970 |
|
rm -f foo.c |
1971 |
|
else |
1972 |
|
echo "configure: failed program was:" >&5 |
1973 |
|
cat conftest.$ac_ext >&5 |
1974 |
|
rm -fr conftest* |
1975 |
|
echo "Cannot use dynamic gmp lib" |
1976 |
|
fi |
1977 |
|
rm -fr conftest* |
1978 |
|
fi |
1979 |
|
|
1980 |
|
else |
1981 |
|
echo "$ac_t""no" 1>&6 |
1982 |
|
echo "Cannot use dynamic gmp lib" |
1983 |
|
fi |
1984 |
|
|
1985 |
|
else |
1986 |
|
echo "$ac_t""no" 1>&6 |
1987 |
|
echo "Cannot use dynamic gmp lib" |
1988 |
|
fi |
1989 |
|
|
1990 |
|
fi |
1991 |
|
|
1992 |
|
NEED_LOCAL_GMP='' |
1993 |
|
if test "$MP_INCLUDE" = "" ; then |
1994 |
|
NEED_LOCAL_GMP=1; |
1995 |
|
fi |
1996 |
|
if test "$PATCHED_SYMBOLS" != "" ; then |
1997 |
|
NEED_LOCAL_GMP=1; |
1998 |
|
fi |
1999 |
|
|
2000 |
|
if test "$NEED_LOCAL_GMP" != "" ; then |
2001 |
|
|
2002 |
|
echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6 |
2003 |
|
echo "configure:2004: checking use_gmp=yes, doing configure in gmp directory" >&5 |
2004 |
|
echo |
2005 |
|
echo "#" |
2006 |
|
echo "#" |
2007 |
|
echo "# -------------------" |
2008 |
|
echo "# Subconfigure of GMP" |
2009 |
|
echo "#" |
2010 |
|
echo "#" |
2011 |
|
|
2012 |
|
if test "$use_common_binary" = "yes"; then |
2013 |
|
cd $GMPDIR && ./configure --host=$host && cd .. |
2014 |
|
else |
2015 |
|
cd $GMPDIR && ./configure && cd .. |
2016 |
|
fi |
2017 |
|
#MY_SUBDIRS="$MY_SUBDIRS $GMPDIR" |
2018 |
|
|
2019 |
|
echo "#" |
2020 |
|
echo "#" |
2021 |
|
echo "#" |
2022 |
|
echo "# Subconfigure of GMP done" |
2023 |
|
echo "# ------------------------" |
2024 |
|
echo "#" |
2025 |
|
|
2026 |
|
if test "$MP_INCLUDE" = "" ; then |
2027 |
|
cp $GMPDIR/gmp.h h/gmp.h |
2028 |
|
MP_INCLUDE=h/gmp.h |
2029 |
|
MPFILES=gmp_all |
2030 |
|
fi |
2031 |
|
|
2032 |
fi |
fi |
2033 |
|
|
2034 |
|
echo $ac_n "checking "for leading underscore in object symbols"""... $ac_c" 1>&6 |
2035 |
|
echo "configure:2036: checking "for leading underscore in object symbols"" >&5 |
2036 |
|
cat>foo.c <<EOFF |
2037 |
|
#include <math.h> |
2038 |
|
int main() {double d=0.0;cos(d);printf("%g",cos(d));return 0;} |
2039 |
|
EOFF |
2040 |
|
$CC -c foo.c -o foo.o |
2041 |
|
if nm foo.o |grep " U " | grep "_cos" >/dev/null ; then |
2042 |
|
LEADING_UNDERSCORE=1 |
2043 |
|
echo "$ac_t"""yes"" 1>&6 |
2044 |
|
else |
2045 |
|
LEADING_UNDERSCORE="" |
2046 |
|
echo "$ac_t"""no"" 1>&6 |
2047 |
|
fi |
2048 |
|
echo $ac_n "checking "for GNU ld option -Map"""... $ac_c" 1>&6 |
2049 |
|
echo "configure:2050: checking "for GNU ld option -Map"" >&5 |
2050 |
|
touch map |
2051 |
|
$CC -o foo -Wl,-Map map foo.o >/dev/null 2>&1 |
2052 |
|
if test `cat map | wc -l` != "0" ; then |
2053 |
|
echo "$ac_t"""yes"" 1>&6 |
2054 |
|
cat >> confdefs.h <<\EOF |
2055 |
|
#define HAVE_GNU_LD 1 |
2056 |
|
EOF |
2057 |
|
|
2058 |
|
GNU_LD=1 |
2059 |
|
else |
2060 |
|
echo "$ac_t"""no"" 1>&6 |
2061 |
|
GNU_LD= |
2062 |
|
fi |
2063 |
|
rm -f foo.c foo.o foo map |
2064 |
|
|
2065 |
|
echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6 |
2066 |
|
echo "configure:2067: checking "for size of gmp limbs"" >&5 |
2067 |
|
if test "$cross_compiling" = yes; then |
2068 |
|
mpsize=0 |
2069 |
|
else |
2070 |
|
cat > conftest.$ac_ext <<EOF |
2071 |
|
#line 2072 "configure" |
2072 |
|
#include "confdefs.h" |
2073 |
|
#include <stdio.h> |
2074 |
|
#include "$MP_INCLUDE" |
2075 |
|
int main() { |
2076 |
|
FILE *fp=fopen("conftest1","w"); |
2077 |
|
fprintf(fp,"%u",sizeof(mp_limb_t)); |
2078 |
|
fclose(fp); |
2079 |
|
return 0; |
2080 |
|
} |
2081 |
|
EOF |
2082 |
|
if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2083 |
|
then |
2084 |
|
mpsize=`cat conftest1` |
2085 |
|
else |
2086 |
|
echo "configure: failed program was:" >&5 |
2087 |
|
cat conftest.$ac_ext >&5 |
2088 |
|
rm -fr conftest* |
2089 |
|
mpsize=0 |
2090 |
|
fi |
2091 |
|
rm -fr conftest* |
2092 |
|
fi |
2093 |
|
|
2094 |
|
if test "$mpsize" = "0" ; then |
2095 |
|
echo "Cannot determine mpsize" |
2096 |
|
exit 1 |
2097 |
|
fi |
2098 |
|
cat >> confdefs.h <<EOF |
2099 |
|
#define MP_LIMB_BYTES $mpsize |
2100 |
|
EOF |
2101 |
|
|
2102 |
|
echo "$ac_t""$mpsize" 1>&6 |
2103 |
|
|
2104 |
|
echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6 |
2105 |
|
echo "configure:2106: checking "_SHORT_LIMB"" >&5 |
2106 |
|
if test "$cross_compiling" = yes; then |
2107 |
|
echo "$ac_t""no" 1>&6 |
2108 |
|
else |
2109 |
|
cat > conftest.$ac_ext <<EOF |
2110 |
|
#line 2111 "configure" |
2111 |
|
#include "confdefs.h" |
2112 |
|
#include <stdio.h> |
2113 |
|
#include "$MP_INCLUDE" |
2114 |
|
int main() { |
2115 |
|
#ifdef _SHORT_LIMB |
2116 |
|
return 0; |
2117 |
|
#else |
2118 |
|
return 1; |
2119 |
|
#endif |
2120 |
|
} |
2121 |
|
EOF |
2122 |
|
if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2123 |
|
then |
2124 |
|
cat >> confdefs.h <<\EOF |
2125 |
|
#define __SHORT_LIMB 1 |
2126 |
|
EOF |
2127 |
|
echo "$ac_t""yes" 1>&6 |
2128 |
|
else |
2129 |
|
echo "configure: failed program was:" >&5 |
2130 |
|
cat conftest.$ac_ext >&5 |
2131 |
|
rm -fr conftest* |
2132 |
|
echo "$ac_t""no" 1>&6 |
2133 |
|
fi |
2134 |
|
rm -fr conftest* |
2135 |
|
fi |
2136 |
|
|
2137 |
|
echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6 |
2138 |
|
echo "configure:2139: checking "_LONG_LONG_LIMB"" >&5 |
2139 |
|
if test "$cross_compiling" = yes; then |
2140 |
|
echo "$ac_t""no" 1>&6 |
2141 |
|
else |
2142 |
|
cat > conftest.$ac_ext <<EOF |
2143 |
|
#line 2144 "configure" |
2144 |
|
#include "confdefs.h" |
2145 |
|
#include <stdio.h> |
2146 |
|
#include "$MP_INCLUDE" |
2147 |
|
int main() { |
2148 |
|
#ifdef _LONG_LONG_LIMB |
2149 |
|
return 0; |
2150 |
|
#else |
2151 |
|
return 1; |
2152 |
|
#endif |
2153 |
|
} |
2154 |
|
EOF |
2155 |
|
if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2156 |
|
then |
2157 |
|
cat >> confdefs.h <<\EOF |
2158 |
|
#define __LONG_LONG_LIMB 1 |
2159 |
|
EOF |
2160 |
|
echo "$ac_t""yes" 1>&6 |
2161 |
|
else |
2162 |
|
echo "configure: failed program was:" >&5 |
2163 |
|
cat conftest.$ac_ext >&5 |
2164 |
|
rm -fr conftest* |
2165 |
|
echo "$ac_t""no" 1>&6 |
2166 |
|
fi |
2167 |
|
rm -fr conftest* |
2168 |
fi |
fi |
2169 |
if test -z "$ac_cv_prog_RANLIB"; then |
|
2170 |
ac_ct_RANLIB=$RANLIB |
|
2171 |
# Extract the first word of "ranlib", so it can be a program name with args. |
GMP=1 |
2172 |
set dummy ranlib; ac_word=$2 |
cat >> confdefs.h <<\EOF |
2173 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
#define GMP 1 |
2174 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
EOF |
2175 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
2176 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2177 |
else |
|
2178 |
if test -n "$ac_ct_RANLIB"; then |
echo > makedefsafter |
2179 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
echo "MPFILES=$MPFILES" >> makedefsafter |
2180 |
|
echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter |
2181 |
|
echo >> makedefsafter |
2182 |
|
fi |
2183 |
|
|
2184 |
|
|
2185 |
|
# |
2186 |
|
# X windows |
2187 |
|
# |
2188 |
|
|
2189 |
|
# If we find X, set shell vars x_includes and x_libraries to the |
2190 |
|
# paths, otherwise set no_x=yes. |
2191 |
|
# Uses ac_ vars as temps to allow command line to override cache and checks. |
2192 |
|
# --without-x overrides everything else, but does not touch the cache. |
2193 |
|
echo $ac_n "checking for X""... $ac_c" 1>&6 |
2194 |
|
echo "configure:2195: checking for X" >&5 |
2195 |
|
|
2196 |
|
# Check whether --with-x or --without-x was given. |
2197 |
|
if test "${with_x+set}" = set; then |
2198 |
|
withval="$with_x" |
2199 |
|
: |
2200 |
|
fi |
2201 |
|
|
2202 |
|
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
2203 |
|
if test "x$with_x" = xno; then |
2204 |
|
# The user explicitly disabled X. |
2205 |
|
have_x=disabled |
2206 |
|
else |
2207 |
|
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
2208 |
|
# Both variables are already set. |
2209 |
|
have_x=yes |
2210 |
|
else |
2211 |
|
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
2212 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2213 |
else |
else |
2214 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
# One or both of the vars are not set, and there is no cached value. |
2215 |
for as_dir in $PATH |
ac_x_includes=NO ac_x_libraries=NO |
2216 |
do |
rm -fr conftestdir |
2217 |
IFS=$as_save_IFS |
if mkdir conftestdir; then |
2218 |
test -z "$as_dir" && as_dir=. |
cd conftestdir |
2219 |
for ac_exec_ext in '' $ac_executable_extensions; do |
# Make sure to not put "make" in the Imakefile rules, since we grep it out. |
2220 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cat > Imakefile <<'EOF' |
2221 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
acfindx: |
2222 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
2223 |
break 2 |
EOF |
2224 |
|
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
2225 |
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
2226 |
|
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
2227 |
|
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
2228 |
|
for ac_extension in a so sl; do |
2229 |
|
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
2230 |
|
test -f $ac_im_libdir/libX11.$ac_extension; then |
2231 |
|
ac_im_usrlibdir=$ac_im_libdir; break |
2232 |
|
fi |
2233 |
|
done |
2234 |
|
# Screen out bogus values from the imake configuration. They are |
2235 |
|
# bogus both because they are the default anyway, and because |
2236 |
|
# using them would break gcc on systems where it needs fixed includes. |
2237 |
|
case "$ac_im_incroot" in |
2238 |
|
/usr/include) ;; |
2239 |
|
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
2240 |
|
esac |
2241 |
|
case "$ac_im_usrlibdir" in |
2242 |
|
/usr/lib | /lib) ;; |
2243 |
|
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
2244 |
|
esac |
2245 |
fi |
fi |
2246 |
|
cd .. |
2247 |
|
rm -fr conftestdir |
2248 |
|
fi |
2249 |
|
|
2250 |
|
if test "$ac_x_includes" = NO; then |
2251 |
|
# Guess where to find include files, by looking for this one X11 .h file. |
2252 |
|
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
2253 |
|
|
2254 |
|
# First, try using that file with no special directory specified. |
2255 |
|
cat > conftest.$ac_ext <<EOF |
2256 |
|
#line 2257 "configure" |
2257 |
|
#include "confdefs.h" |
2258 |
|
#include <$x_direct_test_include> |
2259 |
|
EOF |
2260 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2261 |
|
{ (eval echo configure:2262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2262 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2263 |
|
if test -z "$ac_err"; then |
2264 |
|
rm -rf conftest* |
2265 |
|
# We can compile using X headers with no special include directory. |
2266 |
|
ac_x_includes= |
2267 |
|
else |
2268 |
|
echo "$ac_err" >&5 |
2269 |
|
echo "configure: failed program was:" >&5 |
2270 |
|
cat conftest.$ac_ext >&5 |
2271 |
|
rm -rf conftest* |
2272 |
|
# Look for the header file in a standard set of common directories. |
2273 |
|
# Check X11 before X11Rn because it is often a symlink to the current release. |
2274 |
|
for ac_dir in \ |
2275 |
|
/usr/X11/include \ |
2276 |
|
/usr/X11R6/include \ |
2277 |
|
/usr/X11R5/include \ |
2278 |
|
/usr/X11R4/include \ |
2279 |
|
\ |
2280 |
|
/usr/include/X11 \ |
2281 |
|
/usr/include/X11R6 \ |
2282 |
|
/usr/include/X11R5 \ |
2283 |
|
/usr/include/X11R4 \ |
2284 |
|
\ |
2285 |
|
/usr/local/X11/include \ |
2286 |
|
/usr/local/X11R6/include \ |
2287 |
|
/usr/local/X11R5/include \ |
2288 |
|
/usr/local/X11R4/include \ |
2289 |
|
\ |
2290 |
|
/usr/local/include/X11 \ |
2291 |
|
/usr/local/include/X11R6 \ |
2292 |
|
/usr/local/include/X11R5 \ |
2293 |
|
/usr/local/include/X11R4 \ |
2294 |
|
\ |
2295 |
|
/usr/X386/include \ |
2296 |
|
/usr/x386/include \ |
2297 |
|
/usr/XFree86/include/X11 \ |
2298 |
|
\ |
2299 |
|
/usr/include \ |
2300 |
|
/usr/local/include \ |
2301 |
|
/usr/unsupported/include \ |
2302 |
|
/usr/athena/include \ |
2303 |
|
/usr/local/x11r5/include \ |
2304 |
|
/usr/lpp/Xamples/include \ |
2305 |
|
\ |
2306 |
|
/usr/openwin/include \ |
2307 |
|
/usr/openwin/share/include \ |
2308 |
|
; \ |
2309 |
|
do |
2310 |
|
if test -r "$ac_dir/$x_direct_test_include"; then |
2311 |
|
ac_x_includes=$ac_dir |
2312 |
|
break |
2313 |
|
fi |
2314 |
|
done |
2315 |
|
fi |
2316 |
|
rm -f conftest* |
2317 |
|
fi # $ac_x_includes = NO |
2318 |
|
|
2319 |
|
if test "$ac_x_libraries" = NO; then |
2320 |
|
# Check for the libraries. |
2321 |
|
|
2322 |
|
test -z "$x_direct_test_library" && x_direct_test_library=Xt |
2323 |
|
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
2324 |
|
|
2325 |
|
# See if we find them without any special options. |
2326 |
|
# Don't add to $LIBS permanently. |
2327 |
|
ac_save_LIBS="$LIBS" |
2328 |
|
LIBS="-l$x_direct_test_library $LIBS" |
2329 |
|
cat > conftest.$ac_ext <<EOF |
2330 |
|
#line 2331 "configure" |
2331 |
|
#include "confdefs.h" |
2332 |
|
|
2333 |
|
int main() { |
2334 |
|
${x_direct_test_function}() |
2335 |
|
; return 0; } |
2336 |
|
EOF |
2337 |
|
if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2338 |
|
rm -rf conftest* |
2339 |
|
LIBS="$ac_save_LIBS" |
2340 |
|
# We can link X programs with no special library path. |
2341 |
|
ac_x_libraries= |
2342 |
|
else |
2343 |
|
echo "configure: failed program was:" >&5 |
2344 |
|
cat conftest.$ac_ext >&5 |
2345 |
|
rm -rf conftest* |
2346 |
|
LIBS="$ac_save_LIBS" |
2347 |
|
# First see if replacing the include by lib works. |
2348 |
|
# Check X11 before X11Rn because it is often a symlink to the current release. |
2349 |
|
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
2350 |
|
/usr/X11/lib \ |
2351 |
|
/usr/X11R6/lib \ |
2352 |
|
/usr/X11R5/lib \ |
2353 |
|
/usr/X11R4/lib \ |
2354 |
|
\ |
2355 |
|
/usr/lib/X11 \ |
2356 |
|
/usr/lib/X11R6 \ |
2357 |
|
/usr/lib/X11R5 \ |
2358 |
|
/usr/lib/X11R4 \ |
2359 |
|
\ |
2360 |
|
/usr/local/X11/lib \ |
2361 |
|
/usr/local/X11R6/lib \ |
2362 |
|
/usr/local/X11R5/lib \ |
2363 |
|
/usr/local/X11R4/lib \ |
2364 |
|
\ |
2365 |
|
/usr/local/lib/X11 \ |
2366 |
|
/usr/local/lib/X11R6 \ |
2367 |
|
/usr/local/lib/X11R5 \ |
2368 |
|
/usr/local/lib/X11R4 \ |
2369 |
|
\ |
2370 |
|
/usr/X386/lib \ |
2371 |
|
/usr/x386/lib \ |
2372 |
|
/usr/XFree86/lib/X11 \ |
2373 |
|
\ |
2374 |
|
/usr/lib \ |
2375 |
|
/usr/local/lib \ |
2376 |
|
/usr/unsupported/lib \ |
2377 |
|
/usr/athena/lib \ |
2378 |
|
/usr/local/x11r5/lib \ |
2379 |
|
/usr/lpp/Xamples/lib \ |
2380 |
|
/lib/usr/lib/X11 \ |
2381 |
|
\ |
2382 |
|
/usr/openwin/lib \ |
2383 |
|
/usr/openwin/share/lib \ |
2384 |
|
; \ |
2385 |
|
do |
2386 |
|
for ac_extension in a so sl; do |
2387 |
|
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
2388 |
|
ac_x_libraries=$ac_dir |
2389 |
|
break 2 |
2390 |
|
fi |
2391 |
|
done |
2392 |
done |
done |
2393 |
done |
fi |
2394 |
|
rm -f conftest* |
2395 |
|
fi # $ac_x_libraries = NO |
2396 |
|
|
2397 |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
2398 |
|
# Didn't find X anywhere. Cache the known absence of X. |
2399 |
|
ac_cv_have_x="have_x=no" |
2400 |
|
else |
2401 |
|
# Record where we found X for the cache. |
2402 |
|
ac_cv_have_x="have_x=yes \ |
2403 |
|
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
2404 |
|
fi |
2405 |
|
fi |
2406 |
|
fi |
2407 |
|
eval "$ac_cv_have_x" |
2408 |
|
fi # $with_x != no |
2409 |
|
|
2410 |
|
if test "$have_x" != yes; then |
2411 |
|
echo "$ac_t""$have_x" 1>&6 |
2412 |
|
no_x=yes |
2413 |
|
else |
2414 |
|
# If each of the values was on the command line, it overrides each guess. |
2415 |
|
test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
2416 |
|
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
2417 |
|
# Update the cache value to reflect the command line values. |
2418 |
|
ac_cv_have_x="have_x=yes \ |
2419 |
|
ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
2420 |
|
echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
2421 |
|
fi |
2422 |
|
|
2423 |
|
if test "$no_x" = yes; then |
2424 |
|
# Not all programs may use this symbol, but it does not hurt to define it. |
2425 |
|
cat >> confdefs.h <<\EOF |
2426 |
|
#define X_DISPLAY_MISSING 1 |
2427 |
|
EOF |
2428 |
|
|
2429 |
|
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
2430 |
|
else |
2431 |
|
if test -n "$x_includes"; then |
2432 |
|
X_CFLAGS="$X_CFLAGS -I$x_includes" |
2433 |
|
fi |
2434 |
|
|
2435 |
|
# It would also be nice to do this for all -L options, not just this one. |
2436 |
|
if test -n "$x_libraries"; then |
2437 |
|
X_LIBS="$X_LIBS -L$x_libraries" |
2438 |
|
# For Solaris; some versions of Sun CC require a space after -R and |
2439 |
|
# others require no space. Words are not sufficient . . . . |
2440 |
|
case "`(uname -sr) 2>/dev/null`" in |
2441 |
|
"SunOS 5"*) |
2442 |
|
echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
2443 |
|
echo "configure:2444: checking whether -R must be followed by a space" >&5 |
2444 |
|
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
2445 |
|
cat > conftest.$ac_ext <<EOF |
2446 |
|
#line 2447 "configure" |
2447 |
|
#include "confdefs.h" |
2448 |
|
|
2449 |
|
int main() { |
2450 |
|
|
2451 |
|
; return 0; } |
2452 |
|
EOF |
2453 |
|
if { (eval echo configure:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2454 |
|
rm -rf conftest* |
2455 |
|
ac_R_nospace=yes |
2456 |
|
else |
2457 |
|
echo "configure: failed program was:" >&5 |
2458 |
|
cat conftest.$ac_ext >&5 |
2459 |
|
rm -rf conftest* |
2460 |
|
ac_R_nospace=no |
2461 |
fi |
fi |
2462 |
|
rm -f conftest* |
2463 |
|
if test $ac_R_nospace = yes; then |
2464 |
|
echo "$ac_t""no" 1>&6 |
2465 |
|
X_LIBS="$X_LIBS -R$x_libraries" |
2466 |
|
else |
2467 |
|
LIBS="$ac_xsave_LIBS -R $x_libraries" |
2468 |
|
cat > conftest.$ac_ext <<EOF |
2469 |
|
#line 2470 "configure" |
2470 |
|
#include "confdefs.h" |
2471 |
|
|
2472 |
|
int main() { |
2473 |
|
|
2474 |
|
; return 0; } |
2475 |
|
EOF |
2476 |
|
if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2477 |
|
rm -rf conftest* |
2478 |
|
ac_R_space=yes |
2479 |
|
else |
2480 |
|
echo "configure: failed program was:" >&5 |
2481 |
|
cat conftest.$ac_ext >&5 |
2482 |
|
rm -rf conftest* |
2483 |
|
ac_R_space=no |
2484 |
fi |
fi |
2485 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
rm -f conftest* |
2486 |
if test -n "$ac_ct_RANLIB"; then |
if test $ac_R_space = yes; then |
2487 |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
echo "$ac_t""yes" 1>&6 |
2488 |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
X_LIBS="$X_LIBS -R $x_libraries" |
2489 |
else |
else |
2490 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$ac_t""neither works" 1>&6 |
2491 |
echo "${ECHO_T}no" >&6 |
fi |
2492 |
|
fi |
2493 |
|
LIBS="$ac_xsave_LIBS" |
2494 |
|
esac |
2495 |
|
fi |
2496 |
|
|
2497 |
|
# Check for system-dependent libraries X programs must link with. |
2498 |
|
# Do this before checking for the system-independent R6 libraries |
2499 |
|
# (-lICE), since we may need -lsocket or whatever for X linking. |
2500 |
|
|
2501 |
|
if test "$ISC" = yes; then |
2502 |
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
2503 |
|
else |
2504 |
|
# Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
2505 |
|
# libraries were built with DECnet support. And karl@cs.umb.edu says |
2506 |
|
# the Alpha needs dnet_stub (dnet does not exist). |
2507 |
|
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
2508 |
|
echo "configure:2509: checking for dnet_ntoa in -ldnet" >&5 |
2509 |
|
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
2510 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2511 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2512 |
|
else |
2513 |
|
ac_save_LIBS="$LIBS" |
2514 |
|
LIBS="-ldnet $LIBS" |
2515 |
|
cat > conftest.$ac_ext <<EOF |
2516 |
|
#line 2517 "configure" |
2517 |
|
#include "confdefs.h" |
2518 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
2519 |
|
/* We use char because int might match the return type of a gcc2 |
2520 |
|
builtin and then its argument prototype would still apply. */ |
2521 |
|
char dnet_ntoa(); |
2522 |
|
|
2523 |
|
int main() { |
2524 |
|
dnet_ntoa() |
2525 |
|
; return 0; } |
2526 |
|
EOF |
2527 |
|
if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2528 |
|
rm -rf conftest* |
2529 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2530 |
|
else |
2531 |
|
echo "configure: failed program was:" >&5 |
2532 |
|
cat conftest.$ac_ext >&5 |
2533 |
|
rm -rf conftest* |
2534 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2535 |
fi |
fi |
2536 |
|
rm -f conftest* |
2537 |
|
LIBS="$ac_save_LIBS" |
2538 |
|
|
2539 |
RANLIB=$ac_ct_RANLIB |
fi |
2540 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2541 |
|
echo "$ac_t""yes" 1>&6 |
2542 |
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
2543 |
else |
else |
2544 |
RANLIB="$ac_cv_prog_RANLIB" |
echo "$ac_t""no" 1>&6 |
2545 |
fi |
fi |
2546 |
|
|
2547 |
|
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
2548 |
echo "$as_me:$LINENO: checking for connect" >&5 |
echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
2549 |
echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
echo "configure:2550: checking for dnet_ntoa in -ldnet_stub" >&5 |
2550 |
if test "${ac_cv_func_connect+set}" = set; then |
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
2551 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2552 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2553 |
else |
else |
2554 |
cat >conftest.$ac_ext <<_ACEOF |
ac_save_LIBS="$LIBS" |
2555 |
/* confdefs.h. */ |
LIBS="-ldnet_stub $LIBS" |
2556 |
_ACEOF |
cat > conftest.$ac_ext <<EOF |
2557 |
cat confdefs.h >>conftest.$ac_ext |
#line 2558 "configure" |
2558 |
cat >>conftest.$ac_ext <<_ACEOF |
#include "confdefs.h" |
2559 |
/* end confdefs.h. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
2560 |
/* Define connect to an innocuous variant, in case <limits.h> declares connect. |
/* We use char because int might match the return type of a gcc2 |
2561 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
builtin and then its argument prototype would still apply. */ |
2562 |
#define connect innocuous_connect |
char dnet_ntoa(); |
2563 |
|
|
2564 |
/* System header to define __stub macros and hopefully few prototypes, |
int main() { |
2565 |
which can conflict with char connect (); below. |
dnet_ntoa() |
2566 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
; return 0; } |
2567 |
<limits.h> exists even on freestanding compilers. */ |
EOF |
2568 |
|
if { (eval echo configure:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2569 |
|
rm -rf conftest* |
2570 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2571 |
|
else |
2572 |
|
echo "configure: failed program was:" >&5 |
2573 |
|
cat conftest.$ac_ext >&5 |
2574 |
|
rm -rf conftest* |
2575 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2576 |
|
fi |
2577 |
|
rm -f conftest* |
2578 |
|
LIBS="$ac_save_LIBS" |
2579 |
|
|
2580 |
#ifdef __STDC__ |
fi |
2581 |
# include <limits.h> |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2582 |
#else |
echo "$ac_t""yes" 1>&6 |
2583 |
# include <assert.h> |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
2584 |
#endif |
else |
2585 |
|
echo "$ac_t""no" 1>&6 |
2586 |
|
fi |
2587 |
|
|
2588 |
#undef connect |
fi |
2589 |
|
|
2590 |
|
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
2591 |
|
# to get the SysV transport functions. |
2592 |
|
# chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
2593 |
|
# needs -lnsl. |
2594 |
|
# The nsl library prevents programs from opening the X display |
2595 |
|
# on Irix 5.2, according to dickey@clark.net. |
2596 |
|
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
2597 |
|
echo "configure:2598: checking for gethostbyname" >&5 |
2598 |
|
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
2599 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2600 |
|
else |
2601 |
|
cat > conftest.$ac_ext <<EOF |
2602 |
|
#line 2603 "configure" |
2603 |
|
#include "confdefs.h" |
2604 |
|
/* System header to define __stub macros and hopefully few prototypes, |
2605 |
|
which can conflict with char gethostbyname(); below. */ |
2606 |
|
#include <assert.h> |
2607 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
2608 |
/* 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 |
2609 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2610 |
char connect (); |
char gethostbyname(); |
2611 |
|
|
2612 |
|
int main() { |
2613 |
|
|
2614 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2615 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2616 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2617 |
#if defined (__stub_connect) || defined (__stub___connect) |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
2618 |
choke me |
choke me |
2619 |
#else |
#else |
2620 |
char (*f) () = connect; |
gethostbyname(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
2621 |
#endif |
#endif |
2622 |
|
|
2623 |
int |
; return 0; } |
2624 |
main () |
EOF |
2625 |
{ |
if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2626 |
return f != connect; |
rm -rf conftest* |
2627 |
; |
eval "ac_cv_func_gethostbyname=yes" |
2628 |
return 0; |
else |
2629 |
} |
echo "configure: failed program was:" >&5 |
2630 |
_ACEOF |
cat conftest.$ac_ext >&5 |
2631 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -rf conftest* |
2632 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
eval "ac_cv_func_gethostbyname=no" |
2633 |
(eval $ac_link) 2>conftest.er1 |
fi |
2634 |
ac_status=$? |
rm -f conftest* |
2635 |
grep -v '^ *+' conftest.er1 >conftest.err |
fi |
2636 |
rm -f conftest.er1 |
|
2637 |
cat conftest.err >&5 |
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
2638 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$ac_t""yes" 1>&6 |
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_connect=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_connect=no |
|
|
fi |
|
|
rm -f conftest.err 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 |
|
2639 |
: |
: |
2640 |
else |
else |
2641 |
|
echo "$ac_t""no" 1>&6 |
2642 |
|
fi |
2643 |
|
|
2644 |
echo "$as_me:$LINENO: checking for connect in -lxnet" >&5 |
if test $ac_cv_func_gethostbyname = no; then |
2645 |
echo $ECHO_N "checking for connect in -lxnet... $ECHO_C" >&6 |
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
2646 |
if test "${ac_cv_lib_xnet_connect+set}" = set; then |
echo "configure:2647: checking for gethostbyname in -lnsl" >&5 |
2647 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
2648 |
else |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2649 |
ac_check_lib_save_LIBS=$LIBS |
echo $ac_n "(cached) $ac_c" 1>&6 |
2650 |
LIBS="-lxnet $LIBS" |
else |
2651 |
|
ac_save_LIBS="$LIBS" |
2652 |
cat >conftest.$ac_ext <<_ACEOF |
LIBS="-lnsl $LIBS" |
2653 |
/* confdefs.h. */ |
cat > conftest.$ac_ext <<EOF |
2654 |
_ACEOF |
#line 2655 "configure" |
2655 |
cat confdefs.h >>conftest.$ac_ext |
#include "confdefs.h" |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
2656 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2657 |
/* 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 |
2658 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2659 |
char connect (); |
char gethostbyname(); |
|
int |
|
|
main () |
|
|
{ |
|
|
connect (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ 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_xnet_connect=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_xnet_connect=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_connect" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_xnet_connect" >&6 |
|
|
if test $ac_cv_lib_xnet_connect = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define HAVE_LIBXNET 1 |
|
|
_ACEOF |
|
|
|
|
|
LIBS="-lxnet $LIBS" |
|
2660 |
|
|
2661 |
|
int main() { |
2662 |
|
gethostbyname() |
2663 |
|
; return 0; } |
2664 |
|
EOF |
2665 |
|
if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2666 |
|
rm -rf conftest* |
2667 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2668 |
|
else |
2669 |
|
echo "configure: failed program was:" >&5 |
2670 |
|
cat conftest.$ac_ext >&5 |
2671 |
|
rm -rf conftest* |
2672 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2673 |
fi |
fi |
2674 |
|
rm -f conftest* |
2675 |
|
LIBS="$ac_save_LIBS" |
2676 |
|
|
2677 |
fi |
fi |
2678 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2679 |
|
echo "$ac_t""yes" 1>&6 |
2680 |
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
2681 |
|
else |
2682 |
|
echo "$ac_t""no" 1>&6 |
2683 |
|
fi |
2684 |
|
|
2685 |
echo "$as_me:$LINENO: checking for socket" >&5 |
fi |
|
echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
|
|
if test "${ac_cv_func_socket+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
/* Define socket to an innocuous variant, in case <limits.h> declares socket. |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
#define socket innocuous_socket |
|
2686 |
|
|
2687 |
|
# lieder@skyler.mavd.honeywell.com says without -lsocket, |
2688 |
|
# socket/setsockopt and other routines are undefined under SCO ODT |
2689 |
|
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
2690 |
|
# on later versions), says simon@lia.di.epfl.ch: it contains |
2691 |
|
# gethostby* variants that don't use the nameserver (or something). |
2692 |
|
# -lsocket must be given before -lnsl if both are needed. |
2693 |
|
# We assume that if connect needs -lnsl, so does gethostbyname. |
2694 |
|
echo $ac_n "checking for connect""... $ac_c" 1>&6 |
2695 |
|
echo "configure:2696: checking for connect" >&5 |
2696 |
|
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
2697 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2698 |
|
else |
2699 |
|
cat > conftest.$ac_ext <<EOF |
2700 |
|
#line 2701 "configure" |
2701 |
|
#include "confdefs.h" |
2702 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2703 |
which can conflict with char socket (); below. |
which can conflict with char connect(); below. */ |
2704 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
#include <assert.h> |
|
<limits.h> exists even on freestanding compilers. */ |
|
|
|
|
|
#ifdef __STDC__ |
|
|
# include <limits.h> |
|
|
#else |
|
|
# include <assert.h> |
|
|
#endif |
|
|
|
|
|
#undef socket |
|
|
|
|
2705 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
2706 |
/* 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 |
2707 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2708 |
char socket (); |
char connect(); |
2709 |
|
|
2710 |
|
int main() { |
2711 |
|
|
2712 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2713 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2714 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2715 |
#if defined (__stub_socket) || defined (__stub___socket) |
#if defined (__stub_connect) || defined (__stub___connect) |
2716 |
choke me |
choke me |
2717 |
#else |
#else |
2718 |
char (*f) () = socket; |
connect(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
2719 |
#endif |
#endif |
2720 |
|
|
2721 |
int |
; return 0; } |
2722 |
main () |
EOF |
2723 |
{ |
if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2724 |
return f != socket; |
rm -rf conftest* |
2725 |
; |
eval "ac_cv_func_connect=yes" |
2726 |
return 0; |
else |
2727 |
} |
echo "configure: failed program was:" >&5 |
2728 |
_ACEOF |
cat conftest.$ac_ext >&5 |
2729 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -rf conftest* |
2730 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
eval "ac_cv_func_connect=no" |
2731 |
(eval $ac_link) 2>conftest.er1 |
fi |
2732 |
ac_status=$? |
rm -f conftest* |
2733 |
grep -v '^ *+' conftest.er1 >conftest.err |
fi |
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ 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_socket=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_socket=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_socket" >&6 |
|
|
if test $ac_cv_func_socket = yes; then |
|
|
: |
|
|
else |
|
2734 |
|
|
2735 |
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
2736 |
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
echo "$ac_t""yes" 1>&6 |
2737 |
if test "${ac_cv_lib_socket_socket+set}" = set; then |
: |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2738 |
else |
else |
2739 |
ac_check_lib_save_LIBS=$LIBS |
echo "$ac_t""no" 1>&6 |
2740 |
LIBS="-lsocket $LIBS" |
fi |
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
2741 |
|
|
2742 |
|
if test $ac_cv_func_connect = no; then |
2743 |
|
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
2744 |
|
echo "configure:2745: checking for connect in -lsocket" >&5 |
2745 |
|
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
2746 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2747 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2748 |
|
else |
2749 |
|
ac_save_LIBS="$LIBS" |
2750 |
|
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
2751 |
|
cat > conftest.$ac_ext <<EOF |
2752 |
|
#line 2753 "configure" |
2753 |
|
#include "confdefs.h" |
2754 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2755 |
/* 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 |
2756 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2757 |
char socket (); |
char connect(); |
|
int |
|
|
main () |
|
|
{ |
|
|
socket (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ 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_socket=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_socket_socket=no |
|
|
fi |
|
|
rm -f conftest.err 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_socket" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
|
|
if test $ac_cv_lib_socket_socket = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define HAVE_LIBSOCKET 1 |
|
|
_ACEOF |
|
|
|
|
|
LIBS="-lsocket $LIBS" |
|
2758 |
|
|
2759 |
|
int main() { |
2760 |
|
connect() |
2761 |
|
; return 0; } |
2762 |
|
EOF |
2763 |
|
if { (eval echo configure:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2764 |
|
rm -rf conftest* |
2765 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2766 |
|
else |
2767 |
|
echo "configure: failed program was:" >&5 |
2768 |
|
cat conftest.$ac_ext >&5 |
2769 |
|
rm -rf conftest* |
2770 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2771 |
fi |
fi |
2772 |
|
rm -f conftest* |
2773 |
|
LIBS="$ac_save_LIBS" |
2774 |
|
|
2775 |
fi |
fi |
2776 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2777 |
|
echo "$ac_t""yes" 1>&6 |
2778 |
|
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
2779 |
|
else |
2780 |
|
echo "$ac_t""no" 1>&6 |
2781 |
|
fi |
2782 |
|
|
2783 |
echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
fi |
|
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
|
|
if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
#define gethostbyname innocuous_gethostbyname |
|
2784 |
|
|
2785 |
|
# gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
2786 |
|
echo $ac_n "checking for remove""... $ac_c" 1>&6 |
2787 |
|
echo "configure:2788: checking for remove" >&5 |
2788 |
|
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
2789 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2790 |
|
else |
2791 |
|
cat > conftest.$ac_ext <<EOF |
2792 |
|
#line 2793 "configure" |
2793 |
|
#include "confdefs.h" |
2794 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2795 |
which can conflict with char gethostbyname (); below. |
which can conflict with char remove(); below. */ |
2796 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
#include <assert.h> |
|
<limits.h> exists even on freestanding compilers. */ |
|
|
|
|
|
#ifdef __STDC__ |
|
|
# include <limits.h> |
|
|
#else |
|
|
# include <assert.h> |
|
|
#endif |
|
|
|
|
|
#undef gethostbyname |
|
|
|
|
2797 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
2798 |
/* 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 |
2799 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2800 |
char gethostbyname (); |
char remove(); |
2801 |
|
|
2802 |
|
int main() { |
2803 |
|
|
2804 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
2805 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
2806 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
2807 |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
#if defined (__stub_remove) || defined (__stub___remove) |
2808 |
choke me |
choke me |
2809 |
#else |
#else |
2810 |
char (*f) () = gethostbyname; |
remove(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
2811 |
#endif |
#endif |
2812 |
|
|
2813 |
int |
; return 0; } |
2814 |
main () |
EOF |
2815 |
{ |
if { (eval echo configure:2816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2816 |
return f != gethostbyname; |
rm -rf conftest* |
2817 |
; |
eval "ac_cv_func_remove=yes" |
2818 |
return 0; |
else |
2819 |
} |
echo "configure: failed program was:" >&5 |
2820 |
_ACEOF |
cat conftest.$ac_ext >&5 |
2821 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -rf conftest* |
2822 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
eval "ac_cv_func_remove=no" |
2823 |
(eval $ac_link) 2>conftest.er1 |
fi |
2824 |
ac_status=$? |
rm -f conftest* |
2825 |
grep -v '^ *+' conftest.er1 >conftest.err |
fi |
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_gethostbyname=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_gethostbyname=no |
|
|
fi |
|
|
rm -f conftest.err 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 |
|
|
: |
|
|
else |
|
2826 |
|
|
2827 |
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
2828 |
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
echo "$ac_t""yes" 1>&6 |
2829 |
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
: |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2830 |
else |
else |
2831 |
ac_check_lib_save_LIBS=$LIBS |
echo "$ac_t""no" 1>&6 |
2832 |
LIBS="-lnsl $LIBS" |
fi |
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
2833 |
|
|
2834 |
|
if test $ac_cv_func_remove = no; then |
2835 |
|
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
2836 |
|
echo "configure:2837: checking for remove in -lposix" >&5 |
2837 |
|
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
2838 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2839 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2840 |
|
else |
2841 |
|
ac_save_LIBS="$LIBS" |
2842 |
|
LIBS="-lposix $LIBS" |
2843 |
|
cat > conftest.$ac_ext <<EOF |
2844 |
|
#line 2845 "configure" |
2845 |
|
#include "confdefs.h" |
2846 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2847 |
/* 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 |
2848 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2849 |
char gethostbyname (); |
char remove(); |
|
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>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_nsl_gethostbyname=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_nsl_gethostbyname=no |
|
|
fi |
|
|
rm -f conftest.err 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 |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define HAVE_LIBNSL 1 |
|
|
_ACEOF |
|
|
|
|
|
LIBS="-lnsl $LIBS" |
|
2850 |
|
|
2851 |
|
int main() { |
2852 |
|
remove() |
2853 |
|
; return 0; } |
2854 |
|
EOF |
2855 |
|
if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2856 |
|
rm -rf conftest* |
2857 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2858 |
|
else |
2859 |
|
echo "configure: failed program was:" >&5 |
2860 |
|
cat conftest.$ac_ext >&5 |
2861 |
|
rm -rf conftest* |
2862 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2863 |
fi |
fi |
2864 |
|
rm -f conftest* |
2865 |
|
LIBS="$ac_save_LIBS" |
2866 |
|
|
2867 |
fi |
fi |
2868 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2869 |
|
echo "$ac_t""yes" 1>&6 |
2870 |
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
2871 |
|
else |
2872 |
|
echo "$ac_t""no" 1>&6 |
2873 |
|
fi |
2874 |
|
|
2875 |
LIBSFORSOCKETS="$LIBS" |
fi |
|
LIBS= |
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
|
|
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
|
|
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
LIBS="-lpthread $LIBS" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
2876 |
|
|
2877 |
|
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
2878 |
|
echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
2879 |
|
echo "configure:2880: checking for shmat" >&5 |
2880 |
|
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
2881 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2882 |
|
else |
2883 |
|
cat > conftest.$ac_ext <<EOF |
2884 |
|
#line 2885 "configure" |
2885 |
|
#include "confdefs.h" |
2886 |
|
/* System header to define __stub macros and hopefully few prototypes, |
2887 |
|
which can conflict with char shmat(); below. */ |
2888 |
|
#include <assert.h> |
2889 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
2890 |
/* 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 |
2891 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
2892 |
char pthread_create (); |
char shmat(); |
|
int |
|
|
main () |
|
|
{ |
|
|
pthread_create (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ 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_pthread_pthread_create=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_lib_pthread_pthread_create=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
|
|
if test $ac_cv_lib_pthread_pthread_create = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define HAVE_LIBPTHREAD 1 |
|
|
_ACEOF |
|
|
|
|
|
LIBS="-lpthread $LIBS" |
|
|
|
|
|
fi |
|
2893 |
|
|
2894 |
LIBSFORPTHREAD="$LIBS" |
int main() { |
|
|
|
|
echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5 |
|
|
echo $ECHO_N "checking for sem_init in -lposix4... $ECHO_C" >&6 |
|
|
if test "${ac_cv_lib_posix4_sem_init+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
LIBS="-lposix4 $LIBS" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
2895 |
|
|
2896 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* The GNU C library defines this for functions which it implements |
2897 |
#ifdef __cplusplus |
to always fail with ENOSYS. Some functions are actually named |
2898 |
extern "C" |
something starting with __ and the normal name is an alias. */ |
2899 |
|
#if defined (__stub_shmat) || defined (__stub___shmat) |
2900 |
|
choke me |
2901 |
|
#else |
2902 |
|
shmat(); |
2903 |
#endif |
#endif |
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char sem_init (); |
|
|
int |
|
|
main () |
|
|
{ |
|
|
sem_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>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ 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_posix4_sem_init=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
2904 |
|
|
2905 |
ac_cv_lib_posix4_sem_init=no |
; return 0; } |
2906 |
|
EOF |
2907 |
|
if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2908 |
|
rm -rf conftest* |
2909 |
|
eval "ac_cv_func_shmat=yes" |
2910 |
|
else |
2911 |
|
echo "configure: failed program was:" >&5 |
2912 |
|
cat conftest.$ac_ext >&5 |
2913 |
|
rm -rf conftest* |
2914 |
|
eval "ac_cv_func_shmat=no" |
2915 |
fi |
fi |
2916 |
rm -f conftest.err conftest.$ac_objext \ |
rm -f conftest* |
|
conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
2917 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_posix4_sem_init" >&6 |
|
|
if test $ac_cv_lib_posix4_sem_init = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define HAVE_LIBPOSIX4 1 |
|
|
_ACEOF |
|
|
|
|
|
LIBS="-lposix4 $LIBS" |
|
2918 |
|
|
2919 |
|
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
2920 |
|
echo "$ac_t""yes" 1>&6 |
2921 |
|
: |
2922 |
|
else |
2923 |
|
echo "$ac_t""no" 1>&6 |
2924 |
fi |
fi |
2925 |
|
|
2926 |
LIBSFORPTHREAD="$LIBSFORPTHREAD $LIBS" |
if test $ac_cv_func_shmat = no; then |
2927 |
|
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
2928 |
|
echo "configure:2929: checking for shmat in -lipc" >&5 |
2929 |
|
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
2930 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2931 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2932 |
|
else |
2933 |
|
ac_save_LIBS="$LIBS" |
2934 |
|
LIBS="-lipc $LIBS" |
2935 |
|
cat > conftest.$ac_ext <<EOF |
2936 |
|
#line 2937 "configure" |
2937 |
|
#include "confdefs.h" |
2938 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
2939 |
|
/* We use char because int might match the return type of a gcc2 |
2940 |
|
builtin and then its argument prototype would still apply. */ |
2941 |
|
char shmat(); |
2942 |
|
|
2943 |
|
int main() { |
2944 |
|
shmat() |
2945 |
|
; return 0; } |
2946 |
|
EOF |
2947 |
|
if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2948 |
|
rm -rf conftest* |
2949 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
2950 |
|
else |
2951 |
|
echo "configure: failed program was:" >&5 |
2952 |
|
cat conftest.$ac_ext >&5 |
2953 |
|
rm -rf conftest* |
2954 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
2955 |
|
fi |
2956 |
|
rm -f conftest* |
2957 |
|
LIBS="$ac_save_LIBS" |
2958 |
|
|
2959 |
|
fi |
2960 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
2961 |
|
echo "$ac_t""yes" 1>&6 |
2962 |
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
2963 |
|
else |
2964 |
|
echo "$ac_t""no" 1>&6 |
2965 |
|
fi |
2966 |
|
|
2967 |
|
fi |
2968 |
|
fi |
2969 |
|
|
2970 |
|
# Check for libraries that X11R6 Xt/Xaw programs need. |
2971 |
|
ac_save_LDFLAGS="$LDFLAGS" |
2972 |
|
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
2973 |
|
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
2974 |
|
# check for ICE first), but we must link in the order -lSM -lICE or |
2975 |
|
# we get undefined symbols. So assume we have SM if we have ICE. |
2976 |
|
# These have to be linked with before -lX11, unlike the other |
2977 |
|
# libraries we check for below, so use a different variable. |
2978 |
|
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
2979 |
|
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
2980 |
|
echo "configure:2981: checking for IceConnectionNumber in -lICE" >&5 |
2981 |
|
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
2982 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2983 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
2984 |
|
else |
2985 |
|
ac_save_LIBS="$LIBS" |
2986 |
|
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
2987 |
|
cat > conftest.$ac_ext <<EOF |
2988 |
|
#line 2989 "configure" |
2989 |
|
#include "confdefs.h" |
2990 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
2991 |
|
/* We use char because int might match the return type of a gcc2 |
2992 |
|
builtin and then its argument prototype would still apply. */ |
2993 |
|
char IceConnectionNumber(); |
2994 |
|
|
2995 |
# Check whether --with-gcl or --without-gcl was given. |
int main() { |
2996 |
if test "${with_gcl+set}" = set; then |
IceConnectionNumber() |
2997 |
withval="$with_gcl" |
; return 0; } |
2998 |
|
EOF |
2999 |
|
if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3000 |
|
rm -rf conftest* |
3001 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3002 |
|
else |
3003 |
|
echo "configure: failed program was:" >&5 |
3004 |
|
cat conftest.$ac_ext >&5 |
3005 |
|
rm -rf conftest* |
3006 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
3007 |
|
fi |
3008 |
|
rm -f conftest* |
3009 |
|
LIBS="$ac_save_LIBS" |
3010 |
|
|
3011 |
|
fi |
3012 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3013 |
|
echo "$ac_t""yes" 1>&6 |
3014 |
|
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
3015 |
else |
else |
3016 |
with_gcl=no |
echo "$ac_t""no" 1>&6 |
3017 |
fi; |
fi |
3018 |
with_gcl=`echo $with_gcl | sed -e "s#^../#$PWD/../#"` |
|
3019 |
|
LDFLAGS="$ac_save_LDFLAGS" |
3020 |
|
|
3021 |
|
fi |
3022 |
|
|
3023 |
# Check whether --with-mpicc or --without-mpicc was given. |
echo $X_CFLAGS |
3024 |
if test "${with_mpicc+set}" = set; then |
echo $X_LIBS |
3025 |
withval="$with_mpicc" |
echo $X_EXTRA_LIBS |
3026 |
|
echo $X_PRE_LIBS |
3027 |
|
|
3028 |
|
miss=0 |
3029 |
|
echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6 |
3030 |
|
echo "configure:3031: checking for main in -lXmu" >&5 |
3031 |
|
ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'` |
3032 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3033 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3034 |
else |
else |
3035 |
with_mpicc=no |
ac_save_LIBS="$LIBS" |
3036 |
fi; |
LIBS="-lXmu $X_LIBS $LIBS" |
3037 |
with_mpicc=`echo $with_mpicc | sed -e "s#^../#$PWD/../#"` |
cat > conftest.$ac_ext <<EOF |
3038 |
|
#line 3039 "configure" |
3039 |
|
#include "confdefs.h" |
3040 |
|
|
3041 |
if test "x$with_mpicc" = "xno"; then |
int main() { |
3042 |
libmpi="-lmpinu" |
main() |
3043 |
MPICC='$'{CC} |
; return 0; } |
3044 |
|
EOF |
3045 |
|
if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3046 |
|
rm -rf conftest* |
3047 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3048 |
else |
else |
3049 |
HAVE_MPI_H=1 |
echo "configure: failed program was:" >&5 |
3050 |
cat >>confdefs.h <<\_ACEOF |
cat conftest.$ac_ext >&5 |
3051 |
#define HAVE_MPI_H 1 |
rm -rf conftest* |
3052 |
_ACEOF |
eval "ac_cv_lib_$ac_lib_var=no" |
3053 |
|
fi |
3054 |
|
rm -f conftest* |
3055 |
|
LIBS="$ac_save_LIBS" |
3056 |
|
|
|
MPICC="$with_mpicc" |
|
3057 |
fi |
fi |
3058 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3059 |
|
echo "$ac_t""yes" 1>&6 |
3060 |
|
X_LIBS="$X_LIBS -lXmu" |
3061 |
|
else |
3062 |
|
echo "$ac_t""no" 1>&6 |
3063 |
|
miss=1 |
3064 |
|
fi |
3065 |
|
|
3066 |
|
echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6 |
3067 |
|
echo "configure:3068: checking for main in -lXt" >&5 |
3068 |
|
ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'` |
3069 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3070 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3071 |
|
else |
3072 |
|
ac_save_LIBS="$LIBS" |
3073 |
|
LIBS="-lXt $X_LIBS $LIBS" |
3074 |
|
cat > conftest.$ac_ext <<EOF |
3075 |
|
#line 3076 "configure" |
3076 |
|
#include "confdefs.h" |
3077 |
|
|
3078 |
|
int main() { |
3079 |
|
main() |
3080 |
|
; return 0; } |
3081 |
|
EOF |
3082 |
|
if { (eval echo configure:3083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3083 |
|
rm -rf conftest* |
3084 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3085 |
|
else |
3086 |
|
echo "configure: failed program was:" >&5 |
3087 |
|
cat conftest.$ac_ext >&5 |
3088 |
|
rm -rf conftest* |
3089 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
3090 |
|
fi |
3091 |
|
rm -f conftest* |
3092 |
|
LIBS="$ac_save_LIBS" |
3093 |
|
|
3094 |
LIBSFORMPI="$libmpi $LIBSFORSOCKETS" |
fi |
3095 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3096 |
|
echo "$ac_t""yes" 1>&6 |
3097 |
|
X_LIBS="$X_LIBS -lXt" |
3098 |
|
else |
3099 |
|
echo "$ac_t""no" 1>&6 |
3100 |
|
miss=1 |
3101 |
|
fi |
3102 |
|
|
3103 |
|
echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6 |
3104 |
|
echo "configure:3105: checking for main in -lXext" >&5 |
3105 |
|
ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'` |
3106 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3107 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3108 |
|
else |
3109 |
|
ac_save_LIBS="$LIBS" |
3110 |
|
LIBS="-lXext $X_LIBS $LIBS" |
3111 |
|
cat > conftest.$ac_ext <<EOF |
3112 |
|
#line 3113 "configure" |
3113 |
|
#include "confdefs.h" |
3114 |
|
|
3115 |
|
int main() { |
3116 |
|
main() |
3117 |
|
; return 0; } |
3118 |
|
EOF |
3119 |
|
if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3120 |
|
rm -rf conftest* |
3121 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3122 |
|
else |
3123 |
|
echo "configure: failed program was:" >&5 |
3124 |
|
cat conftest.$ac_ext >&5 |
3125 |
|
rm -rf conftest* |
3126 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
3127 |
|
fi |
3128 |
|
rm -f conftest* |
3129 |
|
LIBS="$ac_save_LIBS" |
3130 |
|
|
|
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 |
|
|
# On Suns, sometimes $CPP names a directory. |
|
|
if test -n "$CPP" && test -d "$CPP"; then |
|
|
CPP= |
|
3131 |
fi |
fi |
3132 |
if test -z "$CPP"; then |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3133 |
if test "${ac_cv_prog_CPP+set}" = set; then |
echo "$ac_t""yes" 1>&6 |
3134 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
X_LIBS="$X_LIBS -lXext" |
3135 |
else |
else |
3136 |
# Double quotes because CPP needs to be expanded |
echo "$ac_t""no" 1>&6 |
3137 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
miss=1 |
3138 |
do |
fi |
3139 |
ac_preproc_ok=false |
|
3140 |
for ac_c_preproc_warn_flag in '' yes |
echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6 |
3141 |
do |
echo "configure:3142: checking for main in -lXaw" >&5 |
3142 |
# Use a header file that comes with gcc, so configuring glibc |
ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'` |
3143 |
# with a fresh cross-compiler works. |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3144 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
echo $ac_n "(cached) $ac_c" 1>&6 |
3145 |
# <limits.h> exists even on freestanding compilers. |
else |
3146 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
ac_save_LIBS="$LIBS" |
3147 |
# not just through cpp. "Syntax error" is here to catch this case. |
LIBS="-lXaw $X_LIBS $LIBS" |
3148 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3149 |
/* confdefs.h. */ |
#line 3150 "configure" |
3150 |
_ACEOF |
#include "confdefs.h" |
3151 |
cat confdefs.h >>conftest.$ac_ext |
|
3152 |
cat >>conftest.$ac_ext <<_ACEOF |
int main() { |
3153 |
/* end confdefs.h. */ |
main() |
3154 |
#ifdef __STDC__ |
; return 0; } |
3155 |
# include <limits.h> |
EOF |
3156 |
#else |
if { (eval echo configure:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3157 |
# include <assert.h> |
rm -rf conftest* |
3158 |
#endif |
eval "ac_cv_lib_$ac_lib_var=yes" |
3159 |
Syntax error |
else |
3160 |
_ACEOF |
echo "configure: failed program was:" >&5 |
3161 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
cat conftest.$ac_ext >&5 |
3162 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
rm -rf conftest* |
3163 |
ac_status=$? |
eval "ac_cv_lib_$ac_lib_var=no" |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
3164 |
fi |
fi |
3165 |
if test -z "$ac_cpp_err"; then |
rm -f conftest* |
3166 |
: |
LIBS="$ac_save_LIBS" |
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3167 |
|
|
|
# Broken: fails on valid input. |
|
|
continue |
|
3168 |
fi |
fi |
3169 |
rm -f conftest.err conftest.$ac_ext |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3170 |
|
echo "$ac_t""yes" 1>&6 |
3171 |
|
X_LIBS="$X_LIBS -lXaw" |
3172 |
|
else |
3173 |
|
echo "$ac_t""no" 1>&6 |
3174 |
|
miss=1 |
3175 |
|
fi |
3176 |
|
|
3177 |
|
echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6 |
3178 |
|
echo "configure:3179: checking for main in -lX11" >&5 |
3179 |
|
ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'` |
3180 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3181 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3182 |
|
else |
3183 |
|
ac_save_LIBS="$LIBS" |
3184 |
|
LIBS="-lX11 $X_LIBS $LIBS" |
3185 |
|
cat > conftest.$ac_ext <<EOF |
3186 |
|
#line 3187 "configure" |
3187 |
|
#include "confdefs.h" |
3188 |
|
|
3189 |
|
int main() { |
3190 |
|
main() |
3191 |
|
; return 0; } |
3192 |
|
EOF |
3193 |
|
if { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3194 |
|
rm -rf conftest* |
3195 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3196 |
|
else |
3197 |
|
echo "configure: failed program was:" >&5 |
3198 |
|
cat conftest.$ac_ext >&5 |
3199 |
|
rm -rf conftest* |
3200 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
3201 |
|
fi |
3202 |
|
rm -f conftest* |
3203 |
|
LIBS="$ac_save_LIBS" |
3204 |
|
|
|
# OK, works on sane cases. Now check whether non-existent headers |
|
|
# can be detected and how. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <ac_nonexistent.h> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
3205 |
fi |
fi |
3206 |
if test -z "$ac_cpp_err"; then |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3207 |
# Broken: success on invalid input. |
echo "$ac_t""yes" 1>&6 |
3208 |
continue |
X_LIBS="$X_LIBS -lX11" |
3209 |
else |
else |
3210 |
echo "$as_me: failed program was:" >&5 |
echo "$ac_t""no" 1>&6 |
3211 |
sed 's/^/| /' conftest.$ac_ext >&5 |
miss=1 |
3212 |
|
fi |
3213 |
|
|
3214 |
# Passes both tests. |
|
3215 |
ac_preproc_ok=: |
if test "$miss" = "1" ; then |
3216 |
break |
X_CFLAGS= |
3217 |
|
X_LIBS= |
3218 |
|
echo missing x libraries -- cannot compile xgcl |
3219 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
3220 |
|
|
3221 |
done |
|
3222 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
3223 |
rm -f conftest.err conftest.$ac_ext |
|
3224 |
if $ac_preproc_ok; then |
|
3225 |
break |
# |
3226 |
|
# Dynamic loading |
3227 |
|
# |
3228 |
|
|
3229 |
|
if test "$enable_dlopen" = "yes" ; then |
3230 |
|
|
3231 |
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
3232 |
|
echo "configure:3233: checking for dlopen in -ldl" >&5 |
3233 |
|
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
3234 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3235 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3236 |
|
else |
3237 |
|
ac_save_LIBS="$LIBS" |
3238 |
|
LIBS="-ldl $LIBS" |
3239 |
|
cat > conftest.$ac_ext <<EOF |
3240 |
|
#line 3241 "configure" |
3241 |
|
#include "confdefs.h" |
3242 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
3243 |
|
/* We use char because int might match the return type of a gcc2 |
3244 |
|
builtin and then its argument prototype would still apply. */ |
3245 |
|
char dlopen(); |
3246 |
|
|
3247 |
|
int main() { |
3248 |
|
dlopen() |
3249 |
|
; return 0; } |
3250 |
|
EOF |
3251 |
|
if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3252 |
|
rm -rf conftest* |
3253 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3254 |
|
else |
3255 |
|
echo "configure: failed program was:" >&5 |
3256 |
|
cat conftest.$ac_ext >&5 |
3257 |
|
rm -rf conftest* |
3258 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
3259 |
fi |
fi |
3260 |
|
rm -f conftest* |
3261 |
|
LIBS="$ac_save_LIBS" |
3262 |
|
|
3263 |
done |
fi |
3264 |
ac_cv_prog_CPP=$CPP |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3265 |
|
echo "$ac_t""yes" 1>&6 |
3266 |
|
have_dl=1 |
3267 |
|
else |
3268 |
|
echo "$ac_t""no" 1>&6 |
3269 |
|
have_dl=0 |
3270 |
|
fi |
3271 |
|
|
3272 |
|
if test "$have_dl" = "0" ; then |
3273 |
|
echo "Cannot find dlopen in -dl" |
3274 |
|
exit 1 |
3275 |
|
fi |
3276 |
|
|
3277 |
|
TLIBS="$TLIBS -ldl -rdynamic" |
3278 |
|
cat >> confdefs.h <<\EOF |
3279 |
|
#define USE_DLOPEN 1 |
3280 |
|
EOF |
3281 |
|
|
3282 |
fi |
fi |
3283 |
CPP=$ac_cv_prog_CPP |
|
3284 |
else |
if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then |
3285 |
ac_cv_prog_CPP=$CPP |
ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'` |
3286 |
|
echo $ac_n "checking for bfd.h""... $ac_c" 1>&6 |
3287 |
|
echo "configure:3288: checking for bfd.h" >&5 |
3288 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3289 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3290 |
|
else |
3291 |
|
cat > conftest.$ac_ext <<EOF |
3292 |
|
#line 3293 "configure" |
3293 |
|
#include "confdefs.h" |
3294 |
|
#include <bfd.h> |
3295 |
|
EOF |
3296 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3297 |
|
{ (eval echo configure:3298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3298 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3299 |
|
if test -z "$ac_err"; then |
3300 |
|
rm -rf conftest* |
3301 |
|
eval "ac_cv_header_$ac_safe=yes" |
3302 |
|
else |
3303 |
|
echo "$ac_err" >&5 |
3304 |
|
echo "configure: failed program was:" >&5 |
3305 |
|
cat conftest.$ac_ext >&5 |
3306 |
|
rm -rf conftest* |
3307 |
|
eval "ac_cv_header_$ac_safe=no" |
3308 |
fi |
fi |
3309 |
echo "$as_me:$LINENO: result: $CPP" >&5 |
rm -f conftest* |
|
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. |
|
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
# <limits.h> exists even on freestanding compilers. |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
# not just through cpp. "Syntax error" is here to catch this case. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#ifdef __STDC__ |
|
|
# include <limits.h> |
|
|
#else |
|
|
# include <assert.h> |
|
|
#endif |
|
|
Syntax error |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
3310 |
fi |
fi |
3311 |
if test -z "$ac_cpp_err"; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3312 |
: |
echo "$ac_t""yes" 1>&6 |
3313 |
else |
echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6 |
3314 |
echo "$as_me: failed program was:" >&5 |
echo "configure:3315: checking for bfd_init in -lbfd" >&5 |
3315 |
sed 's/^/| /' conftest.$ac_ext >&5 |
ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'` |
3316 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3317 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3318 |
|
else |
3319 |
|
ac_save_LIBS="$LIBS" |
3320 |
|
LIBS="-lbfd -liberty $LIBS" |
3321 |
|
cat > conftest.$ac_ext <<EOF |
3322 |
|
#line 3323 "configure" |
3323 |
|
#include "confdefs.h" |
3324 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
3325 |
|
/* We use char because int might match the return type of a gcc2 |
3326 |
|
builtin and then its argument prototype would still apply. */ |
3327 |
|
char bfd_init(); |
3328 |
|
|
3329 |
# Broken: fails on valid input. |
int main() { |
3330 |
continue |
bfd_init() |
3331 |
|
; return 0; } |
3332 |
|
EOF |
3333 |
|
if { (eval echo configure:3334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3334 |
|
rm -rf conftest* |
3335 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
3336 |
|
else |
3337 |
|
echo "configure: failed program was:" >&5 |
3338 |
|
cat conftest.$ac_ext >&5 |
3339 |
|
rm -rf conftest* |
3340 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
3341 |
fi |
fi |
3342 |
rm -f conftest.err conftest.$ac_ext |
rm -f conftest* |
3343 |
|
LIBS="$ac_save_LIBS" |
3344 |
|
|
|
# OK, works on sane cases. Now check whether non-existent headers |
|
|
# can be detected and how. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <ac_nonexistent.h> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
3345 |
fi |
fi |
3346 |
if test -z "$ac_cpp_err"; then |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3347 |
# Broken: success on invalid input. |
echo "$ac_t""yes" 1>&6 |
3348 |
continue |
# |
3349 |
|
# Old binutils appear to need CONST defined to const |
3350 |
|
# |
3351 |
|
echo $ac_n "checking if need to define CONST for bfd""... $ac_c" 1>&6 |
3352 |
|
echo "configure:3353: checking if need to define CONST for bfd" >&5 |
3353 |
|
if test "$cross_compiling" = yes; then |
3354 |
|
echo "$ac_t""cannot use bfd" 1>&6 exit 1; |
3355 |
|
else |
3356 |
|
cat > conftest.$ac_ext <<EOF |
3357 |
|
#line 3358 "configure" |
3358 |
|
#include "confdefs.h" |
3359 |
|
#define IN_GCC |
3360 |
|
#include <bfd.h> |
3361 |
|
int main() { symbol_info t; return 0;} |
3362 |
|
EOF |
3363 |
|
if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3364 |
|
then |
3365 |
|
echo "$ac_t""no" 1>&6 |
3366 |
|
else |
3367 |
|
echo "configure: failed program was:" >&5 |
3368 |
|
cat conftest.$ac_ext >&5 |
3369 |
|
rm -fr conftest* |
3370 |
|
if test "$cross_compiling" = yes; then |
3371 |
|
echo "$ac_t""cannot use bfd" 1>&6 exit 1; |
3372 |
else |
else |
3373 |
echo "$as_me: failed program was:" >&5 |
cat > conftest.$ac_ext <<EOF |
3374 |
sed 's/^/| /' conftest.$ac_ext >&5 |
#line 3375 "configure" |
3375 |
|
#include "confdefs.h" |
3376 |
|
#define CONST const |
3377 |
|
#define IN_GCC |
3378 |
|
#include <bfd.h> |
3379 |
|
int main() {symbol_info t; return 0;} |
3380 |
|
EOF |
3381 |
|
if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3382 |
|
then |
3383 |
|
echo "$ac_t""yes" 1>&6 |
3384 |
|
cat >> confdefs.h <<\EOF |
3385 |
|
#define NEED_CONST 1 |
3386 |
|
EOF |
3387 |
|
|
3388 |
# Passes both tests. |
else |
3389 |
ac_preproc_ok=: |
echo "configure: failed program was:" >&5 |
3390 |
break |
cat conftest.$ac_ext >&5 |
3391 |
|
rm -fr conftest* |
3392 |
|
echo "$ac_t""cannot use bfd" 1>&6 exit 1; |
3393 |
|
fi |
3394 |
|
rm -fr conftest* |
3395 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_ext |
|
3396 |
|
|
3397 |
done |
fi |
3398 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
rm -fr conftest* |
3399 |
rm -f conftest.err conftest.$ac_ext |
fi |
3400 |
if $ac_preproc_ok; then |
|
3401 |
: |
|
3402 |
else |
else |
3403 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
echo "$ac_t""no" 1>&6 |
|
See \`config.log' for more details." >&5 |
|
|
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|
|
See \`config.log' for more details." >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
3404 |
fi |
fi |
3405 |
|
|
3406 |
ac_ext=c |
else |
3407 |
ac_cpp='$CPP $CPPFLAGS' |
echo "$ac_t""no" 1>&6 |
3408 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
fi |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3409 |
|
|
3410 |
|
|
3411 |
echo "$as_me:$LINENO: checking for egrep" >&5 |
cat >> confdefs.h <<\EOF |
3412 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
#define HAVE_LIBBFD 1 |
3413 |
if test "${ac_cv_prog_egrep+set}" = set; then |
EOF |
3414 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3415 |
else |
|
3416 |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
# |
3417 |
then ac_cv_prog_egrep='grep -E' |
# BFD boolean syntax |
3418 |
else ac_cv_prog_egrep='egrep' |
# |
3419 |
fi |
|
3420 |
|
echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6 |
3421 |
|
echo "configure:3422: checking for useable bfd_boolean" >&5 |
3422 |
|
if test "$cross_compiling" = yes; then |
3423 |
|
echo "$ac_t""no" 1>&6 |
3424 |
|
else |
3425 |
|
cat > conftest.$ac_ext <<EOF |
3426 |
|
#line 3427 "configure" |
3427 |
|
#include "confdefs.h" |
3428 |
|
#define IN_GCC |
3429 |
|
#include <bfd.h> |
3430 |
|
bfd_boolean foo() {return FALSE;} |
3431 |
|
int main() {return 0;} |
3432 |
|
EOF |
3433 |
|
if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3434 |
|
then |
3435 |
|
echo "$ac_t""yes" 1>&6 |
3436 |
|
cat >> confdefs.h <<\EOF |
3437 |
|
#define HAVE_BFD_BOOLEAN 1 |
3438 |
|
EOF |
3439 |
|
|
3440 |
|
else |
3441 |
|
echo "configure: failed program was:" >&5 |
3442 |
|
cat conftest.$ac_ext >&5 |
3443 |
|
rm -fr conftest* |
3444 |
|
echo "$ac_t""no" 1>&6 |
3445 |
|
fi |
3446 |
|
rm -fr conftest* |
3447 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|
|
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|
|
EGREP=$ac_cv_prog_egrep |
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
if test "${ac_cv_header_stdc+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <stdlib.h> |
|
|
#include <stdarg.h> |
|
|
#include <string.h> |
|
|
#include <float.h> |
|
3448 |
|
|
|
int |
|
|
main () |
|
|
{ |
|
3449 |
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_header_stdc=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_header_stdc=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <string.h> |
|
3450 |
|
|
3451 |
_ACEOF |
# |
3452 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
# FIXME: Need to workaround mingw before this point -- CM |
3453 |
$EGREP "memchr" >/dev/null 2>&1; then |
# |
3454 |
: |
if test "$enable_statsysbfd" = "yes" && ! $CC -v 2>&1 | fgrep ming > /dev/null ; then |
3455 |
else |
echo 'int main() {bfd_init();bfd_openr("/dev/null",0);return 0;}' >foo.c |
3456 |
ac_cv_header_stdc=no |
MP=`$CC -Wl,-M -static -o foo foo.c -lbfd -liberty 2>&1 | grep -v : | tr '()' '\012\012' | $AWK '{print $NF}' | sort | uniq` |
3457 |
|
rm -f foo.c foo |
3458 |
|
if echo $MP | tr ' ' '\012' | grep -q libbfd.a ; then |
3459 |
|
TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libbfd.a | $AWK '{i=split($1,A,"/");for (j=1;j<=i;j++) if (j>1 && A[j]=="..") {j--;i-=2;for (k=j;k<=i;k++) A[k]=A[k+2];j--;}} END {for (j=1;j<=i;j++) printf("%s%s",A[j],j!=i ? "/" : "")}'`" |
3460 |
|
else |
3461 |
|
echo Guessing path to libbfd.a due to gcc bug |
3462 |
|
TLIBS="$TLIBS /usr/lib/libbfd.a" |
3463 |
|
fi |
3464 |
|
if echo $MP | tr ' ' '\012' | grep -q libiberty.a ; then |
3465 |
|
TLIBS="$TLIBS `echo $MP | tr ' ' '\012' | grep libiberty.a | $AWK '{i=split($1,A,"/");for (j=1;j<=i;j++) if (j>1 && A[j]=="..") {j--;i-=2;for (k=j;k<=i;k++) A[k]=A[k+2];j--;}} END {for (j=1;j<=i;j++) printf("%s%s",A[j],j!=i ? "/" : "")}'`" |
3466 |
|
else |
3467 |
|
echo Guessing path to libiberty.a due to gcc bug |
3468 |
|
TLIBS="$TLIBS /usr/lib/libiberty.a" |
3469 |
|
fi |
3470 |
|
else |
3471 |
|
TLIBS="$TLIBS -lbfd -liberty" |
3472 |
|
fi |
3473 |
|
fi |
3474 |
|
|
3475 |
|
if test "$enable_locbfd" = "yes" ; then |
3476 |
|
|
3477 |
|
# check for gettext. It is part of glibc, but others |
3478 |
|
# need GNU gettext separately. |
3479 |
|
ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` |
3480 |
|
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 |
3481 |
|
echo "configure:3482: checking for libintl.h" >&5 |
3482 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3483 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3484 |
|
else |
3485 |
|
cat > conftest.$ac_ext <<EOF |
3486 |
|
#line 3487 "configure" |
3487 |
|
#include "confdefs.h" |
3488 |
|
#include <libintl.h> |
3489 |
|
EOF |
3490 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3491 |
|
{ (eval echo configure:3492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3492 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3493 |
|
if test -z "$ac_err"; then |
3494 |
|
rm -rf conftest* |
3495 |
|
eval "ac_cv_header_$ac_safe=yes" |
3496 |
|
else |
3497 |
|
echo "$ac_err" >&5 |
3498 |
|
echo "configure: failed program was:" >&5 |
3499 |
|
cat conftest.$ac_ext >&5 |
3500 |
|
rm -rf conftest* |
3501 |
|
eval "ac_cv_header_$ac_safe=no" |
3502 |
fi |
fi |
3503 |
rm -f conftest* |
rm -f conftest* |
|
|
|
3504 |
fi |
fi |
3505 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3506 |
|
echo "$ac_t""yes" 1>&6 |
3507 |
|
true |
3508 |
|
else |
3509 |
|
echo "$ac_t""no" 1>&6 |
3510 |
|
{ echo "configure: error: libintl.h (gettext) not found" 1>&2; exit 1; } |
3511 |
|
fi |
3512 |
|
|
3513 |
|
|
3514 |
|
echo $ac_n "checking for library containing dgettext""... $ac_c" 1>&6 |
3515 |
|
echo "configure:3516: checking for library containing dgettext" >&5 |
3516 |
|
if eval "test \"`echo '$''{'ac_cv_search_dgettext'+set}'`\" = set"; then |
3517 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3518 |
|
else |
3519 |
|
ac_func_search_save_LIBS="$LIBS" |
3520 |
|
ac_cv_search_dgettext="no" |
3521 |
|
cat > conftest.$ac_ext <<EOF |
3522 |
|
#line 3523 "configure" |
3523 |
|
#include "confdefs.h" |
3524 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
3525 |
|
/* We use char because int might match the return type of a gcc2 |
3526 |
|
builtin and then its argument prototype would still apply. */ |
3527 |
|
char dgettext(); |
3528 |
|
|
3529 |
if test $ac_cv_header_stdc = yes; then |
int main() { |
3530 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
dgettext() |
3531 |
cat >conftest.$ac_ext <<_ACEOF |
; return 0; } |
3532 |
/* confdefs.h. */ |
EOF |
3533 |
_ACEOF |
if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3534 |
cat confdefs.h >>conftest.$ac_ext |
rm -rf conftest* |
3535 |
cat >>conftest.$ac_ext <<_ACEOF |
ac_cv_search_dgettext="none required" |
|
/* end confdefs.h. */ |
|
|
#include <stdlib.h> |
|
|
|
|
|
_ACEOF |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
$EGREP "free" >/dev/null 2>&1; then |
|
|
: |
|
3536 |
else |
else |
3537 |
ac_cv_header_stdc=no |
echo "configure: failed program was:" >&5 |
3538 |
|
cat conftest.$ac_ext >&5 |
3539 |
fi |
fi |
3540 |
rm -f conftest* |
rm -f conftest* |
3541 |
|
test "$ac_cv_search_dgettext" = "no" && for i in intl; do |
3542 |
|
LIBS="-l$i $ac_func_search_save_LIBS" |
3543 |
|
cat > conftest.$ac_ext <<EOF |
3544 |
|
#line 3545 "configure" |
3545 |
|
#include "confdefs.h" |
3546 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
3547 |
|
/* We use char because int might match the return type of a gcc2 |
3548 |
|
builtin and then its argument prototype would still apply. */ |
3549 |
|
char dgettext(); |
3550 |
|
|
3551 |
|
int main() { |
3552 |
|
dgettext() |
3553 |
|
; return 0; } |
3554 |
|
EOF |
3555 |
|
if { (eval echo configure:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3556 |
|
rm -rf conftest* |
3557 |
|
ac_cv_search_dgettext="-l$i" |
3558 |
|
break |
3559 |
|
else |
3560 |
|
echo "configure: failed program was:" >&5 |
3561 |
|
cat conftest.$ac_ext >&5 |
3562 |
|
fi |
3563 |
|
rm -f conftest* |
3564 |
|
done |
3565 |
|
LIBS="$ac_func_search_save_LIBS" |
3566 |
fi |
fi |
3567 |
|
|
3568 |
if test $ac_cv_header_stdc = yes; then |
echo "$ac_t""$ac_cv_search_dgettext" 1>&6 |
3569 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
if test "$ac_cv_search_dgettext" != "no"; then |
3570 |
|
test "$ac_cv_search_dgettext" = "none required" || LIBS="$ac_cv_search_dgettext $LIBS" |
3571 |
|
true |
3572 |
|
else : |
3573 |
|
{ echo "configure: error: gettext library not found" 1>&2; exit 1; } |
3574 |
|
fi |
3575 |
|
|
3576 |
|
echo "#" |
3577 |
|
echo "#" |
3578 |
|
echo "# -------------------------" |
3579 |
|
echo "# Subconfigure of LIBIBERTY" |
3580 |
|
echo "#" |
3581 |
|
echo "#" |
3582 |
|
cd binutils/libiberty && chmod +x configure && ./configure && cd ../.. |
3583 |
|
# MY_SUBDIRS="$MY_SUBDIRS binutils/libiberty " |
3584 |
|
echo "#" |
3585 |
|
echo "#" |
3586 |
|
echo "#" |
3587 |
|
echo "# Subconfigure of LIBIBERTY done" |
3588 |
|
echo "# ------------------------------" |
3589 |
|
echo "#" |
3590 |
|
echo "#" |
3591 |
|
echo "#" |
3592 |
|
echo "# -------------------" |
3593 |
|
echo "# Subconfigure of BFD" |
3594 |
|
echo "#" |
3595 |
|
echo "#" |
3596 |
|
cd binutils/bfd && chmod +x configure && ./configure && cd ../.. |
3597 |
|
# MY_SUBDIRS="$MY_SUBDIRS binutils/bfd " |
3598 |
|
echo "#" |
3599 |
|
echo "#" |
3600 |
|
echo "#" |
3601 |
|
echo "# Subconfigure of BFD done" |
3602 |
|
echo "# ------------------------" |
3603 |
|
echo "#" |
3604 |
|
# TLIBS="$TLIBS ./binutils/bfd/libbfd.a ./binutils/libiberty/libiberty.a" |
3605 |
|
cat >> confdefs.h <<\EOF |
3606 |
|
#define HAVE_LIBBFD 1 |
3607 |
|
EOF |
3608 |
|
|
3609 |
|
BUILD_BFD="h/bfd.h h/bfdlink.h h/ansidecl.h h/symcat.h" |
3610 |
|
|
3611 |
|
fi |
3612 |
|
|
3613 |
|
#AC_CONFIG_SUBDIRS($MY_SUBDIRS) |
3614 |
|
|
3615 |
|
# Find where Data begins. This is used by the storage allocation |
3616 |
|
# mechanism, in the PAGE macro. This offset is subtracted from |
3617 |
|
# addresses, in calculating a page for an address in the heap. |
3618 |
|
|
3619 |
|
echo $ac_n "checking size of long""... $ac_c" 1>&6 |
3620 |
|
echo "configure:3621: checking size of long" >&5 |
3621 |
|
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
3622 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3623 |
|
else |
3624 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3625 |
: |
ac_cv_sizeof_long=0 |
3626 |
else |
else |
3627 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3628 |
/* confdefs.h. */ |
#line 3629 "configure" |
3629 |
_ACEOF |
#include "confdefs.h" |
3630 |
cat confdefs.h >>conftest.$ac_ext |
#include <stdio.h> |
3631 |
cat >>conftest.$ac_ext <<_ACEOF |
#include <sys/types.h> |
3632 |
/* end confdefs.h. */ |
main() |
|
#include <ctype.h> |
|
|
#if ((' ' & 0x0FF) == 0x020) |
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
#else |
|
|
# define ISLOWER(c) \ |
|
|
(('a' <= (c) && (c) <= 'i') \ |
|
|
|| ('j' <= (c) && (c) <= 'r') \ |
|
|
|| ('s' <= (c) && (c) <= 'z')) |
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
#endif |
|
|
|
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
int |
|
|
main () |
|
3633 |
{ |
{ |
3634 |
int i; |
FILE *f=fopen("conftestval", "w"); |
3635 |
for (i = 0; i < 256; i++) |
if (!f) exit(1); |
3636 |
if (XOR (islower (i), ISLOWER (i)) |
fprintf(f, "%d\n", sizeof(long)); |
3637 |
|| toupper (i) != TOUPPER (i)) |
exit(0); |
|
exit(2); |
|
|
exit (0); |
|
3638 |
} |
} |
3639 |
_ACEOF |
EOF |
3640 |
rm -f conftest$ac_exeext |
if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3641 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
then |
3642 |
(eval $ac_link) 2>&5 |
ac_cv_sizeof_long=`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 |
|
|
: |
|
3643 |
else |
else |
3644 |
echo "$as_me: program exited with status $ac_status" >&5 |
echo "configure: failed program was:" >&5 |
3645 |
echo "$as_me: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
3646 |
sed 's/^/| /' conftest.$ac_ext >&5 |
rm -fr conftest* |
3647 |
|
ac_cv_sizeof_long=0 |
3648 |
|
fi |
3649 |
|
rm -fr conftest* |
3650 |
|
fi |
3651 |
|
|
|
( exit $ac_status ) |
|
|
ac_cv_header_stdc=no |
|
3652 |
fi |
fi |
3653 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
3654 |
|
cat >> confdefs.h <<EOF |
3655 |
|
#define SIZEOF_LONG $ac_cv_sizeof_long |
3656 |
|
EOF |
3657 |
|
|
3658 |
|
|
3659 |
|
echo $ac_n "checking size of int""... $ac_c" 1>&6 |
3660 |
|
echo "configure:3661: checking size of int" >&5 |
3661 |
|
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
3662 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3663 |
|
else |
3664 |
|
if test "$cross_compiling" = yes; then |
3665 |
|
ac_cv_sizeof_int=0 |
3666 |
|
else |
3667 |
|
cat > conftest.$ac_ext <<EOF |
3668 |
|
#line 3669 "configure" |
3669 |
|
#include "confdefs.h" |
3670 |
|
#include <stdio.h> |
3671 |
|
#include <sys/types.h> |
3672 |
|
main() |
3673 |
|
{ |
3674 |
|
FILE *f=fopen("conftestval", "w"); |
3675 |
|
if (!f) exit(1); |
3676 |
|
fprintf(f, "%d\n", sizeof(int)); |
3677 |
|
exit(0); |
3678 |
|
} |
3679 |
|
EOF |
3680 |
|
if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3681 |
|
then |
3682 |
|
ac_cv_sizeof_int=`cat conftestval` |
3683 |
|
else |
3684 |
|
echo "configure: failed program was:" >&5 |
3685 |
|
cat conftest.$ac_ext >&5 |
3686 |
|
rm -fr conftest* |
3687 |
|
ac_cv_sizeof_int=0 |
3688 |
fi |
fi |
3689 |
|
rm -fr conftest* |
3690 |
fi |
fi |
3691 |
|
|
3692 |
fi |
fi |
3693 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
3694 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
cat >> confdefs.h <<EOF |
3695 |
if test $ac_cv_header_stdc = yes; then |
#define SIZEOF_INT $ac_cv_sizeof_int |
3696 |
|
EOF |
3697 |
|
|
3698 |
cat >>confdefs.h <<\_ACEOF |
|
3699 |
#define STDC_HEADERS 1 |
echo $ac_n "checking size of short""... $ac_c" 1>&6 |
3700 |
_ACEOF |
echo "configure:3701: checking size of short" >&5 |
3701 |
|
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
3702 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3703 |
|
else |
3704 |
|
if test "$cross_compiling" = yes; then |
3705 |
|
ac_cv_sizeof_short=0 |
3706 |
|
else |
3707 |
|
cat > conftest.$ac_ext <<EOF |
3708 |
|
#line 3709 "configure" |
3709 |
|
#include "confdefs.h" |
3710 |
|
#include <stdio.h> |
3711 |
|
#include <sys/types.h> |
3712 |
|
main() |
3713 |
|
{ |
3714 |
|
FILE *f=fopen("conftestval", "w"); |
3715 |
|
if (!f) exit(1); |
3716 |
|
fprintf(f, "%d\n", sizeof(short)); |
3717 |
|
exit(0); |
3718 |
|
} |
3719 |
|
EOF |
3720 |
|
if { (eval echo configure:3721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3721 |
|
then |
3722 |
|
ac_cv_sizeof_short=`cat conftestval` |
3723 |
|
else |
3724 |
|
echo "configure: failed program was:" >&5 |
3725 |
|
cat conftest.$ac_ext >&5 |
3726 |
|
rm -fr conftest* |
3727 |
|
ac_cv_sizeof_short=0 |
3728 |
|
fi |
3729 |
|
rm -fr conftest* |
3730 |
|
fi |
3731 |
|
|
3732 |
fi |
fi |
3733 |
|
echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
3734 |
|
cat >> confdefs.h <<EOF |
3735 |
|
#define SIZEOF_SHORT $ac_cv_sizeof_short |
3736 |
|
EOF |
3737 |
|
|
3738 |
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
3739 |
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
echo $ac_n "checking size of char""... $ac_c" 1>&6 |
3740 |
if test "${ac_cv_header_sys_wait_h+set}" = set; then |
echo "configure:3741: checking size of char" >&5 |
3741 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
3742 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3743 |
|
else |
3744 |
|
if test "$cross_compiling" = yes; then |
3745 |
|
ac_cv_sizeof_char=0 |
3746 |
else |
else |
3747 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
3748 |
/* confdefs.h. */ |
#line 3749 "configure" |
3749 |
_ACEOF |
#include "confdefs.h" |
3750 |
cat confdefs.h >>conftest.$ac_ext |
#include <stdio.h> |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
3751 |
#include <sys/types.h> |
#include <sys/types.h> |
3752 |
#include <sys/wait.h> |
main() |
|
#ifndef WEXITSTATUS |
|
|
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
|
|
#endif |
|
|
#ifndef WIFEXITED |
|
|
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
#endif |
|
|
|
|
|
int |
|
|
main () |
|
3753 |
{ |
{ |
3754 |
int s; |
FILE *f=fopen("conftestval", "w"); |
3755 |
wait (&s); |
if (!f) exit(1); |
3756 |
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
fprintf(f, "%d\n", sizeof(char)); |
3757 |
; |
exit(0); |
|
return 0; |
|
3758 |
} |
} |
3759 |
_ACEOF |
EOF |
3760 |
rm -f conftest.$ac_objext |
if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3761 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
then |
3762 |
(eval $ac_compile) 2>conftest.er1 |
ac_cv_sizeof_char=`cat conftestval` |
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_header_sys_wait_h=yes |
|
3763 |
else |
else |
3764 |
echo "$as_me: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
3765 |
sed 's/^/| /' conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
3766 |
|
rm -fr conftest* |
3767 |
ac_cv_header_sys_wait_h=no |
ac_cv_sizeof_char=0 |
3768 |
fi |
fi |
3769 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
rm -fr conftest* |
3770 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
|
|
if test $ac_cv_header_sys_wait_h = yes; then |
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
#define HAVE_SYS_WAIT_H 1 |
|
|
_ACEOF |
|
3771 |
|
|
3772 |
fi |
fi |
3773 |
|
echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
3774 |
|
cat >> confdefs.h <<EOF |
3775 |
|
#define SIZEOF_CHAR $ac_cv_sizeof_char |
3776 |
|
EOF |
3777 |
|
|
3778 |
|
|
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
3779 |
|
|
3780 |
|
echo $ac_n "checking for number of bits in char""... $ac_c" 1>&6 |
3781 |
|
echo "configure:3782: checking for number of bits in char" >&5 |
3782 |
|
if test "$cross_compiling" = yes; then |
3783 |
|
echo Cannot find char_size;exit 1 |
3784 |
|
else |
3785 |
|
cat > conftest.$ac_ext <<EOF |
3786 |
|
#line 3787 "configure" |
3787 |
|
#include "confdefs.h" |
3788 |
|
#include <stdio.h> |
3789 |
|
int main() { |
3790 |
|
FILE *fp=fopen("conftest1","w"); |
3791 |
|
unsigned char c; |
3792 |
|
int i; |
3793 |
|
for (i=0,c=1;c;c<<=1,i++); |
3794 |
|
fprintf(fp,"%d",i); |
3795 |
|
return 0; |
3796 |
|
} |
3797 |
|
EOF |
3798 |
|
if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3799 |
|
then |
3800 |
|
char_size=`cat conftest1` |
3801 |
|
else |
3802 |
|
echo "configure: failed program was:" >&5 |
3803 |
|
cat conftest.$ac_ext >&5 |
3804 |
|
rm -fr conftest* |
3805 |
|
echo Cannot find char_size;exit 1 |
3806 |
|
fi |
3807 |
|
rm -fr conftest* |
3808 |
|
fi |
3809 |
|
|
3810 |
|
echo "$ac_t""$char_size" 1>&6 |
3811 |
|
cat >> confdefs.h <<EOF |
3812 |
|
#define CHAR_SIZE $char_size |
3813 |
|
EOF |
3814 |
|
|
3815 |
|
|
3816 |
|
for ac_hdr in endian.h |
3817 |
|
do |
3818 |
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3819 |
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3820 |
|
echo "configure:3821: checking for $ac_hdr" >&5 |
3821 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3822 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
3823 |
|
else |
3824 |
|
cat > conftest.$ac_ext <<EOF |
3825 |
|
#line 3826 "configure" |
3826 |
|
#include "confdefs.h" |
3827 |
|
#include <$ac_hdr> |
3828 |
|
EOF |
3829 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3830 |
|
{ (eval echo configure:3831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3831 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3832 |
|
if test -z "$ac_err"; then |
3833 |
|
rm -rf conftest* |
3834 |
|
eval "ac_cv_header_$ac_safe=yes" |
3835 |
|
else |
3836 |
|
echo "$ac_err" >&5 |
3837 |
|
echo "configure: failed program was:" >&5 |
3838 |
|
cat conftest.$ac_ext >&5 |
3839 |
|
rm -rf conftest* |
3840 |
|
eval "ac_cv_header_$ac_safe=no" |
3841 |
|
fi |
3842 |
|
rm -f conftest* |
3843 |
|
fi |
3844 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3845 |
|
echo "$ac_t""yes" 1>&6 |
3846 |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3847 |
|
cat >> confdefs.h <<EOF |
3848 |
|
#define $ac_tr_hdr 1 |
3849 |
|
EOF |
3850 |
|
echo $ac_n "checking endianness""... $ac_c" 1>&6 |
3851 |
|
echo "configure:3852: checking endianness" >&5 |
3852 |
|
if test "$cross_compiling" = yes; then |
3853 |
|
echo "$ac_t""big" 1>&6 |
3854 |
|
else |
3855 |
|
cat > conftest.$ac_ext <<EOF |
3856 |
|
#line 3857 "configure" |
3857 |
|
#include "confdefs.h" |
3858 |
|
/*#define __ARMEB__*/ |
3859 |
|
#include <endian.h> |
3860 |
|
int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;} |
3861 |
|
EOF |
3862 |
|
if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3863 |
|
then |
3864 |
|
cat >> confdefs.h <<\EOF |
3865 |
|
#define LITTLE_END 1 |
3866 |
|
EOF |
3867 |
|
echo "$ac_t""little" 1>&6 |
3868 |
|
else |
3869 |
|
echo "configure: failed program was:" >&5 |
3870 |
|
cat conftest.$ac_ext >&5 |
3871 |
|
rm -fr conftest* |
3872 |
|
echo "$ac_t""big" 1>&6 |
3873 |
|
fi |
3874 |
|
rm -fr conftest* |
3875 |
|
fi |
3876 |
|
|
3877 |
|
else |
3878 |
|
echo "$ac_t""no" 1>&6 |
3879 |
|
fi |
3880 |
|
done |
3881 |
|
|
3882 |
|
|
3883 |
|
|
3884 |
|
|
3885 |
|
# On systems with execshield, brk is randomized. We need to catch |
3886 |
|
# this and restore the traditional behavior here |
3887 |
|
|
3888 |
|
echo $ac_n "checking for sbrk""... $ac_c" 1>&6 |
3889 |
|
echo "configure:3890: checking for sbrk" >&5 |
3890 |
|
HAVE_SBRK="" |
3891 |
|
if test "$cross_compiling" = yes; then |
3892 |
|
echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6 |
3893 |
|
else |
3894 |
|
cat > conftest.$ac_ext <<EOF |
3895 |
|
#line 3896 "configure" |
3896 |
|
#include "confdefs.h" |
3897 |
|
#include <unistd.h> |
3898 |
|
#include <stdio.h> |
3899 |
|
int main() { |
3900 |
|
FILE *f; |
3901 |
|
if (!(f=fopen("conftest1","w"))) |
3902 |
|
return -1; |
3903 |
|
fprintf(f,"%u",sbrk(0)); |
3904 |
|
return 0; |
3905 |
|
} |
3906 |
|
EOF |
3907 |
|
if { (eval echo configure:3908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3908 |
|
then |
3909 |
|
HAVE_SBRK=1 |
3910 |
|
echo "$ac_t""yes" 1>&6 |
3911 |
|
else |
3912 |
|
echo "configure: failed program was:" >&5 |
3913 |
|
cat conftest.$ac_ext >&5 |
3914 |
|
rm -fr conftest* |
3915 |
|
echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6 |
3916 |
|
fi |
3917 |
|
rm -fr conftest* |
3918 |
|
fi |
3919 |
|
|
3920 |
|
|
3921 |
|
if test "$HAVE_SBRK" = "1" ; then |
3922 |
|
echo $ac_n "checking for randomized sbrk""... $ac_c" 1>&6 |
3923 |
|
echo "configure:3924: checking for randomized sbrk" >&5 |
3924 |
|
if test "$cross_compiling" = yes; then |
3925 |
|
SBRK=0 |
3926 |
|
else |
3927 |
|
cat > conftest.$ac_ext <<EOF |
3928 |
|
#line 3929 "configure" |
3929 |
|
#include "confdefs.h" |
3930 |
|
#include <unistd.h> |
3931 |
|
#include <stdio.h> |
3932 |
|
int main() { |
3933 |
|
FILE *f; |
3934 |
|
if (!(f=fopen("conftest1","w"))) |
3935 |
|
return -1; |
3936 |
|
fprintf(f,"%u",sbrk(0)); |
3937 |
|
return 0; |
3938 |
|
} |
3939 |
|
EOF |
3940 |
|
if { (eval echo configure:3941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3941 |
|
then |
3942 |
|
SBRK=`cat conftest1` |
3943 |
|
else |
3944 |
|
echo "configure: failed program was:" >&5 |
3945 |
|
cat conftest.$ac_ext >&5 |
3946 |
|
rm -fr conftest* |
3947 |
|
SBRK=0 |
3948 |
|
fi |
3949 |
|
rm -fr conftest* |
3950 |
|
fi |
3951 |
|
|
3952 |
|
if test "$SBRK" = "0" ; then |
3953 |
|
echo "$ac_t""cannot trap sbrk" 1>&6 |
3954 |
|
exit 1 |
3955 |
|
fi |
3956 |
|
if test "$cross_compiling" = yes; then |
3957 |
|
SBRK1=0 |
3958 |
|
else |
3959 |
|
cat > conftest.$ac_ext <<EOF |
3960 |
|
#line 3961 "configure" |
3961 |
|
#include "confdefs.h" |
3962 |
|
#include <unistd.h> |
3963 |
|
#include <stdio.h> |
3964 |
|
int main() { |
3965 |
|
FILE *f; |
3966 |
|
if (!(f=fopen("conftest1","w"))) |
3967 |
|
return -1; |
3968 |
|
fprintf(f,"%u",sbrk(0)); |
3969 |
|
return 0; |
3970 |
|
} |
3971 |
|
EOF |
3972 |
|
if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3973 |
|
then |
3974 |
|
SBRK1=`cat conftest1` |
3975 |
|
else |
3976 |
|
echo "configure: failed program was:" >&5 |
3977 |
|
cat conftest.$ac_ext >&5 |
3978 |
|
rm -fr conftest* |
3979 |
|
SBRK1=0 |
3980 |
|
fi |
3981 |
|
rm -fr conftest* |
3982 |
|
fi |
3983 |
|
|
3984 |
|
if test "$SBRK1" = "0" ; then |
3985 |
|
echo "$ac_t""cannot trap sbrk" 1>&6 |
3986 |
|
exit 1 |
3987 |
|
fi |
3988 |
|
|
3989 |
|
if test "$SBRK" != "$SBRK1" ; then |
3990 |
|
echo "$ac_t""yes" 1>&6 |
3991 |
|
# AC_CHECK_HEADER(linux/personality.h, true, |
3992 |
|
# AC_MSG_ERROR(linux/personality.h not found)) |
3993 |
|
# AC_TRY_RUN([#include <syscall.h> |
3994 |
|
# #include <linux/personality.h> |
3995 |
|
# #include <stdio.h> |
3996 |
|
# #include <unistd.h> |
3997 |
|
# int main(int argc,char *argv[],char *envp[]) { |
3998 |
|
# FILE *f; |
3999 |
|
# if (!(f=fopen("conftest1","w"))) |
4000 |
|
# return -1; |
4001 |
|
# fprintf(f,"%x",ADDR_NO_RANDOMIZE); |
4002 |
|
# return 0; |
4003 |
|
# }], |
4004 |
|
# ADDR_NO_RANDOMIZE=`cat conftest1`,ADDR_NO_RANDOMIZE=0,ADDR_NO_RANDOMIZE=0) |
4005 |
|
# if test "$ADDR_NO_RANDOMIZE" = "0" ; then |
4006 |
|
# AC_MSG_RESULT(cannot get ADDR_NO_RANDOMIZE constant) |
4007 |
|
# exit 1 |
4008 |
|
# fi |
4009 |
|
# AC_DEFINE_UNQUOTED(ADDR_NO_RANDOMIZE,$ADDR_NO_RANGOMIZE) |
4010 |
|
# |
4011 |
|
# Many boxes do not have the definition yet |
4012 |
|
# |
4013 |
|
ADDR_NO_RANDOMIZE=0x40000 |
4014 |
|
cat >> confdefs.h <<EOF |
4015 |
|
#define ADDR_NO_RANDOMIZE $ADDR_NO_RANDOMIZE |
4016 |
|
EOF |
4017 |
|
|
4018 |
|
echo $ac_n "checking for ADDR_NO_RANOMIZE constant""... $ac_c" 1>&6 |
4019 |
|
echo "configure:4020: checking for ADDR_NO_RANOMIZE constant" >&5 |
4020 |
|
echo "$ac_t""$ADDR_NO_RANDOMIZE" 1>&6 |
4021 |
|
ac_safe=`echo "sys/personality.h" | sed 'y%./+-%__p_%'` |
4022 |
|
echo $ac_n "checking for sys/personality.h""... $ac_c" 1>&6 |
4023 |
|
echo "configure:4024: checking for sys/personality.h" >&5 |
4024 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4025 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
4026 |
|
else |
4027 |
|
cat > conftest.$ac_ext <<EOF |
4028 |
|
#line 4029 "configure" |
4029 |
|
#include "confdefs.h" |
4030 |
|
#include <sys/personality.h> |
4031 |
|
EOF |
4032 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4033 |
|
{ (eval echo configure:4034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4034 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4035 |
|
if test -z "$ac_err"; then |
4036 |
|
rm -rf conftest* |
4037 |
|
eval "ac_cv_header_$ac_safe=yes" |
4038 |
|
else |
4039 |
|
echo "$ac_err" >&5 |
4040 |
|
echo "configure: failed program was:" >&5 |
4041 |
|
cat conftest.$ac_ext >&5 |
4042 |
|
rm -rf conftest* |
4043 |
|
eval "ac_cv_header_$ac_safe=no" |
4044 |
|
fi |
4045 |
|
rm -f conftest* |
4046 |
|
fi |
4047 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4048 |
|
echo "$ac_t""yes" 1>&6 |
4049 |
|
true |
4050 |
|
else |
4051 |
|
echo "$ac_t""no" 1>&6 |
4052 |
|
{ echo "configure: error: sys/personality.h not found" 1>&2; exit 1; } |
4053 |
|
fi |
4054 |
|
|
4055 |
|
if test "$cross_compiling" = yes; then |
4056 |
|
SBRK=0 |
4057 |
|
else |
4058 |
|
cat > conftest.$ac_ext <<EOF |
4059 |
|
#line 4060 "configure" |
4060 |
|
#include "confdefs.h" |
4061 |
|
#include <syscall.h> |
4062 |
|
#include <sys/personality.h> |
4063 |
|
#include <stdio.h> |
4064 |
|
#include <unistd.h> |
4065 |
|
int main(int argc,char *argv[],char *envp[]) { |
4066 |
|
FILE *f; |
4067 |
|
long pers; |
4068 |
|
pers=personality(-1); |
4069 |
|
if (!(pers & ADDR_NO_RANDOMIZE)) { |
4070 |
|
personality(pers | ADDR_NO_RANDOMIZE); |
4071 |
|
execve(*argv,argv,envp); |
4072 |
|
} |
4073 |
|
if (!(f=fopen("conftest1","w"))) |
4074 |
|
return -1; |
4075 |
|
fprintf(f,"%u",sbrk(0)); |
4076 |
|
return 0; |
4077 |
|
} |
4078 |
|
EOF |
4079 |
|
if { (eval echo configure:4080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4080 |
|
then |
4081 |
|
SBRK=`cat conftest1` |
4082 |
|
else |
4083 |
|
echo "configure: failed program was:" >&5 |
4084 |
|
cat conftest.$ac_ext >&5 |
4085 |
|
rm -fr conftest* |
4086 |
|
SBRK=0 |
4087 |
|
fi |
4088 |
|
rm -fr conftest* |
4089 |
|
fi |
4090 |
|
|
4091 |
|
if test "$SBRK" = "0" ; then |
4092 |
|
echo "$ac_t""cannot trap sbrk" 1>&6 |
4093 |
|
exit 1 |
4094 |
|
fi |
4095 |
|
if test "$cross_compiling" = yes; then |
4096 |
|
SBRK1=0 |
4097 |
|
else |
4098 |
|
cat > conftest.$ac_ext <<EOF |
4099 |
|
#line 4100 "configure" |
4100 |
|
#include "confdefs.h" |
4101 |
|
#include <syscall.h> |
4102 |
|
#include <sys/personality.h> |
4103 |
|
#include <stdio.h> |
4104 |
|
#include <unistd.h> |
4105 |
|
int main(int argc,char * argv[],char *envp[]) { |
4106 |
|
FILE *f; |
4107 |
|
long pers; |
4108 |
|
pers=personality(-1); |
4109 |
|
if (!(pers & ADDR_NO_RANDOMIZE)) { |
4110 |
|
personality(pers | ADDR_NO_RANDOMIZE); |
4111 |
|
execve(*argv,argv,envp); |
4112 |
|
} |
4113 |
|
if (!(f=fopen("conftest1","w"))) |
4114 |
|
return -1; |
4115 |
|
fprintf(f,"%u",sbrk(0)); |
4116 |
|
return 0; |
4117 |
|
} |
4118 |
|
EOF |
4119 |
|
if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4120 |
|
then |
4121 |
|
SBRK1=`cat conftest1` |
4122 |
|
else |
4123 |
|
echo "configure: failed program was:" >&5 |
4124 |
|
cat conftest.$ac_ext >&5 |
4125 |
|
rm -fr conftest* |
4126 |
|
SBRK1=0 |
4127 |
|
fi |
4128 |
|
rm -fr conftest* |
4129 |
|
fi |
4130 |
|
|
4131 |
|
if test "$SBRK1" = "0" ; then |
4132 |
|
echo "$ac_t""cannot trap sbrk" 1>&6 |
4133 |
|
exit 1 |
4134 |
|
fi |
4135 |
|
echo $ac_n "checking for randomized brk remedy""... $ac_c" 1>&6 |
4136 |
|
echo "configure:4137: checking for randomized brk remedy" >&5 |
4137 |
|
if test "$SBRK" = "$SBRK1" ; then |
4138 |
|
echo "$ac_t""yes" 1>&6 |
4139 |
|
cat >> confdefs.h <<\EOF |
4140 |
|
#define NEED_NONRANDOM_SBRK 1 |
4141 |
|
EOF |
4142 |
|
|
4143 |
|
else |
4144 |
|
echo "$ac_t""no" 1>&6 |
4145 |
|
echo "Cannot build with randomized sbrk" |
4146 |
|
exit 1 |
4147 |
|
fi |
4148 |
|
else |
4149 |
|
echo "$ac_t""no" 1>&6 |
4150 |
|
fi |
4151 |
|
fi |
4152 |
|
|
4153 |
|
#### Memory areas and alignment |
4154 |
|
|
4155 |
|
echo $ac_n "checking for required object alignment""... $ac_c" 1>&6 |
4156 |
|
echo "configure:4157: checking for required object alignment" >&5 |
4157 |
|
if test "$cross_compiling" = yes; then |
4158 |
|
echo Cannot find object alignent;exit -1 |
4159 |
|
else |
4160 |
|
cat > conftest.$ac_ext <<EOF |
4161 |
|
#line 4162 "configure" |
4162 |
|
#include "confdefs.h" |
4163 |
|
#include <stdio.h> |
4164 |
|
#define EXTER |
4165 |
|
#include "$MP_INCLUDE" |
4166 |
|
#include "./h/enum.h" |
4167 |
|
#define OBJ_ALIGN |
4168 |
|
#include "./h/object.h" |
4169 |
|
int main() { |
4170 |
|
unsigned long i; |
4171 |
|
FILE *fp=fopen("conftest1","w"); |
4172 |
|
for (i=1;i && NOT_OBJECT_ALIGNED(i); i<<=1); |
4173 |
|
if (!i) return -1; |
4174 |
|
fprintf(fp,"%lu\n",i); |
4175 |
|
fclose(fp); |
4176 |
|
return 0;} |
4177 |
|
EOF |
4178 |
|
if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4179 |
|
then |
4180 |
|
obj_align=`cat conftest1` |
4181 |
|
else |
4182 |
|
echo "configure: failed program was:" >&5 |
4183 |
|
cat conftest.$ac_ext >&5 |
4184 |
|
rm -fr conftest* |
4185 |
|
echo Cannot find object alignent;exit -1 |
4186 |
|
fi |
4187 |
|
rm -fr conftest* |
4188 |
|
fi |
4189 |
|
|
4190 |
|
echo "$ac_t""$obj_align" 1>&6 |
4191 |
|
|
4192 |
|
echo $ac_n "checking for C extension variable alignment""... $ac_c" 1>&6 |
4193 |
|
echo "configure:4194: checking for C extension variable alignment" >&5 |
4194 |
|
if test "$cross_compiling" = yes; then |
4195 |
|
obj_align= |
4196 |
|
else |
4197 |
|
cat > conftest.$ac_ext <<EOF |
4198 |
|
#line 4199 "configure" |
4199 |
|
#include "confdefs.h" |
4200 |
|
int main() { |
4201 |
|
char *v __attribute__ ((aligned ($obj_align))); |
4202 |
|
return 0;} |
4203 |
|
EOF |
4204 |
|
if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4205 |
|
then |
4206 |
|
obj_align="__attribute__ ((aligned ($obj_align)))" |
4207 |
|
else |
4208 |
|
echo "configure: failed program was:" >&5 |
4209 |
|
cat conftest.$ac_ext >&5 |
4210 |
|
rm -fr conftest* |
4211 |
|
obj_align= |
4212 |
|
fi |
4213 |
|
rm -fr conftest* |
4214 |
|
fi |
4215 |
|
|
4216 |
|
echo "$ac_t""$obj_align" 1>&6 |
4217 |
|
cat >> confdefs.h <<EOF |
4218 |
|
#define OBJ_ALIGN $obj_align |
4219 |
|
EOF |
4220 |
|
|
4221 |
|
|
4222 |
|
|
4223 |
|
echo $ac_n "checking TYPE_BITS macro""... $ac_c" 1>&6 |
4224 |
|
echo "configure:4225: checking TYPE_BITS macro" >&5 |
4225 |
|
if test "$cross_compiling" = yes; then |
4226 |
|
echo Cannot find type_bits;exit 1 |
4227 |
|
else |
4228 |
|
cat > conftest.$ac_ext <<EOF |
4229 |
|
#line 4230 "configure" |
4230 |
|
#include "confdefs.h" |
4231 |
|
#include <stdio.h> |
4232 |
|
#define EXTER |
4233 |
|
#include "$MP_INCLUDE" |
4234 |
|
#include "./h/enum.h" |
4235 |
|
#include "./h/object.h" |
4236 |
|
int main(int argc,char **argv,char **envp) { |
4237 |
|
FILE *f=fopen("conftest1","w"); |
4238 |
|
fixnum g=0; |
4239 |
|
fobj(g)->d.e=-1; |
4240 |
|
fobj(g)->d.t=-1; |
4241 |
|
fobj(g)->d.s=-1; |
4242 |
|
fprintf(f,"0x%x",g); |
4243 |
|
fclose(f); |
4244 |
|
return 0; |
4245 |
|
} |
4246 |
|
EOF |
4247 |
|
if { (eval echo configure:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4248 |
|
then |
4249 |
|
type_bits=`cat conftest1` |
4250 |
|
else |
4251 |
|
echo "configure: failed program was:" >&5 |
4252 |
|
cat conftest.$ac_ext >&5 |
4253 |
|
rm -fr conftest* |
4254 |
|
echo Cannot find type_bits;exit 1 |
4255 |
|
fi |
4256 |
|
rm -fr conftest* |
4257 |
|
fi |
4258 |
|
|
4259 |
|
echo "$ac_t""$type_bits" 1>&6 |
4260 |
|
cat >> confdefs.h <<EOF |
4261 |
|
#define TYPE_BITS $type_bits |
4262 |
|
EOF |
4263 |
|
|
4264 |
|
|
4265 |
|
echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6 |
4266 |
|
echo "configure:4267: checking sizeof struct contblock" >&5 |
4267 |
|
|
4268 |
|
# work around MSYS pwd result incompatibility |
4269 |
|
if test "$use" = "mingw" ; then |
4270 |
|
if test "$cross_compiling" = yes; then |
4271 |
|
echo Cannot find sizeof struct contblock;exit 1 |
4272 |
|
else |
4273 |
|
cat > conftest.$ac_ext <<EOF |
4274 |
|
#line 4275 "configure" |
4275 |
|
#include "confdefs.h" |
4276 |
|
#include <stdio.h> |
4277 |
|
#define EXTER |
4278 |
|
#include "$MP_INCLUDE" |
4279 |
|
#include "h/enum.h" |
4280 |
|
#include "h/object.h" |
4281 |
|
int main(int argc,char **argv,char **envp) { |
4282 |
|
FILE *f=fopen("conftest1","w"); |
4283 |
|
fprintf(f,"%u",sizeof(struct contblock)); |
4284 |
|
fclose(f); |
4285 |
|
return 0; |
4286 |
|
} |
4287 |
|
EOF |
4288 |
|
if { (eval echo configure:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4289 |
|
then |
4290 |
|
sizeof_contblock=`cat conftest1` |
4291 |
|
else |
4292 |
|
echo "configure: failed program was:" >&5 |
4293 |
|
cat conftest.$ac_ext >&5 |
4294 |
|
rm -fr conftest* |
4295 |
|
echo Cannot find sizeof struct contblock;exit 1 |
4296 |
|
fi |
4297 |
|
rm -fr conftest* |
4298 |
|
fi |
4299 |
|
|
4300 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
else |
4301 |
inttypes.h stdint.h unistd.h |
if test "$cross_compiling" = yes; then |
4302 |
do |
echo Cannot find sizeof struct contblock;exit 1 |
4303 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
else |
4304 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
cat > conftest.$ac_ext <<EOF |
4305 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
#line 4306 "configure" |
4306 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
#include "confdefs.h" |
4307 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
#include <stdio.h> |
4308 |
else |
#define EXTER |
4309 |
cat >conftest.$ac_ext <<_ACEOF |
#include "$MP_INCLUDE" |
4310 |
/* confdefs.h. */ |
#include "./h/enum.h" |
4311 |
_ACEOF |
#include "./h/object.h" |
4312 |
cat confdefs.h >>conftest.$ac_ext |
int main(int argc,char **argv,char **envp) { |
4313 |
cat >>conftest.$ac_ext <<_ACEOF |
FILE *f=fopen("conftest1","w"); |
4314 |
/* end confdefs.h. */ |
fprintf(f,"%u",sizeof(struct contblock)); |
4315 |
$ac_includes_default |
fclose(f); |
4316 |
|
return 0; |
4317 |
#include <$ac_header> |
} |
4318 |
_ACEOF |
EOF |
4319 |
rm -f conftest.$ac_objext |
if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4320 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
then |
4321 |
(eval $ac_compile) 2>conftest.er1 |
sizeof_contblock=`cat conftest1` |
4322 |
ac_status=$? |
else |
4323 |
grep -v '^ *+' conftest.er1 >conftest.err |
echo "configure: failed program was:" >&5 |
4324 |
rm -f conftest.er1 |
cat conftest.$ac_ext >&5 |
4325 |
cat conftest.err >&5 |
rm -fr conftest* |
4326 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo Cannot find sizeof struct contblock;exit 1 |
4327 |
(exit $ac_status); } && |
fi |
4328 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
rm -fr conftest* |
4329 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
fi |
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
eval "$as_ac_Header=yes" |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
eval "$as_ac_Header=no" |
|
|
fi |
|
|
rm -f conftest.err 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 |
|
4330 |
|
|
4331 |
fi |
fi |
4332 |
|
echo "$ac_t""$sizeof_contblock" 1>&6 |
4333 |
|
cat >> confdefs.h <<EOF |
4334 |
|
#define SIZEOF_CONTBLOCK $sizeof_contblock |
4335 |
|
EOF |
4336 |
|
|
|
done |
|
4337 |
|
|
4338 |
|
|
4339 |
|
echo $ac_n "checking DBEGIN""... $ac_c" 1>&6 |
4340 |
|
echo "configure:4341: checking DBEGIN" >&5 |
4341 |
|
if test "$cross_compiling" = yes; then |
4342 |
|
dbegin=0 |
4343 |
|
else |
4344 |
|
cat > conftest.$ac_ext <<EOF |
4345 |
|
#line 4346 "configure" |
4346 |
|
#include "confdefs.h" |
4347 |
|
#include <stdio.h> |
4348 |
|
#include <stdlib.h> |
4349 |
|
#ifdef NEED_NONRANDOM_SBRK |
4350 |
|
#include <syscall.h> |
4351 |
|
#include <sys/personality.h> |
4352 |
|
#include <unistd.h> |
4353 |
|
#endif |
4354 |
|
int |
4355 |
|
main(int argc,char * argv[]) |
4356 |
|
{ |
4357 |
|
char *b; |
4358 |
|
FILE *fp; |
4359 |
|
|
4360 |
|
#ifdef NEED_NONRANDOM_SBRK |
4361 |
|
pers=personality(-1); |
4362 |
|
if (!(pers & ADDR_NO_RANDOMIZE)) { |
4363 |
|
personality(pers | ADDR_NO_RANDOMIZE); |
4364 |
|
execve(*argv,argv,envp); |
4365 |
|
} |
4366 |
|
#endif |
4367 |
|
b = (void *) malloc(1000); |
4368 |
|
fp = fopen("conftest1","w"); |
4369 |
|
|
4370 |
|
#ifdef _WIN32 |
4371 |
|
fprintf ( fp,"0x%lx", 0x3000000 ); /* Windows custom allocation from this point up */ |
4372 |
|
#else |
4373 |
|
#if defined (__APPLE__) && defined (__MACH__) |
4374 |
|
fprintf(fp,"get_dbegin()"); |
4375 |
|
#else |
4376 |
|
fprintf(fp,"0x%lx",((unsigned long) b) & ~(unsigned long)0xffffff); |
4377 |
|
#endif |
4378 |
|
#endif |
4379 |
|
fclose(fp); |
4380 |
|
return 0; |
4381 |
|
} |
4382 |
|
EOF |
4383 |
|
if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4384 |
|
then |
4385 |
|
dbegin=`cat conftest1` |
4386 |
|
else |
4387 |
|
echo "configure: failed program was:" >&5 |
4388 |
|
cat conftest.$ac_ext >&5 |
4389 |
|
rm -fr conftest* |
4390 |
|
dbegin=0 |
4391 |
|
fi |
4392 |
|
rm -fr conftest* |
4393 |
|
fi |
4394 |
|
|
4395 |
|
#AC_DEFINE_UNQUOTED(DBEGIN,$dbegin) |
4396 |
|
echo "$ac_t""$dbegin" 1>&6 |
4397 |
|
|
4398 |
|
# pagewidth |
4399 |
|
echo $ac_n "checking for pagewidth""... $ac_c" 1>&6 |
4400 |
|
echo "configure:4401: checking for pagewidth" >&5 |
4401 |
|
if test "$cross_compiling" = yes; then |
4402 |
|
PAGEWIDTH=0 |
4403 |
|
else |
4404 |
|
cat > conftest.$ac_ext <<EOF |
4405 |
|
#line 4406 "configure" |
4406 |
|
#include "confdefs.h" |
4407 |
|
#include <stdio.h> |
4408 |
|
#include <unistd.h> |
4409 |
|
int main() {size_t i=getpagesize(),j; |
4410 |
|
FILE *fp=fopen("conftest1","w"); |
4411 |
|
for (j=0;i>>=1;j++); |
4412 |
|
if (j<12) {printf("pagewidth %u is too small\n",j);return -1;} |
4413 |
|
fprintf(fp,"%u",j); |
4414 |
|
return 0;} |
4415 |
|
EOF |
4416 |
|
if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4417 |
|
then |
4418 |
|
PAGEWIDTH=`cat conftest1` |
4419 |
|
else |
4420 |
|
echo "configure: failed program was:" >&5 |
4421 |
|
cat conftest.$ac_ext >&5 |
4422 |
|
rm -fr conftest* |
4423 |
|
PAGEWIDTH=0 |
4424 |
|
fi |
4425 |
|
rm -fr conftest* |
4426 |
|
fi |
4427 |
|
|
4428 |
|
echo "$ac_t""$PAGEWIDTH" 1>&6 |
4429 |
|
cat >> confdefs.h <<EOF |
4430 |
|
#define PAGEWIDTH $PAGEWIDTH |
4431 |
|
EOF |
4432 |
|
|
4433 |
|
|
4434 |
|
|
4435 |
for ac_header in fcntl.h limits.h sys/time.h unistd.h |
if test "$cross_compiling" = yes; then |
4436 |
do |
def_maxpage=262144 |
4437 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
else |
4438 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
cat > conftest.$ac_ext <<EOF |
4439 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
#line 4440 "configure" |
4440 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
#include "confdefs.h" |
4441 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
#include <stdio.h> |
4442 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
#include <unistd.h> |
4443 |
fi |
int main() {FILE *fp=fopen("conftest1","w"); |
4444 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
fprintf(fp,"%u",262144*($SIZEOF_LONG>>2)/(1<<($PAGEWIDTH-12))); |
4445 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
return 0;} |
4446 |
else |
EOF |
4447 |
# Is the header compilable? |
if { (eval echo configure:4448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4448 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
then |
4449 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
def_maxpage=`cat conftest1` |
4450 |
cat >conftest.$ac_ext <<_ACEOF |
else |
4451 |
/* confdefs.h. */ |
echo "configure: failed program was:" >&5 |
4452 |
_ACEOF |
cat conftest.$ac_ext >&5 |
4453 |
cat confdefs.h >>conftest.$ac_ext |
rm -fr conftest* |
4454 |
cat >>conftest.$ac_ext <<_ACEOF |
def_maxpage=262144 |
4455 |
/* end confdefs.h. */ |
fi |
4456 |
$ac_includes_default |
rm -fr conftest* |
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_header_compiler=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_header_compiler=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
|
|
# Is the header present? |
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
4457 |
fi |
fi |
|
if test -z "$ac_cpp_err"; then |
|
|
ac_header_preproc=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4458 |
|
|
4459 |
ac_header_preproc=no |
|
4460 |
fi |
help="--enable-maxpage=XXXX will compile in a page table of size XXX (default ${default_maxpage})" |
4461 |
rm -f conftest.err conftest.$ac_ext |
# Check whether --enable-maxpage or --disable-maxpage was given. |
4462 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
if test "${enable_maxpage+set}" = set; then |
4463 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
enableval="$enable_maxpage" |
4464 |
|
: |
|
# So? What about this header? |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
|
yes:no: ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
ac_header_preproc=yes |
|
|
;; |
|
|
no:yes:* ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------------ ## |
|
|
## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
## ------------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4465 |
else |
else |
4466 |
eval "$as_ac_Header=\$ac_header_preproc" |
enable_maxpage=$def_maxpage |
4467 |
fi |
fi |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
4468 |
|
|
4469 |
fi |
#AC_DEFINE_UNQUOTED(MAXPAGE,$enable_maxpage) |
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
4470 |
|
|
|
fi |
|
4471 |
|
|
4472 |
done |
echo $ac_n "checking CSTACK_ADDRESS""... $ac_c" 1>&6 |
4473 |
|
echo "configure:4474: checking CSTACK_ADDRESS" >&5 |
4474 |
|
if test "$cross_compiling" = yes; then |
4475 |
|
cstack_address=0 |
4476 |
|
else |
4477 |
|
cat > conftest.$ac_ext <<EOF |
4478 |
|
#line 4479 "configure" |
4479 |
|
#include "confdefs.h" |
4480 |
|
#include <stdio.h> |
4481 |
|
main() |
4482 |
|
{ |
4483 |
|
void *v ; |
4484 |
|
FILE *fp = fopen("conftest1","w"); |
4485 |
|
unsigned long i,j; |
4486 |
|
|
4487 |
|
j=1; |
4488 |
|
j<<=$PAGEWIDTH; |
4489 |
|
j<<=4; |
4490 |
|
j--; |
4491 |
|
i=(unsigned long)&v; |
4492 |
|
i+=j; |
4493 |
|
i&=~j; |
4494 |
|
fprintf(fp,"0x%lx",i-1); |
4495 |
|
fclose(fp); |
4496 |
|
return 0; |
4497 |
|
} |
4498 |
|
EOF |
4499 |
|
if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4500 |
|
then |
4501 |
|
cstack_address=`cat conftest1` |
4502 |
|
else |
4503 |
|
echo "configure: failed program was:" >&5 |
4504 |
|
cat conftest.$ac_ext >&5 |
4505 |
|
rm -fr conftest* |
4506 |
|
cstack_address=0 |
4507 |
|
fi |
4508 |
|
rm -fr conftest* |
4509 |
|
fi |
4510 |
|
|
4511 |
|
cat >> confdefs.h <<EOF |
4512 |
|
#define CSTACK_ADDRESS $cstack_address |
4513 |
|
EOF |
4514 |
|
|
4515 |
|
echo "$ac_t""$cstack_address" 1>&6 |
4516 |
|
|
4517 |
for ac_header in pthread.h semaphore.h |
echo $ac_n "checking NEG_CSTACK_ADDRESS""... $ac_c" 1>&6 |
4518 |
do |
echo "configure:4519: checking NEG_CSTACK_ADDRESS" >&5 |
4519 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
if test "$cross_compiling" = yes; then |
4520 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
echo "$ac_t""no" 1>&6 |
|
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 |
|
|
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 |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_header_compiler=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_header_compiler=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
|
|
# Is the header present? |
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
|
ac_header_preproc=yes |
|
4521 |
else |
else |
4522 |
echo "$as_me: failed program was:" >&5 |
cat > conftest.$ac_ext <<EOF |
4523 |
sed 's/^/| /' conftest.$ac_ext >&5 |
#line 4524 "configure" |
4524 |
|
#include "confdefs.h" |
4525 |
|
#include <stdio.h> |
4526 |
|
main() |
4527 |
|
{ |
4528 |
|
return (long)$cstack_address<0 ? 0 : -1; |
4529 |
|
} |
4530 |
|
EOF |
4531 |
|
if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4532 |
|
then |
4533 |
|
echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF |
4534 |
|
#define NEG_CSTACK_ADDRESS 1 |
4535 |
|
EOF |
4536 |
|
|
|
ac_header_preproc=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
|
|
# So? What about this header? |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
|
yes:no: ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
ac_header_preproc=yes |
|
|
;; |
|
|
no:yes:* ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------------ ## |
|
|
## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
## ------------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
4537 |
else |
else |
4538 |
eval "$as_ac_Header=\$ac_header_preproc" |
echo "configure: failed program was:" >&5 |
4539 |
|
cat conftest.$ac_ext >&5 |
4540 |
|
rm -fr conftest* |
4541 |
|
echo "$ac_t""no" 1>&6 |
4542 |
fi |
fi |
4543 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
rm -fr conftest* |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
4544 |
fi |
fi |
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
4545 |
|
|
4546 |
|
|
4547 |
|
|
4548 |
|
echo $ac_n "checking "finding CSTACK_ALIGNMENT"""... $ac_c" 1>&6 |
4549 |
|
echo "configure:4550: checking "finding CSTACK_ALIGNMENT"" >&5 |
4550 |
|
if test "$cross_compiling" = yes; then |
4551 |
|
cstack_alignment=0 |
4552 |
|
else |
4553 |
|
cat > conftest.$ac_ext <<EOF |
4554 |
|
#line 4555 "configure" |
4555 |
|
#include "confdefs.h" |
4556 |
|
#include <stdio.h> |
4557 |
|
main() |
4558 |
|
{ |
4559 |
|
void *b,*c; |
4560 |
|
FILE *fp = fopen("conftest1","w"); |
4561 |
|
long n; |
4562 |
|
b=alloca(sizeof(b)); |
4563 |
|
c=alloca(sizeof(c)); |
4564 |
|
n=b>c ? b-c : c-b; |
4565 |
|
n=n>sizeof(c) ? n : 1; |
4566 |
|
fprintf(fp,"%ld",n); |
4567 |
|
fclose(fp); |
4568 |
|
return 0; |
4569 |
|
} |
4570 |
|
EOF |
4571 |
|
if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4572 |
|
then |
4573 |
|
cstack_alignment=`cat conftest1` |
4574 |
|
else |
4575 |
|
echo "configure: failed program was:" >&5 |
4576 |
|
cat conftest.$ac_ext >&5 |
4577 |
|
rm -fr conftest* |
4578 |
|
cstack_alignment=0 |
4579 |
|
fi |
4580 |
|
rm -fr conftest* |
4581 |
fi |
fi |
4582 |
|
|
4583 |
done |
cat >> confdefs.h <<EOF |
4584 |
|
#define CSTACK_ALIGNMENT $cstack_alignment |
4585 |
|
EOF |
4586 |
|
|
4587 |
|
echo "$ac_t""$cstack_alignment" 1>&6 |
4588 |
|
|
4589 |
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
echo $ac_n "checking CSTACK_DIRECTION""... $ac_c" 1>&6 |
4590 |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
echo "configure:4591: checking CSTACK_DIRECTION" >&5 |
4591 |
if test "${ac_cv_c_const+set}" = set; then |
if test "$cross_compiling" = yes; then |
4592 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
cstack_direction=0 |
4593 |
else |
else |
4594 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4595 |
/* confdefs.h. */ |
#line 4596 "configure" |
4596 |
_ACEOF |
#include "confdefs.h" |
4597 |
cat confdefs.h >>conftest.$ac_ext |
#include <stdio.h> |
4598 |
cat >>conftest.$ac_ext <<_ACEOF |
void * |
4599 |
/* end confdefs.h. */ |
foo(void) { |
4600 |
|
int i; |
4601 |
|
return (void *)&i; |
4602 |
|
} |
4603 |
|
|
4604 |
int |
int |
4605 |
main () |
main() |
4606 |
{ |
{ |
4607 |
/* FIXME: Include the comments suggested by Paul. */ |
char *b; |
4608 |
#ifndef __cplusplus |
FILE *fp = fopen("conftest1","w"); |
4609 |
/* Ultrix mips cc rejects this. */ |
fprintf(fp,"%d",((long) &b) > ((long) foo()) ? -1 : 1); |
4610 |
typedef int charset[2]; |
fclose(fp); |
4611 |
const charset x; |
return 0; |
4612 |
/* SunOS 4.1.1 cc rejects this. */ |
} |
4613 |
char const *const *ccp; |
EOF |
4614 |
char **p; |
if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4615 |
/* NEC SVR4.0.2 mips cc rejects this. */ |
then |
4616 |
struct point {int x, y;}; |
cstack_direction=`cat conftest1` |
4617 |
static struct point const zero = {0,0}; |
else |
4618 |
/* AIX XL C 1.02.0.0 rejects this. |
echo "configure: failed program was:" >&5 |
4619 |
It does not let you subtract one const X* pointer from another in |
cat conftest.$ac_ext >&5 |
4620 |
an arm of an if-expression whose if-part is not a constant |
rm -fr conftest* |
4621 |
expression */ |
cstack_direction=0 |
4622 |
const char *g = "string"; |
fi |
4623 |
ccp = &g + (g ? g-g : 0); |
rm -fr conftest* |
4624 |
/* HPUX 7.0 cc rejects these. */ |
fi |
|
++ccp; |
|
|
p = (char**) ccp; |
|
|
ccp = (char const *const *) p; |
|
|
{ /* SCO 3.2v4 cc rejects this. */ |
|
|
char *t; |
|
|
char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
4625 |
|
|
4626 |
*t++ = 0; |
cat >> confdefs.h <<EOF |
4627 |
} |
#define CSTACK_DIRECTION $cstack_direction |
4628 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
EOF |
4629 |
int x[] = {25, 17}; |
|
4630 |
const int *foo = &x[0]; |
echo "$ac_t""$cstack_direction" 1>&6 |
4631 |
++foo; |
|
4632 |
} |
|
4633 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
echo $ac_n "checking for shared library/C stack ceiling to heap""... $ac_c" 1>&6 |
4634 |
typedef const int *iptr; |
echo "configure:4635: checking for shared library/C stack ceiling to heap" >&5 |
4635 |
iptr p = 0; |
if test "$use" = "mingw" ; then |
4636 |
++p; |
heap_ceiling=2000000000 |
4637 |
} |
else |
4638 |
{ /* AIX XL C 1.02.0.0 rejects this saying |
if test "$enable_static" = "yes" ; then |
4639 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
heap_ceiling=0x0 |
4640 |
struct s { int j; const int *ap[3]; }; |
else |
4641 |
struct s *b; b->j = 5; |
echo "int main() {return 0;}" >foo.c |
4642 |
} |
$CC foo.c -o foo |
4643 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
heap_ceiling=`ldd foo | tail -n 1 | awk '{print $NF}' | tr -d '()'` |
4644 |
const int foo = 10; |
if test "$cross_compiling" = yes; then |
4645 |
} |
echo failed;exit 1 |
4646 |
#endif |
else |
4647 |
|
cat > conftest.$ac_ext <<EOF |
4648 |
|
#line 4649 "configure" |
4649 |
|
#include "confdefs.h" |
4650 |
|
#include <stdio.h> |
4651 |
|
int main() { |
4652 |
|
FILE *fp=fopen("conftest1","w"); |
4653 |
|
unsigned long h=$heap_ceiling,d=$dbegin,c=$cstack_address; |
4654 |
|
h=h<d ? 0 : h; |
4655 |
|
h=c>d && c<h ? c : h; |
4656 |
|
fprintf(fp,"0x%lx",h); |
4657 |
|
return 0;} |
4658 |
|
EOF |
4659 |
|
if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4660 |
|
then |
4661 |
|
heap_ceiling=`cat conftest1` |
4662 |
|
else |
4663 |
|
echo "configure: failed program was:" >&5 |
4664 |
|
cat conftest.$ac_ext >&5 |
4665 |
|
rm -fr conftest* |
4666 |
|
echo failed;exit 1 |
4667 |
|
fi |
4668 |
|
rm -fr conftest* |
4669 |
|
fi |
4670 |
|
|
4671 |
; |
fi |
4672 |
|
fi |
4673 |
|
echo "$ac_t""$heap_ceiling" 1>&6 |
4674 |
|
cat >> confdefs.h <<EOF |
4675 |
|
#define SHARED_LIB_HEAP_CEILING $heap_ceiling |
4676 |
|
EOF |
4677 |
|
|
4678 |
|
|
4679 |
|
## Don't lower heap start if C stack is below default dbegin, as we're |
4680 |
|
# likely to get more heap this way. |
4681 |
|
echo "int main() {return !($heap_ceiling && (unsigned long)$dbegin < (unsigned long)$cstack_address);}" >foo.c |
4682 |
|
$CC foo.c -o foo |
4683 |
|
if ./foo ; then |
4684 |
|
|
4685 |
|
echo $ac_n "checking "finding default linker script"""... $ac_c" 1>&6 |
4686 |
|
echo "configure:4687: checking "finding default linker script"" >&5 |
4687 |
|
touch unixport/gcl.script |
4688 |
|
echo "int main() {return 0;}" >foo.c |
4689 |
|
$CC -Wl,--verbose foo.c -o foo 2>&1 | \ |
4690 |
|
awk '/==================================================/ {i=1-i;next} {if (i) print}' >gcl.script |
4691 |
|
rm -rf foo.c foo |
4692 |
|
if test "`cat gcl.script | wc -l`" != "0" ; then |
4693 |
|
echo "$ac_t""got it" 1>&6 |
4694 |
|
echo $ac_n "checking "trying to lower heap start"""... $ac_c" 1>&6 |
4695 |
|
echo "configure:4696: checking "trying to lower heap start"" >&5 |
4696 |
|
cp gcl.script gcl.script.def |
4697 |
|
cat gcl.script.def | awk '/SIZEOF_HEADERS/ {gsub("0x...","0x000",$0);} {print}' | sed 's,\. = 0x10000000;,/*. = 0x10000000;*/,1' >gcl.script |
4698 |
|
if diff gcl.script.def gcl.script >/dev/null 2>&1 ; then |
4699 |
|
echo "$ac_t"""cannot or not needed"" 1>&6 |
4700 |
|
rm -f gcl.script gcl.script.def |
4701 |
|
else |
4702 |
|
echo $ac_n "checking "linker script"""... $ac_c" 1>&6 |
4703 |
|
echo "configure:4704: checking "linker script"" >&5 |
4704 |
|
echo "int main() {return 0;}" >foo.c |
4705 |
|
if $CC -Wl,-T gcl.script foo.c -o foo >/dev/null 2>&1 && ./foo >/dev/null 2>&1 ; then |
4706 |
|
echo "$ac_t"""done"" 1>&6 |
4707 |
|
rm -f gcl.script.def |
4708 |
|
LDFLAGS="$LDFLAGS -Wl,-T gcl.script " |
4709 |
|
cp gcl.script unixport |
4710 |
|
else |
4711 |
|
echo "$ac_t"""failed"" 1>&6 |
4712 |
|
rm -f gcl.script gcl.script.def |
4713 |
|
fi |
4714 |
|
rm -rf foo.c foo |
4715 |
|
fi |
4716 |
|
else |
4717 |
|
echo "$ac_t"""none"" 1>&6 |
4718 |
|
rm -f gcl.script |
4719 |
|
fi |
4720 |
|
|
4721 |
|
old_LDFLAGS="$LDFLAGS" |
4722 |
|
LDFLAGS="$LDFLAGS $TLDFLAGS" |
4723 |
|
echo $ac_n "checking "revised DBEGIN"""... $ac_c" 1>&6 |
4724 |
|
echo "configure:4725: checking "revised DBEGIN"" >&5 |
4725 |
|
if test "$cross_compiling" = yes; then |
4726 |
|
dbegin=0 |
4727 |
|
else |
4728 |
|
cat > conftest.$ac_ext <<EOF |
4729 |
|
#line 4730 "configure" |
4730 |
|
#include "confdefs.h" |
4731 |
|
#include <stdio.h> |
4732 |
|
#include <stdlib.h> |
4733 |
|
#ifdef NEED_NONRANDOM_SBRK |
4734 |
|
#include <syscall.h> |
4735 |
|
#include <linux/personality.h> |
4736 |
|
#include <unistd.h> |
4737 |
|
#endif |
4738 |
|
int |
4739 |
|
main(int argc,char * argv[]) |
4740 |
|
{ |
4741 |
|
char *b; |
4742 |
|
FILE *fp; |
4743 |
|
|
4744 |
|
#ifdef NEED_NONRANDOM_SBRK |
4745 |
|
#if SIZEOF_LONG == 4 |
4746 |
|
if (!syscall(SYS_personality,PER_LINUX32)) |
4747 |
|
#else |
4748 |
|
if (!syscall(SYS_personality,PER_LINUX)) |
4749 |
|
#endif |
4750 |
|
execvp(argv[0],argv); |
4751 |
|
#endif |
4752 |
|
b = (void *) malloc(1000); |
4753 |
|
fp = fopen("conftest1","w"); |
4754 |
|
|
4755 |
|
#ifdef _WIN32 |
4756 |
|
fprintf ( fp,"0x%lx", 0x1a000000 ); /* Windows custom allocation from this point up */ |
4757 |
|
#else |
4758 |
|
#if defined (__APPLE__) && defined (__MACH__) |
4759 |
|
fprintf(fp,"get_dbegin()"); |
4760 |
|
#else |
4761 |
|
fprintf(fp,"0x%lx",((unsigned long) b) & ~(unsigned long)0xffffff); |
4762 |
|
#endif |
4763 |
|
#endif |
4764 |
|
fclose(fp); |
4765 |
|
return 0;} |
4766 |
|
EOF |
4767 |
|
if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4768 |
|
then |
4769 |
|
dbegin=`cat conftest1` |
4770 |
|
else |
4771 |
|
echo "configure: failed program was:" >&5 |
4772 |
|
cat conftest.$ac_ext >&5 |
4773 |
|
rm -fr conftest* |
4774 |
|
dbegin=0 |
4775 |
|
fi |
4776 |
|
rm -fr conftest* |
4777 |
|
fi |
4778 |
|
|
4779 |
|
echo "$ac_t""$dbegin" 1>&6 |
4780 |
|
LDFLAGS="$old_LDFLAGS" |
4781 |
|
fi |
4782 |
|
cat >> confdefs.h <<EOF |
4783 |
|
#define DBEGIN $dbegin |
4784 |
|
EOF |
4785 |
|
|
4786 |
|
rm -rf foo* |
4787 |
|
|
4788 |
|
echo $ac_n "checking for maxpage revision""... $ac_c" 1>&6 |
4789 |
|
echo "configure:4790: checking for maxpage revision" >&5 |
4790 |
|
if test "$cross_compiling" = yes; then |
4791 |
|
tmp_maxpage=0 |
4792 |
|
else |
4793 |
|
cat > conftest.$ac_ext <<EOF |
4794 |
|
#line 4795 "configure" |
4795 |
|
#include "confdefs.h" |
4796 |
|
#include <stdio.h> |
4797 |
|
main() |
4798 |
|
{ |
4799 |
|
char *b; |
4800 |
|
unsigned long i,j; |
4801 |
|
FILE *fp = fopen("conftest1","w"); |
4802 |
|
j=((unsigned long)$enable_maxpage <<$PAGEWIDTH) + $dbegin; |
4803 |
|
j=$heap_ceiling && j>$heap_ceiling ? $heap_ceiling : j; |
4804 |
|
j-=$dbegin; |
4805 |
|
for (i=1;i<<1 && i<=j;i<<=1); |
4806 |
|
if (i>j) i>>=1; |
4807 |
|
fprintf(fp,"%ld",i>>$PAGEWIDTH); |
4808 |
|
fclose(fp); |
4809 |
return 0; |
return 0; |
4810 |
} |
} |
4811 |
_ACEOF |
EOF |
4812 |
rm -f conftest.$ac_objext |
if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4813 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
then |
4814 |
(eval $ac_compile) 2>conftest.er1 |
tmp_maxpage=`cat conftest1` |
4815 |
ac_status=$? |
else |
4816 |
grep -v '^ *+' conftest.er1 >conftest.err |
echo "configure: failed program was:" >&5 |
4817 |
rm -f conftest.er1 |
cat conftest.$ac_ext >&5 |
4818 |
cat conftest.err >&5 |
rm -fr conftest* |
4819 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
tmp_maxpage=0 |
4820 |
(exit $ac_status); } && |
fi |
4821 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
rm -fr conftest* |
4822 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
fi |
|
(eval $ac_try) 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_c_const=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_c_const=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
echo "${ECHO_T}$ac_cv_c_const" >&6 |
|
|
if test $ac_cv_c_const = no; then |
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
#define const |
|
|
_ACEOF |
|
4823 |
|
|
4824 |
|
if test "$tmp_maxpage" != "$enable_maxpage" ; then |
4825 |
|
enable_maxpage=$tmp_maxpage |
4826 |
|
echo "$ac_t""$enable_maxpage" 1>&6 |
4827 |
|
else |
4828 |
|
echo "$ac_t""$enable_maxpage is OK" 1>&6 |
4829 |
fi |
fi |
4830 |
|
cat >> confdefs.h <<EOF |
4831 |
|
#define MAXPAGE $enable_maxpage |
4832 |
|
EOF |
4833 |
|
|
4834 |
|
|
4835 |
echo "$as_me:$LINENO: checking for pid_t" >&5 |
echo $ac_n "checking for C stack size floor from heap""... $ac_c" 1>&6 |
4836 |
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
echo "configure:4837: checking for C stack size floor from heap" >&5 |
4837 |
if test "${ac_cv_type_pid_t+set}" = set; then |
if test "$cross_compiling" = yes; then |
4838 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
tmp_cssize=0 |
4839 |
else |
else |
4840 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4841 |
/* confdefs.h. */ |
#line 4842 "configure" |
4842 |
_ACEOF |
#include "confdefs.h" |
4843 |
cat confdefs.h >>conftest.$ac_ext |
#include <stdio.h> |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
4844 |
int |
int |
4845 |
main () |
main() |
4846 |
{ |
{ |
4847 |
if ((pid_t *) 0) |
char *b; |
4848 |
return 0; |
FILE *fp = fopen("conftest1","w"); |
4849 |
if (sizeof (pid_t)) |
unsigned long j,k; |
4850 |
return 0; |
|
4851 |
; |
j=$cstack_address + $cstack_direction * $enable_cssize; |
4852 |
|
k=($dbegin + ((unsigned long)$enable_maxpage << $PAGEWIDTH)); |
4853 |
|
j=abs(j-$cstack_address)!=$enable_cssize || (j<k && $dbegin < $cstack_address) ? k : j; |
4854 |
|
j-=$cstack_address; |
4855 |
|
j*=$cstack_direction; |
4856 |
|
fprintf(fp,"%lu",j); |
4857 |
|
fclose(fp); |
4858 |
return 0; |
return 0; |
4859 |
} |
} |
4860 |
_ACEOF |
EOF |
4861 |
rm -f conftest.$ac_objext |
if { (eval echo configure:4862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4862 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
then |
4863 |
(eval $ac_compile) 2>conftest.er1 |
tmp_cssize=`cat conftest1` |
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ 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_pid_t=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_type_pid_t=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
|
|
echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
|
|
if test $ac_cv_type_pid_t = yes; then |
|
|
: |
|
4864 |
else |
else |
4865 |
|
echo "configure: failed program was:" >&5 |
4866 |
|
cat conftest.$ac_ext >&5 |
4867 |
|
rm -fr conftest* |
4868 |
|
tmp_cssize=0 |
4869 |
|
fi |
4870 |
|
rm -fr conftest* |
4871 |
|
fi |
4872 |
|
|
4873 |
cat >>confdefs.h <<_ACEOF |
if test "$tmp_cssize" != "$enable_cssize" ; then |
4874 |
#define pid_t int |
enable_cssize=$tmp_cssize; |
4875 |
_ACEOF |
echo "$ac_t""$enable_cssize" 1>&6 |
4876 |
|
# AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize) |
4877 |
|
else |
4878 |
|
echo "$ac_t""$enable_cssize is OK" 1>&6 |
4879 |
fi |
fi |
4880 |
|
#AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize) |
4881 |
|
|
4882 |
echo "$as_me:$LINENO: checking for size_t" >&5 |
echo $ac_n "checking for C stack size limit from fixnum table""... $ac_c" 1>&6 |
4883 |
echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
echo "configure:4884: checking for C stack size limit from fixnum table" >&5 |
4884 |
if test "${ac_cv_type_size_t+set}" = set; then |
if test "$cross_compiling" = yes; then |
4885 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
tmp_cssize=0 |
4886 |
else |
else |
4887 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
4888 |
/* confdefs.h. */ |
#line 4889 "configure" |
4889 |
_ACEOF |
#include "confdefs.h" |
4890 |
cat confdefs.h >>conftest.$ac_ext |
#include <stdio.h> |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
4891 |
int |
int |
4892 |
main () |
main() |
4893 |
{ |
{ |
4894 |
if ((size_t *) 0) |
char *b; |
4895 |
return 0; |
FILE *fp = fopen("conftest1","w"); |
4896 |
if (sizeof (size_t)) |
unsigned long j,k; |
4897 |
return 0; |
|
4898 |
; |
j=$cstack_address + $cstack_direction * $enable_cssize; |
4899 |
|
if ($cstack_direction>0) { |
4900 |
|
k=$cstack_address + ((-(unsigned long)$cstack_address)>>1); |
4901 |
|
j=j<$cstack_address || j > k ? k : j; |
4902 |
|
j=$cstack_address < $dbegin && j > $dbegin ? $dbegin : j; |
4903 |
|
} |
4904 |
|
j-=$cstack_address; |
4905 |
|
j*=$cstack_direction; |
4906 |
|
fprintf(fp,"%lu",j); |
4907 |
|
fclose(fp); |
4908 |
return 0; |
return 0; |
4909 |
} |
} |
4910 |
_ACEOF |
EOF |
4911 |
rm -f conftest.$ac_objext |
if { (eval echo configure:4912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4912 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
then |
4913 |
(eval $ac_compile) 2>conftest.er1 |
tmp_cssize=`cat conftest1` |
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ 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_size_t=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_type_size_t=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
|
|
echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
|
|
if test $ac_cv_type_size_t = yes; then |
|
|
: |
|
4914 |
else |
else |
4915 |
|
echo "configure: failed program was:" >&5 |
4916 |
|
cat conftest.$ac_ext >&5 |
4917 |
|
rm -fr conftest* |
4918 |
|
tmp_cssize=0 |
4919 |
|
fi |
4920 |
|
rm -fr conftest* |
4921 |
|
fi |
4922 |
|
|
4923 |
cat >>confdefs.h <<_ACEOF |
if test "$tmp_cssize" != "$enable_cssize" ; then |
4924 |
#define size_t unsigned |
enable_cssize=$tmp_cssize; |
4925 |
_ACEOF |
echo "$ac_t""$enable_cssize" 1>&6 |
4926 |
|
else |
4927 |
|
echo "$ac_t""$enable_cssize is OK" 1>&6 |
4928 |
fi |
fi |
4929 |
|
cat >> confdefs.h <<EOF |
4930 |
|
#define CSSIZE $enable_cssize |
4931 |
|
EOF |
4932 |
|
|
|
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
|
|
if test "${ac_cv_header_time+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <sys/types.h> |
|
|
#include <sys/time.h> |
|
|
#include <time.h> |
|
4933 |
|
|
4934 |
|
mem_top=0 |
4935 |
|
mem_range=0 |
4936 |
|
echo $ac_n "checking mem top""... $ac_c" 1>&6 |
4937 |
|
echo "configure:4938: checking mem top" >&5 |
4938 |
|
if test "$cross_compiling" = yes; then |
4939 |
|
mem_top=0 |
4940 |
|
else |
4941 |
|
cat > conftest.$ac_ext <<EOF |
4942 |
|
#line 4943 "configure" |
4943 |
|
#include "confdefs.h" |
4944 |
|
#include <stdio.h> |
4945 |
int |
int |
4946 |
main () |
main() |
4947 |
{ |
{ |
4948 |
if ((struct tm *) 0) |
void *v; |
4949 |
return 0; |
unsigned long i,j,k,l,m; |
4950 |
; |
FILE *fp = fopen("conftest1","w"); |
4951 |
return 0; |
|
4952 |
} |
for (i=2,k=1;i;k=i,i<<=1); |
4953 |
_ACEOF |
l=$cstack_address + ($cstack_direction==1 ? $enable_cssize : 0); |
4954 |
rm -f conftest.$ac_objext |
m=$dbegin + ((unsigned long)$enable_maxpage << $PAGEWIDTH); |
4955 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
l=l<m ? m : l; |
4956 |
(eval $ac_compile) 2>conftest.er1 |
for (i=j=k;j && i<l;j>>=1,i|=j); |
4957 |
ac_status=$? |
j=1; |
4958 |
grep -v '^ *+' conftest.er1 >conftest.err |
j<<=$PAGEWIDTH; |
4959 |
rm -f conftest.er1 |
j<<=4; |
4960 |
cat conftest.err >&5 |
j--; |
4961 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
i+=j; |
4962 |
(exit $ac_status); } && |
i&=~j; |
4963 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
fprintf(fp,"0x%lx",i); |
4964 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
fclose(fp); |
4965 |
(eval $ac_try) 2>&5 |
return 0;} |
4966 |
ac_status=$? |
EOF |
4967 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4968 |
(exit $ac_status); }; } && |
then |
4969 |
{ ac_try='test -s conftest.$ac_objext' |
mem_top=`cat conftest1` |
4970 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
else |
4971 |
(eval $ac_try) 2>&5 |
echo "configure: failed program was:" >&5 |
4972 |
ac_status=$? |
cat conftest.$ac_ext >&5 |
4973 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
rm -fr conftest* |
4974 |
(exit $ac_status); }; }; then |
mem_top=0 |
4975 |
ac_cv_header_time=yes |
fi |
4976 |
else |
rm -fr conftest* |
4977 |
echo "$as_me: failed program was:" >&5 |
fi |
4978 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
4979 |
|
echo "$ac_t""$mem_top" 1>&6 |
4980 |
ac_cv_header_time=no |
if test "$mem_top" != "0" ; then |
4981 |
fi |
echo $ac_n "checking finding upper mem half range""... $ac_c" 1>&6 |
4982 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
echo "configure:4983: checking finding upper mem half range" >&5 |
4983 |
fi |
if test "$cross_compiling" = yes; then |
4984 |
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
mem_range=0 |
4985 |
echo "${ECHO_T}$ac_cv_header_time" >&6 |
else |
4986 |
if test $ac_cv_header_time = yes; then |
cat > conftest.$ac_ext <<EOF |
4987 |
|
#line 4988 "configure" |
4988 |
cat >>confdefs.h <<\_ACEOF |
#include "confdefs.h" |
4989 |
#define TIME_WITH_SYS_TIME 1 |
#include <stdio.h> |
4990 |
_ACEOF |
int |
4991 |
|
main() |
4992 |
|
{ |
4993 |
|
unsigned long j; |
4994 |
|
FILE *fp = fopen("conftest1","w"); |
4995 |
|
|
4996 |
|
for (j=1;j && !(j& $mem_top);j<<=1); |
4997 |
|
fprintf(fp,"0x%lx",j>>1); |
4998 |
|
fclose(fp); |
4999 |
|
return 0; |
5000 |
|
} |
5001 |
|
EOF |
5002 |
|
if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5003 |
|
then |
5004 |
|
mem_range=`cat conftest1` |
5005 |
|
else |
5006 |
|
echo "configure: failed program was:" >&5 |
5007 |
|
cat conftest.$ac_ext >&5 |
5008 |
|
rm -fr conftest* |
5009 |
|
mem_range=0 |
5010 |
|
fi |
5011 |
|
rm -fr conftest* |
5012 |
|
fi |
5013 |
|
|
5014 |
|
echo "$ac_t""$mem_range" 1>&6 |
5015 |
|
if test "$mem_range" != "0" ; then |
5016 |
|
cat >> confdefs.h <<EOF |
5017 |
|
#define MEM_TOP $mem_top |
5018 |
|
EOF |
5019 |
|
|
5020 |
|
cat >> confdefs.h <<EOF |
5021 |
|
#define MEM_RANGE $mem_range |
5022 |
|
EOF |
5023 |
|
|
5024 |
|
fi |
5025 |
|
fi |
5026 |
|
|
5027 |
|
if test "$enable_immfix" = "yes" ; then |
5028 |
|
if test "$mem_top" != "0" ; then |
5029 |
|
if test "$mem_range" != "0" ; then |
5030 |
|
cat >> confdefs.h <<EOF |
5031 |
|
#define IM_FIX_BASE $mem_top |
5032 |
|
EOF |
5033 |
|
|
5034 |
|
cat >> confdefs.h <<EOF |
5035 |
|
#define IM_FIX_LIM $mem_range |
5036 |
|
EOF |
5037 |
|
|
5038 |
|
fi |
5039 |
|
fi |
5040 |
fi |
fi |
5041 |
|
|
5042 |
|
|
5043 |
|
echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6 |
5044 |
|
echo "configure:5045: checking "sizeof long long int"" >&5 |
5045 |
|
if test "$cross_compiling" = yes; then |
5046 |
|
echo "$ac_t""no" 1>&6 |
5047 |
|
|
5048 |
|
else |
5049 |
|
cat > conftest.$ac_ext <<EOF |
5050 |
|
#line 5051 "configure" |
5051 |
|
#include "confdefs.h" |
5052 |
|
#include <stdio.h> |
5053 |
|
main() |
5054 |
|
{ |
5055 |
|
if (sizeof(long long int) == 2*sizeof(long)) return 0; |
5056 |
|
return 1; |
5057 |
|
} |
5058 |
|
|
5059 |
for ac_header in stdlib.h unistd.h |
EOF |
5060 |
do |
if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5061 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
then |
5062 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
cat >> confdefs.h <<\EOF |
5063 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
#define HAVE_LONG_LONG 1 |
5064 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
EOF |
5065 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
5066 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo "$ac_t""yes" 1>&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 |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
$ac_includes_default |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_header_compiler=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_header_compiler=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
|
|
# Is the header present? |
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
5067 |
else |
else |
5068 |
ac_cpp_err=yes |
echo "configure: failed program was:" >&5 |
5069 |
|
cat conftest.$ac_ext >&5 |
5070 |
|
rm -fr conftest* |
5071 |
|
echo "$ac_t""no" 1>&6 |
5072 |
|
fi |
5073 |
|
rm -fr conftest* |
5074 |
fi |
fi |
|
if test -z "$ac_cpp_err"; then |
|
|
ac_header_preproc=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5075 |
|
|
5076 |
ac_header_preproc=no |
|
5077 |
fi |
|
5078 |
rm -f conftest.err conftest.$ac_ext |
|
5079 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
# readline |
5080 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
# Check whether --enable-readline or --disable-readline was given. |
5081 |
|
if test "${enable_readline+set}" = set; then |
5082 |
# So? What about this header? |
enableval="$enable_readline" |
5083 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
: |
|
yes:no: ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
ac_header_preproc=yes |
|
|
;; |
|
|
no:yes:* ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
( |
|
|
cat <<\_ASBOX |
|
|
## ------------------------------------------ ## |
|
|
## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
## ------------------------------------------ ## |
|
|
_ASBOX |
|
|
) | |
|
|
sed "s/^/$as_me: WARNING: /" >&2 |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5084 |
else |
else |
5085 |
eval "$as_ac_Header=\$ac_header_preproc" |
enable_readline="yes" |
5086 |
fi |
fi |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
5087 |
|
|
5088 |
|
|
5089 |
|
if test "$enable_static" = "yes" ; then |
5090 |
|
echo disabling readline when linking statically |
5091 |
|
enable_readline="no" |
5092 |
fi |
fi |
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
5093 |
|
|
5094 |
|
# ansi lisp |
5095 |
|
# Check whether --enable-ansi or --disable-ansi was given. |
5096 |
|
if test "${enable_ansi+set}" = set; then |
5097 |
|
enableval="$enable_ansi" |
5098 |
|
: |
5099 |
|
else |
5100 |
|
enable_ansi="no" |
5101 |
fi |
fi |
5102 |
|
|
|
done |
|
5103 |
|
|
5104 |
|
if test "$enable_ansi" = "yes" ; then |
5105 |
|
SYSTEM=ansi_gcl |
5106 |
|
cat >> confdefs.h <<\EOF |
5107 |
|
#define ANSI_COMMON_LISP 1 |
5108 |
|
EOF |
5109 |
|
|
5110 |
|
CLSTANDARD=ANSI |
5111 |
|
else |
5112 |
|
SYSTEM=gcl |
5113 |
|
CLSTANDARD=CLtL1 |
5114 |
|
fi |
5115 |
|
|
5116 |
|
FLISP="saved_$SYSTEM" |
5117 |
|
|
|
for ac_func in getpagesize |
|
|
do |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
#define $ac_func innocuous_$ac_func |
|
5118 |
|
|
5119 |
|
|
5120 |
|
|
5121 |
|
# Check if Posix compliant getcwd exists, if not we'll use getwd. |
5122 |
|
for ac_func in getcwd |
5123 |
|
do |
5124 |
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5125 |
|
echo "configure:5126: checking for $ac_func" >&5 |
5126 |
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5127 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5128 |
|
else |
5129 |
|
cat > conftest.$ac_ext <<EOF |
5130 |
|
#line 5131 "configure" |
5131 |
|
#include "confdefs.h" |
5132 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
5133 |
which can conflict with char $ac_func (); below. |
which can conflict with char $ac_func(); below. */ |
5134 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
#include <assert.h> |
5135 |
<limits.h> exists even on freestanding compilers. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
5136 |
|
/* We use char because int might match the return type of a gcc2 |
5137 |
|
builtin and then its argument prototype would still apply. */ |
5138 |
|
char $ac_func(); |
5139 |
|
|
5140 |
#ifdef __STDC__ |
int main() { |
5141 |
# include <limits.h> |
|
5142 |
|
/* The GNU C library defines this for functions which it implements |
5143 |
|
to always fail with ENOSYS. Some functions are actually named |
5144 |
|
something starting with __ and the normal name is an alias. */ |
5145 |
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
5146 |
|
choke me |
5147 |
#else |
#else |
5148 |
# include <assert.h> |
$ac_func(); |
5149 |
#endif |
#endif |
5150 |
|
|
5151 |
#undef $ac_func |
; return 0; } |
5152 |
|
EOF |
5153 |
|
if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5154 |
|
rm -rf conftest* |
5155 |
|
eval "ac_cv_func_$ac_func=yes" |
5156 |
|
else |
5157 |
|
echo "configure: failed program was:" >&5 |
5158 |
|
cat conftest.$ac_ext >&5 |
5159 |
|
rm -rf conftest* |
5160 |
|
eval "ac_cv_func_$ac_func=no" |
5161 |
|
fi |
5162 |
|
rm -f conftest* |
5163 |
|
fi |
5164 |
|
|
5165 |
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
5166 |
|
echo "$ac_t""yes" 1>&6 |
5167 |
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
5168 |
|
cat >> confdefs.h <<EOF |
5169 |
|
#define $ac_tr_func 1 |
5170 |
|
EOF |
5171 |
|
|
5172 |
|
else |
5173 |
|
echo "$ac_t""no" 1>&6 |
5174 |
|
fi |
5175 |
|
done |
5176 |
|
|
5177 |
|
for ac_func in getwd |
5178 |
|
do |
5179 |
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5180 |
|
echo "configure:5181: checking for $ac_func" >&5 |
5181 |
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5182 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5183 |
|
else |
5184 |
|
cat > conftest.$ac_ext <<EOF |
5185 |
|
#line 5186 "configure" |
5186 |
|
#include "confdefs.h" |
5187 |
|
/* System header to define __stub macros and hopefully few prototypes, |
5188 |
|
which can conflict with char $ac_func(); below. */ |
5189 |
|
#include <assert.h> |
5190 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
5191 |
/* 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 |
5192 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
5193 |
char $ac_func (); |
char $ac_func(); |
5194 |
|
|
5195 |
|
int main() { |
5196 |
|
|
5197 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
5198 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
5199 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
5200 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
5201 |
choke me |
choke me |
5202 |
#else |
#else |
5203 |
char (*f) () = $ac_func; |
$ac_func(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
5204 |
#endif |
#endif |
5205 |
|
|
5206 |
int |
; return 0; } |
5207 |
main () |
EOF |
5208 |
{ |
if { (eval echo configure:5209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5209 |
return f != $ac_func; |
rm -rf conftest* |
5210 |
; |
eval "ac_cv_func_$ac_func=yes" |
5211 |
return 0; |
else |
5212 |
} |
echo "configure: failed program was:" >&5 |
5213 |
_ACEOF |
cat conftest.$ac_ext >&5 |
5214 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -rf conftest* |
5215 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
eval "ac_cv_func_$ac_func=no" |
5216 |
(eval $ac_link) 2>conftest.er1 |
fi |
5217 |
ac_status=$? |
rm -f conftest* |
5218 |
grep -v '^ *+' conftest.er1 >conftest.err |
fi |
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
{ (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); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
eval "$as_ac_var=yes" |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
eval "$as_ac_var=no" |
|
|
fi |
|
|
rm -f conftest.err 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 |
|
5219 |
|
|
5220 |
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
5221 |
|
echo "$ac_t""yes" 1>&6 |
5222 |
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
5223 |
|
cat >> confdefs.h <<EOF |
5224 |
|
#define $ac_tr_func 1 |
5225 |
|
EOF |
5226 |
|
|
5227 |
|
else |
5228 |
|
echo "$ac_t""no" 1>&6 |
5229 |
fi |
fi |
5230 |
done |
done |
5231 |
|
|
5232 |
echo "$as_me:$LINENO: checking for working mmap" >&5 |
echo $ac_n "checking for uname""... $ac_c" 1>&6 |
5233 |
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
echo "configure:5234: checking for uname" >&5 |
5234 |
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then |
5235 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5236 |
else |
else |
5237 |
if test "$cross_compiling" = yes; then |
cat > conftest.$ac_ext <<EOF |
5238 |
ac_cv_func_mmap_fixed_mapped=no |
#line 5239 "configure" |
5239 |
else |
#include "confdefs.h" |
5240 |
cat >conftest.$ac_ext <<_ACEOF |
/* System header to define __stub macros and hopefully few prototypes, |
5241 |
/* confdefs.h. */ |
which can conflict with char uname(); below. */ |
5242 |
_ACEOF |
#include <assert.h> |
5243 |
cat confdefs.h >>conftest.$ac_ext |
/* Override any gcc2 internal prototype to avoid an error. */ |
5244 |
cat >>conftest.$ac_ext <<_ACEOF |
/* We use char because int might match the return type of a gcc2 |
5245 |
/* end confdefs.h. */ |
builtin and then its argument prototype would still apply. */ |
5246 |
$ac_includes_default |
char uname(); |
|
/* malloc might have been renamed as rpl_malloc. */ |
|
|
#undef malloc |
|
|
|
|
|
/* Thanks to Mike Haertel and Jim Avera for this test. |
|
|
Here is a matrix of mmap possibilities: |
|
|
mmap private not fixed |
|
|
mmap private fixed at somewhere currently unmapped |
|
|
mmap private fixed at somewhere already mapped |
|
|
mmap shared not fixed |
|
|
mmap shared fixed at somewhere currently unmapped |
|
|
mmap shared fixed at somewhere already mapped |
|
|
For private mappings, we should verify that changes cannot be read() |
|
|
back from the file, nor mmap's back from the file at a different |
|
|
address. (There have been systems where private was not correctly |
|
|
implemented like the infamous i386 svr4.0, and systems where the |
|
|
VM page cache was not coherent with the file system buffer cache |
|
|
like early versions of FreeBSD and possibly contemporary NetBSD.) |
|
|
For shared mappings, we should conversely verify that changes get |
|
|
propagated back to all the places they're supposed to be. |
|
|
|
|
|
Grep wants private fixed already mapped. |
|
|
The main things grep needs to know about mmap are: |
|
|
* does it exist and is it safe to write into the mmap'd area |
|
|
* how to use it (BSD variants) */ |
|
5247 |
|
|
5248 |
#include <fcntl.h> |
int main() { |
|
#include <sys/mman.h> |
|
5249 |
|
|
5250 |
#if !STDC_HEADERS && !HAVE_STDLIB_H |
/* The GNU C library defines this for functions which it implements |
5251 |
char *malloc (); |
to always fail with ENOSYS. Some functions are actually named |
5252 |
|
something starting with __ and the normal name is an alias. */ |
5253 |
|
#if defined (__stub_uname) || defined (__stub___uname) |
5254 |
|
choke me |
5255 |
|
#else |
5256 |
|
uname(); |
5257 |
#endif |
#endif |
5258 |
|
|
5259 |
/* This mess was copied from the GNU getpagesize.h. */ |
; return 0; } |
5260 |
#if !HAVE_GETPAGESIZE |
EOF |
5261 |
/* Assume that all systems that can run configure have sys/param.h. */ |
if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5262 |
# if !HAVE_SYS_PARAM_H |
rm -rf conftest* |
5263 |
# define HAVE_SYS_PARAM_H 1 |
eval "ac_cv_func_uname=yes" |
5264 |
# endif |
else |
5265 |
|
echo "configure: failed program was:" >&5 |
5266 |
# ifdef _SC_PAGESIZE |
cat conftest.$ac_ext >&5 |
5267 |
# define getpagesize() sysconf(_SC_PAGESIZE) |
rm -rf conftest* |
5268 |
# else /* no _SC_PAGESIZE */ |
eval "ac_cv_func_uname=no" |
5269 |
# if HAVE_SYS_PARAM_H |
fi |
5270 |
# include <sys/param.h> |
rm -f conftest* |
5271 |
# ifdef EXEC_PAGESIZE |
fi |
|
# define getpagesize() EXEC_PAGESIZE |
|
|
# else /* no EXEC_PAGESIZE */ |
|
|
# ifdef NBPG |
|
|
# define getpagesize() NBPG * CLSIZE |
|
|
# ifndef CLSIZE |
|
|
# define CLSIZE 1 |
|
|
# endif /* no CLSIZE */ |
|
|
# else /* no NBPG */ |
|
|
# ifdef NBPC |
|
|
# define getpagesize() NBPC |
|
|
# else /* no NBPC */ |
|
|
# ifdef PAGESIZE |
|
|
# define getpagesize() PAGESIZE |
|
|
# endif /* PAGESIZE */ |
|
|
# endif /* no NBPC */ |
|
|
# endif /* no NBPG */ |
|
|
# endif /* no EXEC_PAGESIZE */ |
|
|
# else /* no HAVE_SYS_PARAM_H */ |
|
|
# define getpagesize() 8192 /* punt totally */ |
|
|
# endif /* no HAVE_SYS_PARAM_H */ |
|
|
# endif /* no _SC_PAGESIZE */ |
|
5272 |
|
|
5273 |
#endif /* no HAVE_GETPAGESIZE */ |
if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then |
5274 |
|
echo "$ac_t""yes" 1>&6 |
5275 |
|
: |
5276 |
|
else |
5277 |
|
echo "$ac_t""no" 1>&6 |
5278 |
|
cat >> confdefs.h <<\EOF |
5279 |
|
#define NO_UNAME 1 |
5280 |
|
EOF |
5281 |
|
|
5282 |
int |
fi |
5283 |
main () |
|
5284 |
{ |
echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
5285 |
char *data, *data2, *data3; |
echo "configure:5286: checking for gettimeofday" >&5 |
5286 |
int i, pagesize; |
if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
5287 |
int fd; |
echo $ac_n "(cached) $ac_c" 1>&6 |
5288 |
|
else |
5289 |
pagesize = getpagesize (); |
cat > conftest.$ac_ext <<EOF |
5290 |
|
#line 5291 "configure" |
5291 |
/* First, make a file with some known garbage in it. */ |
#include "confdefs.h" |
5292 |
data = (char *) malloc (pagesize); |
/* System header to define __stub macros and hopefully few prototypes, |
5293 |
if (!data) |
which can conflict with char gettimeofday(); below. */ |
5294 |
exit (1); |
#include <assert.h> |
5295 |
for (i = 0; i < pagesize; ++i) |
/* Override any gcc2 internal prototype to avoid an error. */ |
5296 |
*(data + i) = rand (); |
/* We use char because int might match the return type of a gcc2 |
5297 |
umask (0); |
builtin and then its argument prototype would still apply. */ |
5298 |
fd = creat ("conftest.mmap", 0600); |
char gettimeofday(); |
5299 |
if (fd < 0) |
|
5300 |
exit (1); |
int main() { |
5301 |
if (write (fd, data, pagesize) != pagesize) |
|
5302 |
exit (1); |
/* The GNU C library defines this for functions which it implements |
5303 |
close (fd); |
to always fail with ENOSYS. Some functions are actually named |
5304 |
|
something starting with __ and the normal name is an alias. */ |
5305 |
/* Next, try to mmap the file at a fixed address which already has |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
5306 |
something else allocated at it. If we can, also make sure that |
choke me |
|
we see the same garbage. */ |
|
|
fd = open ("conftest.mmap", O_RDWR); |
|
|
if (fd < 0) |
|
|
exit (1); |
|
|
data2 = (char *) malloc (2 * pagesize); |
|
|
if (!data2) |
|
|
exit (1); |
|
|
data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
|
|
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
|
|
MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
|
|
exit (1); |
|
|
for (i = 0; i < pagesize; ++i) |
|
|
if (*(data + i) != *(data2 + i)) |
|
|
exit (1); |
|
|
|
|
|
/* Finally, make sure that changes to the mapped area do not |
|
|
percolate back to the file as seen by read(). (This is a bug on |
|
|
some variants of i386 svr4.0.) */ |
|
|
for (i = 0; i < pagesize; ++i) |
|
|
*(data2 + i) = *(data2 + i) + 1; |
|
|
data3 = (char *) malloc (pagesize); |
|
|
if (!data3) |
|
|
exit (1); |
|
|
if (read (fd, data3, pagesize) != pagesize) |
|
|
exit (1); |
|
|
for (i = 0; i < pagesize; ++i) |
|
|
if (*(data + i) != *(data3 + i)) |
|
|
exit (1); |
|
|
close (fd); |
|
|
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 |
|
|
ac_cv_func_mmap_fixed_mapped=yes |
|
|
else |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
( exit $ac_status ) |
|
|
ac_cv_func_mmap_fixed_mapped=no |
|
|
fi |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
|
|
if test $ac_cv_func_mmap_fixed_mapped = yes; then |
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
#define HAVE_MMAP 1 |
|
|
_ACEOF |
|
|
|
|
|
fi |
|
|
rm -f conftest.mmap |
|
|
|
|
|
echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
|
|
if test "${ac_cv_type_signal+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
#include <sys/types.h> |
|
|
#include <signal.h> |
|
|
#ifdef signal |
|
|
# undef signal |
|
|
#endif |
|
|
#ifdef __cplusplus |
|
|
extern "C" void (*signal (int, void (*)(int)))(int); |
|
5307 |
#else |
#else |
5308 |
void (*signal ()) (); |
gettimeofday(); |
5309 |
#endif |
#endif |
5310 |
|
|
5311 |
int |
; return 0; } |
5312 |
main () |
EOF |
5313 |
{ |
if { (eval echo configure:5314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5314 |
int i; |
rm -rf conftest* |
5315 |
; |
eval "ac_cv_func_gettimeofday=yes" |
5316 |
return 0; |
else |
5317 |
} |
echo "configure: failed program was:" >&5 |
5318 |
_ACEOF |
cat conftest.$ac_ext >&5 |
5319 |
rm -f conftest.$ac_objext |
rm -rf conftest* |
5320 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
eval "ac_cv_func_gettimeofday=no" |
5321 |
(eval $ac_compile) 2>conftest.er1 |
fi |
5322 |
ac_status=$? |
rm -f conftest* |
5323 |
grep -v '^ *+' conftest.er1 >conftest.err |
fi |
5324 |
rm -f conftest.er1 |
|
5325 |
cat conftest.err >&5 |
if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
5326 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$ac_t""yes" 1>&6 |
5327 |
(exit $ac_status); } && |
: |
5328 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
else |
5329 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
echo "$ac_t""no" 1>&6 |
5330 |
(eval $ac_try) 2>&5 |
cat >> confdefs.h <<\EOF |
5331 |
ac_status=$? |
#define NO_GETTOD 1 |
5332 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
EOF |
5333 |
(exit $ac_status); }; } && |
|
5334 |
{ ac_try='test -s conftest.$ac_objext' |
fi |
|
{ (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_signal=void |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_type_signal=int |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
echo "${ECHO_T}$ac_cv_type_signal" >&6 |
|
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define RETSIGTYPE $ac_cv_type_signal |
|
|
_ACEOF |
|
5335 |
|
|
5336 |
|
|
5337 |
|
|
5338 |
for ac_func in vprintf |
for ac_hdr in sys/ioctl.h |
5339 |
do |
do |
5340 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5341 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5342 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
echo "configure:5343: checking for $ac_hdr" >&5 |
5343 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5344 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
5345 |
else |
else |
5346 |
cat >conftest.$ac_ext <<_ACEOF |
cat > conftest.$ac_ext <<EOF |
5347 |
/* confdefs.h. */ |
#line 5348 "configure" |
5348 |
_ACEOF |
#include "confdefs.h" |
5349 |
cat confdefs.h >>conftest.$ac_ext |
#include <$ac_hdr> |
5350 |
cat >>conftest.$ac_ext <<_ACEOF |
EOF |
5351 |
/* end confdefs.h. */ |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5352 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
{ (eval echo configure:5353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5353 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5354 |
#define $ac_func innocuous_$ac_func |
if test -z "$ac_err"; then |
5355 |
|
rm -rf conftest* |
5356 |
|
eval "ac_cv_header_$ac_safe=yes" |
5357 |
|
else |
5358 |
|
echo "$ac_err" >&5 |
5359 |
|
echo "configure: failed program was:" >&5 |
5360 |
|
cat conftest.$ac_ext >&5 |
5361 |
|
rm -rf conftest* |
5362 |
|
eval "ac_cv_header_$ac_safe=no" |
5363 |
|
fi |
5364 |
|
rm -f conftest* |
5365 |
|
fi |
5366 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5367 |
|
echo "$ac_t""yes" 1>&6 |
5368 |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5369 |
|
cat >> confdefs.h <<EOF |
5370 |
|
#define $ac_tr_hdr 1 |
5371 |
|
EOF |
5372 |
|
|
5373 |
|
else |
5374 |
|
echo "$ac_t""no" 1>&6 |
5375 |
|
fi |
5376 |
|
done |
5377 |
|
|
5378 |
|
|
5379 |
|
# OpenBSD has elf_abi.h instead of elf.h |
5380 |
|
for ac_hdr in elf.h elf_abi.h |
5381 |
|
do |
5382 |
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5383 |
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5384 |
|
echo "configure:5385: checking for $ac_hdr" >&5 |
5385 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5386 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5387 |
|
else |
5388 |
|
cat > conftest.$ac_ext <<EOF |
5389 |
|
#line 5390 "configure" |
5390 |
|
#include "confdefs.h" |
5391 |
|
#include <$ac_hdr> |
5392 |
|
EOF |
5393 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5394 |
|
{ (eval echo configure:5395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5395 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5396 |
|
if test -z "$ac_err"; then |
5397 |
|
rm -rf conftest* |
5398 |
|
eval "ac_cv_header_$ac_safe=yes" |
5399 |
|
else |
5400 |
|
echo "$ac_err" >&5 |
5401 |
|
echo "configure: failed program was:" >&5 |
5402 |
|
cat conftest.$ac_ext >&5 |
5403 |
|
rm -rf conftest* |
5404 |
|
eval "ac_cv_header_$ac_safe=no" |
5405 |
|
fi |
5406 |
|
rm -f conftest* |
5407 |
|
fi |
5408 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5409 |
|
echo "$ac_t""yes" 1>&6 |
5410 |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5411 |
|
cat >> confdefs.h <<EOF |
5412 |
|
#define $ac_tr_hdr 1 |
5413 |
|
EOF |
5414 |
|
|
5415 |
|
else |
5416 |
|
echo "$ac_t""no" 1>&6 |
5417 |
|
fi |
5418 |
|
done |
5419 |
|
|
5420 |
|
|
5421 |
|
|
5422 |
|
#-------------------------------------------------------------------- |
5423 |
|
# The code below deals with several issues related to gettimeofday: |
5424 |
|
# 1. Some systems don't provide a gettimeofday function at all |
5425 |
|
# (set NO_GETTOD if this is the case). |
5426 |
|
# 2. SGI systems don't use the BSD form of the gettimeofday function, |
5427 |
|
# but they have a BSDgettimeofday function that can be used instead. |
5428 |
|
# 3. See if gettimeofday is declared in the <sys/time.h> header file. |
5429 |
|
# if not, set the GETTOD_NOT_DECLARED flag so that tclPort.h can |
5430 |
|
# declare it. |
5431 |
|
#-------------------------------------------------------------------- |
5432 |
|
|
5433 |
|
echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6 |
5434 |
|
echo "configure:5435: checking for BSDgettimeofday" >&5 |
5435 |
|
if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then |
5436 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5437 |
|
else |
5438 |
|
cat > conftest.$ac_ext <<EOF |
5439 |
|
#line 5440 "configure" |
5440 |
|
#include "confdefs.h" |
5441 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
5442 |
which can conflict with char $ac_func (); below. |
which can conflict with char BSDgettimeofday(); below. */ |
5443 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
#include <assert.h> |
5444 |
<limits.h> exists even on freestanding compilers. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
5445 |
|
/* We use char because int might match the return type of a gcc2 |
5446 |
|
builtin and then its argument prototype would still apply. */ |
5447 |
|
char BSDgettimeofday(); |
5448 |
|
|
5449 |
|
int main() { |
5450 |
|
|
5451 |
#ifdef __STDC__ |
/* The GNU C library defines this for functions which it implements |
5452 |
# include <limits.h> |
to always fail with ENOSYS. Some functions are actually named |
5453 |
|
something starting with __ and the normal name is an alias. */ |
5454 |
|
#if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday) |
5455 |
|
choke me |
5456 |
#else |
#else |
5457 |
# include <assert.h> |
BSDgettimeofday(); |
5458 |
#endif |
#endif |
5459 |
|
|
5460 |
#undef $ac_func |
; return 0; } |
5461 |
|
EOF |
5462 |
|
if { (eval echo configure:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5463 |
|
rm -rf conftest* |
5464 |
|
eval "ac_cv_func_BSDgettimeofday=yes" |
5465 |
|
else |
5466 |
|
echo "configure: failed program was:" >&5 |
5467 |
|
cat conftest.$ac_ext >&5 |
5468 |
|
rm -rf conftest* |
5469 |
|
eval "ac_cv_func_BSDgettimeofday=no" |
5470 |
|
fi |
5471 |
|
rm -f conftest* |
5472 |
|
fi |
5473 |
|
|
5474 |
|
if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then |
5475 |
|
echo "$ac_t""yes" 1>&6 |
5476 |
|
cat >> confdefs.h <<\EOF |
5477 |
|
#define HAVE_BSDGETTIMEOFDAY 1 |
5478 |
|
EOF |
5479 |
|
|
5480 |
|
else |
5481 |
|
echo "$ac_t""no" 1>&6 |
5482 |
|
echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
5483 |
|
echo "configure:5484: checking for gettimeofday" >&5 |
5484 |
|
if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
5485 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5486 |
|
else |
5487 |
|
cat > conftest.$ac_ext <<EOF |
5488 |
|
#line 5489 "configure" |
5489 |
|
#include "confdefs.h" |
5490 |
|
/* System header to define __stub macros and hopefully few prototypes, |
5491 |
|
which can conflict with char gettimeofday(); below. */ |
5492 |
|
#include <assert.h> |
5493 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
5494 |
/* 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 |
5495 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
5496 |
char $ac_func (); |
char gettimeofday(); |
5497 |
|
|
5498 |
|
int main() { |
5499 |
|
|
5500 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
5501 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
5502 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
5503 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
5504 |
choke me |
choke me |
5505 |
#else |
#else |
5506 |
char (*f) () = $ac_func; |
gettimeofday(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
5507 |
#endif |
#endif |
5508 |
|
|
5509 |
int |
; return 0; } |
5510 |
main () |
EOF |
5511 |
{ |
if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5512 |
return f != $ac_func; |
rm -rf conftest* |
5513 |
; |
eval "ac_cv_func_gettimeofday=yes" |
5514 |
return 0; |
else |
5515 |
} |
echo "configure: failed program was:" >&5 |
5516 |
_ACEOF |
cat conftest.$ac_ext >&5 |
5517 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -rf conftest* |
5518 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
eval "ac_cv_func_gettimeofday=no" |
5519 |
(eval $ac_link) 2>conftest.er1 |
fi |
5520 |
ac_status=$? |
rm -f conftest* |
5521 |
grep -v '^ *+' conftest.er1 >conftest.err |
fi |
5522 |
rm -f conftest.er1 |
|
5523 |
cat conftest.err >&5 |
if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
5524 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$ac_t""yes" 1>&6 |
5525 |
(exit $ac_status); } && |
: |
5526 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
else |
5527 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
echo "$ac_t""no" 1>&6 |
5528 |
(eval $ac_try) 2>&5 |
cat >> confdefs.h <<\EOF |
5529 |
ac_status=$? |
#define NO_GETTOD 1 |
5530 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
EOF |
5531 |
(exit $ac_status); }; } && |
|
5532 |
{ ac_try='test -s conftest$ac_exeext' |
fi |
5533 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
5534 |
(eval $ac_try) 2>&5 |
fi |
5535 |
ac_status=$? |
|
5536 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
5537 |
(exit $ac_status); }; }; then |
echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6 |
5538 |
eval "$as_ac_var=yes" |
echo "configure:5539: checking for gettimeofday declaration" >&5 |
5539 |
else |
|
5540 |
echo "$as_me: failed program was:" >&5 |
cat > conftest.$ac_ext <<EOF |
5541 |
sed 's/^/| /' conftest.$ac_ext >&5 |
#line 5542 "configure" |
5542 |
|
#include "confdefs.h" |
5543 |
eval "$as_ac_var=no" |
#include <sys/time.h> |
5544 |
fi |
EOF |
5545 |
rm -f conftest.err conftest.$ac_objext \ |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5546 |
conftest$ac_exeext conftest.$ac_ext |
egrep "gettimeofday" >/dev/null 2>&1; then |
5547 |
fi |
rm -rf conftest* |
5548 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
echo "$ac_t""present" 1>&6 |
5549 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
else |
5550 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
rm -rf conftest* |
5551 |
cat >>confdefs.h <<_ACEOF |
echo "$ac_t""missing" 1>&6 |
5552 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
cat >> confdefs.h <<\EOF |
5553 |
_ACEOF |
#define GETTOD_NOT_DECLARED 1 |
5554 |
|
EOF |
5555 |
echo "$as_me:$LINENO: checking for _doprnt" >&5 |
|
5556 |
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 |
fi |
5557 |
if test "${ac_cv_func__doprnt+set}" = set; then |
rm -f conftest* |
5558 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5559 |
else |
|
5560 |
cat >conftest.$ac_ext <<_ACEOF |
|
5561 |
/* confdefs.h. */ |
echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 |
5562 |
_ACEOF |
echo "configure:5563: checking for sin in -lm" >&5 |
5563 |
cat confdefs.h >>conftest.$ac_ext |
ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` |
5564 |
cat >>conftest.$ac_ext <<_ACEOF |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5565 |
/* end confdefs.h. */ |
echo $ac_n "(cached) $ac_c" 1>&6 |
5566 |
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
else |
5567 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
ac_save_LIBS="$LIBS" |
5568 |
#define _doprnt innocuous__doprnt |
LIBS="-lm $LIBS" |
5569 |
|
cat > conftest.$ac_ext <<EOF |
5570 |
|
#line 5571 "configure" |
5571 |
|
#include "confdefs.h" |
5572 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
5573 |
|
/* We use char because int might match the return type of a gcc2 |
5574 |
|
builtin and then its argument prototype would still apply. */ |
5575 |
|
char sin(); |
5576 |
|
|
5577 |
|
int main() { |
5578 |
|
sin() |
5579 |
|
; return 0; } |
5580 |
|
EOF |
5581 |
|
if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5582 |
|
rm -rf conftest* |
5583 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
5584 |
|
else |
5585 |
|
echo "configure: failed program was:" >&5 |
5586 |
|
cat conftest.$ac_ext >&5 |
5587 |
|
rm -rf conftest* |
5588 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
5589 |
|
fi |
5590 |
|
rm -f conftest* |
5591 |
|
LIBS="$ac_save_LIBS" |
5592 |
|
|
5593 |
|
fi |
5594 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5595 |
|
echo "$ac_t""yes" 1>&6 |
5596 |
|
LIBS="${LIBS} -lm" |
5597 |
|
else |
5598 |
|
echo "$ac_t""no" 1>&6 |
5599 |
|
true |
5600 |
|
fi |
5601 |
|
|
5602 |
|
echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6 |
5603 |
|
echo "configure:5604: checking for main in -lmingwex" >&5 |
5604 |
|
ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'` |
5605 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5606 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5607 |
|
else |
5608 |
|
ac_save_LIBS="$LIBS" |
5609 |
|
LIBS="-lmingwex $LIBS" |
5610 |
|
cat > conftest.$ac_ext <<EOF |
5611 |
|
#line 5612 "configure" |
5612 |
|
#include "confdefs.h" |
5613 |
|
|
5614 |
|
int main() { |
5615 |
|
main() |
5616 |
|
; return 0; } |
5617 |
|
EOF |
5618 |
|
if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5619 |
|
rm -rf conftest* |
5620 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
5621 |
|
else |
5622 |
|
echo "configure: failed program was:" >&5 |
5623 |
|
cat conftest.$ac_ext >&5 |
5624 |
|
rm -rf conftest* |
5625 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
5626 |
|
fi |
5627 |
|
rm -f conftest* |
5628 |
|
LIBS="$ac_save_LIBS" |
5629 |
|
|
5630 |
|
fi |
5631 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5632 |
|
echo "$ac_t""yes" 1>&6 |
5633 |
|
LIBS="${LIBS} -lmingwex" |
5634 |
|
else |
5635 |
|
echo "$ac_t""no" 1>&6 |
5636 |
|
true |
5637 |
|
fi |
5638 |
|
|
5639 |
|
|
5640 |
|
EXTRA_LOBJS= |
5641 |
|
if test "$try_japi" = "yes" ; then |
5642 |
|
for ac_hdr in japi.h |
5643 |
|
do |
5644 |
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5645 |
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5646 |
|
echo "configure:5647: checking for $ac_hdr" >&5 |
5647 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5648 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5649 |
|
else |
5650 |
|
cat > conftest.$ac_ext <<EOF |
5651 |
|
#line 5652 "configure" |
5652 |
|
#include "confdefs.h" |
5653 |
|
#include <$ac_hdr> |
5654 |
|
EOF |
5655 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5656 |
|
{ (eval echo configure:5657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5657 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5658 |
|
if test -z "$ac_err"; then |
5659 |
|
rm -rf conftest* |
5660 |
|
eval "ac_cv_header_$ac_safe=yes" |
5661 |
|
else |
5662 |
|
echo "$ac_err" >&5 |
5663 |
|
echo "configure: failed program was:" >&5 |
5664 |
|
cat conftest.$ac_ext >&5 |
5665 |
|
rm -rf conftest* |
5666 |
|
eval "ac_cv_header_$ac_safe=no" |
5667 |
|
fi |
5668 |
|
rm -f conftest* |
5669 |
|
fi |
5670 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5671 |
|
echo "$ac_t""yes" 1>&6 |
5672 |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5673 |
|
cat >> confdefs.h <<EOF |
5674 |
|
#define $ac_tr_hdr 1 |
5675 |
|
EOF |
5676 |
|
cat >> confdefs.h <<\EOF |
5677 |
|
#define HAVE_JAPI_H 1 |
5678 |
|
EOF |
5679 |
|
|
5680 |
|
EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o" |
5681 |
|
LIBS="${LIBS} -ljapi -lwsock32" |
5682 |
|
else |
5683 |
|
echo "$ac_t""no" 1>&6 |
5684 |
|
fi |
5685 |
|
done |
5686 |
|
|
5687 |
|
fi |
5688 |
|
if test "$use" = "mingw" ; then |
5689 |
|
if test "$try_xdr" = "yes" ; then |
5690 |
|
for ac_hdr in rpc/rpc.h |
5691 |
|
do |
5692 |
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5693 |
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5694 |
|
echo "configure:5695: checking for $ac_hdr" >&5 |
5695 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5696 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5697 |
|
else |
5698 |
|
cat > conftest.$ac_ext <<EOF |
5699 |
|
#line 5700 "configure" |
5700 |
|
#include "confdefs.h" |
5701 |
|
#include <$ac_hdr> |
5702 |
|
EOF |
5703 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5704 |
|
{ (eval echo configure:5705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5705 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5706 |
|
if test -z "$ac_err"; then |
5707 |
|
rm -rf conftest* |
5708 |
|
eval "ac_cv_header_$ac_safe=yes" |
5709 |
|
else |
5710 |
|
echo "$ac_err" >&5 |
5711 |
|
echo "configure: failed program was:" >&5 |
5712 |
|
cat conftest.$ac_ext >&5 |
5713 |
|
rm -rf conftest* |
5714 |
|
eval "ac_cv_header_$ac_safe=no" |
5715 |
|
fi |
5716 |
|
rm -f conftest* |
5717 |
|
fi |
5718 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5719 |
|
echo "$ac_t""yes" 1>&6 |
5720 |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5721 |
|
cat >> confdefs.h <<EOF |
5722 |
|
#define $ac_tr_hdr 1 |
5723 |
|
EOF |
5724 |
|
cat >> confdefs.h <<\EOF |
5725 |
|
#define HAVE_XDR 1 |
5726 |
|
EOF |
5727 |
|
|
5728 |
|
LIBS="${LIBS} -loncrpc" |
5729 |
|
else |
5730 |
|
echo "$ac_t""no" 1>&6 |
5731 |
|
fi |
5732 |
|
done |
5733 |
|
|
5734 |
|
fi |
5735 |
|
else |
5736 |
|
if test "$try_xdr" = "yes" ; then |
5737 |
|
for ac_hdr in rpc/rpc.h |
5738 |
|
do |
5739 |
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5740 |
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5741 |
|
echo "configure:5742: checking for $ac_hdr" >&5 |
5742 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5743 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5744 |
|
else |
5745 |
|
cat > conftest.$ac_ext <<EOF |
5746 |
|
#line 5747 "configure" |
5747 |
|
#include "confdefs.h" |
5748 |
|
#include <$ac_hdr> |
5749 |
|
EOF |
5750 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5751 |
|
{ (eval echo configure:5752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5752 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5753 |
|
if test -z "$ac_err"; then |
5754 |
|
rm -rf conftest* |
5755 |
|
eval "ac_cv_header_$ac_safe=yes" |
5756 |
|
else |
5757 |
|
echo "$ac_err" >&5 |
5758 |
|
echo "configure: failed program was:" >&5 |
5759 |
|
cat conftest.$ac_ext >&5 |
5760 |
|
rm -rf conftest* |
5761 |
|
eval "ac_cv_header_$ac_safe=no" |
5762 |
|
fi |
5763 |
|
rm -f conftest* |
5764 |
|
fi |
5765 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5766 |
|
echo "$ac_t""yes" 1>&6 |
5767 |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5768 |
|
cat >> confdefs.h <<EOF |
5769 |
|
#define $ac_tr_hdr 1 |
5770 |
|
EOF |
5771 |
|
cat >> confdefs.h <<\EOF |
5772 |
|
#define HAVE_XDR 1 |
5773 |
|
EOF |
5774 |
|
|
5775 |
|
LIBS="${LIBS} -lrpc" |
5776 |
|
else |
5777 |
|
echo "$ac_t""no" 1>&6 |
5778 |
|
fi |
5779 |
|
done |
5780 |
|
|
5781 |
|
fi |
5782 |
|
fi |
5783 |
|
|
5784 |
|
# Should really find a way to check for prototypes, but this |
5785 |
|
# basically works for now. CM |
5786 |
|
# |
5787 |
|
for ac_hdr in math.h |
5788 |
|
do |
5789 |
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5790 |
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5791 |
|
echo "configure:5792: checking for $ac_hdr" >&5 |
5792 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5793 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5794 |
|
else |
5795 |
|
cat > conftest.$ac_ext <<EOF |
5796 |
|
#line 5797 "configure" |
5797 |
|
#include "confdefs.h" |
5798 |
|
#include <$ac_hdr> |
5799 |
|
EOF |
5800 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5801 |
|
{ (eval echo configure:5802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5802 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5803 |
|
if test -z "$ac_err"; then |
5804 |
|
rm -rf conftest* |
5805 |
|
eval "ac_cv_header_$ac_safe=yes" |
5806 |
|
else |
5807 |
|
echo "$ac_err" >&5 |
5808 |
|
echo "configure: failed program was:" >&5 |
5809 |
|
cat conftest.$ac_ext >&5 |
5810 |
|
rm -rf conftest* |
5811 |
|
eval "ac_cv_header_$ac_safe=no" |
5812 |
|
fi |
5813 |
|
rm -f conftest* |
5814 |
|
fi |
5815 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5816 |
|
echo "$ac_t""yes" 1>&6 |
5817 |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5818 |
|
cat >> confdefs.h <<EOF |
5819 |
|
#define $ac_tr_hdr 1 |
5820 |
|
EOF |
5821 |
|
cat >> confdefs.h <<\EOF |
5822 |
|
#define HAVE_MATH_H 1 |
5823 |
|
EOF |
5824 |
|
|
5825 |
|
else |
5826 |
|
echo "$ac_t""no" 1>&6 |
5827 |
|
fi |
5828 |
|
done |
5829 |
|
|
5830 |
|
|
5831 |
|
# |
5832 |
|
# For DBL_MAX et. al. on (only) certain Linux arches, apparently CM |
5833 |
|
# |
5834 |
|
for ac_hdr in values.h |
5835 |
|
do |
5836 |
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5837 |
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5838 |
|
echo "configure:5839: checking for $ac_hdr" >&5 |
5839 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5840 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5841 |
|
else |
5842 |
|
cat > conftest.$ac_ext <<EOF |
5843 |
|
#line 5844 "configure" |
5844 |
|
#include "confdefs.h" |
5845 |
|
#include <$ac_hdr> |
5846 |
|
EOF |
5847 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5848 |
|
{ (eval echo configure:5849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5849 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5850 |
|
if test -z "$ac_err"; then |
5851 |
|
rm -rf conftest* |
5852 |
|
eval "ac_cv_header_$ac_safe=yes" |
5853 |
|
else |
5854 |
|
echo "$ac_err" >&5 |
5855 |
|
echo "configure: failed program was:" >&5 |
5856 |
|
cat conftest.$ac_ext >&5 |
5857 |
|
rm -rf conftest* |
5858 |
|
eval "ac_cv_header_$ac_safe=no" |
5859 |
|
fi |
5860 |
|
rm -f conftest* |
5861 |
|
fi |
5862 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5863 |
|
echo "$ac_t""yes" 1>&6 |
5864 |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5865 |
|
cat >> confdefs.h <<EOF |
5866 |
|
#define $ac_tr_hdr 1 |
5867 |
|
EOF |
5868 |
|
cat >> confdefs.h <<\EOF |
5869 |
|
#define HAVE_VALUES_H 1 |
5870 |
|
EOF |
5871 |
|
|
5872 |
|
else |
5873 |
|
echo "$ac_t""no" 1>&6 |
5874 |
|
fi |
5875 |
|
done |
5876 |
|
|
5877 |
|
|
5878 |
|
# |
5879 |
|
# Sparc solaris keeps this in float.h, rework either/or with values.h later |
5880 |
|
# |
5881 |
|
for ac_hdr in float.h |
5882 |
|
do |
5883 |
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5884 |
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5885 |
|
echo "configure:5886: checking for $ac_hdr" >&5 |
5886 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5887 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
5888 |
|
else |
5889 |
|
cat > conftest.$ac_ext <<EOF |
5890 |
|
#line 5891 "configure" |
5891 |
|
#include "confdefs.h" |
5892 |
|
#include <$ac_hdr> |
5893 |
|
EOF |
5894 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5895 |
|
{ (eval echo configure:5896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5896 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5897 |
|
if test -z "$ac_err"; then |
5898 |
|
rm -rf conftest* |
5899 |
|
eval "ac_cv_header_$ac_safe=yes" |
5900 |
|
else |
5901 |
|
echo "$ac_err" >&5 |
5902 |
|
echo "configure: failed program was:" >&5 |
5903 |
|
cat conftest.$ac_ext >&5 |
5904 |
|
rm -rf conftest* |
5905 |
|
eval "ac_cv_header_$ac_safe=no" |
5906 |
|
fi |
5907 |
|
rm -f conftest* |
5908 |
|
fi |
5909 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5910 |
|
echo "$ac_t""yes" 1>&6 |
5911 |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5912 |
|
cat >> confdefs.h <<EOF |
5913 |
|
#define $ac_tr_hdr 1 |
5914 |
|
EOF |
5915 |
|
cat >> confdefs.h <<\EOF |
5916 |
|
#define HAVE_FLOAT_H 1 |
5917 |
|
EOF |
5918 |
|
|
5919 |
|
else |
5920 |
|
echo "$ac_t""no" 1>&6 |
5921 |
|
fi |
5922 |
|
done |
5923 |
|
|
5924 |
|
|
5925 |
|
# |
5926 |
|
# The second alternative is for solaris. This needs to be |
5927 |
|
# a more comprehensive later, i.e. checking that the fpclass |
5928 |
|
# test makes sense. CM |
5929 |
|
# |
5930 |
|
echo $ac_n "checking for isnormal""... $ac_c" 1>&6 |
5931 |
|
echo "configure:5932: checking for isnormal" >&5 |
5932 |
|
if test "$cross_compiling" = yes; then |
5933 |
|
HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6 |
5934 |
|
else |
5935 |
|
cat > conftest.$ac_ext <<EOF |
5936 |
|
#line 5937 "configure" |
5937 |
|
#include "confdefs.h" |
5938 |
|
#define _GNU_SOURCE 1 |
5939 |
|
#include <math.h> |
5940 |
|
int main() { |
5941 |
|
float f; |
5942 |
|
return isnormal(f) || !isnormal(f) ? 0 : 1; |
5943 |
|
} |
5944 |
|
EOF |
5945 |
|
if { (eval echo configure:5946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5946 |
|
then |
5947 |
|
cat >> confdefs.h <<\EOF |
5948 |
|
#define HAVE_ISNORMAL 1 |
5949 |
|
EOF |
5950 |
|
echo "$ac_t""yes" 1>&6 |
5951 |
|
else |
5952 |
|
echo "configure: failed program was:" >&5 |
5953 |
|
cat conftest.$ac_ext >&5 |
5954 |
|
rm -fr conftest* |
5955 |
|
echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6 |
5956 |
|
echo "configure:5957: checking for fpclass in ieeefp.h" >&5 |
5957 |
|
if test "$cross_compiling" = yes; then |
5958 |
|
HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6 |
5959 |
|
else |
5960 |
|
cat > conftest.$ac_ext <<EOF |
5961 |
|
#line 5962 "configure" |
5962 |
|
#include "confdefs.h" |
5963 |
|
#include <ieeefp.h> |
5964 |
|
int main() { |
5965 |
|
float f; |
5966 |
|
return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1; |
5967 |
|
} |
5968 |
|
EOF |
5969 |
|
if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5970 |
|
then |
5971 |
|
cat >> confdefs.h <<\EOF |
5972 |
|
#define HAVE_IEEEFP 1 |
5973 |
|
EOF |
5974 |
|
echo "$ac_t""yes" 1>&6 |
5975 |
|
else |
5976 |
|
echo "configure: failed program was:" >&5 |
5977 |
|
cat conftest.$ac_ext >&5 |
5978 |
|
rm -fr conftest* |
5979 |
|
HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6 |
5980 |
|
fi |
5981 |
|
rm -fr conftest* |
5982 |
|
fi |
5983 |
|
|
5984 |
|
|
5985 |
|
fi |
5986 |
|
rm -fr conftest* |
5987 |
|
fi |
5988 |
|
|
5989 |
|
|
5990 |
|
echo $ac_n "checking for isfinite""... $ac_c" 1>&6 |
5991 |
|
echo "configure:5992: checking for isfinite" >&5 |
5992 |
|
if test "$cross_compiling" = yes; then |
5993 |
|
HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6 |
5994 |
|
else |
5995 |
|
cat > conftest.$ac_ext <<EOF |
5996 |
|
#line 5997 "configure" |
5997 |
|
#include "confdefs.h" |
5998 |
|
#define _GNU_SOURCE 1 |
5999 |
|
#include <math.h> |
6000 |
|
int main() { |
6001 |
|
float f; |
6002 |
|
return isfinite(f) || !isfinite(f) ? 0 : 1; |
6003 |
|
} |
6004 |
|
EOF |
6005 |
|
if { (eval echo configure:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6006 |
|
then |
6007 |
|
cat >> confdefs.h <<\EOF |
6008 |
|
#define HAVE_ISFINITE 1 |
6009 |
|
EOF |
6010 |
|
echo "$ac_t""yes" 1>&6 |
6011 |
|
else |
6012 |
|
echo "configure: failed program was:" >&5 |
6013 |
|
cat conftest.$ac_ext >&5 |
6014 |
|
rm -fr conftest* |
6015 |
|
echo $ac_n "checking for finite()""... $ac_c" 1>&6 |
6016 |
|
echo "configure:6017: checking for finite()" >&5 |
6017 |
|
if test "$cross_compiling" = yes; then |
6018 |
|
HAVE_FINITE=0 echo "$ac_t""no" 1>&6 |
6019 |
|
else |
6020 |
|
cat > conftest.$ac_ext <<EOF |
6021 |
|
#line 6022 "configure" |
6022 |
|
#include "confdefs.h" |
6023 |
|
#include <math.h> |
6024 |
|
#include <ieeefp.h> |
6025 |
|
int main() { |
6026 |
|
float f; |
6027 |
|
return finite(f) || !finite(f) ? 0 : 1; |
6028 |
|
} |
6029 |
|
EOF |
6030 |
|
if { (eval echo configure:6031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6031 |
|
then |
6032 |
|
cat >> confdefs.h <<\EOF |
6033 |
|
#define HAVE_FINITE 1 |
6034 |
|
EOF |
6035 |
|
echo "$ac_t""yes" 1>&6 |
6036 |
|
else |
6037 |
|
echo "configure: failed program was:" >&5 |
6038 |
|
cat conftest.$ac_ext >&5 |
6039 |
|
rm -fr conftest* |
6040 |
|
HAVE_FINITE=0 echo "$ac_t""no" 1>&6 |
6041 |
|
fi |
6042 |
|
rm -fr conftest* |
6043 |
|
fi |
6044 |
|
|
6045 |
|
|
6046 |
|
fi |
6047 |
|
rm -fr conftest* |
6048 |
|
fi |
6049 |
|
|
6050 |
|
|
6051 |
|
|
6052 |
|
|
6053 |
|
#-------------------------------------------------------------------- |
6054 |
|
# Check for the existence of the -lsocket and -lnsl libraries. |
6055 |
|
# The order here is important, so that they end up in the right |
6056 |
|
# order in the command line generated by make. Here are some |
6057 |
|
# special considerations: |
6058 |
|
# 1. Use "connect" and "accept" to check for -lsocket, and |
6059 |
|
# "gethostbyname" to check for -lnsl. |
6060 |
|
# 2. Use each function name only once: can't redo a check because |
6061 |
|
# autoconf caches the results of the last check and won't redo it. |
6062 |
|
# 3. Use -lnsl and -lsocket only if they supply procedures that |
6063 |
|
# aren't already present in the normal libraries. This is because |
6064 |
|
# IRIX 5.2 has libraries, but they aren't needed and they're |
6065 |
|
# bogus: they goof up name resolution if used. |
6066 |
|
# 4. On some SVR4 systems, can't use -lsocket without -lnsl too. |
6067 |
|
# To get around this problem, check for both libraries together |
6068 |
|
# if -lsocket doesn't work by itself. |
6069 |
|
#-------------------------------------------------------------------- |
6070 |
|
echo $ac_n "checking for sockets""... $ac_c" 1>&6 |
6071 |
|
echo "configure:6072: checking for sockets" >&5 |
6072 |
|
tcl_checkBoth=0 |
6073 |
|
echo $ac_n "checking for connect""... $ac_c" 1>&6 |
6074 |
|
echo "configure:6075: checking for connect" >&5 |
6075 |
|
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
6076 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
6077 |
|
else |
6078 |
|
cat > conftest.$ac_ext <<EOF |
6079 |
|
#line 6080 "configure" |
6080 |
|
#include "confdefs.h" |
6081 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
6082 |
which can conflict with char _doprnt (); below. |
which can conflict with char connect(); below. */ |
6083 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
#include <assert.h> |
6084 |
<limits.h> exists even on freestanding compilers. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
6085 |
|
/* We use char because int might match the return type of a gcc2 |
6086 |
|
builtin and then its argument prototype would still apply. */ |
6087 |
|
char connect(); |
6088 |
|
|
6089 |
#ifdef __STDC__ |
int main() { |
6090 |
# include <limits.h> |
|
6091 |
|
/* The GNU C library defines this for functions which it implements |
6092 |
|
to always fail with ENOSYS. Some functions are actually named |
6093 |
|
something starting with __ and the normal name is an alias. */ |
6094 |
|
#if defined (__stub_connect) || defined (__stub___connect) |
6095 |
|
choke me |
6096 |
#else |
#else |
6097 |
# include <assert.h> |
connect(); |
6098 |
#endif |
#endif |
6099 |
|
|
6100 |
#undef _doprnt |
; return 0; } |
6101 |
|
EOF |
6102 |
|
if { (eval echo configure:6103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6103 |
|
rm -rf conftest* |
6104 |
|
eval "ac_cv_func_connect=yes" |
6105 |
|
else |
6106 |
|
echo "configure: failed program was:" >&5 |
6107 |
|
cat conftest.$ac_ext >&5 |
6108 |
|
rm -rf conftest* |
6109 |
|
eval "ac_cv_func_connect=no" |
6110 |
|
fi |
6111 |
|
rm -f conftest* |
6112 |
|
fi |
6113 |
|
|
6114 |
|
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
6115 |
|
echo "$ac_t""yes" 1>&6 |
6116 |
|
tcl_checkSocket=0 |
6117 |
|
else |
6118 |
|
echo "$ac_t""no" 1>&6 |
6119 |
|
tcl_checkSocket=1 |
6120 |
|
fi |
6121 |
|
|
6122 |
|
if test "$tcl_checkSocket" = 1; then |
6123 |
|
echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 |
6124 |
|
echo "configure:6125: checking for main in -lsocket" >&5 |
6125 |
|
ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` |
6126 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6127 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
6128 |
|
else |
6129 |
|
ac_save_LIBS="$LIBS" |
6130 |
|
LIBS="-lsocket $LIBS" |
6131 |
|
cat > conftest.$ac_ext <<EOF |
6132 |
|
#line 6133 "configure" |
6133 |
|
#include "confdefs.h" |
6134 |
|
|
6135 |
|
int main() { |
6136 |
|
main() |
6137 |
|
; return 0; } |
6138 |
|
EOF |
6139 |
|
if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6140 |
|
rm -rf conftest* |
6141 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
6142 |
|
else |
6143 |
|
echo "configure: failed program was:" >&5 |
6144 |
|
cat conftest.$ac_ext >&5 |
6145 |
|
rm -rf conftest* |
6146 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
6147 |
|
fi |
6148 |
|
rm -f conftest* |
6149 |
|
LIBS="$ac_save_LIBS" |
6150 |
|
|
6151 |
|
fi |
6152 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6153 |
|
echo "$ac_t""yes" 1>&6 |
6154 |
|
TLIBS="$TLIBS -lsocket" |
6155 |
|
else |
6156 |
|
echo "$ac_t""no" 1>&6 |
6157 |
|
tcl_checkBoth=1 |
6158 |
|
fi |
6159 |
|
|
6160 |
|
fi |
6161 |
|
|
6162 |
|
|
6163 |
|
if test "$tcl_checkBoth" = 1; then |
6164 |
|
tk_oldLibs=$TLIBS |
6165 |
|
TLIBS="$TLIBS -lsocket -lnsl" |
6166 |
|
echo $ac_n "checking for accept""... $ac_c" 1>&6 |
6167 |
|
echo "configure:6168: checking for accept" >&5 |
6168 |
|
if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then |
6169 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
6170 |
|
else |
6171 |
|
cat > conftest.$ac_ext <<EOF |
6172 |
|
#line 6173 "configure" |
6173 |
|
#include "confdefs.h" |
6174 |
|
/* System header to define __stub macros and hopefully few prototypes, |
6175 |
|
which can conflict with char accept(); below. */ |
6176 |
|
#include <assert.h> |
6177 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
6178 |
/* 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 |
6179 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
6180 |
char _doprnt (); |
char accept(); |
6181 |
|
|
6182 |
|
int main() { |
6183 |
|
|
6184 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
6185 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
6186 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
6187 |
#if defined (__stub__doprnt) || defined (__stub____doprnt) |
#if defined (__stub_accept) || defined (__stub___accept) |
6188 |
choke me |
choke me |
6189 |
#else |
#else |
6190 |
char (*f) () = _doprnt; |
accept(); |
6191 |
#endif |
#endif |
6192 |
#ifdef __cplusplus |
|
6193 |
} |
; return 0; } |
6194 |
|
EOF |
6195 |
|
if { (eval echo configure:6196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6196 |
|
rm -rf conftest* |
6197 |
|
eval "ac_cv_func_accept=yes" |
6198 |
|
else |
6199 |
|
echo "configure: failed program was:" >&5 |
6200 |
|
cat conftest.$ac_ext >&5 |
6201 |
|
rm -rf conftest* |
6202 |
|
eval "ac_cv_func_accept=no" |
6203 |
|
fi |
6204 |
|
rm -f conftest* |
6205 |
|
fi |
6206 |
|
|
6207 |
|
if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then |
6208 |
|
echo "$ac_t""yes" 1>&6 |
6209 |
|
tcl_checkNsl=0 |
6210 |
|
else |
6211 |
|
echo "$ac_t""no" 1>&6 |
6212 |
|
TLIBS=$tk_oldLibs |
6213 |
|
fi |
6214 |
|
|
6215 |
|
fi |
6216 |
|
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
6217 |
|
echo "configure:6218: checking for gethostbyname" >&5 |
6218 |
|
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
6219 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
6220 |
|
else |
6221 |
|
cat > conftest.$ac_ext <<EOF |
6222 |
|
#line 6223 "configure" |
6223 |
|
#include "confdefs.h" |
6224 |
|
/* System header to define __stub macros and hopefully few prototypes, |
6225 |
|
which can conflict with char gethostbyname(); below. */ |
6226 |
|
#include <assert.h> |
6227 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
6228 |
|
/* We use char because int might match the return type of a gcc2 |
6229 |
|
builtin and then its argument prototype would still apply. */ |
6230 |
|
char gethostbyname(); |
6231 |
|
|
6232 |
|
int main() { |
6233 |
|
|
6234 |
|
/* The GNU C library defines this for functions which it implements |
6235 |
|
to always fail with ENOSYS. Some functions are actually named |
6236 |
|
something starting with __ and the normal name is an alias. */ |
6237 |
|
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
6238 |
|
choke me |
6239 |
|
#else |
6240 |
|
gethostbyname(); |
6241 |
#endif |
#endif |
6242 |
|
|
6243 |
int |
; return 0; } |
6244 |
main () |
EOF |
6245 |
{ |
if { (eval echo configure:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6246 |
return f != _doprnt; |
rm -rf conftest* |
6247 |
; |
eval "ac_cv_func_gethostbyname=yes" |
6248 |
return 0; |
else |
6249 |
} |
echo "configure: failed program was:" >&5 |
6250 |
_ACEOF |
cat conftest.$ac_ext >&5 |
6251 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -rf conftest* |
6252 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
eval "ac_cv_func_gethostbyname=no" |
6253 |
(eval $ac_link) 2>conftest.er1 |
fi |
6254 |
ac_status=$? |
rm -f conftest* |
6255 |
grep -v '^ *+' conftest.er1 >conftest.err |
fi |
6256 |
rm -f conftest.er1 |
|
6257 |
cat conftest.err >&5 |
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
6258 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$ac_t""yes" 1>&6 |
6259 |
(exit $ac_status); } && |
: |
6260 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
else |
6261 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
echo "$ac_t""no" 1>&6 |
6262 |
(eval $ac_try) 2>&5 |
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 |
6263 |
ac_status=$? |
echo "configure:6264: checking for main in -lnsl" >&5 |
6264 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` |
6265 |
(exit $ac_status); }; } && |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6266 |
{ ac_try='test -s conftest$ac_exeext' |
echo $ac_n "(cached) $ac_c" 1>&6 |
6267 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
else |
6268 |
(eval $ac_try) 2>&5 |
ac_save_LIBS="$LIBS" |
6269 |
ac_status=$? |
LIBS="-lnsl $LIBS" |
6270 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
cat > conftest.$ac_ext <<EOF |
6271 |
(exit $ac_status); }; }; then |
#line 6272 "configure" |
6272 |
ac_cv_func__doprnt=yes |
#include "confdefs.h" |
6273 |
else |
|
6274 |
echo "$as_me: failed program was:" >&5 |
int main() { |
6275 |
sed 's/^/| /' conftest.$ac_ext >&5 |
main() |
6276 |
|
; return 0; } |
6277 |
ac_cv_func__doprnt=no |
EOF |
6278 |
fi |
if { (eval echo configure:6279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6279 |
rm -f conftest.err conftest.$ac_objext \ |
rm -rf conftest* |
6280 |
conftest$ac_exeext conftest.$ac_ext |
eval "ac_cv_lib_$ac_lib_var=yes" |
6281 |
fi |
else |
6282 |
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
echo "configure: failed program was:" >&5 |
6283 |
echo "${ECHO_T}$ac_cv_func__doprnt" >&6 |
cat conftest.$ac_ext >&5 |
6284 |
if test $ac_cv_func__doprnt = yes; then |
rm -rf conftest* |
6285 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
6286 |
cat >>confdefs.h <<\_ACEOF |
fi |
6287 |
#define HAVE_DOPRNT 1 |
rm -f conftest* |
6288 |
_ACEOF |
LIBS="$ac_save_LIBS" |
6289 |
|
|
6290 |
|
fi |
6291 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6292 |
|
echo "$ac_t""yes" 1>&6 |
6293 |
|
TLIBS="$TLIBS -lnsl" |
6294 |
|
else |
6295 |
|
echo "$ac_t""no" 1>&6 |
6296 |
|
fi |
6297 |
|
|
6298 |
|
fi |
6299 |
|
|
6300 |
|
|
6301 |
|
RL_OJBS="" |
6302 |
|
RL_LIB="" |
6303 |
|
if test "$enable_readline" = "yes" ; then |
6304 |
|
for ac_hdr in readline/readline.h |
6305 |
|
do |
6306 |
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6307 |
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6308 |
|
echo "configure:6309: checking for $ac_hdr" >&5 |
6309 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6310 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
6311 |
|
else |
6312 |
|
cat > conftest.$ac_ext <<EOF |
6313 |
|
#line 6314 "configure" |
6314 |
|
#include "confdefs.h" |
6315 |
|
#include <$ac_hdr> |
6316 |
|
EOF |
6317 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6318 |
|
{ (eval echo configure:6319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6319 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6320 |
|
if test -z "$ac_err"; then |
6321 |
|
rm -rf conftest* |
6322 |
|
eval "ac_cv_header_$ac_safe=yes" |
6323 |
|
else |
6324 |
|
echo "$ac_err" >&5 |
6325 |
|
echo "configure: failed program was:" >&5 |
6326 |
|
cat conftest.$ac_ext >&5 |
6327 |
|
rm -rf conftest* |
6328 |
|
eval "ac_cv_header_$ac_safe=no" |
6329 |
|
fi |
6330 |
|
rm -f conftest* |
6331 |
|
fi |
6332 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6333 |
|
echo "$ac_t""yes" 1>&6 |
6334 |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6335 |
|
cat >> confdefs.h <<EOF |
6336 |
|
#define $ac_tr_hdr 1 |
6337 |
|
EOF |
6338 |
|
echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6 |
6339 |
|
echo "configure:6340: checking for main in -lreadline" >&5 |
6340 |
|
ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'` |
6341 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6342 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
6343 |
|
else |
6344 |
|
ac_save_LIBS="$LIBS" |
6345 |
|
LIBS="-lreadline -lncurses $LIBS" |
6346 |
|
cat > conftest.$ac_ext <<EOF |
6347 |
|
#line 6348 "configure" |
6348 |
|
#include "confdefs.h" |
6349 |
|
|
6350 |
|
int main() { |
6351 |
|
main() |
6352 |
|
; return 0; } |
6353 |
|
EOF |
6354 |
|
if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6355 |
|
rm -rf conftest* |
6356 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
6357 |
|
else |
6358 |
|
echo "configure: failed program was:" >&5 |
6359 |
|
cat conftest.$ac_ext >&5 |
6360 |
|
rm -rf conftest* |
6361 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
6362 |
|
fi |
6363 |
|
rm -f conftest* |
6364 |
|
LIBS="$ac_save_LIBS" |
6365 |
|
|
6366 |
fi |
fi |
6367 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6368 |
|
echo "$ac_t""yes" 1>&6 |
6369 |
|
cat >> confdefs.h <<\EOF |
6370 |
|
#define HAVE_READLINE 1 |
6371 |
|
EOF |
6372 |
|
|
6373 |
|
TLIBS="$TLIBS -lreadline -lncurses" |
6374 |
|
RL_OBJS=gcl_readline.o |
6375 |
|
# Readline support now initialized automatically when compiled in, this lisp |
6376 |
|
# object no longer needed, 20040102 CM |
6377 |
|
# RL_LIB=mod/gcl_readline.o |
6378 |
|
|
6379 |
|
else |
6380 |
|
echo "$ac_t""no" 1>&6 |
6381 |
|
fi |
6382 |
|
|
6383 |
|
else |
6384 |
|
echo "$ac_t""no" 1>&6 |
6385 |
fi |
fi |
6386 |
done |
done |
6387 |
|
|
6388 |
|
|
6389 |
|
# These tests discover differences between readline 4.1 and 4.3 |
6390 |
|
echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6 |
6391 |
|
echo "configure:6392: checking for rl_completion_matches in -lreadline" >&5 |
6392 |
|
ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'` |
6393 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6394 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
6395 |
|
else |
6396 |
|
ac_save_LIBS="$LIBS" |
6397 |
|
LIBS="-lreadline $LIBS" |
6398 |
|
cat > conftest.$ac_ext <<EOF |
6399 |
|
#line 6400 "configure" |
6400 |
|
#include "confdefs.h" |
6401 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
6402 |
|
/* We use char because int might match the return type of a gcc2 |
6403 |
|
builtin and then its argument prototype would still apply. */ |
6404 |
|
char rl_completion_matches(); |
6405 |
|
|
6406 |
|
int main() { |
6407 |
|
rl_completion_matches() |
6408 |
|
; return 0; } |
6409 |
|
EOF |
6410 |
|
if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6411 |
|
rm -rf conftest* |
6412 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
6413 |
|
else |
6414 |
|
echo "configure: failed program was:" >&5 |
6415 |
|
cat conftest.$ac_ext >&5 |
6416 |
|
rm -rf conftest* |
6417 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
6418 |
|
fi |
6419 |
|
rm -f conftest* |
6420 |
|
LIBS="$ac_save_LIBS" |
6421 |
|
|
6422 |
|
fi |
6423 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6424 |
|
echo "$ac_t""yes" 1>&6 |
6425 |
|
cat >> confdefs.h <<\EOF |
6426 |
|
#define HAVE_DECL_RL_COMPLETION_MATCHES 1 |
6427 |
|
EOF |
6428 |
|
|
6429 |
|
cat >> confdefs.h <<\EOF |
6430 |
|
#define HAVE_RL_COMPENTRY_FUNC_T 1 |
6431 |
|
EOF |
6432 |
|
|
6433 |
|
else |
6434 |
|
echo "$ac_t""no" 1>&6 |
6435 |
|
fi |
6436 |
|
|
6437 |
|
fi |
6438 |
|
|
6439 |
|
|
6440 |
|
|
6441 |
|
|
6442 |
|
echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6 |
6443 |
|
echo "configure:6444: checking For network code for nsocket.c" >&5 |
6444 |
|
cat > conftest.$ac_ext <<EOF |
6445 |
|
#line 6446 "configure" |
6446 |
|
#include "confdefs.h" |
6447 |
|
|
6448 |
|
#include <sys/time.h> |
6449 |
|
#include <sys/types.h> |
6450 |
|
#include <unistd.h> |
6451 |
|
|
6452 |
|
#include <errno.h> |
6453 |
|
#include <fcntl.h> |
6454 |
|
#include <stdio.h> |
6455 |
|
|
6456 |
|
/************* for the sockets ******************/ |
6457 |
|
#include <sys/socket.h> /* struct sockaddr, SOCK_STREAM, ... */ |
6458 |
|
#ifndef NO_UNAME |
6459 |
|
# include <sys/utsname.h> /* uname system call. */ |
6460 |
|
#endif |
6461 |
|
#include <netinet/in.h> /* struct in_addr, struct sockaddr_in */ |
6462 |
|
#include <arpa/inet.h> /* inet_ntoa() */ |
6463 |
|
#include <netdb.h> /* gethostbyname() */ |
6464 |
|
|
6465 |
|
int main() { |
6466 |
|
connect(0,(struct sockaddr *)0,0); |
6467 |
|
gethostbyname("jil"); |
6468 |
|
socket(AF_INET, SOCK_STREAM, 0); |
6469 |
|
|
6470 |
|
; return 0; } |
6471 |
|
EOF |
6472 |
|
if { (eval echo configure:6473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6473 |
|
rm -rf conftest* |
6474 |
|
cat >> confdefs.h <<\EOF |
6475 |
|
#define HAVE_NSOCKET 1 |
6476 |
|
EOF |
6477 |
|
|
6478 |
|
echo "$ac_t""yes" 1>&6 |
6479 |
|
else |
6480 |
|
echo "configure: failed program was:" >&5 |
6481 |
|
cat conftest.$ac_ext >&5 |
6482 |
|
rm -rf conftest* |
6483 |
|
echo "$ac_t""no" 1>&6 |
6484 |
|
fi |
6485 |
|
rm -f conftest* |
6486 |
|
|
6487 |
|
|
6488 |
|
echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6 |
6489 |
|
echo "configure:6490: checking check for listen using fcntl" >&5 |
6490 |
|
cat > conftest.$ac_ext <<EOF |
6491 |
|
#line 6492 "configure" |
6492 |
|
#include "confdefs.h" |
6493 |
|
#include <stdio.h> |
6494 |
|
#include <fcntl.h> |
6495 |
|
|
6496 |
|
int main() { |
6497 |
|
FILE *fp=fopen("configure.in","r"); |
6498 |
|
int orig; |
6499 |
|
orig = fcntl(fileno(fp), F_GETFL); |
6500 |
|
if (! (orig & O_NONBLOCK )) return 0; |
6501 |
|
|
6502 |
|
; return 0; } |
6503 |
|
EOF |
6504 |
|
if { (eval echo configure:6505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6505 |
|
rm -rf conftest* |
6506 |
|
cat >> confdefs.h <<\EOF |
6507 |
|
#define LISTEN_USE_FCNTL 1 |
6508 |
|
EOF |
6509 |
|
|
6510 |
|
echo "$ac_t""yes" 1>&6 |
6511 |
|
else |
6512 |
|
echo "configure: failed program was:" >&5 |
6513 |
|
cat conftest.$ac_ext >&5 |
6514 |
|
rm -rf conftest* |
6515 |
|
echo "$ac_t""no" 1>&6 |
6516 |
|
fi |
6517 |
|
rm -f conftest* |
6518 |
|
|
|
for ac_func in getcwd gethostname select socket strcspn strdup strerror strtol |
|
|
do |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
#define $ac_func innocuous_$ac_func |
|
6519 |
|
|
6520 |
|
|
6521 |
|
|
6522 |
|
echo $ac_n "checking for profil""... $ac_c" 1>&6 |
6523 |
|
echo "configure:6524: checking for profil" >&5 |
6524 |
|
if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then |
6525 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
6526 |
|
else |
6527 |
|
cat > conftest.$ac_ext <<EOF |
6528 |
|
#line 6529 "configure" |
6529 |
|
#include "confdefs.h" |
6530 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
6531 |
which can conflict with char $ac_func (); below. |
which can conflict with char profil(); below. */ |
6532 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
#include <assert.h> |
6533 |
<limits.h> exists even on freestanding compilers. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
6534 |
|
/* We use char because int might match the return type of a gcc2 |
6535 |
|
builtin and then its argument prototype would still apply. */ |
6536 |
|
char profil(); |
6537 |
|
|
6538 |
#ifdef __STDC__ |
int main() { |
6539 |
# include <limits.h> |
|
6540 |
|
/* The GNU C library defines this for functions which it implements |
6541 |
|
to always fail with ENOSYS. Some functions are actually named |
6542 |
|
something starting with __ and the normal name is an alias. */ |
6543 |
|
#if defined (__stub_profil) || defined (__stub___profil) |
6544 |
|
choke me |
6545 |
#else |
#else |
6546 |
# include <assert.h> |
profil(); |
6547 |
#endif |
#endif |
6548 |
|
|
6549 |
#undef $ac_func |
; return 0; } |
6550 |
|
EOF |
6551 |
|
if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6552 |
|
rm -rf conftest* |
6553 |
|
eval "ac_cv_func_profil=yes" |
6554 |
|
else |
6555 |
|
echo "configure: failed program was:" >&5 |
6556 |
|
cat conftest.$ac_ext >&5 |
6557 |
|
rm -rf conftest* |
6558 |
|
eval "ac_cv_func_profil=no" |
6559 |
|
fi |
6560 |
|
rm -f conftest* |
6561 |
|
fi |
6562 |
|
|
6563 |
|
if eval "test \"`echo '$ac_cv_func_'profil`\" = yes"; then |
6564 |
|
echo "$ac_t""yes" 1>&6 |
6565 |
|
: |
6566 |
|
else |
6567 |
|
echo "$ac_t""no" 1>&6 |
6568 |
|
cat >> confdefs.h <<\EOF |
6569 |
|
#define NO_PROFILE 1 |
6570 |
|
EOF |
6571 |
|
|
6572 |
|
fi |
6573 |
|
|
6574 |
|
|
6575 |
|
echo $ac_n "checking for setenv""... $ac_c" 1>&6 |
6576 |
|
echo "configure:6577: checking for setenv" >&5 |
6577 |
|
if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then |
6578 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
6579 |
|
else |
6580 |
|
cat > conftest.$ac_ext <<EOF |
6581 |
|
#line 6582 "configure" |
6582 |
|
#include "confdefs.h" |
6583 |
|
/* System header to define __stub macros and hopefully few prototypes, |
6584 |
|
which can conflict with char setenv(); below. */ |
6585 |
|
#include <assert.h> |
6586 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
6587 |
/* 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 |
6588 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
6589 |
char $ac_func (); |
char setenv(); |
6590 |
|
|
6591 |
|
int main() { |
6592 |
|
|
6593 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
6594 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
6595 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
6596 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
#if defined (__stub_setenv) || defined (__stub___setenv) |
6597 |
choke me |
choke me |
6598 |
#else |
#else |
6599 |
char (*f) () = $ac_func; |
setenv(); |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
6600 |
#endif |
#endif |
6601 |
|
|
6602 |
int |
; return 0; } |
6603 |
main () |
EOF |
6604 |
{ |
if { (eval echo configure:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6605 |
return f != $ac_func; |
rm -rf conftest* |
6606 |
; |
eval "ac_cv_func_setenv=yes" |
6607 |
return 0; |
else |
6608 |
} |
echo "configure: failed program was:" >&5 |
6609 |
_ACEOF |
cat conftest.$ac_ext >&5 |
6610 |
rm -f conftest.$ac_objext conftest$ac_exeext |
rm -rf conftest* |
6611 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
eval "ac_cv_func_setenv=no" |
6612 |
(eval $ac_link) 2>conftest.er1 |
fi |
6613 |
ac_status=$? |
rm -f conftest* |
6614 |
grep -v '^ *+' conftest.er1 >conftest.err |
fi |
6615 |
rm -f conftest.er1 |
|
6616 |
cat conftest.err >&5 |
if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then |
6617 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$ac_t""yes" 1>&6 |
6618 |
(exit $ac_status); } && |
cat >> confdefs.h <<\EOF |
6619 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
#define HAVE_SETENV 1 |
6620 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
EOF |
|
(eval $ac_try) 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 |
|
|
eval "$as_ac_var=yes" |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
eval "$as_ac_var=no" |
|
|
fi |
|
|
rm -f conftest.err 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 |
|
6621 |
|
|
6622 |
|
else |
6623 |
|
echo "$ac_t""no" 1>&6 |
6624 |
|
no_setenv=1 |
6625 |
fi |
fi |
|
done |
|
6626 |
|
|
6627 |
|
|
6628 |
rm -rf conftest* confdefs.h |
if test "$no_setenv" = "1" ; then |
6629 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
echo $ac_n "checking for putenv""... $ac_c" 1>&6 |
6630 |
echo > confdefs.h |
echo "configure:6631: checking for putenv" >&5 |
6631 |
|
if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then |
6632 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
6633 |
|
else |
6634 |
|
cat > conftest.$ac_ext <<EOF |
6635 |
|
#line 6636 "configure" |
6636 |
|
#include "confdefs.h" |
6637 |
|
/* System header to define __stub macros and hopefully few prototypes, |
6638 |
|
which can conflict with char putenv(); below. */ |
6639 |
|
#include <assert.h> |
6640 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
6641 |
|
/* We use char because int might match the return type of a gcc2 |
6642 |
|
builtin and then its argument prototype would still apply. */ |
6643 |
|
char putenv(); |
6644 |
|
|
6645 |
target=`uname -s` |
int main() { |
6646 |
case $target-$CC in |
|
6647 |
IRIX64-*) cat >>confdefs.h <<\_ACEOF |
/* The GNU C library defines this for functions which it implements |
6648 |
#define HAVE_PROCESS_SCOPE_BOUND_NP 1 |
to always fail with ENOSYS. Some functions are actually named |
6649 |
_ACEOF |
something starting with __ and the normal name is an alias. */ |
6650 |
;; |
#if defined (__stub_putenv) || defined (__stub___putenv) |
6651 |
AIX-xlc) CFLAGS="$CFLAGS -qcpluscmt" ;; |
choke me |
6652 |
AIX-xlC) CFLAGS="$CFLAGS -qcpluscmt" ;; |
#else |
6653 |
AIX-cc) CFLAGS="$CFLAGS -qcpluscmt" ;; |
putenv(); |
6654 |
esac |
#endif |
6655 |
|
|
6656 |
if test "x$with_gcl" = "xno"; then |
; return 0; } |
6657 |
with_gcl=`which gcl` |
EOF |
6658 |
|
if { (eval echo configure:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6659 |
|
rm -rf conftest* |
6660 |
|
eval "ac_cv_func_putenv=yes" |
6661 |
|
else |
6662 |
|
echo "configure: failed program was:" >&5 |
6663 |
|
cat conftest.$ac_ext >&5 |
6664 |
|
rm -rf conftest* |
6665 |
|
eval "ac_cv_func_putenv=no" |
6666 |
fi |
fi |
6667 |
if test ! -x "$with_gcl"; then |
rm -f conftest* |
|
{ { echo "$as_me:$LINENO: error: Couldn't find gcl command |
|
|
Use ./configure --with-gcl= to specify location of gcl command " >&5 |
|
|
echo "$as_me: error: Couldn't find gcl command |
|
|
Use ./configure --with-gcl= to specify location of gcl command " >&2;} |
|
|
{ (exit 1); exit 1; }; }; |
|
6668 |
fi |
fi |
6669 |
libdir=`$with_gcl -batch -eval '(format t *lib-directory*)'` |
|
6670 |
if test ! -d $libdir/h; then |
if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then |
6671 |
{ { echo "$as_me:$LINENO: error: Didn't find include directory at $libdir/gmp3 |
echo "$ac_t""yes" 1>&6 |
6672 |
Bad parameter given to ./configure --with-gcl= " >&5 |
cat >> confdefs.h <<\EOF |
6673 |
echo "$as_me: error: Didn't find include directory at $libdir/gmp3 |
#define HAVE_PUTENV 1 |
6674 |
Bad parameter given to ./configure --with-gcl= " >&2;} |
EOF |
6675 |
{ (exit 1); exit 1; }; }; |
|
6676 |
|
else |
6677 |
|
echo "$ac_t""no" 1>&6 |
6678 |
fi |
fi |
6679 |
if test ! -d $libdir/gmp3; then |
|
6680 |
{ { echo "$as_me:$LINENO: error: Didn't find libgmp in gmp3 directory at $libdir/gmp3 |
|
|
Bad parameter given to ./configure --with-gcl= " >&5 |
|
|
echo "$as_me: error: Didn't find libgmp in gmp3 directory at $libdir/gmp3 |
|
|
Bad parameter given to ./configure --with-gcl= " >&2;} |
|
|
{ (exit 1); exit 1; }; }; |
|
6681 |
fi |
fi |
6682 |
|
|
6683 |
GCL=$with_gcl |
echo $ac_n "checking for _cleanup""... $ac_c" 1>&6 |
6684 |
GCL_SRC=`$with_gcl -batch -eval '(write *lib-directory* :escape nil)'` |
echo "configure:6685: checking for _cleanup" >&5 |
6685 |
GCL_SRC=`echo $GCL_SRC | sed -e s'#"##g'` |
if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then |
6686 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
6687 |
|
else |
6688 |
|
cat > conftest.$ac_ext <<EOF |
6689 |
|
#line 6690 "configure" |
6690 |
|
#include "confdefs.h" |
6691 |
|
/* System header to define __stub macros and hopefully few prototypes, |
6692 |
|
which can conflict with char _cleanup(); below. */ |
6693 |
|
#include <assert.h> |
6694 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
6695 |
|
/* We use char because int might match the return type of a gcc2 |
6696 |
|
builtin and then its argument prototype would still apply. */ |
6697 |
|
char _cleanup(); |
6698 |
|
|
6699 |
|
int main() { |
6700 |
|
|
6701 |
|
/* The GNU C library defines this for functions which it implements |
6702 |
|
to always fail with ENOSYS. Some functions are actually named |
6703 |
|
something starting with __ and the normal name is an alias. */ |
6704 |
|
#if defined (__stub__cleanup) || defined (__stub____cleanup) |
6705 |
|
choke me |
6706 |
|
#else |
6707 |
|
_cleanup(); |
6708 |
|
#endif |
6709 |
|
|
6710 |
|
; return 0; } |
6711 |
|
EOF |
6712 |
|
if { (eval echo configure:6713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6713 |
|
rm -rf conftest* |
6714 |
|
eval "ac_cv_func__cleanup=yes" |
6715 |
|
else |
6716 |
|
echo "configure: failed program was:" >&5 |
6717 |
|
cat conftest.$ac_ext >&5 |
6718 |
|
rm -rf conftest* |
6719 |
|
eval "ac_cv_func__cleanup=no" |
6720 |
|
fi |
6721 |
|
rm -f conftest* |
6722 |
|
fi |
6723 |
|
|
6724 |
|
if eval "test \"`echo '$ac_cv_func_'_cleanup`\" = yes"; then |
6725 |
|
echo "$ac_t""yes" 1>&6 |
6726 |
|
cat >> confdefs.h <<\EOF |
6727 |
|
#define USE_CLEANUP 1 |
6728 |
|
EOF |
6729 |
|
|
6730 |
|
else |
6731 |
|
echo "$ac_t""no" 1>&6 |
6732 |
|
fi |
6733 |
|
|
6734 |
|
|
6735 |
|
gcl_ok=no |
6736 |
|
|
6737 |
|
cat > conftest.$ac_ext <<EOF |
6738 |
|
#line 6739 "configure" |
6739 |
|
#include "confdefs.h" |
6740 |
|
#include <ctype.h> |
6741 |
|
EOF |
6742 |
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6743 |
|
egrep "LITTLE_ENDIAN" >/dev/null 2>&1; then |
6744 |
|
rm -rf conftest* |
6745 |
|
gcl_ok=yes |
6746 |
|
else |
6747 |
|
rm -rf conftest* |
6748 |
|
gcl_ok=noo |
6749 |
|
fi |
6750 |
|
rm -f conftest* |
6751 |
|
|
6752 |
|
if test $gcl_ok = yes ; then |
6753 |
|
cat >> confdefs.h <<\EOF |
6754 |
|
#define ENDIAN_ALREADY_DEFINED 1 |
6755 |
|
EOF |
6756 |
|
|
6757 |
|
fi |
6758 |
|
|
6759 |
|
|
6760 |
|
|
6761 |
|
|
6762 |
|
|
6763 |
|
|
6764 |
|
# if test "x$enable_machine" = "x" ; then |
6765 |
|
echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6 |
6766 |
|
echo "configure:6767: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5 |
6767 |
|
|
6768 |
|
case $system in |
6769 |
|
OSF*) |
6770 |
|
cat >> confdefs.h <<\EOF |
6771 |
|
#define USE_FIONBIO 1 |
6772 |
|
EOF |
6773 |
|
|
6774 |
ac_config_files="$ac_config_files src/Makefile src/mpinu/Makefile src/mpinu/procgroup bin/Makefile bin/procgroup bin/mpinucc Makefile" |
echo "$ac_t""FIONBIO" 1>&6 |
6775 |
cat >confcache <<\_ACEOF |
;; |
6776 |
# This file is a shell script that caches the results of configure |
SunOS-4*) |
6777 |
# tests run on this system so they can be shared between configure |
cat >> confdefs.h <<\EOF |
6778 |
# scripts and configure runs, see configure's option --config-cache. |
#define USE_FIONBIO 1 |
6779 |
# It is not useful on other systems. If it contains results you don't |
EOF |
|
# want to keep, you may remove or edit it. |
|
|
# |
|
|
# config.status only pays attention to the cache file if you give it |
|
|
# the --recheck option to rerun configure. |
|
|
# |
|
|
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
|
# following values. |
|
6780 |
|
|
6781 |
_ACEOF |
echo "$ac_t""FIONBIO" 1>&6 |
6782 |
|
;; |
6783 |
|
ULTRIX-4.*) |
6784 |
|
cat >> confdefs.h <<\EOF |
6785 |
|
#define USE_FIONBIO 1 |
6786 |
|
EOF |
6787 |
|
|
6788 |
# The following way of writing the cache mishandles newlines in values, |
echo "$ac_t""FIONBIO" 1>&6 |
6789 |
# but we know of no workaround that is simple, portable, and efficient. |
;; |
|
# So, don't put newlines in cache variables' values. |
|
|
# Ultrix sh set writes to stderr and can't be redirected directly, |
|
|
# and sets the high bit in the cache file unless we assign to the vars. |
|
|
{ |
|
|
(set) 2>&1 | |
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
|
|
*ac_space=\ *) |
|
|
# `set' does not quote correctly, so add quotes (double-quote |
|
|
# substitution turns \\\\ into \\, and sed turns \\ into \). |
|
|
sed -n \ |
|
|
"s/'/'\\\\''/g; |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
|
;; |
|
6790 |
*) |
*) |
6791 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
echo "$ac_t""O_NONBLOCK" 1>&6 |
6792 |
sed -n \ |
;; |
6793 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
esac |
|
;; |
|
|
esac; |
|
|
} | |
|
|
sed ' |
|
|
t clear |
|
|
: clear |
|
|
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|
|
t end |
|
|
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
|
: end' >>confcache |
|
|
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
|
|
if test -w $cache_file; then |
|
|
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
|
|
cat confcache >$cache_file |
|
|
else |
|
|
echo "not updating unwritable cache $cache_file" |
|
|
fi |
|
|
fi |
|
|
rm -f confcache |
|
6794 |
|
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
|
# Let make expand exec_prefix. |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
6795 |
|
|
6796 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6 |
6797 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
echo "configure:6798: checking check for SV_ONSTACK" >&5 |
6798 |
# trailing colons and then remove the whole line if VPATH becomes empty |
cat > conftest.$ac_ext <<EOF |
6799 |
# (actually we leave an empty line to preserve line numbers). |
#line 6800 "configure" |
6800 |
if test "x$srcdir" = x.; then |
#include "confdefs.h" |
6801 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
#include <signal.h> |
6802 |
s/:*\$(srcdir):*/:/; |
int joe=SV_ONSTACK; |
|
s/:*\${srcdir}:*/:/; |
|
|
s/:*@srcdir@:*/:/; |
|
|
s/^\([^=]*=[ ]*\):*/\1/; |
|
|
s/:*$//; |
|
|
s/^[^=]*=[ ]*$//; |
|
|
}' |
|
|
fi |
|
|
|
|
|
# Transform confdefs.h into DEFS. |
|
|
# Protect against shell expansion while executing Makefile rules. |
|
|
# Protect against Makefile macro expansion. |
|
|
# |
|
|
# If the first sed substitution is executed (which looks for macros that |
|
|
# take arguments), then we branch to the quote section. Otherwise, |
|
|
# look for a macro that doesn't take arguments. |
|
|
cat >confdef2opt.sed <<\_ACEOF |
|
|
t clear |
|
|
: clear |
|
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
|
|
t quote |
|
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
|
|
t quote |
|
|
d |
|
|
: quote |
|
|
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
|
|
s,\[,\\&,g |
|
|
s,\],\\&,g |
|
|
s,\$,$$,g |
|
|
p |
|
|
_ACEOF |
|
|
# We use echo to avoid assuming a particular line-breaking character. |
|
|
# The extra dot is to prevent the shell from consuming trailing |
|
|
# line-breaks from the sub-command output. A line-break within |
|
|
# single-quotes doesn't work because, if this script is created in a |
|
|
# platform that uses two characters for line-breaks (e.g., DOS), tr |
|
|
# would break. |
|
|
ac_LF_and_DOT=`echo; echo .` |
|
|
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
|
|
rm -f confdef2opt.sed |
|
|
|
|
|
|
|
|
ac_libobjs= |
|
|
ac_ltlibobjs= |
|
|
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
|
# 1. Remove the extension, and $U if already installed. |
|
|
ac_i=`echo "$ac_i" | |
|
|
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
|
|
# 2. Add them. |
|
|
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
|
|
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
|
|
done |
|
|
LIBOBJS=$ac_libobjs |
|
6803 |
|
|
6804 |
LTLIBOBJS=$ac_ltlibobjs |
int main() { |
6805 |
|
|
6806 |
|
; return 0; } |
6807 |
|
EOF |
6808 |
|
if { (eval echo configure:6809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6809 |
|
rm -rf conftest* |
6810 |
|
cat >> confdefs.h <<\EOF |
6811 |
|
#define HAVE_SV_ONSTACK 1 |
6812 |
|
EOF |
6813 |
|
|
6814 |
|
|
6815 |
|
echo "$ac_t""yes" 1>&6 |
6816 |
|
else |
6817 |
|
echo "configure: failed program was:" >&5 |
6818 |
|
cat conftest.$ac_ext >&5 |
6819 |
|
rm -rf conftest* |
6820 |
|
echo "$ac_t""no" 1>&6 |
6821 |
|
fi |
6822 |
|
rm -f conftest* |
6823 |
|
|
6824 |
|
echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6 |
6825 |
|
echo "configure:6826: checking check for SIGSYS" >&5 |
6826 |
|
cat > conftest.$ac_ext <<EOF |
6827 |
|
#line 6828 "configure" |
6828 |
|
#include "confdefs.h" |
6829 |
|
#include <signal.h> |
6830 |
|
int joe=SIGSYS; |
6831 |
|
|
6832 |
: ${CONFIG_STATUS=./config.status} |
int main() { |
|
ac_clean_files_save=$ac_clean_files |
|
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
|
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
|
|
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
|
cat >$CONFIG_STATUS <<_ACEOF |
|
|
#! $SHELL |
|
|
# Generated by $as_me. |
|
|
# Run this file to recreate the current configuration. |
|
|
# Compiler output produced by configure, useful for debugging |
|
|
# configure, is in config.log if it exists. |
|
6833 |
|
|
6834 |
debug=false |
; return 0; } |
6835 |
ac_cs_recheck=false |
EOF |
6836 |
ac_cs_silent=false |
if { (eval echo configure:6837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6837 |
SHELL=\${CONFIG_SHELL-$SHELL} |
rm -rf conftest* |
6838 |
_ACEOF |
cat >> confdefs.h <<\EOF |
6839 |
|
#define HAVE_SIGSYS 1 |
6840 |
cat >>$CONFIG_STATUS <<\_ACEOF |
EOF |
6841 |
## --------------------- ## |
|
6842 |
## M4sh Initialization. ## |
|
6843 |
## --------------------- ## |
echo "$ac_t""yes" 1>&6 |
6844 |
|
else |
6845 |
# Be Bourne compatible |
echo "configure: failed program was:" >&5 |
6846 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
cat conftest.$ac_ext >&5 |
6847 |
emulate sh |
rm -rf conftest* |
6848 |
NULLCMD=: |
echo "$ac_t""no" 1>&6 |
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
|
# is contrary to our usage. Disable this feature. |
|
|
alias -g '${1+"$@"}'='"$@"' |
|
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
|
|
set -o posix |
|
|
fi |
|
|
DUALCASE=1; export DUALCASE # for MKS sh |
|
|
|
|
|
# Support unset when possible. |
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
|
as_unset=unset |
|
|
else |
|
|
as_unset=false |
|
6849 |
fi |
fi |
6850 |
|
rm -f conftest* |
6851 |
|
|
6852 |
|
|
6853 |
# Work around bugs in pre-3.0 UWIN ksh. |
echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6 |
6854 |
$as_unset ENV MAIL MAILPATH |
echo "configure:6855: checking check for SIGEMT" >&5 |
6855 |
PS1='$ ' |
cat > conftest.$ac_ext <<EOF |
6856 |
PS2='> ' |
#line 6857 "configure" |
6857 |
PS4='+ ' |
#include "confdefs.h" |
6858 |
|
#include <signal.h> |
6859 |
|
int joe=SIGEMT; |
6860 |
|
|
6861 |
# NLS nuisances. |
int main() { |
|
for as_var in \ |
|
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
|
LC_TELEPHONE LC_TIME |
|
|
do |
|
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
|
eval $as_var=C; export $as_var |
|
|
else |
|
|
$as_unset $as_var |
|
|
fi |
|
|
done |
|
6862 |
|
|
6863 |
# Required to use basename. |
; return 0; } |
6864 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
EOF |
6865 |
as_expr=expr |
if { (eval echo configure:6866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6866 |
else |
rm -rf conftest* |
6867 |
as_expr=false |
cat >> confdefs.h <<\EOF |
6868 |
fi |
#define HAVE_SIGEMT 1 |
6869 |
|
EOF |
6870 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
|
6871 |
as_basename=basename |
|
6872 |
else |
echo "$ac_t""yes" 1>&6 |
6873 |
as_basename=false |
else |
6874 |
|
echo "configure: failed program was:" >&5 |
6875 |
|
cat conftest.$ac_ext >&5 |
6876 |
|
rm -rf conftest* |
6877 |
|
echo "$ac_t""no" 1>&6 |
6878 |
fi |
fi |
6879 |
|
rm -f conftest* |
6880 |
|
|
6881 |
|
|
|
# Name of the executable. |
|
|
as_me=`$as_basename "$0" || |
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
|
X"$0" : 'X\(//\)$' \| \ |
|
|
X"$0" : 'X\(/\)$' \| \ |
|
|
. : '\(.\)' 2>/dev/null || |
|
|
echo X/"$0" | |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
|
|
/^X\/\(\/\/\)$/{ s//\1/; q; } |
|
|
/^X\/\(\/\).*/{ s//\1/; q; } |
|
|
s/.*/./; q'` |
|
|
|
|
|
|
|
|
# PATH needs CR, and LINENO needs CR and PATH. |
|
|
# Avoid depending upon Character Ranges. |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
as_cr_digits='0123456789' |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
|
|
|
|
# The user is always right. |
|
|
if test "${PATH_SEPARATOR+set}" != set; then |
|
|
echo "#! /bin/sh" >conf$$.sh |
|
|
echo "exit 0" >>conf$$.sh |
|
|
chmod +x conf$$.sh |
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
|
PATH_SEPARATOR=';' |
|
|
else |
|
|
PATH_SEPARATOR=: |
|
|
fi |
|
|
rm -f conf$$.sh |
|
|
fi |
|
6882 |
|
|
6883 |
|
|
6884 |
as_lineno_1=$LINENO |
#if test $use = "386-linux" ; then |
6885 |
as_lineno_2=$LINENO |
for ac_hdr in asm/sigcontext.h |
|
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 |
|
6886 |
do |
do |
6887 |
IFS=$as_save_IFS |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6888 |
test -z "$as_dir" && as_dir=. |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6889 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
echo "configure:6890: checking for $ac_hdr" >&5 |
6890 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6891 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
6892 |
|
else |
6893 |
|
cat > conftest.$ac_ext <<EOF |
6894 |
|
#line 6895 "configure" |
6895 |
|
#include "confdefs.h" |
6896 |
|
#include <$ac_hdr> |
6897 |
|
EOF |
6898 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6899 |
|
{ (eval echo configure:6900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6900 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6901 |
|
if test -z "$ac_err"; then |
6902 |
|
rm -rf conftest* |
6903 |
|
eval "ac_cv_header_$ac_safe=yes" |
6904 |
|
else |
6905 |
|
echo "$ac_err" >&5 |
6906 |
|
echo "configure: failed program was:" >&5 |
6907 |
|
cat conftest.$ac_ext >&5 |
6908 |
|
rm -rf conftest* |
6909 |
|
eval "ac_cv_header_$ac_safe=no" |
6910 |
|
fi |
6911 |
|
rm -f conftest* |
6912 |
|
fi |
6913 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6914 |
|
echo "$ac_t""yes" 1>&6 |
6915 |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6916 |
|
cat >> confdefs.h <<EOF |
6917 |
|
#define $ac_tr_hdr 1 |
6918 |
|
EOF |
6919 |
|
|
6920 |
|
else |
6921 |
|
echo "$ac_t""no" 1>&6 |
6922 |
|
fi |
6923 |
done |
done |
6924 |
|
|
6925 |
;; |
for ac_hdr in asm/signal.h |
|
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 |
|
6926 |
do |
do |
6927 |
IFS=$as_save_IFS |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6928 |
test -z "$as_dir" && as_dir=. |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6929 |
for as_base in sh bash ksh sh5; do |
echo "configure:6930: checking for $ac_hdr" >&5 |
6930 |
case $as_dir in |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6931 |
/*) |
echo $ac_n "(cached) $ac_c" 1>&6 |
6932 |
if ("$as_dir/$as_base" -c ' |
else |
6933 |
as_lineno_1=$LINENO |
cat > conftest.$ac_ext <<EOF |
6934 |
as_lineno_2=$LINENO |
#line 6935 "configure" |
6935 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
#include "confdefs.h" |
6936 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
#include <$ac_hdr> |
6937 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
EOF |
6938 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6939 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
{ (eval echo configure:6940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6940 |
CONFIG_SHELL=$as_dir/$as_base |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6941 |
export CONFIG_SHELL |
if test -z "$ac_err"; then |
6942 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
rm -rf conftest* |
6943 |
fi;; |
eval "ac_cv_header_$ac_safe=yes" |
6944 |
esac |
else |
6945 |
done |
echo "$ac_err" >&5 |
6946 |
|
echo "configure: failed program was:" >&5 |
6947 |
|
cat conftest.$ac_ext >&5 |
6948 |
|
rm -rf conftest* |
6949 |
|
eval "ac_cv_header_$ac_safe=no" |
6950 |
|
fi |
6951 |
|
rm -f conftest* |
6952 |
|
fi |
6953 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6954 |
|
echo "$ac_t""yes" 1>&6 |
6955 |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6956 |
|
cat >> confdefs.h <<EOF |
6957 |
|
#define $ac_tr_hdr 1 |
6958 |
|
EOF |
6959 |
|
|
6960 |
|
else |
6961 |
|
echo "$ac_t""no" 1>&6 |
6962 |
|
fi |
6963 |
done |
done |
|
;; |
|
|
esac |
|
6964 |
|
|
6965 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6 |
6966 |
# uniformly replaced by the line number. The first 'sed' inserts a |
echo "configure:6967: checking for sigcontext..." >&5 |
6967 |
# line-number line before each line; the second 'sed' does the real |
cat > conftest.$ac_ext <<EOF |
6968 |
# work. The second script uses 'N' to pair each line-number line |
#line 6969 "configure" |
6969 |
# with the numbered line, and appends trailing '-' during |
#include "confdefs.h" |
6970 |
# substitution so that $LINENO is not a special case at line end. |
#include <signal.h> |
6971 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
6972 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
int main() { |
6973 |
sed '=' <$as_myself | |
|
6974 |
sed ' |
struct sigcontext foo; |
6975 |
N |
|
6976 |
s,$,-, |
; return 0; } |
6977 |
: loop |
EOF |
6978 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
if { (eval echo configure:6979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6979 |
t loop |
rm -rf conftest* |
6980 |
s,-$,, |
|
6981 |
s,^['$as_cr_digits']*\n,, |
sigcontext_works=1; |
6982 |
' >$as_me.lineno && |
cat >> confdefs.h <<\EOF |
6983 |
chmod +x $as_me.lineno || |
#define SIGNAL_H_HAS_SIGCONTEXT 1 |
6984 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
EOF |
6985 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
|
6986 |
{ (exit 1); exit 1; }; } |
echo "$ac_t""sigcontext in signal.h" 1>&6 |
6987 |
|
|
6988 |
# Don't try to exec as it changes $[0], causing all sort of problems |
else |
6989 |
# (the dirname of $[0] is not the place where we might find the |
echo "configure: failed program was:" >&5 |
6990 |
# original and so on. Autoconf is especially sensible to this). |
cat conftest.$ac_ext >&5 |
6991 |
. ./$as_me.lineno |
rm -rf conftest* |
6992 |
# Exit status is that of the last command. |
sigcontext_works=0; |
6993 |
exit |
echo "$ac_t""sigcontext NOT in signal.h" 1>&6 |
6994 |
} |
|
6995 |
|
fi |
6996 |
|
rm -f conftest* |
6997 |
|
if test "$sigcontext_works" = 0 ; then |
6998 |
|
echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6 |
6999 |
|
echo "configure:7000: checking for sigcontext..." >&5 |
7000 |
|
cat > conftest.$ac_ext <<EOF |
7001 |
|
#line 7002 "configure" |
7002 |
|
#include "confdefs.h" |
7003 |
|
#include <signal.h> |
7004 |
|
#ifdef HAVE_ASM_SIGCONTEXT_H |
7005 |
|
#include <asm/sigcontext.h> |
7006 |
|
#endif |
7007 |
|
#ifdef HAVE_ASM_SIGNAL_H |
7008 |
|
#include <asm/signal.h> |
7009 |
|
#endif |
7010 |
|
|
7011 |
|
int main() { |
7012 |
|
|
7013 |
|
struct sigcontext foo; |
7014 |
|
|
7015 |
|
; return 0; } |
7016 |
|
EOF |
7017 |
|
if { (eval echo configure:7018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7018 |
|
rm -rf conftest* |
7019 |
|
|
7020 |
|
cat >> confdefs.h <<\EOF |
7021 |
|
#define HAVE_SIGCONTEXT 1 |
7022 |
|
EOF |
7023 |
|
|
7024 |
|
echo "$ac_t""sigcontext in asm files" 1>&6 |
7025 |
|
|
7026 |
|
else |
7027 |
|
echo "configure: failed program was:" >&5 |
7028 |
|
cat conftest.$ac_ext >&5 |
7029 |
|
rm -rf conftest* |
7030 |
|
|
7031 |
|
echo "$ac_t""no sigcontext found" 1>&6 |
7032 |
|
|
7033 |
|
fi |
7034 |
|
rm -f conftest* |
7035 |
|
|
7036 |
|
|
7037 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
fi |
7038 |
*c*,-n*) ECHO_N= ECHO_C=' |
# echo 'foo() {}' > conftest1.c |
7039 |
' ECHO_T=' ' ;; |
# $CC -S conftest1.c |
7040 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
# use_underscore=0 |
7041 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
# if fgrep _foo conftest1.s ; then use_underscore=1 ; fi |
7042 |
|
# if test $use_underscore = 0 ; then |
7043 |
|
# MPI_FILE=mpi-386_no_under.o |
7044 |
|
# else |
7045 |
|
# MPI_FILE=mpi-386d.o |
7046 |
|
# fi |
7047 |
|
# AC_SUBST(MPI_FILE) |
7048 |
|
# GCC=$CC |
7049 |
|
# if test -x /usr/bin/i386-glibc20-linux-gcc ; then |
7050 |
|
# GCC=/usr/bin/i386-glibc20-linux-gcc |
7051 |
|
# fi |
7052 |
|
# AC_SUBST(GCC) |
7053 |
|
|
7054 |
|
#fi |
7055 |
|
|
7056 |
|
# Extract the first word of "emacs", so it can be a program name with args. |
7057 |
|
set dummy emacs; ac_word=$2 |
7058 |
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
7059 |
|
echo "configure:7060: checking for $ac_word" >&5 |
7060 |
|
if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then |
7061 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
7062 |
|
else |
7063 |
|
case "$EMACS" in |
7064 |
|
/*) |
7065 |
|
ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path. |
7066 |
|
;; |
7067 |
|
?:/*) |
7068 |
|
ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path. |
7069 |
|
;; |
7070 |
|
*) |
7071 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7072 |
|
ac_dummy="$PATH" |
7073 |
|
for ac_dir in $ac_dummy; do |
7074 |
|
test -z "$ac_dir" && ac_dir=. |
7075 |
|
if test -f $ac_dir/$ac_word; then |
7076 |
|
ac_cv_path_EMACS="$ac_dir/$ac_word" |
7077 |
|
break |
7078 |
|
fi |
7079 |
|
done |
7080 |
|
IFS="$ac_save_ifs" |
7081 |
|
;; |
7082 |
esac |
esac |
7083 |
|
fi |
7084 |
|
EMACS="$ac_cv_path_EMACS" |
7085 |
|
if test -n "$EMACS"; then |
7086 |
|
echo "$ac_t""$EMACS" 1>&6 |
7087 |
|
else |
7088 |
|
echo "$ac_t""no" 1>&6 |
7089 |
|
fi |
7090 |
|
|
7091 |
|
|
7092 |
|
|
7093 |
|
# check for where the emacs site lisp directory is. |
7094 |
|
rm -f conftest.el |
7095 |
|
cat >> conftest.el <<EOF |
7096 |
|
(let ((ans ".") (tem load-path) cur) |
7097 |
|
(while (setq cur (car tem)) |
7098 |
|
(setq tem (cdr tem)) |
7099 |
|
(cond ((and (string-match "site-lisp/?$" cur) (file-directory-p cur)) |
7100 |
|
(setq ans cur) |
7101 |
|
(if (string-match "-0-9.+$" cur) nil |
7102 |
|
(setq tem nil))))) |
7103 |
|
(message ans)) |
7104 |
|
EOF |
7105 |
|
|
7106 |
|
echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6 |
7107 |
|
echo "configure:7108: checking emacs site lisp directory" >&5 |
7108 |
|
if [ "$EMACS_SITE_LISP" = "unknown" ] ; then |
7109 |
|
if [ "$EMACS" != "" ] ; then |
7110 |
|
EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d | sed -e /^Warn/d` |
7111 |
|
else |
7112 |
|
EMACS_SITE_LISP="" |
7113 |
|
fi |
7114 |
|
fi |
7115 |
|
echo "$ac_t""$EMACS_SITE_LISP" 1>&6 |
7116 |
|
|
7117 |
|
|
7118 |
|
# check for where the emacs site lisp default.el is |
7119 |
|
rm -f conftest.el |
7120 |
|
cat >> conftest.el <<EOF |
7121 |
|
(let ((ans "./default.el") file (tem load-path)) |
7122 |
|
(while tem |
7123 |
|
(cond ((file-exists-p |
7124 |
|
(setq file (expand-file-name "/default.el" (car tem)))) |
7125 |
|
(setq tem nil) (setq ans file))) |
7126 |
|
(setq tem (cdr tem))) |
7127 |
|
(message ans)) |
7128 |
|
EOF |
7129 |
|
|
7130 |
|
echo $ac_n "checking emacs default.el""... $ac_c" 1>&6 |
7131 |
|
echo "configure:7132: checking emacs default.el" >&5 |
7132 |
|
if [ "$EMACS" != "" ] ; then |
7133 |
|
EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
7134 |
|
else |
7135 |
|
EMACS_DEFAULT_EL="" |
7136 |
|
fi |
7137 |
|
if test -f "${EMACS_DEFAULT_EL}" ; then true;else |
7138 |
|
if test -d $EMACS_SITE_LISP ; then |
7139 |
|
EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el |
7140 |
|
fi |
7141 |
|
fi |
7142 |
|
echo "$ac_t""$EMACS_DEFAULT_EL" 1>&6 |
7143 |
|
|
7144 |
|
|
7145 |
|
|
7146 |
|
|
7147 |
|
# check for where the emacs site lisp info/dir is |
7148 |
|
rm -f conftest.el |
7149 |
|
cat >> conftest.el <<EOF |
7150 |
|
(let ((ans "") file (tem Info-default-directory-list)) |
7151 |
|
(while tem |
7152 |
|
(cond ((file-exists-p (setq file (expand-file-name "dir" (car tem)))) |
7153 |
|
(setq ans (file-name-as-directory (car tem))) |
7154 |
|
(setq tem nil) )) |
7155 |
|
(setq tem (cdr tem))) |
7156 |
|
(message ans)) |
7157 |
|
EOF |
7158 |
|
|
7159 |
|
echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6 |
7160 |
|
echo "configure:7161: checking emacs info/dir" >&5 |
7161 |
|
if test "$use" = "mingw" ; then |
7162 |
|
INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/ |
7163 |
|
else |
7164 |
|
if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then |
7165 |
|
INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
7166 |
|
fi |
7167 |
|
fi |
7168 |
|
if test -f "${INFO_DIR}dir" ; then true;else |
7169 |
|
if test -f /usr/share/info/dir ; then |
7170 |
|
INFO_DIR=/usr/share/info/ |
7171 |
|
else true; |
7172 |
|
fi |
7173 |
|
fi |
7174 |
|
echo "$ac_t""$INFO_DIR" 1>&6 |
7175 |
|
|
7176 |
|
|
7177 |
|
echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6 |
7178 |
|
echo "configure:7179: checking for tcl/tk" >&5 |
7179 |
|
|
7180 |
|
|
7181 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
if test -d "${TCL_CONFIG_PREFIX}" ; then true ; else |
7182 |
as_expr=expr |
rm -f conftest.tcl |
7183 |
|
cat >> conftest.tcl <<EOF |
7184 |
|
|
7185 |
|
set dir [set tcl_library] |
7186 |
|
if { [file exists [file join [set dir] tclConfig.sh]] } { |
7187 |
|
puts [set dir] |
7188 |
|
exit |
7189 |
|
} |
7190 |
|
set dir [file dirname [set tcl_library]] |
7191 |
|
if { [file exists [file join [set dir] tclConfig.sh]] } { |
7192 |
|
puts [set dir] |
7193 |
|
} |
7194 |
|
|
7195 |
|
EOF |
7196 |
|
#cp conftest.tcl foo.tcl |
7197 |
|
|
7198 |
|
# Extract the first word of "tclsh", so it can be a program name with args. |
7199 |
|
set dummy tclsh; ac_word=$2 |
7200 |
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
7201 |
|
echo "configure:7202: checking for $ac_word" >&5 |
7202 |
|
if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then |
7203 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
7204 |
|
else |
7205 |
|
if test -n "$TCLSH"; then |
7206 |
|
ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test. |
7207 |
|
else |
7208 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7209 |
|
ac_dummy="$PATH" |
7210 |
|
for ac_dir in $ac_dummy; do |
7211 |
|
test -z "$ac_dir" && ac_dir=. |
7212 |
|
if test -f $ac_dir/$ac_word; then |
7213 |
|
ac_cv_prog_TCLSH="tclsh" |
7214 |
|
break |
7215 |
|
fi |
7216 |
|
done |
7217 |
|
IFS="$ac_save_ifs" |
7218 |
|
test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}" |
7219 |
|
fi |
7220 |
|
fi |
7221 |
|
TCLSH="$ac_cv_prog_TCLSH" |
7222 |
|
if test -n "$TCLSH"; then |
7223 |
|
echo "$ac_t""$TCLSH" 1>&6 |
7224 |
|
else |
7225 |
|
echo "$ac_t""no" 1>&6 |
7226 |
|
fi |
7227 |
|
|
7228 |
|
#AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH}) |
7229 |
|
|
7230 |
|
if test "${TCLSH}" = "" ; then true ; else |
7231 |
|
TCL_CONFIG_PREFIX=`${TCLSH} < conftest.tcl` |
7232 |
|
fi |
7233 |
|
fi |
7234 |
|
if test -f ${TCL_CONFIG_PREFIX}/tclConfig.sh ; then . ${TCL_CONFIG_PREFIX}/tclConfig.sh ; fi |
7235 |
|
|
7236 |
|
|
7237 |
|
if test -d "${TK_CONFIG_PREFIX}" ; then true ; else |
7238 |
|
if test -f ${TCL_CONFIG_PREFIX}/tkConfig.sh ; then |
7239 |
|
TK_CONFIG_PREFIX=${TCL_CONFIG_PREFIX} |
7240 |
else |
else |
7241 |
as_expr=false |
#rm -f conftest.tcl |
7242 |
|
#cat >> conftest.tcl <<EOF |
7243 |
|
#[ |
7244 |
|
#set dir [set tk_library] |
7245 |
|
#if { [file exists [file join [set dir] tkConfig.sh]] } { |
7246 |
|
# puts [set dir] |
7247 |
|
# exit |
7248 |
|
# } |
7249 |
|
#set dir [file dirname [set tk_library]] |
7250 |
|
#if { [file exists [file join [set dir] tkConfig.sh]] } { |
7251 |
|
# puts [set dir] |
7252 |
|
# } |
7253 |
|
#exit 0 |
7254 |
|
#] |
7255 |
|
#EOF |
7256 |
|
#cp conftest.tcl foo.tcl |
7257 |
|
#AC_CHECK_PROG(TKSH,wish,wish,${TKSH}) |
7258 |
|
##AC_CHECK_PROG(TKSH,wish8.0,wish8.0,${TKSH}) |
7259 |
|
#if test "${TKSH}" = "" ; then true ; else |
7260 |
|
#TK_CONFIG_PREFIX=`${TKSH} < conftest.tcl` |
7261 |
|
#fi |
7262 |
|
|
7263 |
|
if test "${TCLSH}" = "" ; then true ; else |
7264 |
|
TK_CONFIG_PREFIX=`echo tcl_findLibrary \"tk\" \"${TCL_VERSION}\" \"\" \"tkConfig.sh\" \"TK_LIBRARY\" tk_library | ${TCLSH} 2>&1 | ${AWK} '/"source / {if (i++) next;sub("/[^/]*$","",$2);print $2}'` |
7265 |
|
fi |
7266 |
|
|
7267 |
|
fi |
7268 |
fi |
fi |
7269 |
|
#AC_MSG_CHECKING(TK_CONFIG_PREFIX=${TK_CONFIG_PREFIX}) |
7270 |
|
if test -f ${TK_CONFIG_PREFIX}/tkConfig.sh ; then . ${TK_CONFIG_PREFIX}/tkConfig.sh ; fi |
7271 |
|
|
7272 |
rm -f conf$$ conf$$.exe conf$$.file |
if test -d ${TK_CONFIG_PREFIX}/tk${TK_VERSION} ; then |
7273 |
echo >conf$$.file |
TK_LIBRARY=${TK_CONFIG_PREFIX}/tk${TK_VERSION} |
|
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' |
|
7274 |
else |
else |
7275 |
as_ln_s='ln -s' |
if test -d ${TK_CONFIG_PREFIX}/../tk${TK_VERSION} ; then |
7276 |
|
TK_LIBRARY=${TK_CONFIG_PREFIX}/../tk${TK_VERSION} |
7277 |
|
fi |
7278 |
|
fi |
7279 |
|
if test -d ${TK_CONFIG_PREFIX}/tcl${TCL_VERSION} ; then |
7280 |
|
TCL_LIBRARY=${TK_CONFIG_PREFIX}/tcl${TCL_VERSION} |
7281 |
|
else |
7282 |
|
if test -d ${TK_CONFIG_PREFIX}/../tcl${TCL_VERSION} ; then |
7283 |
|
TCL_LIBRARY=${TK_CONFIG_PREFIX}/../tcl${TCL_VERSION} |
7284 |
|
fi |
7285 |
|
fi |
7286 |
|
if test -f ${TK_CONFIG_PREFIX}/../include/tk.h ; then |
7287 |
|
TK_INCLUDE=-I${TK_CONFIG_PREFIX}/../include |
7288 |
|
else |
7289 |
|
if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then |
7290 |
|
TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
7291 |
|
fi |
7292 |
|
fi |
7293 |
|
if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then |
7294 |
|
TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include |
7295 |
|
else |
7296 |
|
if test -f /usr/include/tcl${TCL_VERSION}/tcl.h ; then |
7297 |
|
TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION} |
7298 |
fi |
fi |
|
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
|
as_ln_s=ln |
|
|
else |
|
|
as_ln_s='cp -p' |
|
7299 |
fi |
fi |
7300 |
rm -f conf$$ conf$$.exe conf$$.file |
TCL_VERSION_DOT_FREE=`echo ${TCL_VERSION} | tr -d .` |
7301 |
|
if test -f ${TK_CONFIG_PREFIX}/../bin/tcl${TCL_VERSION_DOT_FREE}.dll ; then |
7302 |
|
TCL_LIBS="-L${TK_CONFIG_PREFIX}/../bin -ltk${TCL_VERSION_DOT_FREE} -ltcl${TCL_VERSION_DOT_FREE}" |
7303 |
|
TCL_STUB_LIBS="-L${TK_CONFIG_PREFIX}/lib -ltkstub${TCL_VERSION_DOT_FREE} -ltclstub${TCL_VERSION_DOT_FREE}" |
7304 |
|
else |
7305 |
|
echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6 |
7306 |
|
echo "configure:7307: checking for main in -llieee" >&5 |
7307 |
|
ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'` |
7308 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7309 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
7310 |
|
else |
7311 |
|
ac_save_LIBS="$LIBS" |
7312 |
|
LIBS="-llieee $LIBS" |
7313 |
|
cat > conftest.$ac_ext <<EOF |
7314 |
|
#line 7315 "configure" |
7315 |
|
#include "confdefs.h" |
7316 |
|
|
7317 |
|
int main() { |
7318 |
|
main() |
7319 |
|
; return 0; } |
7320 |
|
EOF |
7321 |
|
if { (eval echo configure:7322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7322 |
|
rm -rf conftest* |
7323 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
7324 |
|
else |
7325 |
|
echo "configure: failed program was:" >&5 |
7326 |
|
cat conftest.$ac_ext >&5 |
7327 |
|
rm -rf conftest* |
7328 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
7329 |
|
fi |
7330 |
|
rm -f conftest* |
7331 |
|
LIBS="$ac_save_LIBS" |
7332 |
|
|
7333 |
if mkdir -p . 2>/dev/null; then |
fi |
7334 |
as_mkdir_p=: |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
7335 |
|
echo "$ac_t""yes" 1>&6 |
7336 |
|
have_ieee=1 |
7337 |
else |
else |
7338 |
test -d ./-p && rmdir ./-p |
echo "$ac_t""no" 1>&6 |
7339 |
as_mkdir_p=false |
have_ieee=0 |
7340 |
fi |
fi |
7341 |
|
|
7342 |
as_executable_p="test -f" |
if test "$have_ieee" = "0" ; then |
7343 |
|
TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" ` |
7344 |
|
fi |
7345 |
|
if test "$have_dl" = "0" ; then |
7346 |
|
TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-ldl::g"` |
7347 |
|
fi |
7348 |
|
TCL_STUB_LIBS="" |
7349 |
|
fi |
7350 |
|
|
7351 |
|
|
7352 |
|
|
7353 |
|
|
7354 |
|
|
|
# Sed expression to map a string onto a valid CPP name. |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
7355 |
|
|
|
# Sed expression to map a string onto a valid variable name. |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
7356 |
|
|
7357 |
|
|
|
# IFS |
|
|
# We need space, tab and new line, in precisely that order. |
|
|
as_nl=' |
|
|
' |
|
|
IFS=" $as_nl" |
|
7358 |
|
|
|
# CDPATH. |
|
|
$as_unset CDPATH |
|
7359 |
|
|
|
exec 6>&1 |
|
7360 |
|
|
|
# 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 |
|
7361 |
|
|
|
This file was extended by $as_me, which was |
|
|
generated by GNU Autoconf 2.59. Invocation command line was |
|
7362 |
|
|
|
CONFIG_FILES = $CONFIG_FILES |
|
|
CONFIG_HEADERS = $CONFIG_HEADERS |
|
|
CONFIG_LINKS = $CONFIG_LINKS |
|
|
CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
|
$ $0 $@ |
|
7363 |
|
|
|
_CSEOF |
|
|
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
|
|
echo >&5 |
|
|
_ACEOF |
|
7364 |
|
|
|
# Files that config.status was made for. |
|
|
if test -n "$ac_config_files"; then |
|
|
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
|
|
fi |
|
7365 |
|
|
7366 |
if test -n "$ac_config_headers"; then |
|
7367 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
|
7368 |
|
|
7369 |
|
|
7370 |
|
|
7371 |
|
if test -d "${TK_CONFIG_PREFIX}" ; then |
7372 |
|
echo "$ac_t""using TK_VERSION=${TK_VERSION} in ${TK_CONFIG_PREFIX}" 1>&6 |
7373 |
|
else |
7374 |
|
echo "$ac_t""not found" 1>&6 |
7375 |
fi |
fi |
7376 |
|
|
7377 |
if test -n "$ac_config_links"; then |
NOTIFY=$enable_notify |
7378 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
|
7379 |
|
|
7380 |
|
|
7381 |
|
|
7382 |
|
|
7383 |
|
# for sgbc the mprotect capabilities. |
7384 |
|
|
7385 |
|
# the time handling for unixtime, add timezone |
7386 |
|
|
7387 |
|
if test "$use" != "mingw" ; then |
7388 |
|
echo $ac_n "checking alloca""... $ac_c" 1>&6 |
7389 |
|
echo "configure:7390: checking alloca" >&5 |
7390 |
|
if test "$cross_compiling" = yes; then |
7391 |
|
gcl_ok=no |
7392 |
|
else |
7393 |
|
cat > conftest.$ac_ext <<EOF |
7394 |
|
#line 7395 "configure" |
7395 |
|
#include "confdefs.h" |
7396 |
|
#include <stdio.h> |
7397 |
|
int main() { exit(alloca(500) != NULL ? 0 : 1);} |
7398 |
|
EOF |
7399 |
|
if { (eval echo configure:7400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7400 |
|
then |
7401 |
|
: |
7402 |
|
else |
7403 |
|
echo "configure: failed program was:" >&5 |
7404 |
|
cat conftest.$ac_ext >&5 |
7405 |
|
rm -fr conftest* |
7406 |
|
gcl_ok=yes |
7407 |
|
fi |
7408 |
|
rm -fr conftest* |
7409 |
fi |
fi |
7410 |
|
|
7411 |
if test -n "$ac_config_commands"; then |
if test $gcl_ok = yes ; then |
7412 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
echo "$ac_t""yes" 1>&6 |
7413 |
|
cat >> confdefs.h <<\EOF |
7414 |
|
#define HAVE_ALLOCA 1 |
7415 |
|
EOF |
7416 |
|
|
7417 |
|
else |
7418 |
|
if test "$cross_compiling" = yes; then |
7419 |
|
gcl_ok=no |
7420 |
|
else |
7421 |
|
cat > conftest.$ac_ext <<EOF |
7422 |
|
#line 7423 "configure" |
7423 |
|
#include "confdefs.h" |
7424 |
|
#include <alloca.h> |
7425 |
|
int main() { exit(alloca(500) != NULL ? 0 : 1)} |
7426 |
|
EOF |
7427 |
|
if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7428 |
|
then |
7429 |
|
: |
7430 |
|
else |
7431 |
|
echo "configure: failed program was:" >&5 |
7432 |
|
cat conftest.$ac_ext >&5 |
7433 |
|
rm -fr conftest* |
7434 |
|
gcl_ok=yes |
7435 |
|
fi |
7436 |
|
rm -fr conftest* |
7437 |
|
fi |
7438 |
|
|
7439 |
|
if test $gcl_ok = yes ; then |
7440 |
|
echo "$ac_t""yes" 1>&6 |
7441 |
|
cat >> confdefs.h <<\EOF |
7442 |
|
#define HAVE_ALLOCA 1 |
7443 |
|
EOF |
7444 |
|
|
7445 |
|
cat >> confdefs.h <<\EOF |
7446 |
|
#define NEED_ALLOCA_H 1 |
7447 |
|
EOF |
7448 |
|
|
7449 |
|
fi |
7450 |
|
fi |
7451 |
|
|
7452 |
|
if test $gcl_ok = no ; then echo "$ac_t""no" 1>&6 ; fi |
7453 |
fi |
fi |
7454 |
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
7455 |
|
|
7456 |
ac_cs_usage="\ |
# alloca |
|
\`$as_me' instantiates files from templates according to the |
|
|
current configuration. |
|
7457 |
|
|
7458 |
Usage: $0 [OPTIONS] [FILE]... |
# dlopen etc |
7459 |
|
# idea make it so you do something dlopen(libX.so,RTLD_GLOBAL) |
7460 |
|
# then dlload("foo.o") a lisp file can refer to things in libX.so |
7461 |
|
# |
7462 |
|
|
7463 |
-h, --help print this help, then exit |
# what machine this is, and include then a machine specific hdr. |
7464 |
-V, --version print version number, then exit |
# and machine specific defs. |
|
-q, --quiet do not print progress messages |
|
|
-d, --debug don't remove temporary files |
|
|
--recheck update $as_me by reconfiguring in the same conditions |
|
|
--file=FILE[:TEMPLATE] |
|
|
instantiate the configuration file FILE |
|
7465 |
|
|
7466 |
Configuration files: |
# check bzero, |
|
$config_files |
|
7467 |
|
|
7468 |
Report bugs to <bug-autoconf@gnu.org>." |
# check getcwd, getwd etc.. |
|
_ACEOF |
|
7469 |
|
|
|
cat >>$CONFIG_STATUS <<_ACEOF |
|
|
ac_cs_version="\\ |
|
|
config.status |
|
|
configured by $0, generated by GNU Autoconf 2.59, |
|
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
|
7470 |
|
|
|
Copyright (C) 2003 Free Software Foundation, Inc. |
|
|
This config.status script is free software; the Free Software Foundation |
|
|
gives unlimited permission to copy, distribute and modify it." |
|
|
srcdir=$srcdir |
|
|
_ACEOF |
|
7471 |
|
|
|
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 |
|
|
do |
|
|
case $1 in |
|
|
--*=*) |
|
|
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
|
|
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
|
|
ac_shift=: |
|
|
;; |
|
|
-*) |
|
|
ac_option=$1 |
|
|
ac_optarg=$2 |
|
|
ac_shift=shift |
|
|
;; |
|
|
*) # This is not an option, so the user has probably given explicit |
|
|
# arguments. |
|
|
ac_option=$1 |
|
|
ac_need_defaults=false;; |
|
|
esac |
|
7472 |
|
|
7473 |
case $ac_option in |
# check socket stuff.. |
|
# Handling of the options. |
|
|
_ACEOF |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
|
ac_cs_recheck=: ;; |
|
|
--version | --vers* | -V ) |
|
|
echo "$ac_cs_version"; exit 0 ;; |
|
|
--he | --h) |
|
|
# Conflict between --help and --header |
|
|
{ { 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 ) |
|
|
$ac_shift |
|
|
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
|
|
ac_need_defaults=false;; |
|
|
--header | --heade | --head | --hea ) |
|
|
$ac_shift |
|
|
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
|
|
ac_need_defaults=false;; |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
|
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
|
ac_cs_silent=: ;; |
|
7474 |
|
|
7475 |
# This is an error. |
# getrlimit |
|
-*) { { 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; }; } ;; |
|
7476 |
|
|
7477 |
*) ac_config_targets="$ac_config_targets $1" ;; |
# fionread or block |
7478 |
|
|
7479 |
esac |
# redhat/cygnus released for some reason a buggy version of gcc, |
7480 |
shift |
# which no one else released. Catch that here. |
7481 |
done |
echo $ac_n "checking for buggy gcc version from redhat""... $ac_c" 1>&6 |
7482 |
|
echo "configure:7483: checking for buggy gcc version from redhat" >&5 |
7483 |
|
if 2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null |
7484 |
|
then |
7485 |
|
BROKEN_O4_OPT=1 |
7486 |
|
cat >> confdefs.h <<\EOF |
7487 |
|
#define BROKEN_O4_OPT 1 |
7488 |
|
EOF |
7489 |
|
|
7490 |
ac_configure_extra_args= |
|
7491 |
|
echo ODIR_DEBUG=-O >> makedefsafter |
7492 |
|
echo >> makedefsafter |
7493 |
|
echo "$ac_t""yes .. turning off -O4" 1>&6 |
7494 |
|
else |
7495 |
|
echo "$ac_t""no" 1>&6 |
7496 |
|
fi |
7497 |
|
|
7498 |
if $ac_cs_silent; then |
LIBS="`echo $LDFLAGS | sed 's,gcl.script,../unixport/gcl.script,g'` $TLDFLAGS $LIBS $TLIBS" |
|
exec 6>/dev/null |
|
|
ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
|
fi |
|
7499 |
|
|
7500 |
_ACEOF |
FINAL_CFLAGS="$CFLAGS $TCFLAGS $PROCESSOR_FLAGS" |
|
cat >>$CONFIG_STATUS <<_ACEOF |
|
|
if \$ac_cs_recheck; then |
|
|
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
|
|
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
|
fi |
|
7501 |
|
|
7502 |
_ACEOF |
# Work around bug with gcc on ppc -- CM |
7503 |
|
NIFLAGS="$CFLAGS $TCFLAGS $TONIFLAGS $PROCESSOR_FLAGS -I\$(GCLDIR)/o" |
7504 |
|
|
7505 |
|
CFLAGS="$CFLAGS $TCFLAGS $TO3FLAGS $PROCESSOR_FLAGS -I\$(GCLDIR)/o" |
7506 |
|
|
7507 |
|
O3FLAGS=$TO3FLAGS |
7508 |
|
|
7509 |
|
O2FLAGS=$TO2FLAGS |
7510 |
|
|
7511 |
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
for ac_config_target in $ac_config_targets |
|
|
do |
|
|
case "$ac_config_target" in |
|
|
# Handling of arguments. |
|
|
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
|
|
"src/mpinu/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mpinu/Makefile" ;; |
|
|
"src/mpinu/procgroup" ) CONFIG_FILES="$CONFIG_FILES src/mpinu/procgroup" ;; |
|
|
"bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; |
|
|
"bin/procgroup" ) CONFIG_FILES="$CONFIG_FILES bin/procgroup" ;; |
|
|
"bin/mpinucc" ) CONFIG_FILES="$CONFIG_FILES bin/mpinucc" ;; |
|
|
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
|
*) { { 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; }; };; |
|
|
esac |
|
|
done |
|
7512 |
|
|
7513 |
# If the user did not use the arguments to specify the items to instantiate, |
|
7514 |
# then the envvar interface is used. Set only those that are not. |
|
7515 |
# We use the long form for the default assignment because of an extremely |
|
7516 |
# bizarre bug on SunOS 4.1.3. |
if test "$use" = "mingw" ; then |
7517 |
if $ac_need_defaults; then |
LD_STACK_FLAGS="-Wl,--stack=$enable_cssize" |
7518 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
7519 |
fi |
fi |
7520 |
|
|
7521 |
# Have a temporary directory for convenience. Make it in the build tree |
if test -f h/$use.defs ; then |
7522 |
# simply because there is no reason to put it here, and in addition, |
|
7523 |
# creating and moving files from /tmp can sometimes cause problems. |
|
7524 |
# Create a temporary directory, and hook for its removal unless debugging. |
trap '' 1 2 15 |
7525 |
$debug || |
cat > confcache <<\EOF |
7526 |
{ |
# This file is a shell script that caches the results of configure |
7527 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
# tests run on this system so they can be shared between configure |
7528 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
# scripts and configure runs. It is not useful on other systems. |
7529 |
} |
# If it contains results you don't want to keep, you may remove or edit it. |
7530 |
|
# |
7531 |
|
# By default, configure uses ./config.cache as the cache file, |
7532 |
|
# creating it if it does not exist already. You can give configure |
7533 |
|
# the --cache-file=FILE option to use a different cache file; that is |
7534 |
|
# what configure does when it calls configure scripts in |
7535 |
|
# subdirectories, so they share the cache. |
7536 |
|
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
7537 |
|
# config.status only pays attention to the cache file if you give it the |
7538 |
|
# --recheck option to rerun configure. |
7539 |
|
# |
7540 |
|
EOF |
7541 |
|
# The following way of writing the cache mishandles newlines in values, |
7542 |
|
# but we know of no workaround that is simple, portable, and efficient. |
7543 |
|
# So, don't put newlines in cache variables' values. |
7544 |
|
# Ultrix sh set writes to stderr and can't be redirected directly, |
7545 |
|
# and sets the high bit in the cache file unless we assign to the vars. |
7546 |
|
(set) 2>&1 | |
7547 |
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
7548 |
|
*ac_space=\ *) |
7549 |
|
# `set' does not quote correctly, so add quotes (double-quote substitution |
7550 |
|
# turns \\\\ into \\, and sed turns \\ into \). |
7551 |
|
sed -n \ |
7552 |
|
-e "s/'/'\\\\''/g" \ |
7553 |
|
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
7554 |
|
;; |
7555 |
|
*) |
7556 |
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
7557 |
|
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
7558 |
|
;; |
7559 |
|
esac >> confcache |
7560 |
|
if cmp -s $cache_file confcache; then |
7561 |
|
: |
7562 |
|
else |
7563 |
|
if test -w $cache_file; then |
7564 |
|
echo "updating cache $cache_file" |
7565 |
|
cat confcache > $cache_file |
7566 |
|
else |
7567 |
|
echo "not updating unwritable cache $cache_file" |
7568 |
|
fi |
7569 |
|
fi |
7570 |
|
rm -f confcache |
7571 |
|
|
7572 |
# Create a (secure) tmp directory for tmp files. |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
7573 |
|
|
7574 |
{ |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7575 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
# Let make expand exec_prefix. |
7576 |
test -n "$tmp" && test -d "$tmp" |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
} || |
|
|
{ |
|
|
tmp=./confstat$$-$RANDOM |
|
|
(umask 077 && mkdir $tmp) |
|
|
} || |
|
|
{ |
|
|
echo "$me: cannot create a temporary directory in ." >&2 |
|
|
{ (exit 1); exit 1; } |
|
|
} |
|
7577 |
|
|
7578 |
_ACEOF |
# Any assignment to VPATH causes Sun make to only execute |
7579 |
|
# the first set of double-colon rules, so remove it if not needed. |
7580 |
|
# If there is a colon in the path, we need to keep it. |
7581 |
|
if test "x$srcdir" = x.; then |
7582 |
|
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
7583 |
|
fi |
7584 |
|
|
7585 |
cat >>$CONFIG_STATUS <<_ACEOF |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
7586 |
|
|
7587 |
|
DEFS=-DHAVE_CONFIG_H |
7588 |
|
|
7589 |
|
# Without the "./", some shells look in PATH for config.status. |
7590 |
|
: ${CONFIG_STATUS=./config.status} |
7591 |
|
|
7592 |
|
echo creating $CONFIG_STATUS |
7593 |
|
rm -f $CONFIG_STATUS |
7594 |
|
cat > $CONFIG_STATUS <<EOF |
7595 |
|
#! /bin/sh |
7596 |
|
# Generated automatically by configure. |
7597 |
|
# Run this file to recreate the current configuration. |
7598 |
|
# This directory was configured as follows, |
7599 |
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
7600 |
# |
# |
7601 |
# CONFIG_FILES section. |
# $0 $ac_configure_args |
7602 |
# |
# |
7603 |
|
# Compiler output produced by configure, useful for debugging |
7604 |
|
# configure, is in ./config.log if it exists. |
7605 |
|
|
7606 |
|
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
7607 |
|
for ac_option |
7608 |
|
do |
7609 |
|
case "\$ac_option" in |
7610 |
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7611 |
|
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
7612 |
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
7613 |
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
7614 |
|
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
7615 |
|
exit 0 ;; |
7616 |
|
-help | --help | --hel | --he | --h) |
7617 |
|
echo "\$ac_cs_usage"; exit 0 ;; |
7618 |
|
*) echo "\$ac_cs_usage"; exit 1 ;; |
7619 |
|
esac |
7620 |
|
done |
7621 |
|
|
7622 |
|
ac_given_srcdir=$srcdir |
7623 |
|
|
7624 |
|
trap 'rm -fr `echo "makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp h/gclincl.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
7625 |
|
EOF |
7626 |
|
cat >> $CONFIG_STATUS <<EOF |
7627 |
|
|
7628 |
|
# Protect against being on the right side of a sed subst in config.status. |
7629 |
|
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
7630 |
|
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
7631 |
|
$ac_vpsub |
7632 |
|
$extrasub |
7633 |
|
s%@SHELL@%$SHELL%g |
7634 |
|
s%@CFLAGS@%$CFLAGS%g |
7635 |
|
s%@CPPFLAGS@%$CPPFLAGS%g |
7636 |
|
s%@CXXFLAGS@%$CXXFLAGS%g |
7637 |
|
s%@FFLAGS@%$FFLAGS%g |
7638 |
|
s%@DEFS@%$DEFS%g |
7639 |
|
s%@LDFLAGS@%$LDFLAGS%g |
7640 |
|
s%@LIBS@%$LIBS%g |
7641 |
|
s%@exec_prefix@%$exec_prefix%g |
7642 |
|
s%@prefix@%$prefix%g |
7643 |
|
s%@program_transform_name@%$program_transform_name%g |
7644 |
|
s%@bindir@%$bindir%g |
7645 |
|
s%@sbindir@%$sbindir%g |
7646 |
|
s%@libexecdir@%$libexecdir%g |
7647 |
|
s%@datadir@%$datadir%g |
7648 |
|
s%@sysconfdir@%$sysconfdir%g |
7649 |
|
s%@sharedstatedir@%$sharedstatedir%g |
7650 |
|
s%@localstatedir@%$localstatedir%g |
7651 |
|
s%@libdir@%$libdir%g |
7652 |
|
s%@includedir@%$includedir%g |
7653 |
|
s%@oldincludedir@%$oldincludedir%g |
7654 |
|
s%@infodir@%$infodir%g |
7655 |
|
s%@mandir@%$mandir%g |
7656 |
|
s%@VERSION@%$VERSION%g |
7657 |
|
s%@host@%$host%g |
7658 |
|
s%@host_alias@%$host_alias%g |
7659 |
|
s%@host_cpu@%$host_cpu%g |
7660 |
|
s%@host_vendor@%$host_vendor%g |
7661 |
|
s%@host_os@%$host_os%g |
7662 |
|
s%@PROCESSOR_FLAGS@%$PROCESSOR_FLAGS%g |
7663 |
|
s%@CC@%$CC%g |
7664 |
|
s%@CPP@%$CPP%g |
7665 |
|
s%@AWK@%$AWK%g |
7666 |
|
s%@MAKEINFO@%$MAKEINFO%g |
7667 |
|
s%@GMP@%$GMP%g |
7668 |
|
s%@GMPDIR@%$GMPDIR%g |
7669 |
|
s%@X_CFLAGS@%$X_CFLAGS%g |
7670 |
|
s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
7671 |
|
s%@X_LIBS@%$X_LIBS%g |
7672 |
|
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
7673 |
|
s%@BUILD_BFD@%$BUILD_BFD%g |
7674 |
|
s%@LITTLE_END@%$LITTLE_END%g |
7675 |
|
s%@PAGEWIDTH@%$PAGEWIDTH%g |
7676 |
|
s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g |
7677 |
|
s%@FLISP@%$FLISP%g |
7678 |
|
s%@SYSTEM@%$SYSTEM%g |
7679 |
|
s%@CLSTANDARD@%$CLSTANDARD%g |
7680 |
|
s%@RL_OBJS@%$RL_OBJS%g |
7681 |
|
s%@RL_LIB@%$RL_LIB%g |
7682 |
|
s%@NO_PROFILE@%$NO_PROFILE%g |
7683 |
|
s%@HAVE_SETENV@%$HAVE_SETENV%g |
7684 |
|
s%@HAVE_PUTENV@%$HAVE_PUTENV%g |
7685 |
|
s%@USE_CLEANUP@%$USE_CLEANUP%g |
7686 |
|
s%@ENDIAN_ALREADY_DEFINED@%$ENDIAN_ALREADY_DEFINED%g |
7687 |
|
s%@HAVE_SV_ONSTACK@%$HAVE_SV_ONSTACK%g |
7688 |
|
s%@HAVE_SIGSYS@%$HAVE_SIGSYS%g |
7689 |
|
s%@HAVE_SIGEMT@%$HAVE_SIGEMT%g |
7690 |
|
s%@EMACS@%$EMACS%g |
7691 |
|
s%@EMACS_SITE_LISP@%$EMACS_SITE_LISP%g |
7692 |
|
s%@EMACS_DEFAULT_EL@%$EMACS_DEFAULT_EL%g |
7693 |
|
s%@INFO_DIR@%$INFO_DIR%g |
7694 |
|
s%@TCLSH@%$TCLSH%g |
7695 |
|
s%@TK_CONFIG_PREFIX@%$TK_CONFIG_PREFIX%g |
7696 |
|
s%@TK_LIBRARY@%$TK_LIBRARY%g |
7697 |
|
s%@TCL_LIBRARY@%$TCL_LIBRARY%g |
7698 |
|
s%@TK_XINCLUDES@%$TK_XINCLUDES%g |
7699 |
|
s%@TK_INCLUDE@%$TK_INCLUDE%g |
7700 |
|
s%@TCL_INCLUDE@%$TCL_INCLUDE%g |
7701 |
|
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g |
7702 |
|
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g |
7703 |
|
s%@TK_XLIBSW@%$TK_XLIBSW%g |
7704 |
|
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g |
7705 |
|
s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g |
7706 |
|
s%@TCL_LIBS@%$TCL_LIBS%g |
7707 |
|
s%@TCL_STUB_LIBS@%$TCL_STUB_LIBS%g |
7708 |
|
s%@NOTIFY@%$NOTIFY%g |
7709 |
|
s%@BROKEN_O4_OPT@%$BROKEN_O4_OPT%g |
7710 |
|
s%@FINAL_CFLAGS@%$FINAL_CFLAGS%g |
7711 |
|
s%@NIFLAGS@%$NIFLAGS%g |
7712 |
|
s%@O3FLAGS@%$O3FLAGS%g |
7713 |
|
s%@O2FLAGS@%$O2FLAGS%g |
7714 |
|
s%@EXTRA_LOBJS@%$EXTRA_LOBJS%g |
7715 |
|
s%@LEADING_UNDERSCORE@%$LEADING_UNDERSCORE%g |
7716 |
|
s%@GNU_LD@%$GNU_LD%g |
7717 |
|
s%@LD_STACK_FLAGS@%$LD_STACK_FLAGS%g |
7718 |
|
s%@use@%$use%g |
7719 |
|
|
|
# No need to generate the scripts if there are no CONFIG_FILES. |
|
|
# This happens for instance when ./config.status config.h |
|
|
if test -n "\$CONFIG_FILES"; then |
|
|
# Protect against being on the right side of a sed subst in config.status. |
|
|
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
|
|
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
|
|
s,@SHELL@,$SHELL,;t t |
|
|
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
|
|
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
|
|
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
|
|
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
|
|
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
|
|
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
|
|
s,@exec_prefix@,$exec_prefix,;t t |
|
|
s,@prefix@,$prefix,;t t |
|
|
s,@program_transform_name@,$program_transform_name,;t t |
|
|
s,@bindir@,$bindir,;t t |
|
|
s,@sbindir@,$sbindir,;t t |
|
|
s,@libexecdir@,$libexecdir,;t t |
|
|
s,@datadir@,$datadir,;t t |
|
|
s,@sysconfdir@,$sysconfdir,;t t |
|
|
s,@sharedstatedir@,$sharedstatedir,;t t |
|
|
s,@localstatedir@,$localstatedir,;t t |
|
|
s,@libdir@,$libdir,;t t |
|
|
s,@includedir@,$includedir,;t t |
|
|
s,@oldincludedir@,$oldincludedir,;t t |
|
|
s,@infodir@,$infodir,;t t |
|
|
s,@mandir@,$mandir,;t t |
|
|
s,@build_alias@,$build_alias,;t t |
|
|
s,@host_alias@,$host_alias,;t t |
|
|
s,@target_alias@,$target_alias,;t t |
|
|
s,@DEFS@,$DEFS,;t t |
|
|
s,@ECHO_C@,$ECHO_C,;t t |
|
|
s,@ECHO_N@,$ECHO_N,;t t |
|
|
s,@ECHO_T@,$ECHO_T,;t t |
|
|
s,@LIBS@,$LIBS,;t t |
|
|
s,@CC@,$CC,;t t |
|
|
s,@CFLAGS@,$CFLAGS,;t t |
|
|
s,@LDFLAGS@,$LDFLAGS,;t t |
|
|
s,@CPPFLAGS@,$CPPFLAGS,;t t |
|
|
s,@ac_ct_CC@,$ac_ct_CC,;t t |
|
|
s,@EXEEXT@,$EXEEXT,;t t |
|
|
s,@OBJEXT@,$OBJEXT,;t t |
|
|
s,@LN_S@,$LN_S,;t t |
|
|
s,@SET_MAKE@,$SET_MAKE,;t t |
|
|
s,@RANLIB@,$RANLIB,;t t |
|
|
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
|
s,@CPP@,$CPP,;t t |
|
|
s,@EGREP@,$EGREP,;t t |
|
|
s,@PARGCL_VERSION@,$PARGCL_VERSION,;t t |
|
|
s,@PARGCL_UPDATED@,$PARGCL_UPDATED,;t t |
|
|
s,@GCL@,$GCL,;t t |
|
|
s,@GCL_SRC@,$GCL_SRC,;t t |
|
|
s,@PWD@,$PWD,;t t |
|
|
s,@HOSTNAME@,$HOSTNAME,;t t |
|
|
s,@LIBSFORSOCKETS@,$LIBSFORSOCKETS,;t t |
|
|
s,@LIBSFORPTHREAD@,$LIBSFORPTHREAD,;t t |
|
|
s,@LIBSFORMPI@,$LIBSFORMPI,;t t |
|
|
s,@CFLAGS_FOR_POSIX_1C@,$CFLAGS_FOR_POSIX_1C,;t t |
|
|
s,@HAVE_PTHREAD@,$HAVE_PTHREAD,;t t |
|
|
s,@LIBEFENCE@,$LIBEFENCE,;t t |
|
|
s,@STRIP_LIBS@,$STRIP_LIBS,;t t |
|
|
s,@STRIP@,$STRIP,;t t |
|
|
s,@MPICC@,$MPICC,;t t |
|
|
s,@MPICXX@,$MPICXX,;t t |
|
|
s,@LIBOBJS@,$LIBOBJS,;t t |
|
|
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
|
7720 |
CEOF |
CEOF |
7721 |
|
EOF |
7722 |
|
|
7723 |
_ACEOF |
cat >> $CONFIG_STATUS <<\EOF |
7724 |
|
|
7725 |
cat >>$CONFIG_STATUS <<\_ACEOF |
# Split the substitutions into bite-sized pieces for seds with |
7726 |
# Split the substitutions into bite-sized pieces for seds with |
# small command number limits, like on Digital OSF/1 and HP-UX. |
7727 |
# 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. |
7728 |
ac_max_sed_lines=48 |
ac_file=1 # Number of current file. |
7729 |
ac_sed_frag=1 # Number of current file. |
ac_beg=1 # First line for current file. |
7730 |
ac_beg=1 # First line for current file. |
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
7731 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
ac_more_lines=: |
7732 |
ac_more_lines=: |
ac_sed_cmds="" |
7733 |
ac_sed_cmds= |
while $ac_more_lines; do |
7734 |
while $ac_more_lines; do |
if test $ac_beg -gt 1; then |
7735 |
if test $ac_beg -gt 1; then |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
7736 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
else |
7737 |
else |
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
7738 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
fi |
7739 |
fi |
if test ! -s conftest.s$ac_file; then |
7740 |
if test ! -s $tmp/subs.frag; then |
ac_more_lines=false |
7741 |
ac_more_lines=false |
rm -f conftest.s$ac_file |
7742 |
|
else |
7743 |
|
if test -z "$ac_sed_cmds"; then |
7744 |
|
ac_sed_cmds="sed -f conftest.s$ac_file" |
7745 |
else |
else |
7746 |
# 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` |
|
7747 |
fi |
fi |
7748 |
done |
ac_file=`expr $ac_file + 1` |
7749 |
if test -z "$ac_sed_cmds"; then |
ac_beg=$ac_end |
7750 |
ac_sed_cmds=cat |
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
7751 |
fi |
fi |
7752 |
fi # test -n "$CONFIG_FILES" |
done |
7753 |
|
if test -z "$ac_sed_cmds"; then |
7754 |
|
ac_sed_cmds=cat |
7755 |
|
fi |
7756 |
|
EOF |
7757 |
|
|
7758 |
_ACEOF |
cat >> $CONFIG_STATUS <<EOF |
7759 |
cat >>$CONFIG_STATUS <<\_ACEOF |
|
7760 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
CONFIG_FILES=\${CONFIG_FILES-"makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp"} |
7761 |
|
EOF |
7762 |
|
cat >> $CONFIG_STATUS <<\EOF |
7763 |
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
7764 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
7765 |
case $ac_file in |
case "$ac_file" in |
7766 |
- | *:- | *:-:* ) # input from stdin |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
7767 |
cat >$tmp/stdin |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
7768 |
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 ;; |
|
7769 |
esac |
esac |
7770 |
|
|
7771 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
7772 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
|
7773 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
# Remove last slash and all that follows it. Not all systems have dirname. |
7774 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
7775 |
X"$ac_file" : 'X\(//\)$' \| \ |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
7776 |
X"$ac_file" : 'X\(/\)' \| \ |
# The file is in a subdirectory. |
7777 |
. : '\(.\)' 2>/dev/null || |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
7778 |
echo X"$ac_file" | |
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
7779 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
# A "../" for each directory in $ac_dir_suffix. |
7780 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
|
|
/^X\(\/\).*/{ s//\1/; q; } |
|
|
s/.*/./; q'` |
|
|
{ if $as_mkdir_p; then |
|
|
mkdir -p "$ac_dir" |
|
7781 |
else |
else |
7782 |
as_dir="$ac_dir" |
ac_dir_suffix= ac_dots= |
7783 |
as_dirs= |
fi |
7784 |
while test ! -d "$as_dir"; do |
|
7785 |
as_dirs="$as_dir $as_dirs" |
case "$ac_given_srcdir" in |
7786 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
.) srcdir=. |
7787 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
if test -z "$ac_dots"; then top_srcdir=. |
7788 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
7789 |
X"$as_dir" : 'X\(//\)$' \| \ |
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
|
X"$as_dir" : 'X\(/\)' \| \ |
|
|
. : '\(.\)' 2>/dev/null || |
|
|
echo X"$as_dir" | |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
/^X\(\/\/\)$/{ s//\1/; q; } |
|
|
/^X\(\/\).*/{ s//\1/; q; } |
|
|
s/.*/./; q'` |
|
|
done |
|
|
test ! -n "$as_dirs" || mkdir $as_dirs |
|
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
|
|
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
|
|
{ (exit 1); exit 1; }; }; } |
|
|
|
|
|
ac_builddir=. |
|
|
|
|
|
if test "$ac_dir" != .; then |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
|
# A "../" for each directory in $ac_dir_suffix. |
|
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
|
|
else |
|
|
ac_dir_suffix= ac_top_builddir= |
|
|
fi |
|
|
|
|
|
case $srcdir in |
|
|
.) # No --srcdir option. We are building in place. |
|
|
ac_srcdir=. |
|
|
if test -z "$ac_top_builddir"; then |
|
|
ac_top_srcdir=. |
|
|
else |
|
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
|
fi ;; |
|
|
[\\/]* | ?:[\\/]* ) # Absolute path. |
|
|
ac_srcdir=$srcdir$ac_dir_suffix; |
|
|
ac_top_srcdir=$srcdir ;; |
|
7790 |
*) # Relative path. |
*) # Relative path. |
7791 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
7792 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
7793 |
esac |
esac |
7794 |
|
|
|
# Do not use `cd foo && pwd` to compute absolute paths, because |
|
|
# the directories may not exist. |
|
|
case `pwd` in |
|
|
.) ac_abs_builddir="$ac_dir";; |
|
|
*) |
|
|
case "$ac_dir" in |
|
|
.) ac_abs_builddir=`pwd`;; |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
|
|
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
|
|
esac;; |
|
|
esac |
|
|
case $ac_abs_builddir in |
|
|
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
|
*) |
|
|
case ${ac_top_builddir}. in |
|
|
.) ac_abs_top_builddir=$ac_abs_builddir;; |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
|
|
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
|
|
esac;; |
|
|
esac |
|
|
case $ac_abs_builddir in |
|
|
.) ac_abs_srcdir=$ac_srcdir;; |
|
|
*) |
|
|
case $ac_srcdir in |
|
|
.) ac_abs_srcdir=$ac_abs_builddir;; |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
|
|
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
|
|
esac;; |
|
|
esac |
|
|
case $ac_abs_builddir in |
|
|
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
|
*) |
|
|
case $ac_top_srcdir in |
|
|
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
|
|
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
|
|
esac;; |
|
|
esac |
|
7795 |
|
|
7796 |
|
echo creating "$ac_file" |
7797 |
|
rm -f "$ac_file" |
7798 |
|
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
7799 |
|
case "$ac_file" in |
7800 |
|
*Makefile*) ac_comsub="1i\\ |
7801 |
|
# $configure_input" ;; |
7802 |
|
*) ac_comsub= ;; |
7803 |
|
esac |
7804 |
|
|
7805 |
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
7806 |
|
sed -e "$ac_comsub |
7807 |
|
s%@configure_input@%$configure_input%g |
7808 |
|
s%@srcdir@%$srcdir%g |
7809 |
|
s%@top_srcdir@%$top_srcdir%g |
7810 |
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
7811 |
|
fi; done |
7812 |
|
rm -f conftest.s* |
7813 |
|
|
7814 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
7815 |
# use $as_me), people would be surprised to read: |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
7816 |
# /* config.h. Generated by config.status. */ |
# |
7817 |
if test x"$ac_file" = x-; then |
# ac_d sets the value in "#define NAME VALUE" lines. |
7818 |
configure_input= |
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7819 |
else |
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
7820 |
configure_input="$ac_file. " |
ac_dC='\3' |
7821 |
fi |
ac_dD='%g' |
7822 |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
7823 |
sed 's,.*/,,'` by configure." |
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
7824 |
|
ac_uB='\([ ]\)%\1#\2define\3' |
7825 |
|
ac_uC=' ' |
7826 |
|
ac_uD='\4%g' |
7827 |
|
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
7828 |
|
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
7829 |
|
ac_eB='$%\1#\2define\3' |
7830 |
|
ac_eC=' ' |
7831 |
|
ac_eD='%g' |
7832 |
|
|
7833 |
|
if test "${CONFIG_HEADERS+set}" != set; then |
7834 |
|
EOF |
7835 |
|
cat >> $CONFIG_STATUS <<EOF |
7836 |
|
CONFIG_HEADERS="h/gclincl.h" |
7837 |
|
EOF |
7838 |
|
cat >> $CONFIG_STATUS <<\EOF |
7839 |
|
fi |
7840 |
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
7841 |
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
7842 |
|
case "$ac_file" in |
7843 |
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
7844 |
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
7845 |
|
*) ac_file_in="${ac_file}.in" ;; |
7846 |
|
esac |
7847 |
|
|
7848 |
# First look for the input files in the build tree, otherwise in the |
echo creating $ac_file |
7849 |
# src tree. |
|
7850 |
ac_file_inputs=`IFS=: |
rm -f conftest.frag conftest.in conftest.out |
7851 |
for f in $ac_file_in; do |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
7852 |
case $f in |
cat $ac_file_inputs > conftest.in |
7853 |
-) echo $tmp/stdin ;; |
|
7854 |
[\\/$]*) |
EOF |
7855 |
# Absolute (can't be DOS-style, as IFS=:) |
|
7856 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
# Transform confdefs.h into a sed script conftest.vals that substitutes |
7857 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
# the proper values into config.h.in to produce config.h. And first: |
7858 |
{ (exit 1); exit 1; }; } |
# Protect against being on the right side of a sed subst in config.status. |
7859 |
echo "$f";; |
# Protect against being in an unquoted here document in config.status. |
7860 |
*) # Relative |
rm -f conftest.vals |
7861 |
if test -f "$f"; then |
cat > conftest.hdr <<\EOF |
7862 |
# Build tree |
s/[\\&%]/\\&/g |
7863 |
echo "$f" |
s%[\\$`]%\\&%g |
7864 |
elif test -f "$srcdir/$f"; then |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
7865 |
# Source tree |
s%ac_d%ac_u%gp |
7866 |
echo "$srcdir/$f" |
s%ac_u%ac_e%gp |
7867 |
else |
EOF |
7868 |
# /dev/null tree |
sed -n -f conftest.hdr confdefs.h > conftest.vals |
7869 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
rm -f conftest.hdr |
7870 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
7871 |
{ (exit 1); exit 1; }; } |
# This sed command replaces #undef with comments. This is necessary, for |
7872 |
fi;; |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
7873 |
esac |
# on some systems where configure will not decide to define it. |
7874 |
done` || { (exit 1); exit 1; } |
cat >> conftest.vals <<\EOF |
7875 |
|
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
7876 |
if test x"$ac_file" != x-; then |
EOF |
7877 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
7878 |
echo "$as_me: creating $ac_file" >&6;} |
# Break up conftest.vals because some shells have a limit on |
7879 |
rm -f "$ac_file" |
# the size of here documents, and old seds have small limits too. |
7880 |
fi |
|
7881 |
_ACEOF |
rm -f conftest.tail |
7882 |
cat >>$CONFIG_STATUS <<_ACEOF |
while : |
7883 |
sed "$ac_vpsub |
do |
7884 |
$extrasub |
ac_lines=`grep -c . conftest.vals` |
7885 |
_ACEOF |
# grep -c gives empty output for an empty file on some AIX systems. |
7886 |
cat >>$CONFIG_STATUS <<\_ACEOF |
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
7887 |
:t |
# Write a limited-size here document to conftest.frag. |
7888 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
7889 |
s,@configure_input@,$configure_input,;t t |
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
7890 |
s,@srcdir@,$ac_srcdir,;t t |
echo 'CEOF |
7891 |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
sed -f conftest.frag conftest.in > conftest.out |
7892 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
rm -f conftest.in |
7893 |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
mv conftest.out conftest.in |
7894 |
s,@builddir@,$ac_builddir,;t t |
' >> $CONFIG_STATUS |
7895 |
s,@abs_builddir@,$ac_abs_builddir,;t t |
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
7896 |
s,@top_builddir@,$ac_top_builddir,;t t |
rm -f conftest.vals |
7897 |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
mv conftest.tail conftest.vals |
7898 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
done |
7899 |
rm -f $tmp/stdin |
rm -f conftest.vals |
7900 |
if test x"$ac_file" != x-; then |
|
7901 |
mv $tmp/out $ac_file |
cat >> $CONFIG_STATUS <<\EOF |
7902 |
|
rm -f conftest.frag conftest.h |
7903 |
|
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
7904 |
|
cat conftest.in >> conftest.h |
7905 |
|
rm -f conftest.in |
7906 |
|
if cmp -s $ac_file conftest.h 2>/dev/null; then |
7907 |
|
echo "$ac_file is unchanged" |
7908 |
|
rm -f conftest.h |
7909 |
else |
else |
7910 |
cat $tmp/out |
# Remove last slash and all that follows it. Not all systems have dirname. |
7911 |
rm -f $tmp/out |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
7912 |
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
7913 |
|
# The file is in a subdirectory. |
7914 |
|
test ! -d "$ac_dir" && mkdir "$ac_dir" |
7915 |
|
fi |
7916 |
|
rm -f $ac_file |
7917 |
|
mv conftest.h $ac_file |
7918 |
fi |
fi |
7919 |
|
fi; done |
7920 |
|
|
7921 |
done |
EOF |
7922 |
_ACEOF |
cat >> $CONFIG_STATUS <<EOF |
7923 |
|
|
7924 |
cat >>$CONFIG_STATUS <<\_ACEOF |
EOF |
7925 |
|
cat >> $CONFIG_STATUS <<\EOF |
7926 |
|
|
7927 |
{ (exit 0); exit 0; } |
exit 0 |
7928 |
_ACEOF |
EOF |
7929 |
chmod +x $CONFIG_STATUS |
chmod +x $CONFIG_STATUS |
7930 |
ac_clean_files=$ac_clean_files_save |
rm -fr confdefs* $ac_clean_files |
7931 |
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
7932 |
|
|
7933 |
|
echo makedefc |
7934 |
|
cat makedefc |
7935 |
|
|
7936 |
|
echo add-defs1 $use |
7937 |
|
CC=$CC ./add-defs1 $use |
7938 |
|
|
|
# configure is writing to config.log, and then calls config.status. |
|
|
# config.status does its own redirection, appending to config.log. |
|
|
# Unfortunately, on DOS this fails, as config.log is still kept open |
|
|
# by configure, so config.status won't be able to write to it; its |
|
|
# output is simply discarded. So we exec the FD to /dev/null, |
|
|
# effectively closing config.log, so it can be properly (re)opened and |
|
|
# appended to by config.status. When coming back to configure, we |
|
|
# need to make the FD available again. |
|
|
if test "$no_create" != yes; then |
|
|
ac_cs_success=: |
|
|
ac_config_status_args= |
|
|
test "$silent" = yes && |
|
|
ac_config_status_args="$ac_config_status_args --quiet" |
|
|
exec 5>/dev/null |
|
|
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
|
exec 5>>config.log |
|
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
|
# would make configure fail if this is the last instruction. |
|
|
$ac_cs_success || { (exit 1); exit 1; } |
|
|
fi |
|
|
|
|
|
chmod a+x bin/mpinucc |
|
|
|
|
|
if test "x$enable_batch" != xyes; then |
|
|
echo "" |
|
|
echo "Now please type \`${TB}make${TN}' to compile. Good luck." |
|
|
echo "" |
|
7939 |
else |
else |
7940 |
make |
echo "Unable to guess machine type" |
7941 |
|
echo use configure --enable-machine=XXX, for XXX such that h/XXX.defs exists, ie in h/*.defs |
7942 |
fi |
fi |