1 |
224 |
markom |
#! /bin/sh
|
2 |
|
|
|
3 |
|
|
# From configure.in for or1ksim-1.2, version 2.14, from autoconf version 2.13
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
# Do all the work for Automake. This macro actually does too much --
|
9 |
|
|
# some checks are only needed if your package does certain things.
|
10 |
|
|
# But this isn't really a big deal.
|
11 |
|
|
|
12 |
|
|
# serial 1
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
#
|
18 |
|
|
# Check to make sure that the build environment is sane.
|
19 |
|
|
#
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
889 |
ivang |
# isc-posix.m4 serial 1 (gettext-0.10.40)
|
26 |
|
|
|
27 |
|
|
# This test replaces the one in autoconf.
|
28 |
|
|
# Currently this macro should have the same name as the autoconf macro
|
29 |
|
|
# because gettext's gettext.m4 (distributed in the automake package)
|
30 |
|
|
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
|
31 |
|
|
# give these diagnostics:
|
32 |
|
|
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
|
33 |
|
|
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
224 |
markom |
# Define a conditional.
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
# Guess values for system-dependent variables and create Makefiles.
|
44 |
|
|
# Generated automatically using autoconf version 2.13
|
45 |
|
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
46 |
|
|
#
|
47 |
|
|
# This configure script is free software; the Free Software Foundation
|
48 |
|
|
# gives unlimited permission to copy, distribute and modify it.
|
49 |
|
|
|
50 |
|
|
# Defaults:
|
51 |
|
|
ac_help=
|
52 |
|
|
ac_default_prefix=/usr/local
|
53 |
|
|
# Any additions from configure.in:
|
54 |
493 |
markom |
ac_help="$ac_help
|
55 |
|
|
--enable-opt enable optimizations
|
56 |
|
|
--enable-opt=level same as gcc -O switch "
|
57 |
224 |
markom |
|
58 |
|
|
# Initialize some variables set by options.
|
59 |
|
|
# The variables have the same names as the options, with
|
60 |
|
|
# dashes changed to underlines.
|
61 |
|
|
build=NONE
|
62 |
|
|
cache_file=./config.cache
|
63 |
|
|
exec_prefix=NONE
|
64 |
|
|
host=NONE
|
65 |
|
|
no_create=
|
66 |
|
|
nonopt=NONE
|
67 |
|
|
no_recursion=
|
68 |
|
|
prefix=NONE
|
69 |
|
|
program_prefix=NONE
|
70 |
|
|
program_suffix=NONE
|
71 |
|
|
program_transform_name=s,x,x,
|
72 |
|
|
silent=
|
73 |
|
|
site=
|
74 |
|
|
srcdir=
|
75 |
|
|
target=NONE
|
76 |
|
|
verbose=
|
77 |
|
|
x_includes=NONE
|
78 |
|
|
x_libraries=NONE
|
79 |
|
|
bindir='${exec_prefix}/bin'
|
80 |
|
|
sbindir='${exec_prefix}/sbin'
|
81 |
|
|
libexecdir='${exec_prefix}/libexec'
|
82 |
|
|
datadir='${prefix}/share'
|
83 |
|
|
sysconfdir='${prefix}/etc'
|
84 |
|
|
sharedstatedir='${prefix}/com'
|
85 |
|
|
localstatedir='${prefix}/var'
|
86 |
|
|
libdir='${exec_prefix}/lib'
|
87 |
|
|
includedir='${prefix}/include'
|
88 |
|
|
oldincludedir='/usr/include'
|
89 |
|
|
infodir='${prefix}/info'
|
90 |
|
|
mandir='${prefix}/man'
|
91 |
|
|
|
92 |
|
|
# Initialize some other variables.
|
93 |
|
|
subdirs=
|
94 |
|
|
MFLAGS= MAKEFLAGS=
|
95 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
96 |
|
|
# Maximum number of lines to put in a shell here document.
|
97 |
|
|
ac_max_here_lines=12
|
98 |
|
|
|
99 |
|
|
ac_prev=
|
100 |
|
|
for ac_option
|
101 |
|
|
do
|
102 |
|
|
|
103 |
|
|
# If the previous option needs an argument, assign it.
|
104 |
|
|
if test -n "$ac_prev"; then
|
105 |
|
|
eval "$ac_prev=\$ac_option"
|
106 |
|
|
ac_prev=
|
107 |
|
|
continue
|
108 |
|
|
fi
|
109 |
|
|
|
110 |
|
|
case "$ac_option" in
|
111 |
|
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
112 |
|
|
*) ac_optarg= ;;
|
113 |
|
|
esac
|
114 |
|
|
|
115 |
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
116 |
|
|
|
117 |
|
|
case "$ac_option" in
|
118 |
|
|
|
119 |
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
120 |
|
|
ac_prev=bindir ;;
|
121 |
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
122 |
|
|
bindir="$ac_optarg" ;;
|
123 |
|
|
|
124 |
|
|
-build | --build | --buil | --bui | --bu)
|
125 |
|
|
ac_prev=build ;;
|
126 |
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
127 |
|
|
build="$ac_optarg" ;;
|
128 |
|
|
|
129 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
130 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
131 |
|
|
ac_prev=cache_file ;;
|
132 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
133 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
134 |
|
|
cache_file="$ac_optarg" ;;
|
135 |
|
|
|
136 |
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
137 |
|
|
ac_prev=datadir ;;
|
138 |
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
139 |
|
|
| --da=*)
|
140 |
|
|
datadir="$ac_optarg" ;;
|
141 |
|
|
|
142 |
|
|
-disable-* | --disable-*)
|
143 |
|
|
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
144 |
|
|
# Reject names that are not valid shell variable names.
|
145 |
|
|
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
146 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
147 |
|
|
fi
|
148 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
149 |
|
|
eval "enable_${ac_feature}=no" ;;
|
150 |
|
|
|
151 |
|
|
-enable-* | --enable-*)
|
152 |
|
|
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
153 |
|
|
# Reject names that are not valid shell variable names.
|
154 |
|
|
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
155 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
156 |
|
|
fi
|
157 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
158 |
|
|
case "$ac_option" in
|
159 |
|
|
*=*) ;;
|
160 |
|
|
*) ac_optarg=yes ;;
|
161 |
|
|
esac
|
162 |
|
|
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
163 |
|
|
|
164 |
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
165 |
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
166 |
|
|
| --exec | --exe | --ex)
|
167 |
|
|
ac_prev=exec_prefix ;;
|
168 |
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
169 |
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
170 |
|
|
| --exec=* | --exe=* | --ex=*)
|
171 |
|
|
exec_prefix="$ac_optarg" ;;
|
172 |
|
|
|
173 |
|
|
-gas | --gas | --ga | --g)
|
174 |
|
|
# Obsolete; use --with-gas.
|
175 |
|
|
with_gas=yes ;;
|
176 |
|
|
|
177 |
|
|
-help | --help | --hel | --he)
|
178 |
|
|
# Omit some internal or obsolete options to make the list less imposing.
|
179 |
|
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
180 |
|
|
cat << EOF
|
181 |
|
|
Usage: configure [options] [host]
|
182 |
|
|
Options: [defaults in brackets after descriptions]
|
183 |
|
|
Configuration:
|
184 |
|
|
--cache-file=FILE cache test results in FILE
|
185 |
|
|
--help print this message
|
186 |
|
|
--no-create do not create output files
|
187 |
|
|
--quiet, --silent do not print \`checking...' messages
|
188 |
|
|
--version print the version of autoconf that created configure
|
189 |
|
|
Directory and file names:
|
190 |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
191 |
|
|
[$ac_default_prefix]
|
192 |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
193 |
|
|
[same as prefix]
|
194 |
|
|
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
195 |
|
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
196 |
|
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
197 |
|
|
--datadir=DIR read-only architecture-independent data in DIR
|
198 |
|
|
[PREFIX/share]
|
199 |
|
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
200 |
|
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR
|
201 |
|
|
[PREFIX/com]
|
202 |
|
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
203 |
|
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
204 |
|
|
--includedir=DIR C header files in DIR [PREFIX/include]
|
205 |
|
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
206 |
|
|
--infodir=DIR info documentation in DIR [PREFIX/info]
|
207 |
|
|
--mandir=DIR man documentation in DIR [PREFIX/man]
|
208 |
|
|
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
209 |
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names
|
210 |
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names
|
211 |
|
|
--program-transform-name=PROGRAM
|
212 |
|
|
run sed PROGRAM on installed program names
|
213 |
|
|
EOF
|
214 |
|
|
cat << EOF
|
215 |
|
|
Host type:
|
216 |
|
|
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
217 |
|
|
--host=HOST configure for HOST [guessed]
|
218 |
|
|
--target=TARGET configure for TARGET [TARGET=HOST]
|
219 |
|
|
Features and packages:
|
220 |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
221 |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
222 |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
223 |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
224 |
|
|
--x-includes=DIR X include files are in DIR
|
225 |
|
|
--x-libraries=DIR X library files are in DIR
|
226 |
|
|
EOF
|
227 |
|
|
if test -n "$ac_help"; then
|
228 |
|
|
echo "--enable and --with options recognized:$ac_help"
|
229 |
|
|
fi
|
230 |
|
|
exit 0 ;;
|
231 |
|
|
|
232 |
|
|
-host | --host | --hos | --ho)
|
233 |
|
|
ac_prev=host ;;
|
234 |
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
235 |
|
|
host="$ac_optarg" ;;
|
236 |
|
|
|
237 |
|
|
-includedir | --includedir | --includedi | --included | --include \
|
238 |
|
|
| --includ | --inclu | --incl | --inc)
|
239 |
|
|
ac_prev=includedir ;;
|
240 |
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
241 |
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
242 |
|
|
includedir="$ac_optarg" ;;
|
243 |
|
|
|
244 |
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
245 |
|
|
ac_prev=infodir ;;
|
246 |
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
247 |
|
|
infodir="$ac_optarg" ;;
|
248 |
|
|
|
249 |
|
|
-libdir | --libdir | --libdi | --libd)
|
250 |
|
|
ac_prev=libdir ;;
|
251 |
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
252 |
|
|
libdir="$ac_optarg" ;;
|
253 |
|
|
|
254 |
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
255 |
|
|
| --libexe | --libex | --libe)
|
256 |
|
|
ac_prev=libexecdir ;;
|
257 |
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
258 |
|
|
| --libexe=* | --libex=* | --libe=*)
|
259 |
|
|
libexecdir="$ac_optarg" ;;
|
260 |
|
|
|
261 |
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
262 |
|
|
| --localstate | --localstat | --localsta | --localst \
|
263 |
|
|
| --locals | --local | --loca | --loc | --lo)
|
264 |
|
|
ac_prev=localstatedir ;;
|
265 |
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
266 |
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
267 |
|
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
268 |
|
|
localstatedir="$ac_optarg" ;;
|
269 |
|
|
|
270 |
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
271 |
|
|
ac_prev=mandir ;;
|
272 |
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
273 |
|
|
mandir="$ac_optarg" ;;
|
274 |
|
|
|
275 |
|
|
-nfp | --nfp | --nf)
|
276 |
|
|
# Obsolete; use --without-fp.
|
277 |
|
|
with_fp=no ;;
|
278 |
|
|
|
279 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
280 |
|
|
| --no-cr | --no-c)
|
281 |
|
|
no_create=yes ;;
|
282 |
|
|
|
283 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
284 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
285 |
|
|
no_recursion=yes ;;
|
286 |
|
|
|
287 |
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
288 |
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
289 |
|
|
| --oldin | --oldi | --old | --ol | --o)
|
290 |
|
|
ac_prev=oldincludedir ;;
|
291 |
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
292 |
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
293 |
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
294 |
|
|
oldincludedir="$ac_optarg" ;;
|
295 |
|
|
|
296 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
297 |
|
|
ac_prev=prefix ;;
|
298 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
299 |
|
|
prefix="$ac_optarg" ;;
|
300 |
|
|
|
301 |
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
302 |
|
|
| --program-pre | --program-pr | --program-p)
|
303 |
|
|
ac_prev=program_prefix ;;
|
304 |
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
305 |
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
306 |
|
|
program_prefix="$ac_optarg" ;;
|
307 |
|
|
|
308 |
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
309 |
|
|
| --program-suf | --program-su | --program-s)
|
310 |
|
|
ac_prev=program_suffix ;;
|
311 |
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
312 |
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
313 |
|
|
program_suffix="$ac_optarg" ;;
|
314 |
|
|
|
315 |
|
|
-program-transform-name | --program-transform-name \
|
316 |
|
|
| --program-transform-nam | --program-transform-na \
|
317 |
|
|
| --program-transform-n | --program-transform- \
|
318 |
|
|
| --program-transform | --program-transfor \
|
319 |
|
|
| --program-transfo | --program-transf \
|
320 |
|
|
| --program-trans | --program-tran \
|
321 |
|
|
| --progr-tra | --program-tr | --program-t)
|
322 |
|
|
ac_prev=program_transform_name ;;
|
323 |
|
|
-program-transform-name=* | --program-transform-name=* \
|
324 |
|
|
| --program-transform-nam=* | --program-transform-na=* \
|
325 |
|
|
| --program-transform-n=* | --program-transform-=* \
|
326 |
|
|
| --program-transform=* | --program-transfor=* \
|
327 |
|
|
| --program-transfo=* | --program-transf=* \
|
328 |
|
|
| --program-trans=* | --program-tran=* \
|
329 |
|
|
| --progr-tra=* | --program-tr=* | --program-t=*)
|
330 |
|
|
program_transform_name="$ac_optarg" ;;
|
331 |
|
|
|
332 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
333 |
|
|
| -silent | --silent | --silen | --sile | --sil)
|
334 |
|
|
silent=yes ;;
|
335 |
|
|
|
336 |
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
337 |
|
|
ac_prev=sbindir ;;
|
338 |
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
339 |
|
|
| --sbi=* | --sb=*)
|
340 |
|
|
sbindir="$ac_optarg" ;;
|
341 |
|
|
|
342 |
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
343 |
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
344 |
|
|
| --sharedst | --shareds | --shared | --share | --shar \
|
345 |
|
|
| --sha | --sh)
|
346 |
|
|
ac_prev=sharedstatedir ;;
|
347 |
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
348 |
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
349 |
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
350 |
|
|
| --sha=* | --sh=*)
|
351 |
|
|
sharedstatedir="$ac_optarg" ;;
|
352 |
|
|
|
353 |
|
|
-site | --site | --sit)
|
354 |
|
|
ac_prev=site ;;
|
355 |
|
|
-site=* | --site=* | --sit=*)
|
356 |
|
|
site="$ac_optarg" ;;
|
357 |
|
|
|
358 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
359 |
|
|
ac_prev=srcdir ;;
|
360 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
361 |
|
|
srcdir="$ac_optarg" ;;
|
362 |
|
|
|
363 |
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
364 |
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
365 |
|
|
ac_prev=sysconfdir ;;
|
366 |
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
367 |
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
368 |
|
|
sysconfdir="$ac_optarg" ;;
|
369 |
|
|
|
370 |
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
371 |
|
|
ac_prev=target ;;
|
372 |
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
373 |
|
|
target="$ac_optarg" ;;
|
374 |
|
|
|
375 |
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
376 |
|
|
verbose=yes ;;
|
377 |
|
|
|
378 |
|
|
-version | --version | --versio | --versi | --vers)
|
379 |
|
|
echo "configure generated by autoconf version 2.13"
|
380 |
|
|
exit 0 ;;
|
381 |
|
|
|
382 |
|
|
-with-* | --with-*)
|
383 |
|
|
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
384 |
|
|
# Reject names that are not valid shell variable names.
|
385 |
|
|
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
386 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
387 |
|
|
fi
|
388 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
389 |
|
|
case "$ac_option" in
|
390 |
|
|
*=*) ;;
|
391 |
|
|
*) ac_optarg=yes ;;
|
392 |
|
|
esac
|
393 |
|
|
eval "with_${ac_package}='$ac_optarg'" ;;
|
394 |
|
|
|
395 |
|
|
-without-* | --without-*)
|
396 |
|
|
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
397 |
|
|
# Reject names that are not valid shell variable names.
|
398 |
|
|
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
399 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
400 |
|
|
fi
|
401 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
402 |
|
|
eval "with_${ac_package}=no" ;;
|
403 |
|
|
|
404 |
|
|
--x)
|
405 |
|
|
# Obsolete; use --with-x.
|
406 |
|
|
with_x=yes ;;
|
407 |
|
|
|
408 |
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
409 |
|
|
| --x-incl | --x-inc | --x-in | --x-i)
|
410 |
|
|
ac_prev=x_includes ;;
|
411 |
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
412 |
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
413 |
|
|
x_includes="$ac_optarg" ;;
|
414 |
|
|
|
415 |
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
416 |
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
417 |
|
|
ac_prev=x_libraries ;;
|
418 |
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
419 |
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
420 |
|
|
x_libraries="$ac_optarg" ;;
|
421 |
|
|
|
422 |
|
|
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
423 |
|
|
;;
|
424 |
|
|
|
425 |
|
|
*)
|
426 |
|
|
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
427 |
|
|
echo "configure: warning: $ac_option: invalid host type" 1>&2
|
428 |
|
|
fi
|
429 |
|
|
if test "x$nonopt" != xNONE; then
|
430 |
|
|
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
431 |
|
|
fi
|
432 |
|
|
nonopt="$ac_option"
|
433 |
|
|
;;
|
434 |
|
|
|
435 |
|
|
esac
|
436 |
|
|
done
|
437 |
|
|
|
438 |
|
|
if test -n "$ac_prev"; then
|
439 |
|
|
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
440 |
|
|
fi
|
441 |
|
|
|
442 |
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
443 |
|
|
|
444 |
|
|
# File descriptor usage:
|
445 |
|
|
# 0 standard input
|
446 |
|
|
# 1 file creation
|
447 |
|
|
# 2 errors and warnings
|
448 |
|
|
# 3 some systems may open it to /dev/tty
|
449 |
|
|
# 4 used on the Kubota Titan
|
450 |
|
|
# 6 checking for... messages and results
|
451 |
|
|
# 5 compiler messages saved in config.log
|
452 |
|
|
if test "$silent" = yes; then
|
453 |
|
|
exec 6>/dev/null
|
454 |
|
|
else
|
455 |
|
|
exec 6>&1
|
456 |
|
|
fi
|
457 |
|
|
exec 5>./config.log
|
458 |
|
|
|
459 |
|
|
echo "\
|
460 |
|
|
This file contains any messages produced by compilers while
|
461 |
|
|
running configure, to aid debugging if configure makes a mistake.
|
462 |
|
|
" 1>&5
|
463 |
|
|
|
464 |
|
|
# Strip out --no-create and --no-recursion so they do not pile up.
|
465 |
|
|
# Also quote any args containing shell metacharacters.
|
466 |
|
|
ac_configure_args=
|
467 |
|
|
for ac_arg
|
468 |
|
|
do
|
469 |
|
|
case "$ac_arg" in
|
470 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
471 |
|
|
| --no-cr | --no-c) ;;
|
472 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
473 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
474 |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
475 |
|
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
476 |
|
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
477 |
|
|
esac
|
478 |
|
|
done
|
479 |
|
|
|
480 |
|
|
# NLS nuisances.
|
481 |
|
|
# Only set these to C if already set. These must not be set unconditionally
|
482 |
|
|
# because not all systems understand e.g. LANG=C (notably SCO).
|
483 |
|
|
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
484 |
|
|
# Non-C LC_CTYPE values break the ctype check.
|
485 |
|
|
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
486 |
|
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
487 |
|
|
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
488 |
|
|
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
489 |
|
|
|
490 |
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
491 |
|
|
rm -rf conftest* confdefs.h
|
492 |
|
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
493 |
|
|
echo > confdefs.h
|
494 |
|
|
|
495 |
|
|
# A filename unique to this package, relative to the directory that
|
496 |
|
|
# configure is in, which we can look for to find out if srcdir is correct.
|
497 |
|
|
ac_unique_file=support/support.h
|
498 |
|
|
|
499 |
|
|
# Find the source files, if location was not specified.
|
500 |
|
|
if test -z "$srcdir"; then
|
501 |
|
|
ac_srcdir_defaulted=yes
|
502 |
|
|
# Try the directory containing this script, then its parent.
|
503 |
|
|
ac_prog=$0
|
504 |
|
|
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
505 |
|
|
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
506 |
|
|
srcdir=$ac_confdir
|
507 |
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
508 |
|
|
srcdir=..
|
509 |
|
|
fi
|
510 |
|
|
else
|
511 |
|
|
ac_srcdir_defaulted=no
|
512 |
|
|
fi
|
513 |
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
514 |
|
|
if test "$ac_srcdir_defaulted" = yes; then
|
515 |
|
|
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
516 |
|
|
else
|
517 |
|
|
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
518 |
|
|
fi
|
519 |
|
|
fi
|
520 |
|
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
521 |
|
|
|
522 |
|
|
# Prefer explicitly selected file to automatically selected ones.
|
523 |
|
|
if test -z "$CONFIG_SITE"; then
|
524 |
|
|
if test "x$prefix" != xNONE; then
|
525 |
|
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
526 |
|
|
else
|
527 |
|
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
528 |
|
|
fi
|
529 |
|
|
fi
|
530 |
|
|
for ac_site_file in $CONFIG_SITE; do
|
531 |
|
|
if test -r "$ac_site_file"; then
|
532 |
|
|
echo "loading site script $ac_site_file"
|
533 |
|
|
. "$ac_site_file"
|
534 |
|
|
fi
|
535 |
|
|
done
|
536 |
|
|
|
537 |
258 |
erez |
if test -r "$cache_file"; then
|
538 |
|
|
echo "loading cache $cache_file"
|
539 |
|
|
. $cache_file
|
540 |
|
|
else
|
541 |
|
|
echo "creating cache $cache_file"
|
542 |
|
|
> $cache_file
|
543 |
|
|
fi
|
544 |
224 |
markom |
|
545 |
|
|
ac_ext=c
|
546 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
547 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
548 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
549 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
550 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
551 |
|
|
|
552 |
|
|
ac_exeext=
|
553 |
|
|
ac_objext=o
|
554 |
|
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
555 |
|
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
556 |
|
|
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
557 |
|
|
ac_n= ac_c='
|
558 |
|
|
' ac_t=' '
|
559 |
|
|
else
|
560 |
|
|
ac_n=-n ac_c= ac_t=
|
561 |
|
|
fi
|
562 |
|
|
else
|
563 |
|
|
ac_n= ac_c='\c' ac_t=
|
564 |
|
|
fi
|
565 |
|
|
|
566 |
|
|
|
567 |
|
|
ac_aux_dir=
|
568 |
|
|
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
569 |
|
|
if test -f $ac_dir/install-sh; then
|
570 |
|
|
ac_aux_dir=$ac_dir
|
571 |
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
572 |
|
|
break
|
573 |
|
|
elif test -f $ac_dir/install.sh; then
|
574 |
|
|
ac_aux_dir=$ac_dir
|
575 |
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
576 |
|
|
break
|
577 |
|
|
fi
|
578 |
|
|
done
|
579 |
|
|
if test -z "$ac_aux_dir"; then
|
580 |
|
|
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
581 |
|
|
fi
|
582 |
|
|
ac_config_guess=$ac_aux_dir/config.guess
|
583 |
|
|
ac_config_sub=$ac_aux_dir/config.sub
|
584 |
|
|
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
585 |
|
|
|
586 |
|
|
|
587 |
|
|
# Make sure we can run config.sub.
|
588 |
|
|
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
589 |
|
|
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
590 |
|
|
fi
|
591 |
|
|
|
592 |
|
|
echo $ac_n "checking host system type""... $ac_c" 1>&6
|
593 |
889 |
ivang |
echo "configure:594: checking host system type" >&5
|
594 |
224 |
markom |
|
595 |
|
|
host_alias=$host
|
596 |
|
|
case "$host_alias" in
|
597 |
|
|
NONE)
|
598 |
|
|
case $nonopt in
|
599 |
|
|
NONE)
|
600 |
|
|
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
601 |
|
|
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
602 |
|
|
fi ;;
|
603 |
|
|
*) host_alias=$nonopt ;;
|
604 |
|
|
esac ;;
|
605 |
|
|
esac
|
606 |
|
|
|
607 |
|
|
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
608 |
|
|
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
609 |
|
|
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
610 |
|
|
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
611 |
|
|
echo "$ac_t""$host" 1>&6
|
612 |
|
|
|
613 |
|
|
# Find a good install program. We prefer a C program (faster),
|
614 |
|
|
# so one script is as good as another. But avoid the broken or
|
615 |
|
|
# incompatible versions:
|
616 |
|
|
# SysV /etc/install, /usr/sbin/install
|
617 |
|
|
# SunOS /usr/etc/install
|
618 |
|
|
# IRIX /sbin/install
|
619 |
|
|
# AIX /bin/install
|
620 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
621 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
622 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
623 |
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
624 |
|
|
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
625 |
889 |
ivang |
echo "configure:626: checking for a BSD compatible install" >&5
|
626 |
224 |
markom |
if test -z "$INSTALL"; then
|
627 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
628 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
629 |
|
|
else
|
630 |
|
|
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
631 |
|
|
for ac_dir in $PATH; do
|
632 |
|
|
# Account for people who put trailing slashes in PATH elements.
|
633 |
|
|
case "$ac_dir/" in
|
634 |
|
|
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
635 |
|
|
*)
|
636 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
637 |
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
638 |
|
|
# by default.
|
639 |
|
|
for ac_prog in ginstall scoinst install; do
|
640 |
|
|
if test -f $ac_dir/$ac_prog; then
|
641 |
|
|
if test $ac_prog = install &&
|
642 |
|
|
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
643 |
|
|
# AIX install. It has an incompatible calling convention.
|
644 |
|
|
:
|
645 |
|
|
else
|
646 |
|
|
ac_cv_path_install="$ac_dir/$ac_prog -c"
|
647 |
|
|
break 2
|
648 |
|
|
fi
|
649 |
|
|
fi
|
650 |
|
|
done
|
651 |
|
|
;;
|
652 |
|
|
esac
|
653 |
|
|
done
|
654 |
|
|
IFS="$ac_save_IFS"
|
655 |
|
|
|
656 |
|
|
fi
|
657 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
658 |
|
|
INSTALL="$ac_cv_path_install"
|
659 |
|
|
else
|
660 |
|
|
# As a last resort, use the slow shell script. We don't cache a
|
661 |
|
|
# path for INSTALL within a source directory, because that will
|
662 |
|
|
# break other packages using the cache if that directory is
|
663 |
|
|
# removed, or if the path is relative.
|
664 |
|
|
INSTALL="$ac_install_sh"
|
665 |
|
|
fi
|
666 |
|
|
fi
|
667 |
|
|
echo "$ac_t""$INSTALL" 1>&6
|
668 |
|
|
|
669 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
670 |
|
|
# It thinks the first close brace ends the variable substitution.
|
671 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
672 |
|
|
|
673 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
674 |
|
|
|
675 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
676 |
|
|
|
677 |
|
|
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
678 |
889 |
ivang |
echo "configure:679: checking whether build environment is sane" >&5
|
679 |
224 |
markom |
# Just in case
|
680 |
|
|
sleep 1
|
681 |
|
|
echo timestamp > conftestfile
|
682 |
|
|
# Do `set' in a subshell so we don't clobber the current shell's
|
683 |
|
|
# arguments. Must try -L first in case configure is actually a
|
684 |
|
|
# symlink; some systems play weird games with the mod time of symlinks
|
685 |
|
|
# (eg FreeBSD returns the mod time of the symlink's containing
|
686 |
|
|
# directory).
|
687 |
|
|
if (
|
688 |
|
|
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
689 |
|
|
if test "$*" = "X"; then
|
690 |
|
|
# -L didn't work.
|
691 |
|
|
set X `ls -t $srcdir/configure conftestfile`
|
692 |
|
|
fi
|
693 |
|
|
if test "$*" != "X $srcdir/configure conftestfile" \
|
694 |
|
|
&& test "$*" != "X conftestfile $srcdir/configure"; then
|
695 |
|
|
|
696 |
|
|
# If neither matched, then we have a broken ls. This can happen
|
697 |
|
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
698 |
|
|
# broken ls alias from the environment. This has actually
|
699 |
|
|
# happened. Such a system could not be considered "sane".
|
700 |
|
|
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
701 |
|
|
alias in your environment" 1>&2; exit 1; }
|
702 |
|
|
fi
|
703 |
|
|
|
704 |
|
|
test "$2" = conftestfile
|
705 |
|
|
)
|
706 |
|
|
then
|
707 |
|
|
# Ok.
|
708 |
|
|
:
|
709 |
|
|
else
|
710 |
|
|
{ echo "configure: error: newly created file is older than distributed files!
|
711 |
|
|
Check your system clock" 1>&2; exit 1; }
|
712 |
|
|
fi
|
713 |
|
|
rm -f conftest*
|
714 |
|
|
echo "$ac_t""yes" 1>&6
|
715 |
|
|
if test "$program_transform_name" = s,x,x,; then
|
716 |
|
|
program_transform_name=
|
717 |
|
|
else
|
718 |
|
|
# Double any \ or $. echo might interpret backslashes.
|
719 |
|
|
cat <<\EOF_SED > conftestsed
|
720 |
|
|
s,\\,\\\\,g; s,\$,$$,g
|
721 |
|
|
EOF_SED
|
722 |
|
|
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
723 |
|
|
rm -f conftestsed
|
724 |
|
|
fi
|
725 |
|
|
test "$program_prefix" != NONE &&
|
726 |
|
|
program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
727 |
|
|
# Use a double $ so make ignores it.
|
728 |
|
|
test "$program_suffix" != NONE &&
|
729 |
|
|
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
730 |
|
|
|
731 |
|
|
# sed with no file args requires a program.
|
732 |
|
|
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
733 |
|
|
|
734 |
|
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
735 |
889 |
ivang |
echo "configure:736: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
736 |
224 |
markom |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
737 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
738 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
739 |
|
|
else
|
740 |
|
|
cat > conftestmake <<\EOF
|
741 |
|
|
all:
|
742 |
|
|
@echo 'ac_maketemp="${MAKE}"'
|
743 |
|
|
EOF
|
744 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
745 |
|
|
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
746 |
|
|
if test -n "$ac_maketemp"; then
|
747 |
|
|
eval ac_cv_prog_make_${ac_make}_set=yes
|
748 |
|
|
else
|
749 |
|
|
eval ac_cv_prog_make_${ac_make}_set=no
|
750 |
|
|
fi
|
751 |
|
|
rm -f conftestmake
|
752 |
|
|
fi
|
753 |
|
|
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
754 |
|
|
echo "$ac_t""yes" 1>&6
|
755 |
|
|
SET_MAKE=
|
756 |
|
|
else
|
757 |
|
|
echo "$ac_t""no" 1>&6
|
758 |
|
|
SET_MAKE="MAKE=${MAKE-make}"
|
759 |
|
|
fi
|
760 |
|
|
|
761 |
|
|
|
762 |
|
|
PACKAGE=or1ksimtest
|
763 |
|
|
|
764 |
|
|
VERSION=1.3
|
765 |
|
|
|
766 |
|
|
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
767 |
|
|
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
768 |
|
|
fi
|
769 |
|
|
cat >> confdefs.h <
|
770 |
|
|
#define PACKAGE "$PACKAGE"
|
771 |
|
|
EOF
|
772 |
|
|
|
773 |
|
|
cat >> confdefs.h <
|
774 |
|
|
#define VERSION "$VERSION"
|
775 |
|
|
EOF
|
776 |
|
|
|
777 |
|
|
|
778 |
|
|
|
779 |
|
|
missing_dir=`cd $ac_aux_dir && pwd`
|
780 |
|
|
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
781 |
889 |
ivang |
echo "configure:782: checking for working aclocal" >&5
|
782 |
224 |
markom |
# Run test in a subshell; some versions of sh will print an error if
|
783 |
|
|
# an executable is not found, even if stderr is redirected.
|
784 |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
785 |
|
|
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
786 |
|
|
ACLOCAL=aclocal
|
787 |
|
|
echo "$ac_t""found" 1>&6
|
788 |
|
|
else
|
789 |
|
|
ACLOCAL="$missing_dir/missing aclocal"
|
790 |
|
|
echo "$ac_t""missing" 1>&6
|
791 |
|
|
fi
|
792 |
|
|
|
793 |
|
|
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
794 |
889 |
ivang |
echo "configure:795: checking for working autoconf" >&5
|
795 |
224 |
markom |
# Run test in a subshell; some versions of sh will print an error if
|
796 |
|
|
# an executable is not found, even if stderr is redirected.
|
797 |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
798 |
|
|
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
799 |
|
|
AUTOCONF=autoconf
|
800 |
|
|
echo "$ac_t""found" 1>&6
|
801 |
|
|
else
|
802 |
|
|
AUTOCONF="$missing_dir/missing autoconf"
|
803 |
|
|
echo "$ac_t""missing" 1>&6
|
804 |
|
|
fi
|
805 |
|
|
|
806 |
|
|
echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
807 |
889 |
ivang |
echo "configure:808: checking for working automake" >&5
|
808 |
224 |
markom |
# Run test in a subshell; some versions of sh will print an error if
|
809 |
|
|
# an executable is not found, even if stderr is redirected.
|
810 |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
811 |
|
|
if (automake --version) < /dev/null > /dev/null 2>&1; then
|
812 |
|
|
AUTOMAKE=automake
|
813 |
|
|
echo "$ac_t""found" 1>&6
|
814 |
|
|
else
|
815 |
|
|
AUTOMAKE="$missing_dir/missing automake"
|
816 |
|
|
echo "$ac_t""missing" 1>&6
|
817 |
|
|
fi
|
818 |
|
|
|
819 |
|
|
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
820 |
889 |
ivang |
echo "configure:821: checking for working autoheader" >&5
|
821 |
224 |
markom |
# Run test in a subshell; some versions of sh will print an error if
|
822 |
|
|
# an executable is not found, even if stderr is redirected.
|
823 |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
824 |
|
|
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
825 |
|
|
AUTOHEADER=autoheader
|
826 |
|
|
echo "$ac_t""found" 1>&6
|
827 |
|
|
else
|
828 |
|
|
AUTOHEADER="$missing_dir/missing autoheader"
|
829 |
|
|
echo "$ac_t""missing" 1>&6
|
830 |
|
|
fi
|
831 |
|
|
|
832 |
|
|
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
833 |
889 |
ivang |
echo "configure:834: checking for working makeinfo" >&5
|
834 |
224 |
markom |
# Run test in a subshell; some versions of sh will print an error if
|
835 |
|
|
# an executable is not found, even if stderr is redirected.
|
836 |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
837 |
|
|
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
838 |
|
|
MAKEINFO=makeinfo
|
839 |
|
|
echo "$ac_t""found" 1>&6
|
840 |
|
|
else
|
841 |
|
|
MAKEINFO="$missing_dir/missing makeinfo"
|
842 |
|
|
echo "$ac_t""missing" 1>&6
|
843 |
|
|
fi
|
844 |
|
|
|
845 |
|
|
|
846 |
|
|
|
847 |
|
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
848 |
889 |
ivang |
echo "configure:849: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
849 |
224 |
markom |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
850 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
851 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
852 |
|
|
else
|
853 |
|
|
cat > conftestmake <<\EOF
|
854 |
|
|
all:
|
855 |
|
|
@echo 'ac_maketemp="${MAKE}"'
|
856 |
|
|
EOF
|
857 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
858 |
|
|
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
859 |
|
|
if test -n "$ac_maketemp"; then
|
860 |
|
|
eval ac_cv_prog_make_${ac_make}_set=yes
|
861 |
|
|
else
|
862 |
|
|
eval ac_cv_prog_make_${ac_make}_set=no
|
863 |
|
|
fi
|
864 |
|
|
rm -f conftestmake
|
865 |
|
|
fi
|
866 |
|
|
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
867 |
|
|
echo "$ac_t""yes" 1>&6
|
868 |
|
|
SET_MAKE=
|
869 |
|
|
else
|
870 |
|
|
echo "$ac_t""no" 1>&6
|
871 |
|
|
SET_MAKE="MAKE=${MAKE-make}"
|
872 |
|
|
fi
|
873 |
|
|
|
874 |
|
|
# Find a good install program. We prefer a C program (faster),
|
875 |
|
|
# so one script is as good as another. But avoid the broken or
|
876 |
|
|
# incompatible versions:
|
877 |
|
|
# SysV /etc/install, /usr/sbin/install
|
878 |
|
|
# SunOS /usr/etc/install
|
879 |
|
|
# IRIX /sbin/install
|
880 |
|
|
# AIX /bin/install
|
881 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
882 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
883 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
884 |
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
885 |
|
|
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
886 |
889 |
ivang |
echo "configure:887: checking for a BSD compatible install" >&5
|
887 |
224 |
markom |
if test -z "$INSTALL"; then
|
888 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
889 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
890 |
|
|
else
|
891 |
|
|
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
892 |
|
|
for ac_dir in $PATH; do
|
893 |
|
|
# Account for people who put trailing slashes in PATH elements.
|
894 |
|
|
case "$ac_dir/" in
|
895 |
|
|
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
896 |
|
|
*)
|
897 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
898 |
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
899 |
|
|
# by default.
|
900 |
|
|
for ac_prog in ginstall scoinst install; do
|
901 |
|
|
if test -f $ac_dir/$ac_prog; then
|
902 |
|
|
if test $ac_prog = install &&
|
903 |
|
|
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
904 |
|
|
# AIX install. It has an incompatible calling convention.
|
905 |
|
|
:
|
906 |
|
|
else
|
907 |
|
|
ac_cv_path_install="$ac_dir/$ac_prog -c"
|
908 |
|
|
break 2
|
909 |
|
|
fi
|
910 |
|
|
fi
|
911 |
|
|
done
|
912 |
|
|
;;
|
913 |
|
|
esac
|
914 |
|
|
done
|
915 |
|
|
IFS="$ac_save_IFS"
|
916 |
|
|
|
917 |
|
|
fi
|
918 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
919 |
|
|
INSTALL="$ac_cv_path_install"
|
920 |
|
|
else
|
921 |
|
|
# As a last resort, use the slow shell script. We don't cache a
|
922 |
|
|
# path for INSTALL within a source directory, because that will
|
923 |
|
|
# break other packages using the cache if that directory is
|
924 |
|
|
# removed, or if the path is relative.
|
925 |
|
|
INSTALL="$ac_install_sh"
|
926 |
|
|
fi
|
927 |
|
|
fi
|
928 |
|
|
echo "$ac_t""$INSTALL" 1>&6
|
929 |
|
|
|
930 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
931 |
|
|
# It thinks the first close brace ends the variable substitution.
|
932 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
933 |
|
|
|
934 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
935 |
|
|
|
936 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
937 |
|
|
|
938 |
|
|
echo $ac_n "checking build system type""... $ac_c" 1>&6
|
939 |
889 |
ivang |
echo "configure:940: checking build system type" >&5
|
940 |
224 |
markom |
|
941 |
|
|
build_alias=$build
|
942 |
|
|
case "$build_alias" in
|
943 |
|
|
NONE)
|
944 |
|
|
case $nonopt in
|
945 |
|
|
NONE) build_alias=$host_alias ;;
|
946 |
|
|
*) build_alias=$nonopt ;;
|
947 |
|
|
esac ;;
|
948 |
|
|
esac
|
949 |
|
|
|
950 |
|
|
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
951 |
|
|
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
952 |
|
|
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
953 |
|
|
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
954 |
|
|
echo "$ac_t""$build" 1>&6
|
955 |
|
|
|
956 |
|
|
if test $host != $build; then
|
957 |
|
|
ac_tool_prefix=${host_alias}-
|
958 |
|
|
else
|
959 |
|
|
ac_tool_prefix=
|
960 |
|
|
fi
|
961 |
|
|
|
962 |
229 |
erez |
# Extract the first word of "${ac_tool_prefix}$target-gcc", so it can be a program name with args.
|
963 |
|
|
set dummy ${ac_tool_prefix}$target-gcc; ac_word=$2
|
964 |
224 |
markom |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
965 |
889 |
ivang |
echo "configure:966: checking for $ac_word" >&5
|
966 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
967 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
968 |
|
|
else
|
969 |
|
|
if test -n "$CC"; then
|
970 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
971 |
|
|
else
|
972 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
973 |
|
|
ac_dummy="$PATH"
|
974 |
|
|
for ac_dir in $ac_dummy; do
|
975 |
|
|
test -z "$ac_dir" && ac_dir=.
|
976 |
|
|
if test -f $ac_dir/$ac_word; then
|
977 |
229 |
erez |
ac_cv_prog_CC="${ac_tool_prefix}$target-gcc"
|
978 |
224 |
markom |
break
|
979 |
|
|
fi
|
980 |
|
|
done
|
981 |
|
|
IFS="$ac_save_ifs"
|
982 |
|
|
fi
|
983 |
|
|
fi
|
984 |
|
|
CC="$ac_cv_prog_CC"
|
985 |
|
|
if test -n "$CC"; then
|
986 |
|
|
echo "$ac_t""$CC" 1>&6
|
987 |
|
|
else
|
988 |
|
|
echo "$ac_t""no" 1>&6
|
989 |
|
|
fi
|
990 |
|
|
|
991 |
|
|
|
992 |
|
|
if test -z "$ac_cv_prog_CC"; then
|
993 |
|
|
if test -n "$ac_tool_prefix"; then
|
994 |
229 |
erez |
# Extract the first word of "$target-gcc", so it can be a program name with args.
|
995 |
|
|
set dummy $target-gcc; ac_word=$2
|
996 |
224 |
markom |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
997 |
889 |
ivang |
echo "configure:998: checking for $ac_word" >&5
|
998 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
999 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1000 |
|
|
else
|
1001 |
|
|
if test -n "$CC"; then
|
1002 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
1003 |
|
|
else
|
1004 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
1005 |
|
|
ac_dummy="$PATH"
|
1006 |
|
|
for ac_dir in $ac_dummy; do
|
1007 |
|
|
test -z "$ac_dir" && ac_dir=.
|
1008 |
|
|
if test -f $ac_dir/$ac_word; then
|
1009 |
229 |
erez |
ac_cv_prog_CC="$target-gcc"
|
1010 |
224 |
markom |
break
|
1011 |
|
|
fi
|
1012 |
|
|
done
|
1013 |
|
|
IFS="$ac_save_ifs"
|
1014 |
|
|
test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
|
1015 |
|
|
fi
|
1016 |
|
|
fi
|
1017 |
|
|
CC="$ac_cv_prog_CC"
|
1018 |
|
|
if test -n "$CC"; then
|
1019 |
|
|
echo "$ac_t""$CC" 1>&6
|
1020 |
|
|
else
|
1021 |
|
|
echo "$ac_t""no" 1>&6
|
1022 |
|
|
fi
|
1023 |
|
|
|
1024 |
|
|
else
|
1025 |
|
|
CC="cc"
|
1026 |
|
|
fi
|
1027 |
|
|
fi
|
1028 |
|
|
|
1029 |
229 |
erez |
# Extract the first word of "${ac_tool_prefix}$target-ranlib", so it can be a program name with args.
|
1030 |
|
|
set dummy ${ac_tool_prefix}$target-ranlib; ac_word=$2
|
1031 |
224 |
markom |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1032 |
889 |
ivang |
echo "configure:1033: checking for $ac_word" >&5
|
1033 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
1034 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1035 |
|
|
else
|
1036 |
|
|
if test -n "$RANLIB"; then
|
1037 |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
1038 |
|
|
else
|
1039 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
1040 |
|
|
ac_dummy="$PATH"
|
1041 |
|
|
for ac_dir in $ac_dummy; do
|
1042 |
|
|
test -z "$ac_dir" && ac_dir=.
|
1043 |
|
|
if test -f $ac_dir/$ac_word; then
|
1044 |
229 |
erez |
ac_cv_prog_RANLIB="${ac_tool_prefix}$target-ranlib"
|
1045 |
224 |
markom |
break
|
1046 |
|
|
fi
|
1047 |
|
|
done
|
1048 |
|
|
IFS="$ac_save_ifs"
|
1049 |
|
|
fi
|
1050 |
|
|
fi
|
1051 |
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
1052 |
|
|
if test -n "$RANLIB"; then
|
1053 |
|
|
echo "$ac_t""$RANLIB" 1>&6
|
1054 |
|
|
else
|
1055 |
|
|
echo "$ac_t""no" 1>&6
|
1056 |
|
|
fi
|
1057 |
|
|
|
1058 |
|
|
|
1059 |
|
|
if test -z "$ac_cv_prog_RANLIB"; then
|
1060 |
|
|
if test -n "$ac_tool_prefix"; then
|
1061 |
229 |
erez |
# Extract the first word of "$target-ranlib", so it can be a program name with args.
|
1062 |
|
|
set dummy $target-ranlib; ac_word=$2
|
1063 |
224 |
markom |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1064 |
889 |
ivang |
echo "configure:1065: checking for $ac_word" >&5
|
1065 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
1066 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1067 |
|
|
else
|
1068 |
|
|
if test -n "$RANLIB"; then
|
1069 |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
1070 |
|
|
else
|
1071 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
1072 |
|
|
ac_dummy="$PATH"
|
1073 |
|
|
for ac_dir in $ac_dummy; do
|
1074 |
|
|
test -z "$ac_dir" && ac_dir=.
|
1075 |
|
|
if test -f $ac_dir/$ac_word; then
|
1076 |
229 |
erez |
ac_cv_prog_RANLIB="$target-ranlib"
|
1077 |
224 |
markom |
break
|
1078 |
|
|
fi
|
1079 |
|
|
done
|
1080 |
|
|
IFS="$ac_save_ifs"
|
1081 |
|
|
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib"
|
1082 |
|
|
fi
|
1083 |
|
|
fi
|
1084 |
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
1085 |
|
|
if test -n "$RANLIB"; then
|
1086 |
|
|
echo "$ac_t""$RANLIB" 1>&6
|
1087 |
|
|
else
|
1088 |
|
|
echo "$ac_t""no" 1>&6
|
1089 |
|
|
fi
|
1090 |
|
|
|
1091 |
|
|
else
|
1092 |
|
|
RANLIB="ranlib"
|
1093 |
|
|
fi
|
1094 |
|
|
fi
|
1095 |
|
|
|
1096 |
229 |
erez |
# Extract the first word of "${ac_tool_prefix}$target-ld", so it can be a program name with args.
|
1097 |
|
|
set dummy ${ac_tool_prefix}$target-ld; ac_word=$2
|
1098 |
224 |
markom |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1099 |
889 |
ivang |
echo "configure:1100: checking for $ac_word" >&5
|
1100 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
|
1101 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1102 |
|
|
else
|
1103 |
|
|
if test -n "$LD"; then
|
1104 |
|
|
ac_cv_prog_LD="$LD" # Let the user override the test.
|
1105 |
|
|
else
|
1106 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
1107 |
|
|
ac_dummy="$PATH"
|
1108 |
|
|
for ac_dir in $ac_dummy; do
|
1109 |
|
|
test -z "$ac_dir" && ac_dir=.
|
1110 |
|
|
if test -f $ac_dir/$ac_word; then
|
1111 |
229 |
erez |
ac_cv_prog_LD="${ac_tool_prefix}$target-ld"
|
1112 |
224 |
markom |
break
|
1113 |
|
|
fi
|
1114 |
|
|
done
|
1115 |
|
|
IFS="$ac_save_ifs"
|
1116 |
|
|
fi
|
1117 |
|
|
fi
|
1118 |
|
|
LD="$ac_cv_prog_LD"
|
1119 |
|
|
if test -n "$LD"; then
|
1120 |
|
|
echo "$ac_t""$LD" 1>&6
|
1121 |
|
|
else
|
1122 |
|
|
echo "$ac_t""no" 1>&6
|
1123 |
|
|
fi
|
1124 |
|
|
|
1125 |
|
|
|
1126 |
|
|
if test -z "$ac_cv_prog_LD"; then
|
1127 |
|
|
if test -n "$ac_tool_prefix"; then
|
1128 |
229 |
erez |
# Extract the first word of "$target-ld", so it can be a program name with args.
|
1129 |
|
|
set dummy $target-ld; ac_word=$2
|
1130 |
224 |
markom |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1131 |
889 |
ivang |
echo "configure:1132: checking for $ac_word" >&5
|
1132 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
|
1133 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1134 |
|
|
else
|
1135 |
|
|
if test -n "$LD"; then
|
1136 |
|
|
ac_cv_prog_LD="$LD" # Let the user override the test.
|
1137 |
|
|
else
|
1138 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
1139 |
|
|
ac_dummy="$PATH"
|
1140 |
|
|
for ac_dir in $ac_dummy; do
|
1141 |
|
|
test -z "$ac_dir" && ac_dir=.
|
1142 |
|
|
if test -f $ac_dir/$ac_word; then
|
1143 |
229 |
erez |
ac_cv_prog_LD="$target-ld"
|
1144 |
224 |
markom |
break
|
1145 |
|
|
fi
|
1146 |
|
|
done
|
1147 |
|
|
IFS="$ac_save_ifs"
|
1148 |
|
|
test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
|
1149 |
|
|
fi
|
1150 |
|
|
fi
|
1151 |
|
|
LD="$ac_cv_prog_LD"
|
1152 |
|
|
if test -n "$LD"; then
|
1153 |
|
|
echo "$ac_t""$LD" 1>&6
|
1154 |
|
|
else
|
1155 |
|
|
echo "$ac_t""no" 1>&6
|
1156 |
|
|
fi
|
1157 |
|
|
|
1158 |
|
|
else
|
1159 |
|
|
LD="ld"
|
1160 |
|
|
fi
|
1161 |
|
|
fi
|
1162 |
|
|
|
1163 |
308 |
markom |
# Extract the first word of "${ac_tool_prefix}$target-sim", so it can be a program name with args.
|
1164 |
|
|
set dummy ${ac_tool_prefix}$target-sim; ac_word=$2
|
1165 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1166 |
889 |
ivang |
echo "configure:1167: checking for $ac_word" >&5
|
1167 |
308 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_SIM'+set}'`\" = set"; then
|
1168 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1169 |
|
|
else
|
1170 |
|
|
if test -n "$SIM"; then
|
1171 |
|
|
ac_cv_prog_SIM="$SIM" # Let the user override the test.
|
1172 |
|
|
else
|
1173 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
1174 |
|
|
ac_dummy="$PATH"
|
1175 |
|
|
for ac_dir in $ac_dummy; do
|
1176 |
|
|
test -z "$ac_dir" && ac_dir=.
|
1177 |
|
|
if test -f $ac_dir/$ac_word; then
|
1178 |
|
|
ac_cv_prog_SIM="${ac_tool_prefix}$target-sim"
|
1179 |
|
|
break
|
1180 |
|
|
fi
|
1181 |
|
|
done
|
1182 |
|
|
IFS="$ac_save_ifs"
|
1183 |
|
|
fi
|
1184 |
|
|
fi
|
1185 |
|
|
SIM="$ac_cv_prog_SIM"
|
1186 |
|
|
if test -n "$SIM"; then
|
1187 |
|
|
echo "$ac_t""$SIM" 1>&6
|
1188 |
|
|
else
|
1189 |
|
|
echo "$ac_t""no" 1>&6
|
1190 |
|
|
fi
|
1191 |
|
|
|
1192 |
|
|
|
1193 |
|
|
if test -z "$ac_cv_prog_SIM"; then
|
1194 |
|
|
if test -n "$ac_tool_prefix"; then
|
1195 |
|
|
# Extract the first word of "$target-sim", so it can be a program name with args.
|
1196 |
|
|
set dummy $target-sim; ac_word=$2
|
1197 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1198 |
889 |
ivang |
echo "configure:1199: checking for $ac_word" >&5
|
1199 |
308 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_SIM'+set}'`\" = set"; then
|
1200 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1201 |
|
|
else
|
1202 |
|
|
if test -n "$SIM"; then
|
1203 |
|
|
ac_cv_prog_SIM="$SIM" # Let the user override the test.
|
1204 |
|
|
else
|
1205 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
1206 |
|
|
ac_dummy="$PATH"
|
1207 |
|
|
for ac_dir in $ac_dummy; do
|
1208 |
|
|
test -z "$ac_dir" && ac_dir=.
|
1209 |
|
|
if test -f $ac_dir/$ac_word; then
|
1210 |
|
|
ac_cv_prog_SIM="$target-sim"
|
1211 |
|
|
break
|
1212 |
|
|
fi
|
1213 |
|
|
done
|
1214 |
|
|
IFS="$ac_save_ifs"
|
1215 |
|
|
test -z "$ac_cv_prog_SIM" && ac_cv_prog_SIM="sim"
|
1216 |
|
|
fi
|
1217 |
|
|
fi
|
1218 |
|
|
SIM="$ac_cv_prog_SIM"
|
1219 |
|
|
if test -n "$SIM"; then
|
1220 |
|
|
echo "$ac_t""$SIM" 1>&6
|
1221 |
|
|
else
|
1222 |
|
|
echo "$ac_t""no" 1>&6
|
1223 |
|
|
fi
|
1224 |
|
|
|
1225 |
|
|
else
|
1226 |
|
|
SIM="sim"
|
1227 |
|
|
fi
|
1228 |
|
|
fi
|
1229 |
|
|
|
1230 |
889 |
ivang |
|
1231 |
|
|
echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
|
1232 |
|
|
echo "configure:1233: checking for strerror in -lcposix" >&5
|
1233 |
|
|
ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
|
1234 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
1235 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1236 |
|
|
else
|
1237 |
|
|
ac_save_LIBS="$LIBS"
|
1238 |
|
|
LIBS="-lcposix $LIBS"
|
1239 |
|
|
cat > conftest.$ac_ext <
|
1240 |
|
|
#line 1241 "configure"
|
1241 |
|
|
#include "confdefs.h"
|
1242 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
1243 |
|
|
/* We use char because int might match the return type of a gcc2
|
1244 |
|
|
builtin and then its argument prototype would still apply. */
|
1245 |
|
|
char strerror();
|
1246 |
|
|
|
1247 |
|
|
int main() {
|
1248 |
|
|
strerror()
|
1249 |
|
|
; return 0; }
|
1250 |
|
|
EOF
|
1251 |
|
|
if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1252 |
|
|
rm -rf conftest*
|
1253 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
1254 |
|
|
else
|
1255 |
|
|
echo "configure: failed program was:" >&5
|
1256 |
|
|
cat conftest.$ac_ext >&5
|
1257 |
|
|
rm -rf conftest*
|
1258 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
1259 |
|
|
fi
|
1260 |
|
|
rm -f conftest*
|
1261 |
|
|
LIBS="$ac_save_LIBS"
|
1262 |
|
|
|
1263 |
|
|
fi
|
1264 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
1265 |
|
|
echo "$ac_t""yes" 1>&6
|
1266 |
|
|
LIBS="$LIBS -lcposix"
|
1267 |
|
|
else
|
1268 |
|
|
echo "$ac_t""no" 1>&6
|
1269 |
|
|
fi
|
1270 |
|
|
|
1271 |
|
|
|
1272 |
|
|
|
1273 |
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
1274 |
|
|
echo "configure:1275: checking how to run the C preprocessor" >&5
|
1275 |
|
|
# On Suns, sometimes $CPP names a directory.
|
1276 |
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
1277 |
|
|
CPP=
|
1278 |
|
|
fi
|
1279 |
|
|
if test -z "$CPP"; then
|
1280 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
1281 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1282 |
|
|
else
|
1283 |
|
|
# This must be in double quotes, not single quotes, because CPP may get
|
1284 |
|
|
# substituted into the Makefile and "${CC-cc}" will confuse make.
|
1285 |
|
|
CPP="${CC-cc} -E"
|
1286 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
1287 |
|
|
# not just through cpp.
|
1288 |
|
|
cat > conftest.$ac_ext <
|
1289 |
|
|
#line 1290 "configure"
|
1290 |
|
|
#include "confdefs.h"
|
1291 |
|
|
#include
|
1292 |
|
|
Syntax Error
|
1293 |
|
|
EOF
|
1294 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1295 |
|
|
{ (eval echo configure:1296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1296 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1297 |
|
|
if test -z "$ac_err"; then
|
1298 |
|
|
:
|
1299 |
|
|
else
|
1300 |
|
|
echo "$ac_err" >&5
|
1301 |
|
|
echo "configure: failed program was:" >&5
|
1302 |
|
|
cat conftest.$ac_ext >&5
|
1303 |
|
|
rm -rf conftest*
|
1304 |
|
|
CPP="${CC-cc} -E -traditional-cpp"
|
1305 |
|
|
cat > conftest.$ac_ext <
|
1306 |
|
|
#line 1307 "configure"
|
1307 |
|
|
#include "confdefs.h"
|
1308 |
|
|
#include
|
1309 |
|
|
Syntax Error
|
1310 |
|
|
EOF
|
1311 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1312 |
|
|
{ (eval echo configure:1313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1313 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1314 |
|
|
if test -z "$ac_err"; then
|
1315 |
|
|
:
|
1316 |
|
|
else
|
1317 |
|
|
echo "$ac_err" >&5
|
1318 |
|
|
echo "configure: failed program was:" >&5
|
1319 |
|
|
cat conftest.$ac_ext >&5
|
1320 |
|
|
rm -rf conftest*
|
1321 |
|
|
CPP="${CC-cc} -nologo -E"
|
1322 |
|
|
cat > conftest.$ac_ext <
|
1323 |
|
|
#line 1324 "configure"
|
1324 |
|
|
#include "confdefs.h"
|
1325 |
|
|
#include
|
1326 |
|
|
Syntax Error
|
1327 |
|
|
EOF
|
1328 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1329 |
|
|
{ (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1330 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1331 |
|
|
if test -z "$ac_err"; then
|
1332 |
|
|
:
|
1333 |
|
|
else
|
1334 |
|
|
echo "$ac_err" >&5
|
1335 |
|
|
echo "configure: failed program was:" >&5
|
1336 |
|
|
cat conftest.$ac_ext >&5
|
1337 |
|
|
rm -rf conftest*
|
1338 |
|
|
CPP=/lib/cpp
|
1339 |
|
|
fi
|
1340 |
|
|
rm -f conftest*
|
1341 |
|
|
fi
|
1342 |
|
|
rm -f conftest*
|
1343 |
|
|
fi
|
1344 |
|
|
rm -f conftest*
|
1345 |
|
|
ac_cv_prog_CPP="$CPP"
|
1346 |
|
|
fi
|
1347 |
|
|
CPP="$ac_cv_prog_CPP"
|
1348 |
|
|
else
|
1349 |
|
|
ac_cv_prog_CPP="$CPP"
|
1350 |
|
|
fi
|
1351 |
|
|
echo "$ac_t""$CPP" 1>&6
|
1352 |
|
|
|
1353 |
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
1354 |
|
|
echo "configure:1355: checking for ANSI C header files" >&5
|
1355 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
1356 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1357 |
|
|
else
|
1358 |
|
|
cat > conftest.$ac_ext <
|
1359 |
|
|
#line 1360 "configure"
|
1360 |
|
|
#include "confdefs.h"
|
1361 |
|
|
#include
|
1362 |
|
|
#include
|
1363 |
|
|
#include
|
1364 |
|
|
#include
|
1365 |
|
|
EOF
|
1366 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1367 |
|
|
{ (eval echo configure:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1368 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1369 |
|
|
if test -z "$ac_err"; then
|
1370 |
|
|
rm -rf conftest*
|
1371 |
|
|
ac_cv_header_stdc=yes
|
1372 |
|
|
else
|
1373 |
|
|
echo "$ac_err" >&5
|
1374 |
|
|
echo "configure: failed program was:" >&5
|
1375 |
|
|
cat conftest.$ac_ext >&5
|
1376 |
|
|
rm -rf conftest*
|
1377 |
|
|
ac_cv_header_stdc=no
|
1378 |
|
|
fi
|
1379 |
|
|
rm -f conftest*
|
1380 |
|
|
|
1381 |
|
|
if test $ac_cv_header_stdc = yes; then
|
1382 |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
1383 |
|
|
cat > conftest.$ac_ext <
|
1384 |
|
|
#line 1385 "configure"
|
1385 |
|
|
#include "confdefs.h"
|
1386 |
|
|
#include
|
1387 |
|
|
EOF
|
1388 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1389 |
|
|
egrep "memchr" >/dev/null 2>&1; then
|
1390 |
|
|
:
|
1391 |
|
|
else
|
1392 |
|
|
rm -rf conftest*
|
1393 |
|
|
ac_cv_header_stdc=no
|
1394 |
|
|
fi
|
1395 |
|
|
rm -f conftest*
|
1396 |
|
|
|
1397 |
|
|
fi
|
1398 |
|
|
|
1399 |
|
|
if test $ac_cv_header_stdc = yes; then
|
1400 |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
1401 |
|
|
cat > conftest.$ac_ext <
|
1402 |
|
|
#line 1403 "configure"
|
1403 |
|
|
#include "confdefs.h"
|
1404 |
|
|
#include
|
1405 |
|
|
EOF
|
1406 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1407 |
|
|
egrep "free" >/dev/null 2>&1; then
|
1408 |
|
|
:
|
1409 |
|
|
else
|
1410 |
|
|
rm -rf conftest*
|
1411 |
|
|
ac_cv_header_stdc=no
|
1412 |
|
|
fi
|
1413 |
|
|
rm -f conftest*
|
1414 |
|
|
|
1415 |
|
|
fi
|
1416 |
|
|
|
1417 |
|
|
if test $ac_cv_header_stdc = yes; then
|
1418 |
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
1419 |
|
|
if test "$cross_compiling" = yes; then
|
1420 |
|
|
:
|
1421 |
|
|
else
|
1422 |
|
|
cat > conftest.$ac_ext <
|
1423 |
|
|
#line 1424 "configure"
|
1424 |
|
|
#include "confdefs.h"
|
1425 |
|
|
#include
|
1426 |
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
1427 |
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
1428 |
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
1429 |
|
|
int main () { int i; for (i = 0; i < 256; i++)
|
1430 |
|
|
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
1431 |
|
|
exit (0); }
|
1432 |
|
|
|
1433 |
|
|
EOF
|
1434 |
|
|
if { (eval echo configure:1435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1435 |
|
|
then
|
1436 |
|
|
:
|
1437 |
|
|
else
|
1438 |
|
|
echo "configure: failed program was:" >&5
|
1439 |
|
|
cat conftest.$ac_ext >&5
|
1440 |
|
|
rm -fr conftest*
|
1441 |
|
|
ac_cv_header_stdc=no
|
1442 |
|
|
fi
|
1443 |
|
|
rm -fr conftest*
|
1444 |
|
|
fi
|
1445 |
|
|
|
1446 |
|
|
fi
|
1447 |
|
|
fi
|
1448 |
|
|
|
1449 |
|
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
1450 |
|
|
if test $ac_cv_header_stdc = yes; then
|
1451 |
|
|
cat >> confdefs.h <<\EOF
|
1452 |
|
|
#define STDC_HEADERS 1
|
1453 |
|
|
EOF
|
1454 |
|
|
|
1455 |
|
|
fi
|
1456 |
|
|
|
1457 |
|
|
|
1458 |
|
|
MAKE_SHELL=/bin/sh
|
1459 |
|
|
|
1460 |
|
|
|
1461 |
224 |
markom |
# Extract the first word of "gcc", so it can be a program name with args.
|
1462 |
|
|
set dummy gcc; ac_word=$2
|
1463 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1464 |
889 |
ivang |
echo "configure:1465: checking for $ac_word" >&5
|
1465 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
1466 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1467 |
|
|
else
|
1468 |
|
|
if test -n "$CC"; then
|
1469 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
1470 |
|
|
else
|
1471 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
1472 |
|
|
ac_dummy="$PATH"
|
1473 |
|
|
for ac_dir in $ac_dummy; do
|
1474 |
|
|
test -z "$ac_dir" && ac_dir=.
|
1475 |
|
|
if test -f $ac_dir/$ac_word; then
|
1476 |
|
|
ac_cv_prog_CC="gcc"
|
1477 |
|
|
break
|
1478 |
|
|
fi
|
1479 |
|
|
done
|
1480 |
|
|
IFS="$ac_save_ifs"
|
1481 |
|
|
fi
|
1482 |
|
|
fi
|
1483 |
|
|
CC="$ac_cv_prog_CC"
|
1484 |
|
|
if test -n "$CC"; then
|
1485 |
|
|
echo "$ac_t""$CC" 1>&6
|
1486 |
|
|
else
|
1487 |
|
|
echo "$ac_t""no" 1>&6
|
1488 |
|
|
fi
|
1489 |
|
|
|
1490 |
|
|
if test -z "$CC"; then
|
1491 |
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
1492 |
|
|
set dummy cc; ac_word=$2
|
1493 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1494 |
889 |
ivang |
echo "configure:1495: checking for $ac_word" >&5
|
1495 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
1496 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1497 |
|
|
else
|
1498 |
|
|
if test -n "$CC"; then
|
1499 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
1500 |
|
|
else
|
1501 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
1502 |
|
|
ac_prog_rejected=no
|
1503 |
|
|
ac_dummy="$PATH"
|
1504 |
|
|
for ac_dir in $ac_dummy; do
|
1505 |
|
|
test -z "$ac_dir" && ac_dir=.
|
1506 |
|
|
if test -f $ac_dir/$ac_word; then
|
1507 |
|
|
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
1508 |
|
|
ac_prog_rejected=yes
|
1509 |
|
|
continue
|
1510 |
|
|
fi
|
1511 |
|
|
ac_cv_prog_CC="cc"
|
1512 |
|
|
break
|
1513 |
|
|
fi
|
1514 |
|
|
done
|
1515 |
|
|
IFS="$ac_save_ifs"
|
1516 |
|
|
if test $ac_prog_rejected = yes; then
|
1517 |
|
|
# We found a bogon in the path, so make sure we never use it.
|
1518 |
|
|
set dummy $ac_cv_prog_CC
|
1519 |
|
|
shift
|
1520 |
|
|
if test $# -gt 0; then
|
1521 |
|
|
# We chose a different compiler from the bogus one.
|
1522 |
|
|
# However, it has the same basename, so the bogon will be chosen
|
1523 |
|
|
# first if we set CC to just the basename; use the full file name.
|
1524 |
|
|
shift
|
1525 |
|
|
set dummy "$ac_dir/$ac_word" "$@"
|
1526 |
|
|
shift
|
1527 |
|
|
ac_cv_prog_CC="$@"
|
1528 |
|
|
fi
|
1529 |
|
|
fi
|
1530 |
|
|
fi
|
1531 |
|
|
fi
|
1532 |
|
|
CC="$ac_cv_prog_CC"
|
1533 |
|
|
if test -n "$CC"; then
|
1534 |
|
|
echo "$ac_t""$CC" 1>&6
|
1535 |
|
|
else
|
1536 |
|
|
echo "$ac_t""no" 1>&6
|
1537 |
|
|
fi
|
1538 |
|
|
|
1539 |
|
|
if test -z "$CC"; then
|
1540 |
|
|
case "`uname -s`" in
|
1541 |
|
|
*win32* | *WIN32*)
|
1542 |
|
|
# Extract the first word of "cl", so it can be a program name with args.
|
1543 |
|
|
set dummy cl; ac_word=$2
|
1544 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1545 |
889 |
ivang |
echo "configure:1546: checking for $ac_word" >&5
|
1546 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
1547 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1548 |
|
|
else
|
1549 |
|
|
if test -n "$CC"; then
|
1550 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
1551 |
|
|
else
|
1552 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
1553 |
|
|
ac_dummy="$PATH"
|
1554 |
|
|
for ac_dir in $ac_dummy; do
|
1555 |
|
|
test -z "$ac_dir" && ac_dir=.
|
1556 |
|
|
if test -f $ac_dir/$ac_word; then
|
1557 |
|
|
ac_cv_prog_CC="cl"
|
1558 |
|
|
break
|
1559 |
|
|
fi
|
1560 |
|
|
done
|
1561 |
|
|
IFS="$ac_save_ifs"
|
1562 |
|
|
fi
|
1563 |
|
|
fi
|
1564 |
|
|
CC="$ac_cv_prog_CC"
|
1565 |
|
|
if test -n "$CC"; then
|
1566 |
|
|
echo "$ac_t""$CC" 1>&6
|
1567 |
|
|
else
|
1568 |
|
|
echo "$ac_t""no" 1>&6
|
1569 |
|
|
fi
|
1570 |
|
|
;;
|
1571 |
|
|
esac
|
1572 |
|
|
fi
|
1573 |
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
1574 |
|
|
fi
|
1575 |
|
|
|
1576 |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
1577 |
889 |
ivang |
echo "configure:1578: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
1578 |
224 |
markom |
|
1579 |
|
|
ac_ext=c
|
1580 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
1581 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
1582 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
1583 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
1584 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
1585 |
|
|
|
1586 |
|
|
cat > conftest.$ac_ext << EOF
|
1587 |
|
|
|
1588 |
889 |
ivang |
#line 1589 "configure"
|
1589 |
224 |
markom |
#include "confdefs.h"
|
1590 |
|
|
|
1591 |
|
|
main(){return(0);}
|
1592 |
|
|
EOF
|
1593 |
889 |
ivang |
if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1594 |
224 |
markom |
ac_cv_prog_cc_works=yes
|
1595 |
|
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
1596 |
|
|
if (./conftest; exit) 2>/dev/null; then
|
1597 |
|
|
ac_cv_prog_cc_cross=no
|
1598 |
|
|
else
|
1599 |
|
|
ac_cv_prog_cc_cross=yes
|
1600 |
|
|
fi
|
1601 |
|
|
else
|
1602 |
|
|
echo "configure: failed program was:" >&5
|
1603 |
|
|
cat conftest.$ac_ext >&5
|
1604 |
|
|
ac_cv_prog_cc_works=no
|
1605 |
|
|
fi
|
1606 |
|
|
rm -fr conftest*
|
1607 |
|
|
ac_ext=c
|
1608 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
1609 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
1610 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
1611 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
1612 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
1613 |
|
|
|
1614 |
|
|
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
1615 |
|
|
if test $ac_cv_prog_cc_works = no; then
|
1616 |
|
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
1617 |
|
|
fi
|
1618 |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
1619 |
889 |
ivang |
echo "configure:1620: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
1620 |
224 |
markom |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
1621 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
1622 |
|
|
|
1623 |
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
1624 |
889 |
ivang |
echo "configure:1625: checking whether we are using GNU C" >&5
|
1625 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
1626 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1627 |
|
|
else
|
1628 |
|
|
cat > conftest.c <
|
1629 |
|
|
#ifdef __GNUC__
|
1630 |
|
|
yes;
|
1631 |
|
|
#endif
|
1632 |
|
|
EOF
|
1633 |
889 |
ivang |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
1634 |
224 |
markom |
ac_cv_prog_gcc=yes
|
1635 |
|
|
else
|
1636 |
|
|
ac_cv_prog_gcc=no
|
1637 |
|
|
fi
|
1638 |
|
|
fi
|
1639 |
|
|
|
1640 |
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
1641 |
|
|
|
1642 |
|
|
if test $ac_cv_prog_gcc = yes; then
|
1643 |
|
|
GCC=yes
|
1644 |
|
|
else
|
1645 |
|
|
GCC=
|
1646 |
|
|
fi
|
1647 |
|
|
|
1648 |
|
|
ac_test_CFLAGS="${CFLAGS+set}"
|
1649 |
|
|
ac_save_CFLAGS="$CFLAGS"
|
1650 |
|
|
CFLAGS=
|
1651 |
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
1652 |
889 |
ivang |
echo "configure:1653: checking whether ${CC-cc} accepts -g" >&5
|
1653 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
1654 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1655 |
|
|
else
|
1656 |
|
|
echo 'void f(){}' > conftest.c
|
1657 |
|
|
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
1658 |
|
|
ac_cv_prog_cc_g=yes
|
1659 |
|
|
else
|
1660 |
|
|
ac_cv_prog_cc_g=no
|
1661 |
|
|
fi
|
1662 |
|
|
rm -f conftest*
|
1663 |
|
|
|
1664 |
|
|
fi
|
1665 |
|
|
|
1666 |
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
1667 |
|
|
if test "$ac_test_CFLAGS" = set; then
|
1668 |
|
|
CFLAGS="$ac_save_CFLAGS"
|
1669 |
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
1670 |
|
|
if test "$GCC" = yes; then
|
1671 |
|
|
CFLAGS="-g -O2"
|
1672 |
|
|
else
|
1673 |
|
|
CFLAGS="-g"
|
1674 |
|
|
fi
|
1675 |
|
|
else
|
1676 |
|
|
if test "$GCC" = yes; then
|
1677 |
|
|
CFLAGS="-O2"
|
1678 |
|
|
else
|
1679 |
|
|
CFLAGS=
|
1680 |
|
|
fi
|
1681 |
|
|
fi
|
1682 |
|
|
|
1683 |
|
|
if test $ac_cv_prog_gcc = yes; then
|
1684 |
|
|
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
1685 |
889 |
ivang |
echo "configure:1686: checking whether ${CC-cc} needs -traditional" >&5
|
1686 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
1687 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1688 |
|
|
else
|
1689 |
|
|
ac_pattern="Autoconf.*'x'"
|
1690 |
|
|
cat > conftest.$ac_ext <
|
1691 |
889 |
ivang |
#line 1692 "configure"
|
1692 |
224 |
markom |
#include "confdefs.h"
|
1693 |
|
|
#include
|
1694 |
|
|
Autoconf TIOCGETP
|
1695 |
|
|
EOF
|
1696 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1697 |
|
|
egrep "$ac_pattern" >/dev/null 2>&1; then
|
1698 |
|
|
rm -rf conftest*
|
1699 |
|
|
ac_cv_prog_gcc_traditional=yes
|
1700 |
|
|
else
|
1701 |
|
|
rm -rf conftest*
|
1702 |
|
|
ac_cv_prog_gcc_traditional=no
|
1703 |
|
|
fi
|
1704 |
|
|
rm -f conftest*
|
1705 |
|
|
|
1706 |
|
|
|
1707 |
|
|
if test $ac_cv_prog_gcc_traditional = no; then
|
1708 |
|
|
cat > conftest.$ac_ext <
|
1709 |
889 |
ivang |
#line 1710 "configure"
|
1710 |
224 |
markom |
#include "confdefs.h"
|
1711 |
|
|
#include
|
1712 |
|
|
Autoconf TCGETA
|
1713 |
|
|
EOF
|
1714 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1715 |
|
|
egrep "$ac_pattern" >/dev/null 2>&1; then
|
1716 |
|
|
rm -rf conftest*
|
1717 |
|
|
ac_cv_prog_gcc_traditional=yes
|
1718 |
|
|
fi
|
1719 |
|
|
rm -f conftest*
|
1720 |
|
|
|
1721 |
|
|
fi
|
1722 |
|
|
fi
|
1723 |
|
|
|
1724 |
|
|
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
|
1725 |
|
|
if test $ac_cv_prog_gcc_traditional = yes; then
|
1726 |
|
|
CC="$CC -traditional"
|
1727 |
|
|
fi
|
1728 |
|
|
fi
|
1729 |
|
|
|
1730 |
568 |
markom |
CFLAGS="-Wall -g"
|
1731 |
224 |
markom |
|
1732 |
|
|
COMPILE_OR1K=unknown
|
1733 |
308 |
markom |
|
1734 |
493 |
markom |
|
1735 |
308 |
markom |
TESTS_ENV=
|
1736 |
385 |
markom |
|
1737 |
479 |
markom |
OR1K_SRCDIR="./${top_srcdir}"
|
1738 |
229 |
erez |
case $target in
|
1739 |
224 |
markom |
or1k*|or32*)
|
1740 |
381 |
markom |
CFLAGS="$CFLAGS -nostdlib -mhard-div"
|
1741 |
224 |
markom |
COMPILE=or1k
|
1742 |
308 |
markom |
TESTS_ENV="$SIM"
|
1743 |
224 |
markom |
;;
|
1744 |
|
|
esac
|
1745 |
|
|
|
1746 |
|
|
|
1747 |
|
|
if test x$COMPILE = xor1k; then
|
1748 |
|
|
OR1K_EXCEPT_TRUE=
|
1749 |
|
|
OR1K_EXCEPT_FALSE='#'
|
1750 |
|
|
else
|
1751 |
|
|
OR1K_EXCEPT_TRUE='#'
|
1752 |
|
|
OR1K_EXCEPT_FALSE=
|
1753 |
|
|
fi
|
1754 |
|
|
|
1755 |
|
|
|
1756 |
493 |
markom |
echo $ac_n "checking whether to enable optimizations""... $ac_c" 1>&6
|
1757 |
889 |
ivang |
echo "configure:1758: checking whether to enable optimizations" >&5
|
1758 |
493 |
markom |
# Check whether --enable-opt or --disable-opt was given.
|
1759 |
|
|
if test "${enable_opt+set}" = set; then
|
1760 |
|
|
enableval="$enable_opt"
|
1761 |
|
|
|
1762 |
|
|
case "$enableval" in
|
1763 |
|
|
yes)
|
1764 |
|
|
CFLAGS="$CFLAGS -O"
|
1765 |
|
|
;;
|
1766 |
|
|
*)
|
1767 |
|
|
CFLAGS="$CFLAGS -O$enableval"
|
1768 |
|
|
;;
|
1769 |
|
|
esac
|
1770 |
410 |
simons |
|
1771 |
493 |
markom |
fi
|
1772 |
|
|
|
1773 |
|
|
echo "$ac_t""${enable_opt-default}" 1>&6
|
1774 |
|
|
|
1775 |
|
|
case "$enable_debugging" in
|
1776 |
|
|
yes) echo $ac_n "checking for malloc in -lefence""... $ac_c" 1>&6
|
1777 |
889 |
ivang |
echo "configure:1778: checking for malloc in -lefence" >&5
|
1778 |
493 |
markom |
ac_lib_var=`echo efence'_'malloc | sed 'y%./+-%__p_%'`
|
1779 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
1780 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1781 |
|
|
else
|
1782 |
|
|
ac_save_LIBS="$LIBS"
|
1783 |
|
|
LIBS="-lefence $LIBS"
|
1784 |
|
|
cat > conftest.$ac_ext <
|
1785 |
889 |
ivang |
#line 1786 "configure"
|
1786 |
493 |
markom |
#include "confdefs.h"
|
1787 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
1788 |
|
|
/* We use char because int might match the return type of a gcc2
|
1789 |
|
|
builtin and then its argument prototype would still apply. */
|
1790 |
|
|
char malloc();
|
1791 |
|
|
|
1792 |
|
|
int main() {
|
1793 |
|
|
malloc()
|
1794 |
|
|
; return 0; }
|
1795 |
|
|
EOF
|
1796 |
889 |
ivang |
if { (eval echo configure:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1797 |
493 |
markom |
rm -rf conftest*
|
1798 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
1799 |
|
|
else
|
1800 |
|
|
echo "configure: failed program was:" >&5
|
1801 |
|
|
cat conftest.$ac_ext >&5
|
1802 |
|
|
rm -rf conftest*
|
1803 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
1804 |
|
|
fi
|
1805 |
|
|
rm -f conftest*
|
1806 |
|
|
LIBS="$ac_save_LIBS"
|
1807 |
|
|
|
1808 |
|
|
fi
|
1809 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
1810 |
|
|
echo "$ac_t""yes" 1>&6
|
1811 |
|
|
ac_tr_lib=HAVE_LIB`echo efence | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
1812 |
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
1813 |
|
|
cat >> confdefs.h <
|
1814 |
|
|
#define $ac_tr_lib 1
|
1815 |
|
|
EOF
|
1816 |
|
|
|
1817 |
|
|
LIBS="-lefence $LIBS"
|
1818 |
|
|
|
1819 |
|
|
else
|
1820 |
|
|
echo "$ac_t""no" 1>&6
|
1821 |
|
|
fi
|
1822 |
|
|
;;
|
1823 |
|
|
esac
|
1824 |
|
|
|
1825 |
|
|
|
1826 |
224 |
markom |
INCLUDES="-I\${top_srcdir}/support"
|
1827 |
|
|
|
1828 |
|
|
echo $ac_n "checking for working const""... $ac_c" 1>&6
|
1829 |
889 |
ivang |
echo "configure:1830: checking for working const" >&5
|
1830 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
1831 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1832 |
|
|
else
|
1833 |
|
|
cat > conftest.$ac_ext <
|
1834 |
889 |
ivang |
#line 1835 "configure"
|
1835 |
224 |
markom |
#include "confdefs.h"
|
1836 |
|
|
|
1837 |
|
|
int main() {
|
1838 |
|
|
|
1839 |
|
|
/* Ultrix mips cc rejects this. */
|
1840 |
|
|
typedef int charset[2]; const charset x;
|
1841 |
|
|
/* SunOS 4.1.1 cc rejects this. */
|
1842 |
|
|
char const *const *ccp;
|
1843 |
|
|
char **p;
|
1844 |
|
|
/* NEC SVR4.0.2 mips cc rejects this. */
|
1845 |
|
|
struct point {int x, y;};
|
1846 |
|
|
static struct point const zero = {0,0};
|
1847 |
|
|
/* AIX XL C 1.02.0.0 rejects this.
|
1848 |
|
|
It does not let you subtract one const X* pointer from another in an arm
|
1849 |
|
|
of an if-expression whose if-part is not a constant expression */
|
1850 |
|
|
const char *g = "string";
|
1851 |
|
|
ccp = &g + (g ? g-g : 0);
|
1852 |
|
|
/* HPUX 7.0 cc rejects these. */
|
1853 |
|
|
++ccp;
|
1854 |
|
|
p = (char**) ccp;
|
1855 |
|
|
ccp = (char const *const *) p;
|
1856 |
|
|
{ /* SCO 3.2v4 cc rejects this. */
|
1857 |
|
|
char *t;
|
1858 |
|
|
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
1859 |
|
|
|
1860 |
|
|
*t++ = 0;
|
1861 |
|
|
}
|
1862 |
|
|
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
1863 |
|
|
int x[] = {25, 17};
|
1864 |
|
|
const int *foo = &x[0];
|
1865 |
|
|
++foo;
|
1866 |
|
|
}
|
1867 |
|
|
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
1868 |
|
|
typedef const int *iptr;
|
1869 |
|
|
iptr p = 0;
|
1870 |
|
|
++p;
|
1871 |
|
|
}
|
1872 |
|
|
{ /* AIX XL C 1.02.0.0 rejects this saying
|
1873 |
|
|
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
1874 |
|
|
struct s { int j; const int *ap[3]; };
|
1875 |
|
|
struct s *b; b->j = 5;
|
1876 |
|
|
}
|
1877 |
|
|
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
1878 |
|
|
const int foo = 10;
|
1879 |
|
|
}
|
1880 |
|
|
|
1881 |
|
|
; return 0; }
|
1882 |
|
|
EOF
|
1883 |
889 |
ivang |
if { (eval echo configure:1884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1884 |
224 |
markom |
rm -rf conftest*
|
1885 |
|
|
ac_cv_c_const=yes
|
1886 |
|
|
else
|
1887 |
|
|
echo "configure: failed program was:" >&5
|
1888 |
|
|
cat conftest.$ac_ext >&5
|
1889 |
|
|
rm -rf conftest*
|
1890 |
|
|
ac_cv_c_const=no
|
1891 |
|
|
fi
|
1892 |
|
|
rm -f conftest*
|
1893 |
|
|
fi
|
1894 |
|
|
|
1895 |
|
|
echo "$ac_t""$ac_cv_c_const" 1>&6
|
1896 |
|
|
if test $ac_cv_c_const = no; then
|
1897 |
|
|
cat >> confdefs.h <<\EOF
|
1898 |
|
|
#define const
|
1899 |
|
|
EOF
|
1900 |
|
|
|
1901 |
|
|
fi
|
1902 |
|
|
|
1903 |
|
|
echo $ac_n "checking for inline""... $ac_c" 1>&6
|
1904 |
889 |
ivang |
echo "configure:1905: checking for inline" >&5
|
1905 |
224 |
markom |
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
1906 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1907 |
|
|
else
|
1908 |
|
|
ac_cv_c_inline=no
|
1909 |
|
|
for ac_kw in inline __inline__ __inline; do
|
1910 |
|
|
cat > conftest.$ac_ext <
|
1911 |
889 |
ivang |
#line 1912 "configure"
|
1912 |
224 |
markom |
#include "confdefs.h"
|
1913 |
|
|
|
1914 |
|
|
int main() {
|
1915 |
|
|
} $ac_kw foo() {
|
1916 |
|
|
; return 0; }
|
1917 |
|
|
EOF
|
1918 |
889 |
ivang |
if { (eval echo configure:1919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1919 |
224 |
markom |
rm -rf conftest*
|
1920 |
|
|
ac_cv_c_inline=$ac_kw; break
|
1921 |
|
|
else
|
1922 |
|
|
echo "configure: failed program was:" >&5
|
1923 |
|
|
cat conftest.$ac_ext >&5
|
1924 |
|
|
fi
|
1925 |
|
|
rm -f conftest*
|
1926 |
|
|
done
|
1927 |
|
|
|
1928 |
|
|
fi
|
1929 |
|
|
|
1930 |
|
|
echo "$ac_t""$ac_cv_c_inline" 1>&6
|
1931 |
|
|
case "$ac_cv_c_inline" in
|
1932 |
|
|
inline | yes) ;;
|
1933 |
|
|
no) cat >> confdefs.h <<\EOF
|
1934 |
|
|
#define inline
|
1935 |
|
|
EOF
|
1936 |
|
|
;;
|
1937 |
|
|
*) cat >> confdefs.h <
|
1938 |
|
|
#define inline $ac_cv_c_inline
|
1939 |
|
|
EOF
|
1940 |
|
|
;;
|
1941 |
|
|
esac
|
1942 |
|
|
|
1943 |
|
|
|
1944 |
|
|
trap '' 1 2 15
|
1945 |
258 |
erez |
cat > confcache <<\EOF
|
1946 |
|
|
# This file is a shell script that caches the results of configure
|
1947 |
|
|
# tests run on this system so they can be shared between configure
|
1948 |
|
|
# scripts and configure runs. It is not useful on other systems.
|
1949 |
|
|
# If it contains results you don't want to keep, you may remove or edit it.
|
1950 |
|
|
#
|
1951 |
|
|
# By default, configure uses ./config.cache as the cache file,
|
1952 |
|
|
# creating it if it does not exist already. You can give configure
|
1953 |
|
|
# the --cache-file=FILE option to use a different cache file; that is
|
1954 |
|
|
# what configure does when it calls configure scripts in
|
1955 |
|
|
# subdirectories, so they share the cache.
|
1956 |
|
|
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
1957 |
|
|
# config.status only pays attention to the cache file if you give it the
|
1958 |
|
|
# --recheck option to rerun configure.
|
1959 |
|
|
#
|
1960 |
|
|
EOF
|
1961 |
|
|
# The following way of writing the cache mishandles newlines in values,
|
1962 |
|
|
# but we know of no workaround that is simple, portable, and efficient.
|
1963 |
|
|
# So, don't put newlines in cache variables' values.
|
1964 |
|
|
# Ultrix sh set writes to stderr and can't be redirected directly,
|
1965 |
|
|
# and sets the high bit in the cache file unless we assign to the vars.
|
1966 |
|
|
(set) 2>&1 |
|
1967 |
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
1968 |
|
|
*ac_space=\ *)
|
1969 |
|
|
# `set' does not quote correctly, so add quotes (double-quote substitution
|
1970 |
|
|
# turns \\\\ into \\, and sed turns \\ into \).
|
1971 |
|
|
sed -n \
|
1972 |
|
|
-e "s/'/'\\\\''/g" \
|
1973 |
|
|
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
1974 |
|
|
;;
|
1975 |
|
|
*)
|
1976 |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
1977 |
|
|
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
1978 |
|
|
;;
|
1979 |
|
|
esac >> confcache
|
1980 |
|
|
if cmp -s $cache_file confcache; then
|
1981 |
|
|
:
|
1982 |
|
|
else
|
1983 |
|
|
if test -w $cache_file; then
|
1984 |
|
|
echo "updating cache $cache_file"
|
1985 |
|
|
cat confcache > $cache_file
|
1986 |
|
|
else
|
1987 |
|
|
echo "not updating unwritable cache $cache_file"
|
1988 |
|
|
fi
|
1989 |
|
|
fi
|
1990 |
|
|
rm -f confcache
|
1991 |
224 |
markom |
|
1992 |
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
1993 |
|
|
|
1994 |
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
1995 |
|
|
# Let make expand exec_prefix.
|
1996 |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
1997 |
|
|
|
1998 |
|
|
# Any assignment to VPATH causes Sun make to only execute
|
1999 |
|
|
# the first set of double-colon rules, so remove it if not needed.
|
2000 |
|
|
# If there is a colon in the path, we need to keep it.
|
2001 |
|
|
if test "x$srcdir" = x.; then
|
2002 |
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
2003 |
|
|
fi
|
2004 |
|
|
|
2005 |
|
|
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
2006 |
|
|
|
2007 |
|
|
# Transform confdefs.h into DEFS.
|
2008 |
|
|
# Protect against shell expansion while executing Makefile rules.
|
2009 |
|
|
# Protect against Makefile macro expansion.
|
2010 |
|
|
cat > conftest.defs <<\EOF
|
2011 |
|
|
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
|
2012 |
|
|
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
|
2013 |
|
|
s%\[%\\&%g
|
2014 |
|
|
s%\]%\\&%g
|
2015 |
|
|
s%\$%$$%g
|
2016 |
|
|
EOF
|
2017 |
|
|
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
|
2018 |
|
|
rm -f conftest.defs
|
2019 |
|
|
|
2020 |
|
|
|
2021 |
|
|
# Without the "./", some shells look in PATH for config.status.
|
2022 |
|
|
: ${CONFIG_STATUS=./config.status}
|
2023 |
|
|
|
2024 |
|
|
echo creating $CONFIG_STATUS
|
2025 |
|
|
rm -f $CONFIG_STATUS
|
2026 |
|
|
cat > $CONFIG_STATUS <
|
2027 |
|
|
#! /bin/sh
|
2028 |
|
|
# Generated automatically by configure.
|
2029 |
|
|
# Run this file to recreate the current configuration.
|
2030 |
|
|
# This directory was configured as follows,
|
2031 |
|
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
2032 |
|
|
#
|
2033 |
|
|
# $0 $ac_configure_args
|
2034 |
|
|
#
|
2035 |
|
|
# Compiler output produced by configure, useful for debugging
|
2036 |
|
|
# configure, is in ./config.log if it exists.
|
2037 |
|
|
|
2038 |
|
|
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
2039 |
|
|
for ac_option
|
2040 |
|
|
do
|
2041 |
|
|
case "\$ac_option" in
|
2042 |
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
2043 |
|
|
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
2044 |
|
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
2045 |
|
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
2046 |
|
|
echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
2047 |
|
|
exit 0 ;;
|
2048 |
|
|
-help | --help | --hel | --he | --h)
|
2049 |
|
|
echo "\$ac_cs_usage"; exit 0 ;;
|
2050 |
|
|
*) echo "\$ac_cs_usage"; exit 1 ;;
|
2051 |
|
|
esac
|
2052 |
|
|
done
|
2053 |
|
|
|
2054 |
|
|
ac_given_srcdir=$srcdir
|
2055 |
|
|
ac_given_INSTALL="$INSTALL"
|
2056 |
|
|
|
2057 |
|
|
trap 'rm -fr `echo "Makefile support/Makefile uos/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
2058 |
|
|
EOF
|
2059 |
|
|
cat >> $CONFIG_STATUS <
|
2060 |
|
|
|
2061 |
|
|
# Protect against being on the right side of a sed subst in config.status.
|
2062 |
|
|
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
2063 |
|
|
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
2064 |
|
|
$ac_vpsub
|
2065 |
|
|
$extrasub
|
2066 |
|
|
s%@SHELL@%$SHELL%g
|
2067 |
|
|
s%@CFLAGS@%$CFLAGS%g
|
2068 |
|
|
s%@CPPFLAGS@%$CPPFLAGS%g
|
2069 |
|
|
s%@CXXFLAGS@%$CXXFLAGS%g
|
2070 |
|
|
s%@FFLAGS@%$FFLAGS%g
|
2071 |
|
|
s%@DEFS@%$DEFS%g
|
2072 |
|
|
s%@LDFLAGS@%$LDFLAGS%g
|
2073 |
|
|
s%@LIBS@%$LIBS%g
|
2074 |
|
|
s%@exec_prefix@%$exec_prefix%g
|
2075 |
|
|
s%@prefix@%$prefix%g
|
2076 |
|
|
s%@program_transform_name@%$program_transform_name%g
|
2077 |
|
|
s%@bindir@%$bindir%g
|
2078 |
|
|
s%@sbindir@%$sbindir%g
|
2079 |
|
|
s%@libexecdir@%$libexecdir%g
|
2080 |
|
|
s%@datadir@%$datadir%g
|
2081 |
|
|
s%@sysconfdir@%$sysconfdir%g
|
2082 |
|
|
s%@sharedstatedir@%$sharedstatedir%g
|
2083 |
|
|
s%@localstatedir@%$localstatedir%g
|
2084 |
|
|
s%@libdir@%$libdir%g
|
2085 |
|
|
s%@includedir@%$includedir%g
|
2086 |
|
|
s%@oldincludedir@%$oldincludedir%g
|
2087 |
|
|
s%@infodir@%$infodir%g
|
2088 |
|
|
s%@mandir@%$mandir%g
|
2089 |
|
|
s%@host@%$host%g
|
2090 |
|
|
s%@host_alias@%$host_alias%g
|
2091 |
|
|
s%@host_cpu@%$host_cpu%g
|
2092 |
|
|
s%@host_vendor@%$host_vendor%g
|
2093 |
|
|
s%@host_os@%$host_os%g
|
2094 |
|
|
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
2095 |
|
|
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
2096 |
|
|
s%@INSTALL_DATA@%$INSTALL_DATA%g
|
2097 |
|
|
s%@PACKAGE@%$PACKAGE%g
|
2098 |
|
|
s%@VERSION@%$VERSION%g
|
2099 |
|
|
s%@ACLOCAL@%$ACLOCAL%g
|
2100 |
|
|
s%@AUTOCONF@%$AUTOCONF%g
|
2101 |
|
|
s%@AUTOMAKE@%$AUTOMAKE%g
|
2102 |
|
|
s%@AUTOHEADER@%$AUTOHEADER%g
|
2103 |
|
|
s%@MAKEINFO@%$MAKEINFO%g
|
2104 |
|
|
s%@SET_MAKE@%$SET_MAKE%g
|
2105 |
|
|
s%@build@%$build%g
|
2106 |
|
|
s%@build_alias@%$build_alias%g
|
2107 |
|
|
s%@build_cpu@%$build_cpu%g
|
2108 |
|
|
s%@build_vendor@%$build_vendor%g
|
2109 |
|
|
s%@build_os@%$build_os%g
|
2110 |
|
|
s%@CC@%$CC%g
|
2111 |
|
|
s%@RANLIB@%$RANLIB%g
|
2112 |
|
|
s%@LD@%$LD%g
|
2113 |
308 |
markom |
s%@SIM@%$SIM%g
|
2114 |
224 |
markom |
s%@CPP@%$CPP%g
|
2115 |
|
|
s%@MAKE_SHELL@%$MAKE_SHELL%g
|
2116 |
308 |
markom |
s%@TESTS_ENV@%$TESTS_ENV%g
|
2117 |
479 |
markom |
s%@OR1K_SRCDIR@%$OR1K_SRCDIR%g
|
2118 |
224 |
markom |
s%@OR1K_EXCEPT_TRUE@%$OR1K_EXCEPT_TRUE%g
|
2119 |
|
|
s%@OR1K_EXCEPT_FALSE@%$OR1K_EXCEPT_FALSE%g
|
2120 |
|
|
s%@INCLUDES@%$INCLUDES%g
|
2121 |
|
|
|
2122 |
|
|
CEOF
|
2123 |
|
|
EOF
|
2124 |
|
|
|
2125 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
2126 |
|
|
|
2127 |
|
|
# Split the substitutions into bite-sized pieces for seds with
|
2128 |
|
|
# small command number limits, like on Digital OSF/1 and HP-UX.
|
2129 |
|
|
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
2130 |
|
|
ac_file=1 # Number of current file.
|
2131 |
|
|
ac_beg=1 # First line for current file.
|
2132 |
|
|
ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
2133 |
|
|
ac_more_lines=:
|
2134 |
|
|
ac_sed_cmds=""
|
2135 |
|
|
while $ac_more_lines; do
|
2136 |
|
|
if test $ac_beg -gt 1; then
|
2137 |
|
|
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
2138 |
|
|
else
|
2139 |
|
|
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
2140 |
|
|
fi
|
2141 |
|
|
if test ! -s conftest.s$ac_file; then
|
2142 |
|
|
ac_more_lines=false
|
2143 |
|
|
rm -f conftest.s$ac_file
|
2144 |
|
|
else
|
2145 |
|
|
if test -z "$ac_sed_cmds"; then
|
2146 |
|
|
ac_sed_cmds="sed -f conftest.s$ac_file"
|
2147 |
|
|
else
|
2148 |
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
2149 |
|
|
fi
|
2150 |
|
|
ac_file=`expr $ac_file + 1`
|
2151 |
|
|
ac_beg=$ac_end
|
2152 |
|
|
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
2153 |
|
|
fi
|
2154 |
|
|
done
|
2155 |
|
|
if test -z "$ac_sed_cmds"; then
|
2156 |
|
|
ac_sed_cmds=cat
|
2157 |
|
|
fi
|
2158 |
|
|
EOF
|
2159 |
|
|
|
2160 |
|
|
cat >> $CONFIG_STATUS <
|
2161 |
|
|
|
2162 |
|
|
CONFIG_FILES=\${CONFIG_FILES-"Makefile support/Makefile uos/Makefile"}
|
2163 |
|
|
EOF
|
2164 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
2165 |
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
2166 |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
2167 |
|
|
case "$ac_file" in
|
2168 |
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
2169 |
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
2170 |
|
|
*) ac_file_in="${ac_file}.in" ;;
|
2171 |
|
|
esac
|
2172 |
|
|
|
2173 |
|
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
2174 |
|
|
|
2175 |
|
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
2176 |
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
2177 |
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
2178 |
|
|
# The file is in a subdirectory.
|
2179 |
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
2180 |
|
|
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
2181 |
|
|
# A "../" for each directory in $ac_dir_suffix.
|
2182 |
|
|
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
2183 |
|
|
else
|
2184 |
|
|
ac_dir_suffix= ac_dots=
|
2185 |
|
|
fi
|
2186 |
|
|
|
2187 |
|
|
case "$ac_given_srcdir" in
|
2188 |
|
|
.) srcdir=.
|
2189 |
|
|
if test -z "$ac_dots"; then top_srcdir=.
|
2190 |
|
|
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
2191 |
|
|
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
2192 |
|
|
*) # Relative path.
|
2193 |
|
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
2194 |
|
|
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
2195 |
|
|
esac
|
2196 |
|
|
|
2197 |
|
|
case "$ac_given_INSTALL" in
|
2198 |
|
|
[/$]*) INSTALL="$ac_given_INSTALL" ;;
|
2199 |
|
|
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
2200 |
|
|
esac
|
2201 |
|
|
|
2202 |
|
|
echo creating "$ac_file"
|
2203 |
|
|
rm -f "$ac_file"
|
2204 |
|
|
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
2205 |
|
|
case "$ac_file" in
|
2206 |
|
|
*Makefile*) ac_comsub="1i\\
|
2207 |
|
|
# $configure_input" ;;
|
2208 |
|
|
*) ac_comsub= ;;
|
2209 |
|
|
esac
|
2210 |
|
|
|
2211 |
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
2212 |
|
|
sed -e "$ac_comsub
|
2213 |
|
|
s%@configure_input@%$configure_input%g
|
2214 |
|
|
s%@srcdir@%$srcdir%g
|
2215 |
|
|
s%@top_srcdir@%$top_srcdir%g
|
2216 |
|
|
s%@INSTALL@%$INSTALL%g
|
2217 |
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
2218 |
|
|
fi; done
|
2219 |
|
|
rm -f conftest.s*
|
2220 |
|
|
|
2221 |
|
|
EOF
|
2222 |
|
|
cat >> $CONFIG_STATUS <
|
2223 |
|
|
|
2224 |
|
|
EOF
|
2225 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
2226 |
|
|
|
2227 |
|
|
exit 0
|
2228 |
|
|
EOF
|
2229 |
|
|
chmod +x $CONFIG_STATUS
|
2230 |
|
|
rm -fr confdefs* $ac_clean_files
|
2231 |
|
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
2232 |
|
|
|