1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by Autoconf 2.50.
|
---|
4 | #
|
---|
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
|
---|
6 | # Free Software Foundation, Inc.
|
---|
7 | # This configure script is free software; the Free Software Foundation
|
---|
8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
9 |
|
---|
10 | # Be Bourne compatible
|
---|
11 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
12 | emulate sh
|
---|
13 | NULLCMD=:
|
---|
14 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
15 | set -o posix
|
---|
16 | fi
|
---|
17 |
|
---|
18 | # Name of the executable.
|
---|
19 | as_me=`echo "$0" |sed 's,.*[\\/],,'`
|
---|
20 |
|
---|
21 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
22 | as_expr=expr
|
---|
23 | else
|
---|
24 | as_expr=false
|
---|
25 | fi
|
---|
26 |
|
---|
27 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
28 | echo >conf$$.file
|
---|
29 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
30 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
31 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
32 | if test -f conf$$.exe; then
|
---|
33 | # Don't use ln at all; we don't have any links
|
---|
34 | as_ln_s='cp -p'
|
---|
35 | else
|
---|
36 | as_ln_s='ln -s'
|
---|
37 | fi
|
---|
38 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
39 | as_ln_s=ln
|
---|
40 | else
|
---|
41 | as_ln_s='cp -p'
|
---|
42 | fi
|
---|
43 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
44 |
|
---|
45 | as_executable_p="test -f"
|
---|
46 |
|
---|
47 | # Support unset when possible.
|
---|
48 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
|
---|
49 | as_unset=unset
|
---|
50 | else
|
---|
51 | as_unset=false
|
---|
52 | fi
|
---|
53 |
|
---|
54 | # NLS nuisances.
|
---|
55 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
|
---|
56 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
|
---|
57 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
|
---|
58 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
|
---|
59 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
|
---|
60 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
|
---|
61 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
|
---|
62 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
|
---|
63 |
|
---|
64 | # IFS
|
---|
65 | # We need space, tab and new line, in precisely that order.
|
---|
66 | as_nl='
|
---|
67 | '
|
---|
68 | IFS=" $as_nl"
|
---|
69 |
|
---|
70 | # CDPATH.
|
---|
71 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
|
---|
72 |
|
---|
73 | # Name of the host.
|
---|
74 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
75 | # so uname gets run too.
|
---|
76 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
77 |
|
---|
78 | exec 6>&1
|
---|
79 |
|
---|
80 | #
|
---|
81 | # Initializations.
|
---|
82 | #
|
---|
83 | ac_default_prefix=/usr/local
|
---|
84 | cross_compiling=no
|
---|
85 | subdirs=
|
---|
86 | MFLAGS= MAKEFLAGS=
|
---|
87 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
88 |
|
---|
89 | # Maximum number of lines to put in a shell here document.
|
---|
90 | # This variable seems obsolete. It should probably be removed, and
|
---|
91 | # only ac_max_sed_lines should be used.
|
---|
92 | : ${ac_max_here_lines=38}
|
---|
93 |
|
---|
94 | # Avoid depending upon Character Ranges.
|
---|
95 | ac_cr_az='abcdefghijklmnopqrstuvwxyz'
|
---|
96 | ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
97 | ac_cr_09='0123456789'
|
---|
98 | ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
|
---|
99 |
|
---|
100 | # Sed expression to map a string onto a valid sh and CPP variable names.
|
---|
101 | ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
|
---|
102 | ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
|
---|
103 |
|
---|
104 | ac_unique_file="src/java/org/greenstone/gsdl3/Library1.java"
|
---|
105 | # Factoring default headers for most tests.
|
---|
106 | ac_includes_default="\
|
---|
107 | #include <stdio.h>
|
---|
108 | #include <sys/types.h>
|
---|
109 | #include <sys/stat.h>
|
---|
110 | #if STDC_HEADERS
|
---|
111 | # include <stdlib.h>
|
---|
112 | # include <stddef.h>
|
---|
113 | #else
|
---|
114 | # if HAVE_STDLIB_H
|
---|
115 | # include <stdlib.h>
|
---|
116 | # endif
|
---|
117 | #endif
|
---|
118 | #if HAVE_STRING_H
|
---|
119 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
120 | # include <memory.h>
|
---|
121 | # endif
|
---|
122 | # include <string.h>
|
---|
123 | #else
|
---|
124 | # if HAVE_STRINGS_H
|
---|
125 | # include <strings.h>
|
---|
126 | # endif
|
---|
127 | #endif
|
---|
128 | #if HAVE_INTTYPES_H
|
---|
129 | # include <inttypes.h>
|
---|
130 | #endif
|
---|
131 | #if HAVE_UNISTD_H
|
---|
132 | # include <unistd.h>
|
---|
133 | #endif"
|
---|
134 |
|
---|
135 | ac_subdirs_all="$ac_subdirs_all packages"
|
---|
136 |
|
---|
137 | # Initialize some variables set by options.
|
---|
138 | ac_init_help=
|
---|
139 | ac_init_version=false
|
---|
140 | # The variables have the same names as the options, with
|
---|
141 | # dashes changed to underlines.
|
---|
142 | cache_file=/dev/null
|
---|
143 | exec_prefix=NONE
|
---|
144 | no_create=
|
---|
145 | no_recursion=
|
---|
146 | prefix=NONE
|
---|
147 | program_prefix=NONE
|
---|
148 | program_suffix=NONE
|
---|
149 | program_transform_name=s,x,x,
|
---|
150 | silent=
|
---|
151 | site=
|
---|
152 | srcdir=
|
---|
153 | verbose=
|
---|
154 | x_includes=NONE
|
---|
155 | x_libraries=NONE
|
---|
156 |
|
---|
157 | # Installation directory options.
|
---|
158 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
159 | # and all the variables that are supposed to be based on exec_prefix
|
---|
160 | # by default will actually change.
|
---|
161 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
162 | bindir='${exec_prefix}/bin'
|
---|
163 | sbindir='${exec_prefix}/sbin'
|
---|
164 | libexecdir='${exec_prefix}/libexec'
|
---|
165 | datadir='${prefix}/share'
|
---|
166 | sysconfdir='${prefix}/etc'
|
---|
167 | sharedstatedir='${prefix}/com'
|
---|
168 | localstatedir='${prefix}/var'
|
---|
169 | libdir='${exec_prefix}/lib'
|
---|
170 | includedir='${prefix}/include'
|
---|
171 | oldincludedir='/usr/include'
|
---|
172 | infodir='${prefix}/info'
|
---|
173 | mandir='${prefix}/man'
|
---|
174 |
|
---|
175 | # Identity of this package.
|
---|
176 | PACKAGE_NAME=
|
---|
177 | PACKAGE_TARNAME=
|
---|
178 | PACKAGE_VERSION=
|
---|
179 | PACKAGE_STRING=
|
---|
180 | PACKAGE_BUGREPORT=
|
---|
181 |
|
---|
182 | ac_prev=
|
---|
183 | for ac_option
|
---|
184 | do
|
---|
185 | # If the previous option needs an argument, assign it.
|
---|
186 | if test -n "$ac_prev"; then
|
---|
187 | eval "$ac_prev=\$ac_option"
|
---|
188 | ac_prev=
|
---|
189 | continue
|
---|
190 | fi
|
---|
191 |
|
---|
192 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
193 |
|
---|
194 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
195 |
|
---|
196 | case $ac_option in
|
---|
197 |
|
---|
198 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
199 | ac_prev=bindir ;;
|
---|
200 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
201 | bindir=$ac_optarg ;;
|
---|
202 |
|
---|
203 | -build | --build | --buil | --bui | --bu)
|
---|
204 | ac_prev=build_alias ;;
|
---|
205 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
206 | build_alias=$ac_optarg ;;
|
---|
207 |
|
---|
208 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
209 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
210 | ac_prev=cache_file ;;
|
---|
211 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
212 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
213 | cache_file=$ac_optarg ;;
|
---|
214 |
|
---|
215 | --config-cache | -C)
|
---|
216 | cache_file=config.cache ;;
|
---|
217 |
|
---|
218 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
219 | ac_prev=datadir ;;
|
---|
220 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
221 | | --da=*)
|
---|
222 | datadir=$ac_optarg ;;
|
---|
223 |
|
---|
224 | -disable-* | --disable-*)
|
---|
225 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
226 | # Reject names that are not valid shell variable names.
|
---|
227 | expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
|
---|
228 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
229 | { (exit 1); exit 1; }; }
|
---|
230 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
231 | eval "enable_$ac_feature=no" ;;
|
---|
232 |
|
---|
233 | -enable-* | --enable-*)
|
---|
234 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
235 | # Reject names that are not valid shell variable names.
|
---|
236 | expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
|
---|
237 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
238 | { (exit 1); exit 1; }; }
|
---|
239 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
240 | case $ac_option in
|
---|
241 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
242 | *) ac_optarg=yes ;;
|
---|
243 | esac
|
---|
244 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
245 |
|
---|
246 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
247 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
248 | | --exec | --exe | --ex)
|
---|
249 | ac_prev=exec_prefix ;;
|
---|
250 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
251 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
252 | | --exec=* | --exe=* | --ex=*)
|
---|
253 | exec_prefix=$ac_optarg ;;
|
---|
254 |
|
---|
255 | -gas | --gas | --ga | --g)
|
---|
256 | # Obsolete; use --with-gas.
|
---|
257 | with_gas=yes ;;
|
---|
258 |
|
---|
259 | -help | --help | --hel | --he | -h)
|
---|
260 | ac_init_help=long ;;
|
---|
261 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
262 | ac_init_help=recursive ;;
|
---|
263 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
264 | ac_init_help=short ;;
|
---|
265 |
|
---|
266 | -host | --host | --hos | --ho)
|
---|
267 | ac_prev=host_alias ;;
|
---|
268 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
269 | host_alias=$ac_optarg ;;
|
---|
270 |
|
---|
271 | -includedir | --includedir | --includedi | --included | --include \
|
---|
272 | | --includ | --inclu | --incl | --inc)
|
---|
273 | ac_prev=includedir ;;
|
---|
274 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
275 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
276 | includedir=$ac_optarg ;;
|
---|
277 |
|
---|
278 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
279 | ac_prev=infodir ;;
|
---|
280 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
281 | infodir=$ac_optarg ;;
|
---|
282 |
|
---|
283 | -libdir | --libdir | --libdi | --libd)
|
---|
284 | ac_prev=libdir ;;
|
---|
285 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
286 | libdir=$ac_optarg ;;
|
---|
287 |
|
---|
288 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
289 | | --libexe | --libex | --libe)
|
---|
290 | ac_prev=libexecdir ;;
|
---|
291 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
292 | | --libexe=* | --libex=* | --libe=*)
|
---|
293 | libexecdir=$ac_optarg ;;
|
---|
294 |
|
---|
295 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
296 | | --localstate | --localstat | --localsta | --localst \
|
---|
297 | | --locals | --local | --loca | --loc | --lo)
|
---|
298 | ac_prev=localstatedir ;;
|
---|
299 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
300 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
301 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
302 | localstatedir=$ac_optarg ;;
|
---|
303 |
|
---|
304 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
305 | ac_prev=mandir ;;
|
---|
306 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
307 | mandir=$ac_optarg ;;
|
---|
308 |
|
---|
309 | -nfp | --nfp | --nf)
|
---|
310 | # Obsolete; use --without-fp.
|
---|
311 | with_fp=no ;;
|
---|
312 |
|
---|
313 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
314 | | --no-cr | --no-c)
|
---|
315 | no_create=yes ;;
|
---|
316 |
|
---|
317 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
318 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
319 | no_recursion=yes ;;
|
---|
320 |
|
---|
321 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
322 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
323 | | --oldin | --oldi | --old | --ol | --o)
|
---|
324 | ac_prev=oldincludedir ;;
|
---|
325 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
326 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
327 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
328 | oldincludedir=$ac_optarg ;;
|
---|
329 |
|
---|
330 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
331 | ac_prev=prefix ;;
|
---|
332 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
333 | prefix=$ac_optarg ;;
|
---|
334 |
|
---|
335 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
336 | | --program-pre | --program-pr | --program-p)
|
---|
337 | ac_prev=program_prefix ;;
|
---|
338 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
339 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
340 | program_prefix=$ac_optarg ;;
|
---|
341 |
|
---|
342 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
343 | | --program-suf | --program-su | --program-s)
|
---|
344 | ac_prev=program_suffix ;;
|
---|
345 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
346 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
347 | program_suffix=$ac_optarg ;;
|
---|
348 |
|
---|
349 | -program-transform-name | --program-transform-name \
|
---|
350 | | --program-transform-nam | --program-transform-na \
|
---|
351 | | --program-transform-n | --program-transform- \
|
---|
352 | | --program-transform | --program-transfor \
|
---|
353 | | --program-transfo | --program-transf \
|
---|
354 | | --program-trans | --program-tran \
|
---|
355 | | --progr-tra | --program-tr | --program-t)
|
---|
356 | ac_prev=program_transform_name ;;
|
---|
357 | -program-transform-name=* | --program-transform-name=* \
|
---|
358 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
359 | | --program-transform-n=* | --program-transform-=* \
|
---|
360 | | --program-transform=* | --program-transfor=* \
|
---|
361 | | --program-transfo=* | --program-transf=* \
|
---|
362 | | --program-trans=* | --program-tran=* \
|
---|
363 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
364 | program_transform_name=$ac_optarg ;;
|
---|
365 |
|
---|
366 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
367 | | -silent | --silent | --silen | --sile | --sil)
|
---|
368 | silent=yes ;;
|
---|
369 |
|
---|
370 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
371 | ac_prev=sbindir ;;
|
---|
372 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
373 | | --sbi=* | --sb=*)
|
---|
374 | sbindir=$ac_optarg ;;
|
---|
375 |
|
---|
376 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
377 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
378 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
379 | | --sha | --sh)
|
---|
380 | ac_prev=sharedstatedir ;;
|
---|
381 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
382 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
383 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
384 | | --sha=* | --sh=*)
|
---|
385 | sharedstatedir=$ac_optarg ;;
|
---|
386 |
|
---|
387 | -site | --site | --sit)
|
---|
388 | ac_prev=site ;;
|
---|
389 | -site=* | --site=* | --sit=*)
|
---|
390 | site=$ac_optarg ;;
|
---|
391 |
|
---|
392 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
393 | ac_prev=srcdir ;;
|
---|
394 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
395 | srcdir=$ac_optarg ;;
|
---|
396 |
|
---|
397 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
398 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
399 | ac_prev=sysconfdir ;;
|
---|
400 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
401 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
402 | sysconfdir=$ac_optarg ;;
|
---|
403 |
|
---|
404 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
405 | ac_prev=target_alias ;;
|
---|
406 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
407 | target_alias=$ac_optarg ;;
|
---|
408 |
|
---|
409 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
410 | verbose=yes ;;
|
---|
411 |
|
---|
412 | -version | --version | --versio | --versi | --vers | -V)
|
---|
413 | ac_init_version=: ;;
|
---|
414 |
|
---|
415 | -with-* | --with-*)
|
---|
416 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
417 | # Reject names that are not valid shell variable names.
|
---|
418 | expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
|
---|
419 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
420 | { (exit 1); exit 1; }; }
|
---|
421 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
422 | case $ac_option in
|
---|
423 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
424 | *) ac_optarg=yes ;;
|
---|
425 | esac
|
---|
426 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
427 |
|
---|
428 | -without-* | --without-*)
|
---|
429 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
430 | # Reject names that are not valid shell variable names.
|
---|
431 | expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
|
---|
432 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
433 | { (exit 1); exit 1; }; }
|
---|
434 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
435 | eval "with_$ac_package=no" ;;
|
---|
436 |
|
---|
437 | --x)
|
---|
438 | # Obsolete; use --with-x.
|
---|
439 | with_x=yes ;;
|
---|
440 |
|
---|
441 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
442 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
443 | ac_prev=x_includes ;;
|
---|
444 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
445 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
446 | x_includes=$ac_optarg ;;
|
---|
447 |
|
---|
448 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
449 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
450 | ac_prev=x_libraries ;;
|
---|
451 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
452 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
453 | x_libraries=$ac_optarg ;;
|
---|
454 |
|
---|
455 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
456 | Try \`$0 --help' for more information." >&2
|
---|
457 | { (exit 1); exit 1; }; }
|
---|
458 | ;;
|
---|
459 |
|
---|
460 | *=*)
|
---|
461 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
462 | # Reject names that are not valid shell variable names.
|
---|
463 | expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
|
---|
464 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
465 | { (exit 1); exit 1; }; }
|
---|
466 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
467 | eval "$ac_envvar='$ac_optarg'"
|
---|
468 | export $ac_envvar ;;
|
---|
469 |
|
---|
470 | *)
|
---|
471 | # FIXME: should be removed in autoconf 3.0.
|
---|
472 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
473 | expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
|
---|
474 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
475 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
476 | ;;
|
---|
477 |
|
---|
478 | esac
|
---|
479 | done
|
---|
480 |
|
---|
481 | if test -n "$ac_prev"; then
|
---|
482 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
483 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
484 | { (exit 1); exit 1; }; }
|
---|
485 | fi
|
---|
486 |
|
---|
487 | # Be sure to have absolute paths.
|
---|
488 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
489 | localstatedir libdir includedir oldincludedir infodir mandir \
|
---|
490 | exec_prefix prefix
|
---|
491 | do
|
---|
492 | eval ac_val=$`echo $ac_var`
|
---|
493 | case $ac_val in
|
---|
494 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
495 | NONE ) ;;
|
---|
496 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
|
---|
497 | { (exit 1); exit 1; }; };;
|
---|
498 | esac
|
---|
499 | done
|
---|
500 |
|
---|
501 | # There might be people who depend on the old broken behavior: `$host'
|
---|
502 | # used to hold the argument of --host etc.
|
---|
503 | build=$build_alias
|
---|
504 | host=$host_alias
|
---|
505 | target=$target_alias
|
---|
506 |
|
---|
507 | # FIXME: should be removed in autoconf 3.0.
|
---|
508 | if test "x$host_alias" != x; then
|
---|
509 | if test "x$build_alias" = x; then
|
---|
510 | cross_compiling=maybe
|
---|
511 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
512 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
513 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
514 | cross_compiling=yes
|
---|
515 | fi
|
---|
516 | fi
|
---|
517 |
|
---|
518 | ac_tool_prefix=
|
---|
519 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
520 |
|
---|
521 | test "$silent" = yes && exec 6>/dev/null
|
---|
522 |
|
---|
523 | # Find the source files, if location was not specified.
|
---|
524 | if test -z "$srcdir"; then
|
---|
525 | ac_srcdir_defaulted=yes
|
---|
526 | # Try the directory containing this script, then its parent.
|
---|
527 | ac_prog=$0
|
---|
528 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
|
---|
529 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
530 | srcdir=$ac_confdir
|
---|
531 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
532 | srcdir=..
|
---|
533 | fi
|
---|
534 | else
|
---|
535 | ac_srcdir_defaulted=no
|
---|
536 | fi
|
---|
537 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
538 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
539 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
|
---|
540 | { (exit 1); exit 1; }; }
|
---|
541 | else
|
---|
542 | { echo "$as_me: error: cannot find sources in $srcdir" >&2
|
---|
543 | { (exit 1); exit 1; }; }
|
---|
544 | fi
|
---|
545 | fi
|
---|
546 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
547 | ac_env_build_alias_set=${build_alias+set}
|
---|
548 | ac_env_build_alias_value=$build_alias
|
---|
549 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
550 | ac_cv_env_build_alias_value=$build_alias
|
---|
551 | ac_env_host_alias_set=${host_alias+set}
|
---|
552 | ac_env_host_alias_value=$host_alias
|
---|
553 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
554 | ac_cv_env_host_alias_value=$host_alias
|
---|
555 | ac_env_target_alias_set=${target_alias+set}
|
---|
556 | ac_env_target_alias_value=$target_alias
|
---|
557 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
558 | ac_cv_env_target_alias_value=$target_alias
|
---|
559 | ac_env_CC_set=${CC+set}
|
---|
560 | ac_env_CC_value=$CC
|
---|
561 | ac_cv_env_CC_set=${CC+set}
|
---|
562 | ac_cv_env_CC_value=$CC
|
---|
563 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
564 | ac_env_CFLAGS_value=$CFLAGS
|
---|
565 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
566 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
567 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
568 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
569 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
570 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
571 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
572 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
573 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
574 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
575 | ac_env_CXX_set=${CXX+set}
|
---|
576 | ac_env_CXX_value=$CXX
|
---|
577 | ac_cv_env_CXX_set=${CXX+set}
|
---|
578 | ac_cv_env_CXX_value=$CXX
|
---|
579 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
580 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
581 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
582 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
583 | ac_env_CPP_set=${CPP+set}
|
---|
584 | ac_env_CPP_value=$CPP
|
---|
585 | ac_cv_env_CPP_set=${CPP+set}
|
---|
586 | ac_cv_env_CPP_value=$CPP
|
---|
587 |
|
---|
588 | #
|
---|
589 | # Report the --help message.
|
---|
590 | #
|
---|
591 | if test "$ac_init_help" = "long"; then
|
---|
592 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
593 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
594 | cat <<EOF
|
---|
595 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
596 |
|
---|
597 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
598 |
|
---|
599 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
600 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
601 |
|
---|
602 | Defaults for the options are specified in brackets.
|
---|
603 |
|
---|
604 | Configuration:
|
---|
605 | -h, --help display this help and exit
|
---|
606 | --help=short display options specific to this package
|
---|
607 | --help=recursive display the short help of all the included packages
|
---|
608 | -V, --version display version information and exit
|
---|
609 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
610 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
611 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
612 | -n, --no-create do not create output files
|
---|
613 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
614 |
|
---|
615 | EOF
|
---|
616 |
|
---|
617 | cat <<EOF
|
---|
618 | Installation directories:
|
---|
619 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
620 | [$ac_default_prefix]
|
---|
621 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
622 | [PREFIX]
|
---|
623 |
|
---|
624 | By default, \`make install' will install all the files in
|
---|
625 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
626 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
627 | for instance \`--prefix=\$HOME'.
|
---|
628 |
|
---|
629 | For better control, use the options below.
|
---|
630 |
|
---|
631 | Fine tuning of the installation directories:
|
---|
632 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
633 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
634 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
635 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
636 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
637 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
638 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
639 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
640 | --includedir=DIR C header files [PREFIX/include]
|
---|
641 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
642 | --infodir=DIR info documentation [PREFIX/info]
|
---|
643 | --mandir=DIR man documentation [PREFIX/man]
|
---|
644 | EOF
|
---|
645 |
|
---|
646 | cat <<\EOF
|
---|
647 |
|
---|
648 | System types:
|
---|
649 | --build=BUILD configure for building on BUILD [guessed]
|
---|
650 | --host=HOST build programs to run on HOST [BUILD]
|
---|
651 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
652 | EOF
|
---|
653 | fi
|
---|
654 |
|
---|
655 | if test -n "$ac_init_help"; then
|
---|
656 |
|
---|
657 | cat <<\EOF
|
---|
658 |
|
---|
659 | Some influential environment variables:
|
---|
660 | CC C compiler command
|
---|
661 | CFLAGS C compiler flags
|
---|
662 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
663 | nonstandard directory <lib dir>
|
---|
664 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
665 | headers in a nonstandard directory <include dir>
|
---|
666 | CXX C++ compiler command
|
---|
667 | CXXFLAGS C++ compiler flags
|
---|
668 | CPP C preprocessor
|
---|
669 |
|
---|
670 | Use these variables to override the choices made by `configure' or to help
|
---|
671 | it to find libraries and programs with nonstandard names/locations.
|
---|
672 |
|
---|
673 | EOF
|
---|
674 | fi
|
---|
675 |
|
---|
676 | if test "$ac_init_help" = "recursive"; then
|
---|
677 | # If there are subdirs, report their specific --help.
|
---|
678 | ac_popdir=`pwd`
|
---|
679 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
|
---|
680 | cd $ac_subdir
|
---|
681 | # A "../" for each directory in /$ac_subdir.
|
---|
682 | ac_dots=`echo $ac_subdir |
|
---|
683 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
|
---|
684 |
|
---|
685 | case $srcdir in
|
---|
686 | .) # No --srcdir option. We are building in place.
|
---|
687 | ac_sub_srcdir=$srcdir ;;
|
---|
688 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
689 | ac_sub_srcdir=$srcdir/$ac_subdir ;;
|
---|
690 | *) # Relative path.
|
---|
691 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
|
---|
692 | esac
|
---|
693 |
|
---|
694 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
695 | if test -f $ac_sub_srcdir/configure.gnu; then
|
---|
696 | echo
|
---|
697 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
|
---|
698 | elif test -f $ac_sub_srcdir/configure; then
|
---|
699 | echo
|
---|
700 | $SHELL $ac_sub_srcdir/configure --help=recursive
|
---|
701 | elif test -f $ac_sub_srcdir/configure.ac ||
|
---|
702 | test -f $ac_sub_srcdir/configure.in; then
|
---|
703 | echo
|
---|
704 | $ac_configure --help
|
---|
705 | else
|
---|
706 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
|
---|
707 | fi
|
---|
708 | cd $ac_popdir
|
---|
709 | done
|
---|
710 | fi
|
---|
711 |
|
---|
712 | test -n "$ac_init_help" && exit 0
|
---|
713 | if $ac_init_version; then
|
---|
714 | cat <<\EOF
|
---|
715 |
|
---|
716 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
|
---|
717 | Free Software Foundation, Inc.
|
---|
718 | This configure script is free software; the Free Software Foundation
|
---|
719 | gives unlimited permission to copy, distribute and modify it.
|
---|
720 | EOF
|
---|
721 | exit 0
|
---|
722 | fi
|
---|
723 | exec 5>config.log
|
---|
724 | cat >&5 <<EOF
|
---|
725 | This file contains any messages produced by compilers while
|
---|
726 | running configure, to aid debugging if configure makes a mistake.
|
---|
727 |
|
---|
728 | It was created by $as_me, which was
|
---|
729 | generated by GNU Autoconf 2.50. Invocation command line was
|
---|
730 |
|
---|
731 | $ $0 $@
|
---|
732 |
|
---|
733 | EOF
|
---|
734 | {
|
---|
735 | cat <<_ASUNAME
|
---|
736 | ## ---------- ##
|
---|
737 | ## Platform. ##
|
---|
738 | ## ---------- ##
|
---|
739 |
|
---|
740 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
741 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
742 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
743 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
744 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
745 |
|
---|
746 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
747 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
748 |
|
---|
749 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
750 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
751 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
752 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
753 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
754 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
755 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
756 |
|
---|
757 | PATH = $PATH
|
---|
758 |
|
---|
759 | _ASUNAME
|
---|
760 | } >&5
|
---|
761 |
|
---|
762 | cat >&5 <<EOF
|
---|
763 | ## ------------ ##
|
---|
764 | ## Core tests. ##
|
---|
765 | ## ------------ ##
|
---|
766 |
|
---|
767 | EOF
|
---|
768 |
|
---|
769 | # Keep a trace of the command line.
|
---|
770 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
771 | # Also quote any args containing shell meta-characters.
|
---|
772 | ac_configure_args=
|
---|
773 | ac_sep=
|
---|
774 | for ac_arg
|
---|
775 | do
|
---|
776 | case $ac_arg in
|
---|
777 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
778 | | --no-cr | --no-c) ;;
|
---|
779 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
780 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
781 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
782 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
783 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
784 | ac_sep=" " ;;
|
---|
785 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
|
---|
786 | ac_sep=" " ;;
|
---|
787 | esac
|
---|
788 | # Get rid of the leading space.
|
---|
789 | done
|
---|
790 |
|
---|
791 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
792 | # config.log. We remove comments because anyway the quotes in there
|
---|
793 | # would cause problems or look ugly.
|
---|
794 | trap 'exit_status=$?
|
---|
795 | # Save into config.log some information that might help in debugging.
|
---|
796 | echo >&5
|
---|
797 | echo "## ----------------- ##" >&5
|
---|
798 | echo "## Cache variables. ##" >&5
|
---|
799 | echo "## ----------------- ##" >&5
|
---|
800 | echo >&5
|
---|
801 | # The following way of writing the cache mishandles newlines in values,
|
---|
802 | {
|
---|
803 | (set) 2>&1 |
|
---|
804 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
805 | *ac_space=\ *)
|
---|
806 | sed -n \
|
---|
807 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
808 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
809 | ;;
|
---|
810 | *)
|
---|
811 | sed -n \
|
---|
812 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
813 | ;;
|
---|
814 | esac;
|
---|
815 | } >&5
|
---|
816 | sed "/^$/d" confdefs.h >conftest.log
|
---|
817 | if test -s conftest.log; then
|
---|
818 | echo >&5
|
---|
819 | echo "## ------------ ##" >&5
|
---|
820 | echo "## confdefs.h. ##" >&5
|
---|
821 | echo "## ------------ ##" >&5
|
---|
822 | echo >&5
|
---|
823 | cat conftest.log >&5
|
---|
824 | fi
|
---|
825 | (echo; echo) >&5
|
---|
826 | test "$ac_signal" != 0 &&
|
---|
827 | echo "$as_me: caught signal $ac_signal" >&5
|
---|
828 | echo "$as_me: exit $exit_status" >&5
|
---|
829 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
|
---|
830 | exit $exit_status
|
---|
831 | ' 0
|
---|
832 | for ac_signal in 1 2 13 15; do
|
---|
833 | trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
|
---|
834 | done
|
---|
835 | ac_signal=0
|
---|
836 |
|
---|
837 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
838 | rm -rf conftest* confdefs.h
|
---|
839 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
840 | echo >confdefs.h
|
---|
841 |
|
---|
842 | # Let the site file select an alternate cache file if it wants to.
|
---|
843 | # Prefer explicitly selected file to automatically selected ones.
|
---|
844 | if test -z "$CONFIG_SITE"; then
|
---|
845 | if test "x$prefix" != xNONE; then
|
---|
846 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
847 | else
|
---|
848 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
849 | fi
|
---|
850 | fi
|
---|
851 | for ac_site_file in $CONFIG_SITE; do
|
---|
852 | if test -r "$ac_site_file"; then
|
---|
853 | { echo "$as_me:853: loading site script $ac_site_file" >&5
|
---|
854 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
855 | cat "$ac_site_file" >&5
|
---|
856 | . "$ac_site_file"
|
---|
857 | fi
|
---|
858 | done
|
---|
859 |
|
---|
860 | if test -r "$cache_file"; then
|
---|
861 | # Some versions of bash will fail to source /dev/null (special
|
---|
862 | # files actually), so we avoid doing that.
|
---|
863 | if test -f "$cache_file"; then
|
---|
864 | { echo "$as_me:864: loading cache $cache_file" >&5
|
---|
865 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
866 | case $cache_file in
|
---|
867 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
868 | *) . ./$cache_file;;
|
---|
869 | esac
|
---|
870 | fi
|
---|
871 | else
|
---|
872 | { echo "$as_me:872: creating cache $cache_file" >&5
|
---|
873 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
874 | >$cache_file
|
---|
875 | fi
|
---|
876 |
|
---|
877 | # Check that the precious variables saved in the cache have kept the same
|
---|
878 | # value.
|
---|
879 | ac_suggest_removing_cache=false
|
---|
880 | for ac_var in `(set) 2>&1 |
|
---|
881 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
882 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
883 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
884 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
885 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
886 | case $ac_old_set,$ac_new_set in
|
---|
887 | set,)
|
---|
888 | { echo "$as_me:888: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
889 | echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
890 | ac_suggest_removing_cache=: ;;
|
---|
891 | ,set)
|
---|
892 | { echo "$as_me:892: WARNING: \`$ac_var' was not set in the previous run" >&5
|
---|
893 | echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
|
---|
894 | ac_suggest_removing_cache=: ;;
|
---|
895 | ,);;
|
---|
896 | *)
|
---|
897 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
898 | { echo "$as_me:898: WARNING: \`$ac_var' has changed since the previous run:" >&5
|
---|
899 | echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
900 | { echo "$as_me:900: WARNING: former value: $ac_old_val" >&5
|
---|
901 | echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
|
---|
902 | { echo "$as_me:902: WARNING: current value: $ac_new_val" >&5
|
---|
903 | echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
|
---|
904 | ac_suggest_removing_cache=:
|
---|
905 | fi;;
|
---|
906 | esac
|
---|
907 | done
|
---|
908 | if $ac_suggest_removing_cache; then
|
---|
909 | { echo "$as_me:909: WARNING: changes in the environment can compromise the build" >&5
|
---|
910 | echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
|
---|
911 | { echo "$as_me:911: WARNING: consider removing $cache_file and starting over" >&5
|
---|
912 | echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
|
---|
913 | fi
|
---|
914 |
|
---|
915 | ac_ext=c
|
---|
916 | ac_cpp='$CPP $CPPFLAGS'
|
---|
917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
920 |
|
---|
921 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
922 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
923 | ' ECHO_T=' ' ;;
|
---|
924 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
925 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
926 | esac
|
---|
927 | echo "#! $SHELL" >conftest.sh
|
---|
928 | echo "exit 0" >>conftest.sh
|
---|
929 | chmod +x conftest.sh
|
---|
930 | if { (echo "$as_me:930: PATH=\".;.\"; conftest.sh") >&5
|
---|
931 | (PATH=".;."; conftest.sh) 2>&5
|
---|
932 | ac_status=$?
|
---|
933 | echo "$as_me:933: \$? = $ac_status" >&5
|
---|
934 | (exit $ac_status); }; then
|
---|
935 | ac_path_separator=';'
|
---|
936 | else
|
---|
937 | ac_path_separator=:
|
---|
938 | fi
|
---|
939 | PATH_SEPARATOR="$ac_path_separator"
|
---|
940 | rm -f conftest.sh
|
---|
941 |
|
---|
942 | ac_config_headers="$ac_config_headers config.h"
|
---|
943 |
|
---|
944 | PACKAGE=gsdl3
|
---|
945 | VERSION=0.1
|
---|
946 | cat >>confdefs.h <<EOF
|
---|
947 | #define PACKAGE "$PACKAGE"
|
---|
948 | EOF
|
---|
949 |
|
---|
950 | cat >>confdefs.h <<EOF
|
---|
951 | #define VERSION "$VERSION"
|
---|
952 | EOF
|
---|
953 |
|
---|
954 | LDFLAGS=
|
---|
955 | if test -z "$CFLAGS"; then
|
---|
956 | CFLAGS=-O2
|
---|
957 | fi
|
---|
958 |
|
---|
959 | ac_ext=c
|
---|
960 | ac_cpp='$CPP $CPPFLAGS'
|
---|
961 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
962 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
963 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
964 | if test -n "$ac_tool_prefix"; then
|
---|
965 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
966 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
967 | echo "$as_me:967: checking for $ac_word" >&5
|
---|
968 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
969 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
970 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
971 | else
|
---|
972 | if test -n "$CC"; then
|
---|
973 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
974 | else
|
---|
975 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
976 | ac_dummy="$PATH"
|
---|
977 | for ac_dir in $ac_dummy; do
|
---|
978 | IFS=$ac_save_IFS
|
---|
979 | test -z "$ac_dir" && ac_dir=.
|
---|
980 | $as_executable_p "$ac_dir/$ac_word" || continue
|
---|
981 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
982 | echo "$as_me:982: found $ac_dir/$ac_word" >&5
|
---|
983 | break
|
---|
984 | done
|
---|
985 |
|
---|
986 | fi
|
---|
987 | fi
|
---|
988 | CC=$ac_cv_prog_CC
|
---|
989 | if test -n "$CC"; then
|
---|
990 | echo "$as_me:990: result: $CC" >&5
|
---|
991 | echo "${ECHO_T}$CC" >&6
|
---|
992 | else
|
---|
993 | echo "$as_me:993: result: no" >&5
|
---|
994 | echo "${ECHO_T}no" >&6
|
---|
995 | fi
|
---|
996 |
|
---|
997 | fi
|
---|
998 | if test -z "$ac_cv_prog_CC"; then
|
---|
999 | ac_ct_CC=$CC
|
---|
1000 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1001 | set dummy gcc; ac_word=$2
|
---|
1002 | echo "$as_me:1002: checking for $ac_word" >&5
|
---|
1003 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1004 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1005 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1006 | else
|
---|
1007 | if test -n "$ac_ct_CC"; then
|
---|
1008 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1009 | else
|
---|
1010 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
1011 | ac_dummy="$PATH"
|
---|
1012 | for ac_dir in $ac_dummy; do
|
---|
1013 | IFS=$ac_save_IFS
|
---|
1014 | test -z "$ac_dir" && ac_dir=.
|
---|
1015 | $as_executable_p "$ac_dir/$ac_word" || continue
|
---|
1016 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
1017 | echo "$as_me:1017: found $ac_dir/$ac_word" >&5
|
---|
1018 | break
|
---|
1019 | done
|
---|
1020 |
|
---|
1021 | fi
|
---|
1022 | fi
|
---|
1023 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1024 | if test -n "$ac_ct_CC"; then
|
---|
1025 | echo "$as_me:1025: result: $ac_ct_CC" >&5
|
---|
1026 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1027 | else
|
---|
1028 | echo "$as_me:1028: result: no" >&5
|
---|
1029 | echo "${ECHO_T}no" >&6
|
---|
1030 | fi
|
---|
1031 |
|
---|
1032 | CC=$ac_ct_CC
|
---|
1033 | else
|
---|
1034 | CC="$ac_cv_prog_CC"
|
---|
1035 | fi
|
---|
1036 |
|
---|
1037 | if test -z "$CC"; then
|
---|
1038 | if test -n "$ac_tool_prefix"; then
|
---|
1039 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
1040 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
1041 | echo "$as_me:1041: checking for $ac_word" >&5
|
---|
1042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1043 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1044 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1045 | else
|
---|
1046 | if test -n "$CC"; then
|
---|
1047 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1048 | else
|
---|
1049 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
1050 | ac_dummy="$PATH"
|
---|
1051 | for ac_dir in $ac_dummy; do
|
---|
1052 | IFS=$ac_save_IFS
|
---|
1053 | test -z "$ac_dir" && ac_dir=.
|
---|
1054 | $as_executable_p "$ac_dir/$ac_word" || continue
|
---|
1055 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
1056 | echo "$as_me:1056: found $ac_dir/$ac_word" >&5
|
---|
1057 | break
|
---|
1058 | done
|
---|
1059 |
|
---|
1060 | fi
|
---|
1061 | fi
|
---|
1062 | CC=$ac_cv_prog_CC
|
---|
1063 | if test -n "$CC"; then
|
---|
1064 | echo "$as_me:1064: result: $CC" >&5
|
---|
1065 | echo "${ECHO_T}$CC" >&6
|
---|
1066 | else
|
---|
1067 | echo "$as_me:1067: result: no" >&5
|
---|
1068 | echo "${ECHO_T}no" >&6
|
---|
1069 | fi
|
---|
1070 |
|
---|
1071 | fi
|
---|
1072 | if test -z "$ac_cv_prog_CC"; then
|
---|
1073 | ac_ct_CC=$CC
|
---|
1074 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1075 | set dummy cc; ac_word=$2
|
---|
1076 | echo "$as_me:1076: checking for $ac_word" >&5
|
---|
1077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1078 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1079 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1080 | else
|
---|
1081 | if test -n "$ac_ct_CC"; then
|
---|
1082 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1083 | else
|
---|
1084 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
1085 | ac_dummy="$PATH"
|
---|
1086 | for ac_dir in $ac_dummy; do
|
---|
1087 | IFS=$ac_save_IFS
|
---|
1088 | test -z "$ac_dir" && ac_dir=.
|
---|
1089 | $as_executable_p "$ac_dir/$ac_word" || continue
|
---|
1090 | ac_cv_prog_ac_ct_CC="cc"
|
---|
1091 | echo "$as_me:1091: found $ac_dir/$ac_word" >&5
|
---|
1092 | break
|
---|
1093 | done
|
---|
1094 |
|
---|
1095 | fi
|
---|
1096 | fi
|
---|
1097 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1098 | if test -n "$ac_ct_CC"; then
|
---|
1099 | echo "$as_me:1099: result: $ac_ct_CC" >&5
|
---|
1100 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1101 | else
|
---|
1102 | echo "$as_me:1102: result: no" >&5
|
---|
1103 | echo "${ECHO_T}no" >&6
|
---|
1104 | fi
|
---|
1105 |
|
---|
1106 | CC=$ac_ct_CC
|
---|
1107 | else
|
---|
1108 | CC="$ac_cv_prog_CC"
|
---|
1109 | fi
|
---|
1110 |
|
---|
1111 | fi
|
---|
1112 | if test -z "$CC"; then
|
---|
1113 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1114 | set dummy cc; ac_word=$2
|
---|
1115 | echo "$as_me:1115: checking for $ac_word" >&5
|
---|
1116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1117 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1118 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1119 | else
|
---|
1120 | if test -n "$CC"; then
|
---|
1121 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1122 | else
|
---|
1123 | ac_prog_rejected=no
|
---|
1124 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
1125 | ac_dummy="$PATH"
|
---|
1126 | for ac_dir in $ac_dummy; do
|
---|
1127 | IFS=$ac_save_IFS
|
---|
1128 | test -z "$ac_dir" && ac_dir=.
|
---|
1129 | $as_executable_p "$ac_dir/$ac_word" || continue
|
---|
1130 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
1131 | ac_prog_rejected=yes
|
---|
1132 | continue
|
---|
1133 | fi
|
---|
1134 | ac_cv_prog_CC="cc"
|
---|
1135 | echo "$as_me:1135: found $ac_dir/$ac_word" >&5
|
---|
1136 | break
|
---|
1137 | done
|
---|
1138 |
|
---|
1139 | if test $ac_prog_rejected = yes; then
|
---|
1140 | # We found a bogon in the path, so make sure we never use it.
|
---|
1141 | set dummy $ac_cv_prog_CC
|
---|
1142 | shift
|
---|
1143 | if test $# != 0; then
|
---|
1144 | # We chose a different compiler from the bogus one.
|
---|
1145 | # However, it has the same basename, so the bogon will be chosen
|
---|
1146 | # first if we set CC to just the basename; use the full file name.
|
---|
1147 | shift
|
---|
1148 | set dummy "$ac_dir/$ac_word" ${1+"$@"}
|
---|
1149 | shift
|
---|
1150 | ac_cv_prog_CC="$@"
|
---|
1151 | fi
|
---|
1152 | fi
|
---|
1153 | fi
|
---|
1154 | fi
|
---|
1155 | CC=$ac_cv_prog_CC
|
---|
1156 | if test -n "$CC"; then
|
---|
1157 | echo "$as_me:1157: result: $CC" >&5
|
---|
1158 | echo "${ECHO_T}$CC" >&6
|
---|
1159 | else
|
---|
1160 | echo "$as_me:1160: result: no" >&5
|
---|
1161 | echo "${ECHO_T}no" >&6
|
---|
1162 | fi
|
---|
1163 |
|
---|
1164 | fi
|
---|
1165 | if test -z "$CC"; then
|
---|
1166 | if test -n "$ac_tool_prefix"; then
|
---|
1167 | for ac_prog in cl
|
---|
1168 | do
|
---|
1169 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1170 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1171 | echo "$as_me:1171: checking for $ac_word" >&5
|
---|
1172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1173 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1174 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1175 | else
|
---|
1176 | if test -n "$CC"; then
|
---|
1177 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1178 | else
|
---|
1179 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
1180 | ac_dummy="$PATH"
|
---|
1181 | for ac_dir in $ac_dummy; do
|
---|
1182 | IFS=$ac_save_IFS
|
---|
1183 | test -z "$ac_dir" && ac_dir=.
|
---|
1184 | $as_executable_p "$ac_dir/$ac_word" || continue
|
---|
1185 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
1186 | echo "$as_me:1186: found $ac_dir/$ac_word" >&5
|
---|
1187 | break
|
---|
1188 | done
|
---|
1189 |
|
---|
1190 | fi
|
---|
1191 | fi
|
---|
1192 | CC=$ac_cv_prog_CC
|
---|
1193 | if test -n "$CC"; then
|
---|
1194 | echo "$as_me:1194: result: $CC" >&5
|
---|
1195 | echo "${ECHO_T}$CC" >&6
|
---|
1196 | else
|
---|
1197 | echo "$as_me:1197: result: no" >&5
|
---|
1198 | echo "${ECHO_T}no" >&6
|
---|
1199 | fi
|
---|
1200 |
|
---|
1201 | test -n "$CC" && break
|
---|
1202 | done
|
---|
1203 | fi
|
---|
1204 | if test -z "$CC"; then
|
---|
1205 | ac_ct_CC=$CC
|
---|
1206 | for ac_prog in cl
|
---|
1207 | do
|
---|
1208 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1209 | set dummy $ac_prog; ac_word=$2
|
---|
1210 | echo "$as_me:1210: checking for $ac_word" >&5
|
---|
1211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1212 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1213 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1214 | else
|
---|
1215 | if test -n "$ac_ct_CC"; then
|
---|
1216 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1217 | else
|
---|
1218 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
1219 | ac_dummy="$PATH"
|
---|
1220 | for ac_dir in $ac_dummy; do
|
---|
1221 | IFS=$ac_save_IFS
|
---|
1222 | test -z "$ac_dir" && ac_dir=.
|
---|
1223 | $as_executable_p "$ac_dir/$ac_word" || continue
|
---|
1224 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
1225 | echo "$as_me:1225: found $ac_dir/$ac_word" >&5
|
---|
1226 | break
|
---|
1227 | done
|
---|
1228 |
|
---|
1229 | fi
|
---|
1230 | fi
|
---|
1231 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1232 | if test -n "$ac_ct_CC"; then
|
---|
1233 | echo "$as_me:1233: result: $ac_ct_CC" >&5
|
---|
1234 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1235 | else
|
---|
1236 | echo "$as_me:1236: result: no" >&5
|
---|
1237 | echo "${ECHO_T}no" >&6
|
---|
1238 | fi
|
---|
1239 |
|
---|
1240 | test -n "$ac_ct_CC" && break
|
---|
1241 | done
|
---|
1242 |
|
---|
1243 | CC=$ac_ct_CC
|
---|
1244 | fi
|
---|
1245 |
|
---|
1246 | fi
|
---|
1247 |
|
---|
1248 | test -z "$CC" && { { echo "$as_me:1248: error: no acceptable cc found in \$PATH" >&5
|
---|
1249 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
|
---|
1250 | { (exit 1); exit 1; }; }
|
---|
1251 |
|
---|
1252 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1253 | #line 1253 "configure"
|
---|
1254 | #include "confdefs.h"
|
---|
1255 |
|
---|
1256 | int
|
---|
1257 | main ()
|
---|
1258 | {
|
---|
1259 |
|
---|
1260 | ;
|
---|
1261 | return 0;
|
---|
1262 | }
|
---|
1263 | _ACEOF
|
---|
1264 | ac_clean_files_save=$ac_clean_files
|
---|
1265 | ac_clean_files="$ac_clean_files a.out a.exe"
|
---|
1266 | # Try to create an executable without -o first, disregard a.out.
|
---|
1267 | # It will help us diagnose broken compiler, and finding out an intuition
|
---|
1268 | # of exeext.
|
---|
1269 | echo "$as_me:1269: checking for C compiler default output" >&5
|
---|
1270 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
|
---|
1271 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
1272 | if { (eval echo "$as_me:1272: \"$ac_link_default\"") >&5
|
---|
1273 | (eval $ac_link_default) 2>&5
|
---|
1274 | ac_status=$?
|
---|
1275 | echo "$as_me:1275: \$? = $ac_status" >&5
|
---|
1276 | (exit $ac_status); }; then
|
---|
1277 | for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
|
---|
1278 | case $ac_file in
|
---|
1279 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
|
---|
1280 | a.out ) # We found the default executable, but exeext='' is most
|
---|
1281 | # certainly right.
|
---|
1282 | break;;
|
---|
1283 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1284 | export ac_cv_exeext
|
---|
1285 | break;;
|
---|
1286 | * ) break;;
|
---|
1287 | esac
|
---|
1288 | done
|
---|
1289 | else
|
---|
1290 | echo "$as_me: failed program was:" >&5
|
---|
1291 | cat conftest.$ac_ext >&5
|
---|
1292 | { { echo "$as_me:1292: error: C compiler cannot create executables" >&5
|
---|
1293 | echo "$as_me: error: C compiler cannot create executables" >&2;}
|
---|
1294 | { (exit 77); exit 77; }; }
|
---|
1295 | fi
|
---|
1296 |
|
---|
1297 | ac_exeext=$ac_cv_exeext
|
---|
1298 | echo "$as_me:1298: result: $ac_file" >&5
|
---|
1299 | echo "${ECHO_T}$ac_file" >&6
|
---|
1300 |
|
---|
1301 | # Check the compiler produces executables we can run. If not, either
|
---|
1302 | # the compiler is broken, or we cross compile.
|
---|
1303 | echo "$as_me:1303: checking whether the C compiler works" >&5
|
---|
1304 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
1305 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
1306 | # If not cross compiling, check that we can run a simple program.
|
---|
1307 | if test "$cross_compiling" != yes; then
|
---|
1308 | if { ac_try='./$ac_file'
|
---|
1309 | { (eval echo "$as_me:1309: \"$ac_try\"") >&5
|
---|
1310 | (eval $ac_try) 2>&5
|
---|
1311 | ac_status=$?
|
---|
1312 | echo "$as_me:1312: \$? = $ac_status" >&5
|
---|
1313 | (exit $ac_status); }; }; then
|
---|
1314 | cross_compiling=no
|
---|
1315 | else
|
---|
1316 | if test "$cross_compiling" = maybe; then
|
---|
1317 | cross_compiling=yes
|
---|
1318 | else
|
---|
1319 | { { echo "$as_me:1319: error: cannot run C compiled programs.
|
---|
1320 | If you meant to cross compile, use \`--host'." >&5
|
---|
1321 | echo "$as_me: error: cannot run C compiled programs.
|
---|
1322 | If you meant to cross compile, use \`--host'." >&2;}
|
---|
1323 | { (exit 1); exit 1; }; }
|
---|
1324 | fi
|
---|
1325 | fi
|
---|
1326 | fi
|
---|
1327 | echo "$as_me:1327: result: yes" >&5
|
---|
1328 | echo "${ECHO_T}yes" >&6
|
---|
1329 |
|
---|
1330 | rm -f a.out a.exe conftest$ac_cv_exeext
|
---|
1331 | ac_clean_files=$ac_clean_files_save
|
---|
1332 | # Check the compiler produces executables we can run. If not, either
|
---|
1333 | # the compiler is broken, or we cross compile.
|
---|
1334 | echo "$as_me:1334: checking whether we are cross compiling" >&5
|
---|
1335 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
1336 | echo "$as_me:1336: result: $cross_compiling" >&5
|
---|
1337 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
1338 |
|
---|
1339 | echo "$as_me:1339: checking for executable suffix" >&5
|
---|
1340 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
|
---|
1341 | if { (eval echo "$as_me:1341: \"$ac_link\"") >&5
|
---|
1342 | (eval $ac_link) 2>&5
|
---|
1343 | ac_status=$?
|
---|
1344 | echo "$as_me:1344: \$? = $ac_status" >&5
|
---|
1345 | (exit $ac_status); }; then
|
---|
1346 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
1347 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
1348 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
1349 | # `rm'.
|
---|
1350 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
|
---|
1351 | case $ac_file in
|
---|
1352 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
|
---|
1353 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1354 | export ac_cv_exeext
|
---|
1355 | break;;
|
---|
1356 | * ) break;;
|
---|
1357 | esac
|
---|
1358 | done
|
---|
1359 | else
|
---|
1360 | { { echo "$as_me:1360: error: cannot compute EXEEXT: cannot compile and link" >&5
|
---|
1361 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
|
---|
1362 | { (exit 1); exit 1; }; }
|
---|
1363 | fi
|
---|
1364 |
|
---|
1365 | rm -f conftest$ac_cv_exeext
|
---|
1366 | echo "$as_me:1366: result: $ac_cv_exeext" >&5
|
---|
1367 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
1368 |
|
---|
1369 | rm -f conftest.$ac_ext
|
---|
1370 | EXEEXT=$ac_cv_exeext
|
---|
1371 | ac_exeext=$EXEEXT
|
---|
1372 | echo "$as_me:1372: checking for object suffix" >&5
|
---|
1373 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
|
---|
1374 | if test "${ac_cv_objext+set}" = set; then
|
---|
1375 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1376 | else
|
---|
1377 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1378 | #line 1378 "configure"
|
---|
1379 | #include "confdefs.h"
|
---|
1380 |
|
---|
1381 | int
|
---|
1382 | main ()
|
---|
1383 | {
|
---|
1384 |
|
---|
1385 | ;
|
---|
1386 | return 0;
|
---|
1387 | }
|
---|
1388 | _ACEOF
|
---|
1389 | rm -f conftest.o conftest.obj
|
---|
1390 | if { (eval echo "$as_me:1390: \"$ac_compile\"") >&5
|
---|
1391 | (eval $ac_compile) 2>&5
|
---|
1392 | ac_status=$?
|
---|
1393 | echo "$as_me:1393: \$? = $ac_status" >&5
|
---|
1394 | (exit $ac_status); }; then
|
---|
1395 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
1396 | case $ac_file in
|
---|
1397 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
|
---|
1398 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
1399 | break;;
|
---|
1400 | esac
|
---|
1401 | done
|
---|
1402 | else
|
---|
1403 | echo "$as_me: failed program was:" >&5
|
---|
1404 | cat conftest.$ac_ext >&5
|
---|
1405 | { { echo "$as_me:1405: error: cannot compute OBJEXT: cannot compile" >&5
|
---|
1406 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
|
---|
1407 | { (exit 1); exit 1; }; }
|
---|
1408 | fi
|
---|
1409 |
|
---|
1410 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
1411 | fi
|
---|
1412 | echo "$as_me:1412: result: $ac_cv_objext" >&5
|
---|
1413 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
1414 | OBJEXT=$ac_cv_objext
|
---|
1415 | ac_objext=$OBJEXT
|
---|
1416 | echo "$as_me:1416: checking whether we are using the GNU C compiler" >&5
|
---|
1417 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
1418 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
1419 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1420 | else
|
---|
1421 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1422 | #line 1422 "configure"
|
---|
1423 | #include "confdefs.h"
|
---|
1424 |
|
---|
1425 | int
|
---|
1426 | main ()
|
---|
1427 | {
|
---|
1428 | #ifndef __GNUC__
|
---|
1429 | choke me
|
---|
1430 | #endif
|
---|
1431 |
|
---|
1432 | ;
|
---|
1433 | return 0;
|
---|
1434 | }
|
---|
1435 | _ACEOF
|
---|
1436 | rm -f conftest.$ac_objext
|
---|
1437 | if { (eval echo "$as_me:1437: \"$ac_compile\"") >&5
|
---|
1438 | (eval $ac_compile) 2>&5
|
---|
1439 | ac_status=$?
|
---|
1440 | echo "$as_me:1440: \$? = $ac_status" >&5
|
---|
1441 | (exit $ac_status); } &&
|
---|
1442 | { ac_try='test -s conftest.$ac_objext'
|
---|
1443 | { (eval echo "$as_me:1443: \"$ac_try\"") >&5
|
---|
1444 | (eval $ac_try) 2>&5
|
---|
1445 | ac_status=$?
|
---|
1446 | echo "$as_me:1446: \$? = $ac_status" >&5
|
---|
1447 | (exit $ac_status); }; }; then
|
---|
1448 | ac_compiler_gnu=yes
|
---|
1449 | else
|
---|
1450 | echo "$as_me: failed program was:" >&5
|
---|
1451 | cat conftest.$ac_ext >&5
|
---|
1452 | ac_compiler_gnu=no
|
---|
1453 | fi
|
---|
1454 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
1455 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
1456 |
|
---|
1457 | fi
|
---|
1458 | echo "$as_me:1458: result: $ac_cv_c_compiler_gnu" >&5
|
---|
1459 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
1460 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
1461 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
1462 | ac_save_CFLAGS=$CFLAGS
|
---|
1463 | CFLAGS="-g"
|
---|
1464 | echo "$as_me:1464: checking whether $CC accepts -g" >&5
|
---|
1465 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
1466 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
1467 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1468 | else
|
---|
1469 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1470 | #line 1470 "configure"
|
---|
1471 | #include "confdefs.h"
|
---|
1472 |
|
---|
1473 | int
|
---|
1474 | main ()
|
---|
1475 | {
|
---|
1476 |
|
---|
1477 | ;
|
---|
1478 | return 0;
|
---|
1479 | }
|
---|
1480 | _ACEOF
|
---|
1481 | rm -f conftest.$ac_objext
|
---|
1482 | if { (eval echo "$as_me:1482: \"$ac_compile\"") >&5
|
---|
1483 | (eval $ac_compile) 2>&5
|
---|
1484 | ac_status=$?
|
---|
1485 | echo "$as_me:1485: \$? = $ac_status" >&5
|
---|
1486 | (exit $ac_status); } &&
|
---|
1487 | { ac_try='test -s conftest.$ac_objext'
|
---|
1488 | { (eval echo "$as_me:1488: \"$ac_try\"") >&5
|
---|
1489 | (eval $ac_try) 2>&5
|
---|
1490 | ac_status=$?
|
---|
1491 | echo "$as_me:1491: \$? = $ac_status" >&5
|
---|
1492 | (exit $ac_status); }; }; then
|
---|
1493 | ac_cv_prog_cc_g=yes
|
---|
1494 | else
|
---|
1495 | echo "$as_me: failed program was:" >&5
|
---|
1496 | cat conftest.$ac_ext >&5
|
---|
1497 | ac_cv_prog_cc_g=no
|
---|
1498 | fi
|
---|
1499 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
1500 | fi
|
---|
1501 | echo "$as_me:1501: result: $ac_cv_prog_cc_g" >&5
|
---|
1502 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
1503 | if test "$ac_test_CFLAGS" = set; then
|
---|
1504 | CFLAGS=$ac_save_CFLAGS
|
---|
1505 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
1506 | if test "$GCC" = yes; then
|
---|
1507 | CFLAGS="-g -O2"
|
---|
1508 | else
|
---|
1509 | CFLAGS="-g"
|
---|
1510 | fi
|
---|
1511 | else
|
---|
1512 | if test "$GCC" = yes; then
|
---|
1513 | CFLAGS="-O2"
|
---|
1514 | else
|
---|
1515 | CFLAGS=
|
---|
1516 | fi
|
---|
1517 | fi
|
---|
1518 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
1519 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
1520 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
1521 | # the declaration of exit, since it's the most demanding environment.
|
---|
1522 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1523 | #ifndef __cplusplus
|
---|
1524 | choke me
|
---|
1525 | #endif
|
---|
1526 | _ACEOF
|
---|
1527 | rm -f conftest.$ac_objext
|
---|
1528 | if { (eval echo "$as_me:1528: \"$ac_compile\"") >&5
|
---|
1529 | (eval $ac_compile) 2>&5
|
---|
1530 | ac_status=$?
|
---|
1531 | echo "$as_me:1531: \$? = $ac_status" >&5
|
---|
1532 | (exit $ac_status); } &&
|
---|
1533 | { ac_try='test -s conftest.$ac_objext'
|
---|
1534 | { (eval echo "$as_me:1534: \"$ac_try\"") >&5
|
---|
1535 | (eval $ac_try) 2>&5
|
---|
1536 | ac_status=$?
|
---|
1537 | echo "$as_me:1537: \$? = $ac_status" >&5
|
---|
1538 | (exit $ac_status); }; }; then
|
---|
1539 | for ac_declaration in \
|
---|
1540 | ''\
|
---|
1541 | '#include <stdlib.h>' \
|
---|
1542 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
1543 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
1544 | 'extern "C" void exit (int) throw ();' \
|
---|
1545 | 'extern "C" void exit (int);' \
|
---|
1546 | 'void exit (int);'
|
---|
1547 | do
|
---|
1548 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1549 | #line 1549 "configure"
|
---|
1550 | #include "confdefs.h"
|
---|
1551 | #include <stdlib.h>
|
---|
1552 | $ac_declaration
|
---|
1553 | int
|
---|
1554 | main ()
|
---|
1555 | {
|
---|
1556 | exit (42);
|
---|
1557 | ;
|
---|
1558 | return 0;
|
---|
1559 | }
|
---|
1560 | _ACEOF
|
---|
1561 | rm -f conftest.$ac_objext
|
---|
1562 | if { (eval echo "$as_me:1562: \"$ac_compile\"") >&5
|
---|
1563 | (eval $ac_compile) 2>&5
|
---|
1564 | ac_status=$?
|
---|
1565 | echo "$as_me:1565: \$? = $ac_status" >&5
|
---|
1566 | (exit $ac_status); } &&
|
---|
1567 | { ac_try='test -s conftest.$ac_objext'
|
---|
1568 | { (eval echo "$as_me:1568: \"$ac_try\"") >&5
|
---|
1569 | (eval $ac_try) 2>&5
|
---|
1570 | ac_status=$?
|
---|
1571 | echo "$as_me:1571: \$? = $ac_status" >&5
|
---|
1572 | (exit $ac_status); }; }; then
|
---|
1573 | :
|
---|
1574 | else
|
---|
1575 | echo "$as_me: failed program was:" >&5
|
---|
1576 | cat conftest.$ac_ext >&5
|
---|
1577 | continue
|
---|
1578 | fi
|
---|
1579 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
1580 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1581 | #line 1581 "configure"
|
---|
1582 | #include "confdefs.h"
|
---|
1583 | $ac_declaration
|
---|
1584 | int
|
---|
1585 | main ()
|
---|
1586 | {
|
---|
1587 | exit (42);
|
---|
1588 | ;
|
---|
1589 | return 0;
|
---|
1590 | }
|
---|
1591 | _ACEOF
|
---|
1592 | rm -f conftest.$ac_objext
|
---|
1593 | if { (eval echo "$as_me:1593: \"$ac_compile\"") >&5
|
---|
1594 | (eval $ac_compile) 2>&5
|
---|
1595 | ac_status=$?
|
---|
1596 | echo "$as_me:1596: \$? = $ac_status" >&5
|
---|
1597 | (exit $ac_status); } &&
|
---|
1598 | { ac_try='test -s conftest.$ac_objext'
|
---|
1599 | { (eval echo "$as_me:1599: \"$ac_try\"") >&5
|
---|
1600 | (eval $ac_try) 2>&5
|
---|
1601 | ac_status=$?
|
---|
1602 | echo "$as_me:1602: \$? = $ac_status" >&5
|
---|
1603 | (exit $ac_status); }; }; then
|
---|
1604 | break
|
---|
1605 | else
|
---|
1606 | echo "$as_me: failed program was:" >&5
|
---|
1607 | cat conftest.$ac_ext >&5
|
---|
1608 | fi
|
---|
1609 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
1610 | done
|
---|
1611 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
1612 | echo $ac_declaration >>confdefs.h
|
---|
1613 | echo '#endif' >>confdefs.h
|
---|
1614 |
|
---|
1615 | else
|
---|
1616 | echo "$as_me: failed program was:" >&5
|
---|
1617 | cat conftest.$ac_ext >&5
|
---|
1618 | fi
|
---|
1619 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
1620 | ac_ext=c
|
---|
1621 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1622 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1623 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1624 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1625 |
|
---|
1626 | ac_ext=cc
|
---|
1627 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
1628 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1629 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1630 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
1631 | if test -n "$ac_tool_prefix"; then
|
---|
1632 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
|
---|
1633 | do
|
---|
1634 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1635 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1636 | echo "$as_me:1636: checking for $ac_word" >&5
|
---|
1637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1638 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
1639 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1640 | else
|
---|
1641 | if test -n "$CXX"; then
|
---|
1642 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
1643 | else
|
---|
1644 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
1645 | ac_dummy="$PATH"
|
---|
1646 | for ac_dir in $ac_dummy; do
|
---|
1647 | IFS=$ac_save_IFS
|
---|
1648 | test -z "$ac_dir" && ac_dir=.
|
---|
1649 | $as_executable_p "$ac_dir/$ac_word" || continue
|
---|
1650 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
1651 | echo "$as_me:1651: found $ac_dir/$ac_word" >&5
|
---|
1652 | break
|
---|
1653 | done
|
---|
1654 |
|
---|
1655 | fi
|
---|
1656 | fi
|
---|
1657 | CXX=$ac_cv_prog_CXX
|
---|
1658 | if test -n "$CXX"; then
|
---|
1659 | echo "$as_me:1659: result: $CXX" >&5
|
---|
1660 | echo "${ECHO_T}$CXX" >&6
|
---|
1661 | else
|
---|
1662 | echo "$as_me:1662: result: no" >&5
|
---|
1663 | echo "${ECHO_T}no" >&6
|
---|
1664 | fi
|
---|
1665 |
|
---|
1666 | test -n "$CXX" && break
|
---|
1667 | done
|
---|
1668 | fi
|
---|
1669 | if test -z "$CXX"; then
|
---|
1670 | ac_ct_CXX=$CXX
|
---|
1671 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
|
---|
1672 | do
|
---|
1673 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1674 | set dummy $ac_prog; ac_word=$2
|
---|
1675 | echo "$as_me:1675: checking for $ac_word" >&5
|
---|
1676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1677 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
1678 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1679 | else
|
---|
1680 | if test -n "$ac_ct_CXX"; then
|
---|
1681 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
1682 | else
|
---|
1683 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
1684 | ac_dummy="$PATH"
|
---|
1685 | for ac_dir in $ac_dummy; do
|
---|
1686 | IFS=$ac_save_IFS
|
---|
1687 | test -z "$ac_dir" && ac_dir=.
|
---|
1688 | $as_executable_p "$ac_dir/$ac_word" || continue
|
---|
1689 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
1690 | echo "$as_me:1690: found $ac_dir/$ac_word" >&5
|
---|
1691 | break
|
---|
1692 | done
|
---|
1693 |
|
---|
1694 | fi
|
---|
1695 | fi
|
---|
1696 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
1697 | if test -n "$ac_ct_CXX"; then
|
---|
1698 | echo "$as_me:1698: result: $ac_ct_CXX" >&5
|
---|
1699 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
1700 | else
|
---|
1701 | echo "$as_me:1701: result: no" >&5
|
---|
1702 | echo "${ECHO_T}no" >&6
|
---|
1703 | fi
|
---|
1704 |
|
---|
1705 | test -n "$ac_ct_CXX" && break
|
---|
1706 | done
|
---|
1707 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
1708 |
|
---|
1709 | CXX=$ac_ct_CXX
|
---|
1710 | fi
|
---|
1711 |
|
---|
1712 | echo "$as_me:1712: checking whether we are using the GNU C++ compiler" >&5
|
---|
1713 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
1714 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
1715 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1716 | else
|
---|
1717 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1718 | #line 1718 "configure"
|
---|
1719 | #include "confdefs.h"
|
---|
1720 |
|
---|
1721 | int
|
---|
1722 | main ()
|
---|
1723 | {
|
---|
1724 | #ifndef __GNUC__
|
---|
1725 | choke me
|
---|
1726 | #endif
|
---|
1727 |
|
---|
1728 | ;
|
---|
1729 | return 0;
|
---|
1730 | }
|
---|
1731 | _ACEOF
|
---|
1732 | rm -f conftest.$ac_objext
|
---|
1733 | if { (eval echo "$as_me:1733: \"$ac_compile\"") >&5
|
---|
1734 | (eval $ac_compile) 2>&5
|
---|
1735 | ac_status=$?
|
---|
1736 | echo "$as_me:1736: \$? = $ac_status" >&5
|
---|
1737 | (exit $ac_status); } &&
|
---|
1738 | { ac_try='test -s conftest.$ac_objext'
|
---|
1739 | { (eval echo "$as_me:1739: \"$ac_try\"") >&5
|
---|
1740 | (eval $ac_try) 2>&5
|
---|
1741 | ac_status=$?
|
---|
1742 | echo "$as_me:1742: \$? = $ac_status" >&5
|
---|
1743 | (exit $ac_status); }; }; then
|
---|
1744 | ac_compiler_gnu=yes
|
---|
1745 | else
|
---|
1746 | echo "$as_me: failed program was:" >&5
|
---|
1747 | cat conftest.$ac_ext >&5
|
---|
1748 | ac_compiler_gnu=no
|
---|
1749 | fi
|
---|
1750 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
1751 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
1752 |
|
---|
1753 | fi
|
---|
1754 | echo "$as_me:1754: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
1755 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
1756 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
1757 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
1758 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
1759 | CXXFLAGS="-g"
|
---|
1760 | echo "$as_me:1760: checking whether $CXX accepts -g" >&5
|
---|
1761 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
1762 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
1763 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1764 | else
|
---|
1765 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1766 | #line 1766 "configure"
|
---|
1767 | #include "confdefs.h"
|
---|
1768 |
|
---|
1769 | int
|
---|
1770 | main ()
|
---|
1771 | {
|
---|
1772 |
|
---|
1773 | ;
|
---|
1774 | return 0;
|
---|
1775 | }
|
---|
1776 | _ACEOF
|
---|
1777 | rm -f conftest.$ac_objext
|
---|
1778 | if { (eval echo "$as_me:1778: \"$ac_compile\"") >&5
|
---|
1779 | (eval $ac_compile) 2>&5
|
---|
1780 | ac_status=$?
|
---|
1781 | echo "$as_me:1781: \$? = $ac_status" >&5
|
---|
1782 | (exit $ac_status); } &&
|
---|
1783 | { ac_try='test -s conftest.$ac_objext'
|
---|
1784 | { (eval echo "$as_me:1784: \"$ac_try\"") >&5
|
---|
1785 | (eval $ac_try) 2>&5
|
---|
1786 | ac_status=$?
|
---|
1787 | echo "$as_me:1787: \$? = $ac_status" >&5
|
---|
1788 | (exit $ac_status); }; }; then
|
---|
1789 | ac_cv_prog_cxx_g=yes
|
---|
1790 | else
|
---|
1791 | echo "$as_me: failed program was:" >&5
|
---|
1792 | cat conftest.$ac_ext >&5
|
---|
1793 | ac_cv_prog_cxx_g=no
|
---|
1794 | fi
|
---|
1795 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
1796 | fi
|
---|
1797 | echo "$as_me:1797: result: $ac_cv_prog_cxx_g" >&5
|
---|
1798 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
1799 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
1800 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
1801 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
1802 | if test "$GXX" = yes; then
|
---|
1803 | CXXFLAGS="-g -O2"
|
---|
1804 | else
|
---|
1805 | CXXFLAGS="-g"
|
---|
1806 | fi
|
---|
1807 | else
|
---|
1808 | if test "$GXX" = yes; then
|
---|
1809 | CXXFLAGS="-O2"
|
---|
1810 | else
|
---|
1811 | CXXFLAGS=
|
---|
1812 | fi
|
---|
1813 | fi
|
---|
1814 | for ac_declaration in \
|
---|
1815 | ''\
|
---|
1816 | '#include <stdlib.h>' \
|
---|
1817 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
1818 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
1819 | 'extern "C" void exit (int) throw ();' \
|
---|
1820 | 'extern "C" void exit (int);' \
|
---|
1821 | 'void exit (int);'
|
---|
1822 | do
|
---|
1823 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1824 | #line 1824 "configure"
|
---|
1825 | #include "confdefs.h"
|
---|
1826 | #include <stdlib.h>
|
---|
1827 | $ac_declaration
|
---|
1828 | int
|
---|
1829 | main ()
|
---|
1830 | {
|
---|
1831 | exit (42);
|
---|
1832 | ;
|
---|
1833 | return 0;
|
---|
1834 | }
|
---|
1835 | _ACEOF
|
---|
1836 | rm -f conftest.$ac_objext
|
---|
1837 | if { (eval echo "$as_me:1837: \"$ac_compile\"") >&5
|
---|
1838 | (eval $ac_compile) 2>&5
|
---|
1839 | ac_status=$?
|
---|
1840 | echo "$as_me:1840: \$? = $ac_status" >&5
|
---|
1841 | (exit $ac_status); } &&
|
---|
1842 | { ac_try='test -s conftest.$ac_objext'
|
---|
1843 | { (eval echo "$as_me:1843: \"$ac_try\"") >&5
|
---|
1844 | (eval $ac_try) 2>&5
|
---|
1845 | ac_status=$?
|
---|
1846 | echo "$as_me:1846: \$? = $ac_status" >&5
|
---|
1847 | (exit $ac_status); }; }; then
|
---|
1848 | :
|
---|
1849 | else
|
---|
1850 | echo "$as_me: failed program was:" >&5
|
---|
1851 | cat conftest.$ac_ext >&5
|
---|
1852 | continue
|
---|
1853 | fi
|
---|
1854 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
1855 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1856 | #line 1856 "configure"
|
---|
1857 | #include "confdefs.h"
|
---|
1858 | $ac_declaration
|
---|
1859 | int
|
---|
1860 | main ()
|
---|
1861 | {
|
---|
1862 | exit (42);
|
---|
1863 | ;
|
---|
1864 | return 0;
|
---|
1865 | }
|
---|
1866 | _ACEOF
|
---|
1867 | rm -f conftest.$ac_objext
|
---|
1868 | if { (eval echo "$as_me:1868: \"$ac_compile\"") >&5
|
---|
1869 | (eval $ac_compile) 2>&5
|
---|
1870 | ac_status=$?
|
---|
1871 | echo "$as_me:1871: \$? = $ac_status" >&5
|
---|
1872 | (exit $ac_status); } &&
|
---|
1873 | { ac_try='test -s conftest.$ac_objext'
|
---|
1874 | { (eval echo "$as_me:1874: \"$ac_try\"") >&5
|
---|
1875 | (eval $ac_try) 2>&5
|
---|
1876 | ac_status=$?
|
---|
1877 | echo "$as_me:1877: \$? = $ac_status" >&5
|
---|
1878 | (exit $ac_status); }; }; then
|
---|
1879 | break
|
---|
1880 | else
|
---|
1881 | echo "$as_me: failed program was:" >&5
|
---|
1882 | cat conftest.$ac_ext >&5
|
---|
1883 | fi
|
---|
1884 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
1885 | done
|
---|
1886 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
1887 | echo $ac_declaration >>confdefs.h
|
---|
1888 | echo '#endif' >>confdefs.h
|
---|
1889 |
|
---|
1890 | ac_ext=c
|
---|
1891 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1892 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1893 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1894 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1895 |
|
---|
1896 | for ac_prog in mawk gawk nawk awk
|
---|
1897 | do
|
---|
1898 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1899 | set dummy $ac_prog; ac_word=$2
|
---|
1900 | echo "$as_me:1900: checking for $ac_word" >&5
|
---|
1901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1902 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
1903 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1904 | else
|
---|
1905 | if test -n "$AWK"; then
|
---|
1906 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
1907 | else
|
---|
1908 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
1909 | ac_dummy="$PATH"
|
---|
1910 | for ac_dir in $ac_dummy; do
|
---|
1911 | IFS=$ac_save_IFS
|
---|
1912 | test -z "$ac_dir" && ac_dir=.
|
---|
1913 | $as_executable_p "$ac_dir/$ac_word" || continue
|
---|
1914 | ac_cv_prog_AWK="$ac_prog"
|
---|
1915 | echo "$as_me:1915: found $ac_dir/$ac_word" >&5
|
---|
1916 | break
|
---|
1917 | done
|
---|
1918 |
|
---|
1919 | fi
|
---|
1920 | fi
|
---|
1921 | AWK=$ac_cv_prog_AWK
|
---|
1922 | if test -n "$AWK"; then
|
---|
1923 | echo "$as_me:1923: result: $AWK" >&5
|
---|
1924 | echo "${ECHO_T}$AWK" >&6
|
---|
1925 | else
|
---|
1926 | echo "$as_me:1926: result: no" >&5
|
---|
1927 | echo "${ECHO_T}no" >&6
|
---|
1928 | fi
|
---|
1929 |
|
---|
1930 | test -n "$AWK" && break
|
---|
1931 | done
|
---|
1932 |
|
---|
1933 | for ac_prog in 'bison -y' byacc
|
---|
1934 | do
|
---|
1935 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1936 | set dummy $ac_prog; ac_word=$2
|
---|
1937 | echo "$as_me:1937: checking for $ac_word" >&5
|
---|
1938 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1939 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
1940 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1941 | else
|
---|
1942 | if test -n "$YACC"; then
|
---|
1943 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
1944 | else
|
---|
1945 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
1946 | ac_dummy="$PATH"
|
---|
1947 | for ac_dir in $ac_dummy; do
|
---|
1948 | IFS=$ac_save_IFS
|
---|
1949 | test -z "$ac_dir" && ac_dir=.
|
---|
1950 | $as_executable_p "$ac_dir/$ac_word" || continue
|
---|
1951 | ac_cv_prog_YACC="$ac_prog"
|
---|
1952 | echo "$as_me:1952: found $ac_dir/$ac_word" >&5
|
---|
1953 | break
|
---|
1954 | done
|
---|
1955 |
|
---|
1956 | fi
|
---|
1957 | fi
|
---|
1958 | YACC=$ac_cv_prog_YACC
|
---|
1959 | if test -n "$YACC"; then
|
---|
1960 | echo "$as_me:1960: result: $YACC" >&5
|
---|
1961 | echo "${ECHO_T}$YACC" >&6
|
---|
1962 | else
|
---|
1963 | echo "$as_me:1963: result: no" >&5
|
---|
1964 | echo "${ECHO_T}no" >&6
|
---|
1965 | fi
|
---|
1966 |
|
---|
1967 | test -n "$YACC" && break
|
---|
1968 | done
|
---|
1969 | test -n "$YACC" || YACC="yacc"
|
---|
1970 |
|
---|
1971 | ac_aux_dir=
|
---|
1972 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
1973 | if test -f $ac_dir/install-sh; then
|
---|
1974 | ac_aux_dir=$ac_dir
|
---|
1975 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
1976 | break
|
---|
1977 | elif test -f $ac_dir/install.sh; then
|
---|
1978 | ac_aux_dir=$ac_dir
|
---|
1979 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
1980 | break
|
---|
1981 | elif test -f $ac_dir/shtool; then
|
---|
1982 | ac_aux_dir=$ac_dir
|
---|
1983 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
1984 | break
|
---|
1985 | fi
|
---|
1986 | done
|
---|
1987 | if test -z "$ac_aux_dir"; then
|
---|
1988 | { { echo "$as_me:1988: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
1989 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
1990 | { (exit 1); exit 1; }; }
|
---|
1991 | fi
|
---|
1992 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
1993 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
1994 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
1995 |
|
---|
1996 | # Make sure we can run config.sub.
|
---|
1997 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
1998 | { { echo "$as_me:1998: error: cannot run $ac_config_sub" >&5
|
---|
1999 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
2000 | { (exit 1); exit 1; }; }
|
---|
2001 |
|
---|
2002 | echo "$as_me:2002: checking build system type" >&5
|
---|
2003 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
2004 | if test "${ac_cv_build+set}" = set; then
|
---|
2005 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2006 | else
|
---|
2007 | ac_cv_build_alias=$build_alias
|
---|
2008 | test -z "$ac_cv_build_alias" &&
|
---|
2009 | ac_cv_build_alias=`$ac_config_guess`
|
---|
2010 | test -z "$ac_cv_build_alias" &&
|
---|
2011 | { { echo "$as_me:2011: error: cannot guess build type; you must specify one" >&5
|
---|
2012 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
2013 | { (exit 1); exit 1; }; }
|
---|
2014 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
2015 | { { echo "$as_me:2015: error: $ac_config_sub $ac_cv_build_alias failed." >&5
|
---|
2016 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
|
---|
2017 | { (exit 1); exit 1; }; }
|
---|
2018 |
|
---|
2019 | fi
|
---|
2020 | echo "$as_me:2020: result: $ac_cv_build" >&5
|
---|
2021 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
2022 | build=$ac_cv_build
|
---|
2023 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2024 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2025 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2026 |
|
---|
2027 | echo "$as_me:2027: checking host system type" >&5
|
---|
2028 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
2029 | if test "${ac_cv_host+set}" = set; then
|
---|
2030 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2031 | else
|
---|
2032 | ac_cv_host_alias=$host_alias
|
---|
2033 | test -z "$ac_cv_host_alias" &&
|
---|
2034 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
2035 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
2036 | { { echo "$as_me:2036: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
2037 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
2038 | { (exit 1); exit 1; }; }
|
---|
2039 |
|
---|
2040 | fi
|
---|
2041 | echo "$as_me:2041: result: $ac_cv_host" >&5
|
---|
2042 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
2043 | host=$ac_cv_host
|
---|
2044 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2045 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2046 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2047 |
|
---|
2048 | echo "$as_me:2048: checking target system type" >&5
|
---|
2049 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
2050 | if test "${ac_cv_target+set}" = set; then
|
---|
2051 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2052 | else
|
---|
2053 | ac_cv_target_alias=$target_alias
|
---|
2054 | test "x$ac_cv_target_alias" = "x" &&
|
---|
2055 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
2056 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
2057 | { { echo "$as_me:2057: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
2058 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
2059 | { (exit 1); exit 1; }; }
|
---|
2060 |
|
---|
2061 | fi
|
---|
2062 | echo "$as_me:2062: result: $ac_cv_target" >&5
|
---|
2063 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
2064 | target=$ac_cv_target
|
---|
2065 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2066 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2067 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2068 |
|
---|
2069 | # The aliases save the names the user supplied, while $host etc.
|
---|
2070 | # will get canonicalized.
|
---|
2071 | test -n "$target_alias" &&
|
---|
2072 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
2073 | NONENONEs,x,x, &&
|
---|
2074 | program_prefix=${target_alias}-
|
---|
2075 | # Find a good install program. We prefer a C program (faster),
|
---|
2076 | # so one script is as good as another. But avoid the broken or
|
---|
2077 | # incompatible versions:
|
---|
2078 | # SysV /etc/install, /usr/sbin/install
|
---|
2079 | # SunOS /usr/etc/install
|
---|
2080 | # IRIX /sbin/install
|
---|
2081 | # AIX /bin/install
|
---|
2082 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
2083 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2084 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2085 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2086 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2087 | echo "$as_me:2087: checking for a BSD compatible install" >&5
|
---|
2088 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
|
---|
2089 | if test -z "$INSTALL"; then
|
---|
2090 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2091 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2092 | else
|
---|
2093 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
2094 | for ac_dir in $PATH; do
|
---|
2095 | IFS=$ac_save_IFS
|
---|
2096 | # Account for people who put trailing slashes in PATH elements.
|
---|
2097 | case $ac_dir/ in
|
---|
2098 | / | ./ | .// | /cC/* \
|
---|
2099 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
|
---|
2100 | | /usr/ucb/* ) ;;
|
---|
2101 | *)
|
---|
2102 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2103 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2104 | # by default.
|
---|
2105 | for ac_prog in ginstall scoinst install; do
|
---|
2106 | if $as_executable_p "$ac_dir/$ac_prog"; then
|
---|
2107 | if test $ac_prog = install &&
|
---|
2108 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
|
---|
2109 | # AIX install. It has an incompatible calling convention.
|
---|
2110 | :
|
---|
2111 | elif test $ac_prog = install &&
|
---|
2112 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
|
---|
2113 | # program-specific install script used by HP pwplus--don't use.
|
---|
2114 | :
|
---|
2115 | else
|
---|
2116 | ac_cv_path_install="$ac_dir/$ac_prog -c"
|
---|
2117 | break 2
|
---|
2118 | fi
|
---|
2119 | fi
|
---|
2120 | done
|
---|
2121 | ;;
|
---|
2122 | esac
|
---|
2123 | done
|
---|
2124 |
|
---|
2125 | fi
|
---|
2126 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2127 | INSTALL=$ac_cv_path_install
|
---|
2128 | else
|
---|
2129 | # As a last resort, use the slow shell script. We don't cache a
|
---|
2130 | # path for INSTALL within a source directory, because that will
|
---|
2131 | # break other packages using the cache if that directory is
|
---|
2132 | # removed, or if the path is relative.
|
---|
2133 | INSTALL=$ac_install_sh
|
---|
2134 | fi
|
---|
2135 | fi
|
---|
2136 | echo "$as_me:2136: result: $INSTALL" >&5
|
---|
2137 | echo "${ECHO_T}$INSTALL" >&6
|
---|
2138 |
|
---|
2139 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2140 | # It thinks the first close brace ends the variable substitution.
|
---|
2141 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2142 |
|
---|
2143 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
2144 |
|
---|
2145 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2146 |
|
---|
2147 | echo "$as_me:2147: checking whether ln -s works" >&5
|
---|
2148 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
2149 | LN_S=$as_ln_s
|
---|
2150 | if test "$LN_S" = "ln -s"; then
|
---|
2151 | echo "$as_me:2151: result: yes" >&5
|
---|
2152 | echo "${ECHO_T}yes" >&6
|
---|
2153 | else
|
---|
2154 | echo "$as_me:2154: result: no, using $LN_S" >&5
|
---|
2155 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
2156 | fi
|
---|
2157 |
|
---|
2158 | echo "$as_me:2158: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
2159 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
|
---|
2160 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
|
---|
2161 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
2162 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2163 | else
|
---|
2164 | cat >conftest.make <<\EOF
|
---|
2165 | all:
|
---|
2166 | @echo 'ac_maketemp="${MAKE}"'
|
---|
2167 | EOF
|
---|
2168 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
2169 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
2170 | if test -n "$ac_maketemp"; then
|
---|
2171 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
2172 | else
|
---|
2173 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
2174 | fi
|
---|
2175 | rm -f conftest.make
|
---|
2176 | fi
|
---|
2177 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
2178 | echo "$as_me:2178: result: yes" >&5
|
---|
2179 | echo "${ECHO_T}yes" >&6
|
---|
2180 | SET_MAKE=
|
---|
2181 | else
|
---|
2182 | echo "$as_me:2182: result: no" >&5
|
---|
2183 | echo "${ECHO_T}no" >&6
|
---|
2184 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
2185 | fi
|
---|
2186 |
|
---|
2187 | if test -n "$ac_tool_prefix"; then
|
---|
2188 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
2189 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
2190 | echo "$as_me:2190: checking for $ac_word" >&5
|
---|
2191 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2192 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
2193 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2194 | else
|
---|
2195 | if test -n "$RANLIB"; then
|
---|
2196 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2197 | else
|
---|
2198 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
2199 | ac_dummy="$PATH"
|
---|
2200 | for ac_dir in $ac_dummy; do
|
---|
2201 | IFS=$ac_save_IFS
|
---|
2202 | test -z "$ac_dir" && ac_dir=.
|
---|
2203 | $as_executable_p "$ac_dir/$ac_word" || continue
|
---|
2204 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
2205 | echo "$as_me:2205: found $ac_dir/$ac_word" >&5
|
---|
2206 | break
|
---|
2207 | done
|
---|
2208 |
|
---|
2209 | fi
|
---|
2210 | fi
|
---|
2211 | RANLIB=$ac_cv_prog_RANLIB
|
---|
2212 | if test -n "$RANLIB"; then
|
---|
2213 | echo "$as_me:2213: result: $RANLIB" >&5
|
---|
2214 | echo "${ECHO_T}$RANLIB" >&6
|
---|
2215 | else
|
---|
2216 | echo "$as_me:2216: result: no" >&5
|
---|
2217 | echo "${ECHO_T}no" >&6
|
---|
2218 | fi
|
---|
2219 |
|
---|
2220 | fi
|
---|
2221 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
2222 | ac_ct_RANLIB=$RANLIB
|
---|
2223 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2224 | set dummy ranlib; ac_word=$2
|
---|
2225 | echo "$as_me:2225: checking for $ac_word" >&5
|
---|
2226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2227 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
2228 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2229 | else
|
---|
2230 | if test -n "$ac_ct_RANLIB"; then
|
---|
2231 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
2232 | else
|
---|
2233 | ac_save_IFS=$IFS; IFS=$ac_path_separator
|
---|
2234 | ac_dummy="$PATH"
|
---|
2235 | for ac_dir in $ac_dummy; do
|
---|
2236 | IFS=$ac_save_IFS
|
---|
2237 | test -z "$ac_dir" && ac_dir=.
|
---|
2238 | $as_executable_p "$ac_dir/$ac_word" || continue
|
---|
2239 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
2240 | echo "$as_me:2240: found $ac_dir/$ac_word" >&5
|
---|
2241 | break
|
---|
2242 | done
|
---|
2243 |
|
---|
2244 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
2245 | fi
|
---|
2246 | fi
|
---|
2247 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
2248 | if test -n "$ac_ct_RANLIB"; then
|
---|
2249 | echo "$as_me:2249: result: $ac_ct_RANLIB" >&5
|
---|
2250 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
2251 | else
|
---|
2252 | echo "$as_me:2252: result: no" >&5
|
---|
2253 | echo "${ECHO_T}no" >&6
|
---|
2254 | fi
|
---|
2255 |
|
---|
2256 | RANLIB=$ac_ct_RANLIB
|
---|
2257 | else
|
---|
2258 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2259 | fi
|
---|
2260 |
|
---|
2261 | ac_ext=c
|
---|
2262 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2263 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2264 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2265 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2266 | echo "$as_me:2266: checking how to run the C preprocessor" >&5
|
---|
2267 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
2268 | # On Suns, sometimes $CPP names a directory.
|
---|
2269 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2270 | CPP=
|
---|
2271 | fi
|
---|
2272 | if test -z "$CPP"; then
|
---|
2273 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
2274 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2275 | else
|
---|
2276 | # Double quotes because CPP needs to be expanded
|
---|
2277 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
2278 | do
|
---|
2279 | # break 2 since there is a loop in there.
|
---|
2280 | ac_preproc_ok=false
|
---|
2281 | for ac_c_preproc_warn_flag in '' yes
|
---|
2282 | do
|
---|
2283 | # Use a header file that comes with gcc, so configuring glibc
|
---|
2284 | # with a fresh cross-compiler works.
|
---|
2285 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2286 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
2287 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2288 | #line 2288 "configure"
|
---|
2289 | #include "confdefs.h"
|
---|
2290 | #include <assert.h>
|
---|
2291 | Syntax error
|
---|
2292 | _ACEOF
|
---|
2293 | if { (eval echo "$as_me:2293: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2294 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2295 | ac_status=$?
|
---|
2296 | egrep -v '^ *\+' conftest.er1 >conftest.err
|
---|
2297 | rm -f conftest.er1
|
---|
2298 | cat conftest.err >&5
|
---|
2299 | echo "$as_me:2299: \$? = $ac_status" >&5
|
---|
2300 | (exit $ac_status); } >/dev/null; then
|
---|
2301 | if test -s conftest.err; then
|
---|
2302 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2303 | else
|
---|
2304 | ac_cpp_err=
|
---|
2305 | fi
|
---|
2306 | else
|
---|
2307 | ac_cpp_err=yes
|
---|
2308 | fi
|
---|
2309 | if test -z "$ac_cpp_err"; then
|
---|
2310 | :
|
---|
2311 | else
|
---|
2312 | echo "$as_me: failed program was:" >&5
|
---|
2313 | cat conftest.$ac_ext >&5
|
---|
2314 | # Broken: fails on valid input.
|
---|
2315 | continue
|
---|
2316 | fi
|
---|
2317 | rm -f conftest.err conftest.$ac_ext
|
---|
2318 |
|
---|
2319 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
2320 | # can be detected and how.
|
---|
2321 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2322 | #line 2322 "configure"
|
---|
2323 | #include "confdefs.h"
|
---|
2324 | #include <ac_nonexistent.h>
|
---|
2325 | _ACEOF
|
---|
2326 | if { (eval echo "$as_me:2326: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2327 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2328 | ac_status=$?
|
---|
2329 | egrep -v '^ *\+' conftest.er1 >conftest.err
|
---|
2330 | rm -f conftest.er1
|
---|
2331 | cat conftest.err >&5
|
---|
2332 | echo "$as_me:2332: \$? = $ac_status" >&5
|
---|
2333 | (exit $ac_status); } >/dev/null; then
|
---|
2334 | if test -s conftest.err; then
|
---|
2335 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2336 | else
|
---|
2337 | ac_cpp_err=
|
---|
2338 | fi
|
---|
2339 | else
|
---|
2340 | ac_cpp_err=yes
|
---|
2341 | fi
|
---|
2342 | if test -z "$ac_cpp_err"; then
|
---|
2343 | # Broken: success on invalid input.
|
---|
2344 | continue
|
---|
2345 | else
|
---|
2346 | echo "$as_me: failed program was:" >&5
|
---|
2347 | cat conftest.$ac_ext >&5
|
---|
2348 | # Passes both tests.
|
---|
2349 | ac_preproc_ok=:
|
---|
2350 | break
|
---|
2351 | fi
|
---|
2352 | rm -f conftest.err conftest.$ac_ext
|
---|
2353 |
|
---|
2354 | done
|
---|
2355 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
2356 | rm -f conftest.err conftest.$ac_ext
|
---|
2357 | if $ac_preproc_ok; then
|
---|
2358 | break 2
|
---|
2359 | fi
|
---|
2360 |
|
---|
2361 | done
|
---|
2362 | ac_cv_prog_CPP=$CPP
|
---|
2363 |
|
---|
2364 | fi
|
---|
2365 | CPP=$ac_cv_prog_CPP
|
---|
2366 | else
|
---|
2367 | ac_cv_prog_CPP=$CPP
|
---|
2368 | fi
|
---|
2369 | echo "$as_me:2369: result: $CPP" >&5
|
---|
2370 | echo "${ECHO_T}$CPP" >&6
|
---|
2371 | ac_preproc_ok=false
|
---|
2372 | for ac_c_preproc_warn_flag in '' yes
|
---|
2373 | do
|
---|
2374 | # Use a header file that comes with gcc, so configuring glibc
|
---|
2375 | # with a fresh cross-compiler works.
|
---|
2376 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2377 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
2378 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2379 | #line 2379 "configure"
|
---|
2380 | #include "confdefs.h"
|
---|
2381 | #include <assert.h>
|
---|
2382 | Syntax error
|
---|
2383 | _ACEOF
|
---|
2384 | if { (eval echo "$as_me:2384: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2385 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2386 | ac_status=$?
|
---|
2387 | egrep -v '^ *\+' conftest.er1 >conftest.err
|
---|
2388 | rm -f conftest.er1
|
---|
2389 | cat conftest.err >&5
|
---|
2390 | echo "$as_me:2390: \$? = $ac_status" >&5
|
---|
2391 | (exit $ac_status); } >/dev/null; then
|
---|
2392 | if test -s conftest.err; then
|
---|
2393 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2394 | else
|
---|
2395 | ac_cpp_err=
|
---|
2396 | fi
|
---|
2397 | else
|
---|
2398 | ac_cpp_err=yes
|
---|
2399 | fi
|
---|
2400 | if test -z "$ac_cpp_err"; then
|
---|
2401 | :
|
---|
2402 | else
|
---|
2403 | echo "$as_me: failed program was:" >&5
|
---|
2404 | cat conftest.$ac_ext >&5
|
---|
2405 | # Broken: fails on valid input.
|
---|
2406 | continue
|
---|
2407 | fi
|
---|
2408 | rm -f conftest.err conftest.$ac_ext
|
---|
2409 |
|
---|
2410 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
2411 | # can be detected and how.
|
---|
2412 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2413 | #line 2413 "configure"
|
---|
2414 | #include "confdefs.h"
|
---|
2415 | #include <ac_nonexistent.h>
|
---|
2416 | _ACEOF
|
---|
2417 | if { (eval echo "$as_me:2417: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2418 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2419 | ac_status=$?
|
---|
2420 | egrep -v '^ *\+' conftest.er1 >conftest.err
|
---|
2421 | rm -f conftest.er1
|
---|
2422 | cat conftest.err >&5
|
---|
2423 | echo "$as_me:2423: \$? = $ac_status" >&5
|
---|
2424 | (exit $ac_status); } >/dev/null; then
|
---|
2425 | if test -s conftest.err; then
|
---|
2426 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2427 | else
|
---|
2428 | ac_cpp_err=
|
---|
2429 | fi
|
---|
2430 | else
|
---|
2431 | ac_cpp_err=yes
|
---|
2432 | fi
|
---|
2433 | if test -z "$ac_cpp_err"; then
|
---|
2434 | # Broken: success on invalid input.
|
---|
2435 | continue
|
---|
2436 | else
|
---|
2437 | echo "$as_me: failed program was:" >&5
|
---|
2438 | cat conftest.$ac_ext >&5
|
---|
2439 | # Passes both tests.
|
---|
2440 | ac_preproc_ok=:
|
---|
2441 | break
|
---|
2442 | fi
|
---|
2443 | rm -f conftest.err conftest.$ac_ext
|
---|
2444 |
|
---|
2445 | done
|
---|
2446 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
2447 | rm -f conftest.err conftest.$ac_ext
|
---|
2448 | if $ac_preproc_ok; then
|
---|
2449 | :
|
---|
2450 | else
|
---|
2451 | { { echo "$as_me:2451: error: C preprocessor \"$CPP\" fails sanity check" >&5
|
---|
2452 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
|
---|
2453 | { (exit 1); exit 1; }; }
|
---|
2454 | fi
|
---|
2455 |
|
---|
2456 | ac_ext=c
|
---|
2457 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2461 |
|
---|
2462 | echo "$as_me:2462: checking for AIX" >&5
|
---|
2463 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
2464 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2465 | #line 2465 "configure"
|
---|
2466 | #include "confdefs.h"
|
---|
2467 | #ifdef _AIX
|
---|
2468 | yes
|
---|
2469 | #endif
|
---|
2470 |
|
---|
2471 | _ACEOF
|
---|
2472 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2473 | egrep "yes" >/dev/null 2>&1; then
|
---|
2474 | echo "$as_me:2474: result: yes" >&5
|
---|
2475 | echo "${ECHO_T}yes" >&6
|
---|
2476 | cat >>confdefs.h <<\EOF
|
---|
2477 | #define _ALL_SOURCE 1
|
---|
2478 | EOF
|
---|
2479 |
|
---|
2480 | else
|
---|
2481 | echo "$as_me:2481: result: no" >&5
|
---|
2482 | echo "${ECHO_T}no" >&6
|
---|
2483 | fi
|
---|
2484 | rm -f conftest*
|
---|
2485 |
|
---|
2486 | echo "$as_me:2486: checking for POSIXized ISC" >&5
|
---|
2487 | echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
|
---|
2488 | if test -d /etc/conf/kconfig.d &&
|
---|
2489 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
---|
2490 | then
|
---|
2491 | echo "$as_me:2491: result: yes" >&5
|
---|
2492 | echo "${ECHO_T}yes" >&6
|
---|
2493 | ISC=yes # If later tests want to check for ISC.
|
---|
2494 |
|
---|
2495 | cat >>confdefs.h <<\EOF
|
---|
2496 | #define _POSIX_SOURCE 1
|
---|
2497 | EOF
|
---|
2498 |
|
---|
2499 | if test "$GCC" = yes; then
|
---|
2500 | CC="$CC -posix"
|
---|
2501 | else
|
---|
2502 | CC="$CC -Xp"
|
---|
2503 | fi
|
---|
2504 | else
|
---|
2505 | echo "$as_me:2505: result: no" >&5
|
---|
2506 | echo "${ECHO_T}no" >&6
|
---|
2507 | ISC=
|
---|
2508 | fi
|
---|
2509 |
|
---|
2510 | echo "$as_me:2510: checking for minix/config.h" >&5
|
---|
2511 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
2512 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
2513 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2514 | else
|
---|
2515 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2516 | #line 2516 "configure"
|
---|
2517 | #include "confdefs.h"
|
---|
2518 | #include <minix/config.h>
|
---|
2519 | _ACEOF
|
---|
2520 | if { (eval echo "$as_me:2520: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2521 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2522 | ac_status=$?
|
---|
2523 | egrep -v '^ *\+' conftest.er1 >conftest.err
|
---|
2524 | rm -f conftest.er1
|
---|
2525 | cat conftest.err >&5
|
---|
2526 | echo "$as_me:2526: \$? = $ac_status" >&5
|
---|
2527 | (exit $ac_status); } >/dev/null; then
|
---|
2528 | if test -s conftest.err; then
|
---|
2529 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2530 | else
|
---|
2531 | ac_cpp_err=
|
---|
2532 | fi
|
---|
2533 | else
|
---|
2534 | ac_cpp_err=yes
|
---|
2535 | fi
|
---|
2536 | if test -z "$ac_cpp_err"; then
|
---|
2537 | ac_cv_header_minix_config_h=yes
|
---|
2538 | else
|
---|
2539 | echo "$as_me: failed program was:" >&5
|
---|
2540 | cat conftest.$ac_ext >&5
|
---|
2541 | ac_cv_header_minix_config_h=no
|
---|
2542 | fi
|
---|
2543 | rm -f conftest.err conftest.$ac_ext
|
---|
2544 | fi
|
---|
2545 | echo "$as_me:2545: result: $ac_cv_header_minix_config_h" >&5
|
---|
2546 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
2547 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
2548 | MINIX=yes
|
---|
2549 | else
|
---|
2550 | MINIX=
|
---|
2551 | fi
|
---|
2552 |
|
---|
2553 | if test "$MINIX" = yes; then
|
---|
2554 |
|
---|
2555 | cat >>confdefs.h <<\EOF
|
---|
2556 | #define _POSIX_SOURCE 1
|
---|
2557 | EOF
|
---|
2558 |
|
---|
2559 | cat >>confdefs.h <<\EOF
|
---|
2560 | #define _POSIX_1_SOURCE 2
|
---|
2561 | EOF
|
---|
2562 |
|
---|
2563 | cat >>confdefs.h <<\EOF
|
---|
2564 | #define _MINIX 1
|
---|
2565 | EOF
|
---|
2566 |
|
---|
2567 | fi
|
---|
2568 |
|
---|
2569 | echo "$as_me:2569: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
2570 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
2571 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
2572 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2573 | else
|
---|
2574 | ac_cv_prog_cc_stdc=no
|
---|
2575 | ac_save_CFLAGS="$CFLAGS"
|
---|
2576 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
2577 | # breaks some systems' header files.
|
---|
2578 | # AIX -qlanglvl=ansi
|
---|
2579 | # Ultrix and OSF/1 -std1
|
---|
2580 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
2581 | # SVR4 -Xc
|
---|
2582 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
2583 | do
|
---|
2584 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
2585 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2586 | #line 2586 "configure"
|
---|
2587 | #include "confdefs.h"
|
---|
2588 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
2589 | choke me
|
---|
2590 | #endif
|
---|
2591 |
|
---|
2592 | int
|
---|
2593 | main ()
|
---|
2594 | {
|
---|
2595 | int test (int i, double x);
|
---|
2596 | struct s1 {int (*f) (int a);};
|
---|
2597 | struct s2 {int (*f) (double a);};
|
---|
2598 | ;
|
---|
2599 | return 0;
|
---|
2600 | }
|
---|
2601 | _ACEOF
|
---|
2602 | rm -f conftest.$ac_objext
|
---|
2603 | if { (eval echo "$as_me:2603: \"$ac_compile\"") >&5
|
---|
2604 | (eval $ac_compile) 2>&5
|
---|
2605 | ac_status=$?
|
---|
2606 | echo "$as_me:2606: \$? = $ac_status" >&5
|
---|
2607 | (exit $ac_status); } &&
|
---|
2608 | { ac_try='test -s conftest.$ac_objext'
|
---|
2609 | { (eval echo "$as_me:2609: \"$ac_try\"") >&5
|
---|
2610 | (eval $ac_try) 2>&5
|
---|
2611 | ac_status=$?
|
---|
2612 | echo "$as_me:2612: \$? = $ac_status" >&5
|
---|
2613 | (exit $ac_status); }; }; then
|
---|
2614 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
2615 | else
|
---|
2616 | echo "$as_me: failed program was:" >&5
|
---|
2617 | cat conftest.$ac_ext >&5
|
---|
2618 | fi
|
---|
2619 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
2620 | done
|
---|
2621 | CFLAGS="$ac_save_CFLAGS"
|
---|
2622 |
|
---|
2623 | fi
|
---|
2624 |
|
---|
2625 | echo "$as_me:2625: result: $ac_cv_prog_cc_stdc" >&5
|
---|
2626 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
2627 | case "x$ac_cv_prog_cc_stdc" in
|
---|
2628 | x|xno) ;;
|
---|
2629 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
2630 | esac
|
---|
2631 |
|
---|
2632 | echo "$as_me:2632: checking for function prototypes" >&5
|
---|
2633 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
2634 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
2635 | echo "$as_me:2635: result: yes" >&5
|
---|
2636 | echo "${ECHO_T}yes" >&6
|
---|
2637 | cat >>confdefs.h <<\EOF
|
---|
2638 | #define PROTOTYPES 1
|
---|
2639 | EOF
|
---|
2640 |
|
---|
2641 | U= ANSI2KNR=
|
---|
2642 | else
|
---|
2643 | echo "$as_me:2643: result: no" >&5
|
---|
2644 | echo "${ECHO_T}no" >&6
|
---|
2645 | U=_ ANSI2KNR=ansi2knr
|
---|
2646 | fi
|
---|
2647 |
|
---|
2648 | echo "$as_me:2648: checking for $CC option to accept ANSI C" >&5
|
---|
2649 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
2650 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
2651 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2652 | else
|
---|
2653 | ac_cv_prog_cc_stdc=no
|
---|
2654 | ac_save_CC=$CC
|
---|
2655 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2656 | #line 2656 "configure"
|
---|
2657 | #include "confdefs.h"
|
---|
2658 | #include <stdarg.h>
|
---|
2659 | #include <stdio.h>
|
---|
2660 | #include <sys/types.h>
|
---|
2661 | #include <sys/stat.h>
|
---|
2662 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2663 | struct buf { int x; };
|
---|
2664 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2665 | static char *e (p, i)
|
---|
2666 | char **p;
|
---|
2667 | int i;
|
---|
2668 | {
|
---|
2669 | return p[i];
|
---|
2670 | }
|
---|
2671 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2672 | {
|
---|
2673 | char *s;
|
---|
2674 | va_list v;
|
---|
2675 | va_start (v,p);
|
---|
2676 | s = g (p, va_arg (v,int));
|
---|
2677 | va_end (v);
|
---|
2678 | return s;
|
---|
2679 | }
|
---|
2680 | int test (int i, double x);
|
---|
2681 | struct s1 {int (*f) (int a);};
|
---|
2682 | struct s2 {int (*f) (double a);};
|
---|
2683 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
2684 | int argc;
|
---|
2685 | char **argv;
|
---|
2686 | int
|
---|
2687 | main ()
|
---|
2688 | {
|
---|
2689 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
2690 | ;
|
---|
2691 | return 0;
|
---|
2692 | }
|
---|
2693 | _ACEOF
|
---|
2694 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
2695 | # breaks some systems' header files.
|
---|
2696 | # AIX -qlanglvl=ansi
|
---|
2697 | # Ultrix and OSF/1 -std1
|
---|
2698 | # HP-UX 10.20 and later -Ae
|
---|
2699 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
2700 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
2701 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2702 | do
|
---|
2703 | CC="$ac_save_CC $ac_arg"
|
---|
2704 | rm -f conftest.$ac_objext
|
---|
2705 | if { (eval echo "$as_me:2705: \"$ac_compile\"") >&5
|
---|
2706 | (eval $ac_compile) 2>&5
|
---|
2707 | ac_status=$?
|
---|
2708 | echo "$as_me:2708: \$? = $ac_status" >&5
|
---|
2709 | (exit $ac_status); } &&
|
---|
2710 | { ac_try='test -s conftest.$ac_objext'
|
---|
2711 | { (eval echo "$as_me:2711: \"$ac_try\"") >&5
|
---|
2712 | (eval $ac_try) 2>&5
|
---|
2713 | ac_status=$?
|
---|
2714 | echo "$as_me:2714: \$? = $ac_status" >&5
|
---|
2715 | (exit $ac_status); }; }; then
|
---|
2716 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
2717 | break
|
---|
2718 | else
|
---|
2719 | echo "$as_me: failed program was:" >&5
|
---|
2720 | cat conftest.$ac_ext >&5
|
---|
2721 | fi
|
---|
2722 | rm -f conftest.$ac_objext
|
---|
2723 | done
|
---|
2724 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
2725 | CC=$ac_save_CC
|
---|
2726 |
|
---|
2727 | fi
|
---|
2728 |
|
---|
2729 | case "x$ac_cv_prog_cc_stdc" in
|
---|
2730 | x|xno)
|
---|
2731 | echo "$as_me:2731: result: none needed" >&5
|
---|
2732 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
2733 | *)
|
---|
2734 | echo "$as_me:2734: result: $ac_cv_prog_cc_stdc" >&5
|
---|
2735 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
2736 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
2737 | esac
|
---|
2738 |
|
---|
2739 | echo "$as_me:2739: checking for an ANSI C-conforming const" >&5
|
---|
2740 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
2741 | if test "${ac_cv_c_const+set}" = set; then
|
---|
2742 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2743 | else
|
---|
2744 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2745 | #line 2745 "configure"
|
---|
2746 | #include "confdefs.h"
|
---|
2747 |
|
---|
2748 | int
|
---|
2749 | main ()
|
---|
2750 | {
|
---|
2751 | /* FIXME: Include the comments suggested by Paul. */
|
---|
2752 | #ifndef __cplusplus
|
---|
2753 | /* Ultrix mips cc rejects this. */
|
---|
2754 | typedef int charset[2];
|
---|
2755 | const charset x;
|
---|
2756 | /* SunOS 4.1.1 cc rejects this. */
|
---|
2757 | char const *const *ccp;
|
---|
2758 | char **p;
|
---|
2759 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
2760 | struct point {int x, y;};
|
---|
2761 | static struct point const zero = {0,0};
|
---|
2762 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
2763 | It does not let you subtract one const X* pointer from another in
|
---|
2764 | an arm of an if-expression whose if-part is not a constant
|
---|
2765 | expression */
|
---|
2766 | const char *g = "string";
|
---|
2767 | ccp = &g + (g ? g-g : 0);
|
---|
2768 | /* HPUX 7.0 cc rejects these. */
|
---|
2769 | ++ccp;
|
---|
2770 | p = (char**) ccp;
|
---|
2771 | ccp = (char const *const *) p;
|
---|
2772 | { /* SCO 3.2v4 cc rejects this. */
|
---|
2773 | char *t;
|
---|
2774 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
2775 |
|
---|
2776 | *t++ = 0;
|
---|
2777 | }
|
---|
2778 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
2779 | int x[] = {25, 17};
|
---|
2780 | const int *foo = &x[0];
|
---|
2781 | ++foo;
|
---|
2782 | }
|
---|
2783 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
2784 | typedef const int *iptr;
|
---|
2785 | iptr p = 0;
|
---|
2786 | ++p;
|
---|
2787 | }
|
---|
2788 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
2789 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
2790 | struct s { int j; const int *ap[3]; };
|
---|
2791 | struct s *b; b->j = 5;
|
---|
2792 | }
|
---|
2793 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
2794 | const int foo = 10;
|
---|
2795 | }
|
---|
2796 | #endif
|
---|
2797 |
|
---|
2798 | ;
|
---|
2799 | return 0;
|
---|
2800 | }
|
---|
2801 | _ACEOF
|
---|
2802 | rm -f conftest.$ac_objext
|
---|
2803 | if { (eval echo "$as_me:2803: \"$ac_compile\"") >&5
|
---|
2804 | (eval $ac_compile) 2>&5
|
---|
2805 | ac_status=$?
|
---|
2806 | echo "$as_me:2806: \$? = $ac_status" >&5
|
---|
2807 | (exit $ac_status); } &&
|
---|
2808 | { ac_try='test -s conftest.$ac_objext'
|
---|
2809 | { (eval echo "$as_me:2809: \"$ac_try\"") >&5
|
---|
2810 | (eval $ac_try) 2>&5
|
---|
2811 | ac_status=$?
|
---|
2812 | echo "$as_me:2812: \$? = $ac_status" >&5
|
---|
2813 | (exit $ac_status); }; }; then
|
---|
2814 | ac_cv_c_const=yes
|
---|
2815 | else
|
---|
2816 | echo "$as_me: failed program was:" >&5
|
---|
2817 | cat conftest.$ac_ext >&5
|
---|
2818 | ac_cv_c_const=no
|
---|
2819 | fi
|
---|
2820 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
2821 | fi
|
---|
2822 | echo "$as_me:2822: result: $ac_cv_c_const" >&5
|
---|
2823 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
2824 | if test $ac_cv_c_const = no; then
|
---|
2825 |
|
---|
2826 | cat >>confdefs.h <<\EOF
|
---|
2827 | #define const
|
---|
2828 | EOF
|
---|
2829 |
|
---|
2830 | fi
|
---|
2831 |
|
---|
2832 | echo "$as_me:2832: checking for ANSI C header files" >&5
|
---|
2833 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
2834 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
2835 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2836 | else
|
---|
2837 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2838 | #line 2838 "configure"
|
---|
2839 | #include "confdefs.h"
|
---|
2840 | #include <stdlib.h>
|
---|
2841 | #include <stdarg.h>
|
---|
2842 | #include <string.h>
|
---|
2843 | #include <float.h>
|
---|
2844 |
|
---|
2845 | _ACEOF
|
---|
2846 | if { (eval echo "$as_me:2846: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2847 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2848 | ac_status=$?
|
---|
2849 | egrep -v '^ *\+' conftest.er1 >conftest.err
|
---|
2850 | rm -f conftest.er1
|
---|
2851 | cat conftest.err >&5
|
---|
2852 | echo "$as_me:2852: \$? = $ac_status" >&5
|
---|
2853 | (exit $ac_status); } >/dev/null; then
|
---|
2854 | if test -s conftest.err; then
|
---|
2855 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2856 | else
|
---|
2857 | ac_cpp_err=
|
---|
2858 | fi
|
---|
2859 | else
|
---|
2860 | ac_cpp_err=yes
|
---|
2861 | fi
|
---|
2862 | if test -z "$ac_cpp_err"; then
|
---|
2863 | ac_cv_header_stdc=yes
|
---|
2864 | else
|
---|
2865 | echo "$as_me: failed program was:" >&5
|
---|
2866 | cat conftest.$ac_ext >&5
|
---|
2867 | ac_cv_header_stdc=no
|
---|
2868 | fi
|
---|
2869 | rm -f conftest.err conftest.$ac_ext
|
---|
2870 |
|
---|
2871 | if test $ac_cv_header_stdc = yes; then
|
---|
2872 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
2873 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2874 | #line 2874 "configure"
|
---|
2875 | #include "confdefs.h"
|
---|
2876 | #include <string.h>
|
---|
2877 |
|
---|
2878 | _ACEOF
|
---|
2879 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2880 | egrep "memchr" >/dev/null 2>&1; then
|
---|
2881 | :
|
---|
2882 | else
|
---|
2883 | ac_cv_header_stdc=no
|
---|
2884 | fi
|
---|
2885 | rm -f conftest*
|
---|
2886 |
|
---|
2887 | fi
|
---|
2888 |
|
---|
2889 | if test $ac_cv_header_stdc = yes; then
|
---|
2890 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
2891 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2892 | #line 2892 "configure"
|
---|
2893 | #include "confdefs.h"
|
---|
2894 | #include <stdlib.h>
|
---|
2895 |
|
---|
2896 | _ACEOF
|
---|
2897 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2898 | egrep "free" >/dev/null 2>&1; then
|
---|
2899 | :
|
---|
2900 | else
|
---|
2901 | ac_cv_header_stdc=no
|
---|
2902 | fi
|
---|
2903 | rm -f conftest*
|
---|
2904 |
|
---|
2905 | fi
|
---|
2906 |
|
---|
2907 | if test $ac_cv_header_stdc = yes; then
|
---|
2908 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
2909 | if test "$cross_compiling" = yes; then
|
---|
2910 | :
|
---|
2911 | else
|
---|
2912 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2913 | #line 2913 "configure"
|
---|
2914 | #include "confdefs.h"
|
---|
2915 | #include <ctype.h>
|
---|
2916 | #if ((' ' & 0x0FF) == 0x020)
|
---|
2917 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
2918 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
2919 | #else
|
---|
2920 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
|
---|
2921 | || ('j' <= (c) && (c) <= 'r') \
|
---|
2922 | || ('s' <= (c) && (c) <= 'z'))
|
---|
2923 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
2924 | #endif
|
---|
2925 |
|
---|
2926 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
2927 | int
|
---|
2928 | main ()
|
---|
2929 | {
|
---|
2930 | int i;
|
---|
2931 | for (i = 0; i < 256; i++)
|
---|
2932 | if (XOR (islower (i), ISLOWER (i))
|
---|
2933 | || toupper (i) != TOUPPER (i))
|
---|
2934 | exit(2);
|
---|
2935 | exit (0);
|
---|
2936 | }
|
---|
2937 | _ACEOF
|
---|
2938 | rm -f conftest$ac_exeext
|
---|
2939 | if { (eval echo "$as_me:2939: \"$ac_link\"") >&5
|
---|
2940 | (eval $ac_link) 2>&5
|
---|
2941 | ac_status=$?
|
---|
2942 | echo "$as_me:2942: \$? = $ac_status" >&5
|
---|
2943 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
2944 | { (eval echo "$as_me:2944: \"$ac_try\"") >&5
|
---|
2945 | (eval $ac_try) 2>&5
|
---|
2946 | ac_status=$?
|
---|
2947 | echo "$as_me:2947: \$? = $ac_status" >&5
|
---|
2948 | (exit $ac_status); }; }; then
|
---|
2949 | :
|
---|
2950 | else
|
---|
2951 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
2952 | echo "$as_me: failed program was:" >&5
|
---|
2953 | cat conftest.$ac_ext >&5
|
---|
2954 | ac_cv_header_stdc=no
|
---|
2955 | fi
|
---|
2956 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
|
---|
2957 | fi
|
---|
2958 | fi
|
---|
2959 | fi
|
---|
2960 | echo "$as_me:2960: result: $ac_cv_header_stdc" >&5
|
---|
2961 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
2962 | if test $ac_cv_header_stdc = yes; then
|
---|
2963 |
|
---|
2964 | cat >>confdefs.h <<\EOF
|
---|
2965 | #define STDC_HEADERS 1
|
---|
2966 | EOF
|
---|
2967 |
|
---|
2968 | fi
|
---|
2969 |
|
---|
2970 | for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
|
---|
2971 | do
|
---|
2972 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
|
---|
2973 | echo "$as_me:2973: checking for $ac_header" >&5
|
---|
2974 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
2975 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then
|
---|
2976 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2977 | else
|
---|
2978 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2979 | #line 2979 "configure"
|
---|
2980 | #include "confdefs.h"
|
---|
2981 | #include <$ac_header>
|
---|
2982 | _ACEOF
|
---|
2983 | if { (eval echo "$as_me:2983: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2984 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2985 | ac_status=$?
|
---|
2986 | egrep -v '^ *\+' conftest.er1 >conftest.err
|
---|
2987 | rm -f conftest.er1
|
---|
2988 | cat conftest.err >&5
|
---|
2989 | echo "$as_me:2989: \$? = $ac_status" >&5
|
---|
2990 | (exit $ac_status); } >/dev/null; then
|
---|
2991 | if test -s conftest.err; then
|
---|
2992 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2993 | else
|
---|
2994 | ac_cpp_err=
|
---|
2995 | fi
|
---|
2996 | else
|
---|
2997 | ac_cpp_err=yes
|
---|
2998 | fi
|
---|
2999 | if test -z "$ac_cpp_err"; then
|
---|
3000 | eval "$ac_ac_Header=yes"
|
---|
3001 | else
|
---|
3002 | echo "$as_me: failed program was:" >&5
|
---|
3003 | cat conftest.$ac_ext >&5
|
---|
3004 | eval "$ac_ac_Header=no"
|
---|
3005 | fi
|
---|
3006 | rm -f conftest.err conftest.$ac_ext
|
---|
3007 | fi
|
---|
3008 | echo "$as_me:3008: result: `eval echo '${'$ac_ac_Header'}'`" >&5
|
---|
3009 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
|
---|
3010 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then
|
---|
3011 | cat >>confdefs.h <<EOF
|
---|
3012 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
|
---|
3013 | EOF
|
---|
3014 |
|
---|
3015 | fi
|
---|
3016 | done
|
---|
3017 |
|
---|
3018 | echo "$as_me:3018: checking for off_t" >&5
|
---|
3019 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
3020 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
3021 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3022 | else
|
---|
3023 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3024 | #line 3024 "configure"
|
---|
3025 | #include "confdefs.h"
|
---|
3026 | $ac_includes_default
|
---|
3027 | int
|
---|
3028 | main ()
|
---|
3029 | {
|
---|
3030 | if ((off_t *) 0)
|
---|
3031 | return 0;
|
---|
3032 | if (sizeof (off_t))
|
---|
3033 | return 0;
|
---|
3034 | ;
|
---|
3035 | return 0;
|
---|
3036 | }
|
---|
3037 | _ACEOF
|
---|
3038 | rm -f conftest.$ac_objext
|
---|
3039 | if { (eval echo "$as_me:3039: \"$ac_compile\"") >&5
|
---|
3040 | (eval $ac_compile) 2>&5
|
---|
3041 | ac_status=$?
|
---|
3042 | echo "$as_me:3042: \$? = $ac_status" >&5
|
---|
3043 | (exit $ac_status); } &&
|
---|
3044 | { ac_try='test -s conftest.$ac_objext'
|
---|
3045 | { (eval echo "$as_me:3045: \"$ac_try\"") >&5
|
---|
3046 | (eval $ac_try) 2>&5
|
---|
3047 | ac_status=$?
|
---|
3048 | echo "$as_me:3048: \$? = $ac_status" >&5
|
---|
3049 | (exit $ac_status); }; }; then
|
---|
3050 | ac_cv_type_off_t=yes
|
---|
3051 | else
|
---|
3052 | echo "$as_me: failed program was:" >&5
|
---|
3053 | cat conftest.$ac_ext >&5
|
---|
3054 | ac_cv_type_off_t=no
|
---|
3055 | fi
|
---|
3056 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3057 | fi
|
---|
3058 | echo "$as_me:3058: result: $ac_cv_type_off_t" >&5
|
---|
3059 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
3060 | if test $ac_cv_type_off_t = yes; then
|
---|
3061 | :
|
---|
3062 | else
|
---|
3063 |
|
---|
3064 | cat >>confdefs.h <<EOF
|
---|
3065 | #define off_t long
|
---|
3066 | EOF
|
---|
3067 |
|
---|
3068 | fi
|
---|
3069 |
|
---|
3070 | echo "$as_me:3070: checking for size_t" >&5
|
---|
3071 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
3072 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
3073 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3074 | else
|
---|
3075 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3076 | #line 3076 "configure"
|
---|
3077 | #include "confdefs.h"
|
---|
3078 | $ac_includes_default
|
---|
3079 | int
|
---|
3080 | main ()
|
---|
3081 | {
|
---|
3082 | if ((size_t *) 0)
|
---|
3083 | return 0;
|
---|
3084 | if (sizeof (size_t))
|
---|
3085 | return 0;
|
---|
3086 | ;
|
---|
3087 | return 0;
|
---|
3088 | }
|
---|
3089 | _ACEOF
|
---|
3090 | rm -f conftest.$ac_objext
|
---|
3091 | if { (eval echo "$as_me:3091: \"$ac_compile\"") >&5
|
---|
3092 | (eval $ac_compile) 2>&5
|
---|
3093 | ac_status=$?
|
---|
3094 | echo "$as_me:3094: \$? = $ac_status" >&5
|
---|
3095 | (exit $ac_status); } &&
|
---|
3096 | { ac_try='test -s conftest.$ac_objext'
|
---|
3097 | { (eval echo "$as_me:3097: \"$ac_try\"") >&5
|
---|
3098 | (eval $ac_try) 2>&5
|
---|
3099 | ac_status=$?
|
---|
3100 | echo "$as_me:3100: \$? = $ac_status" >&5
|
---|
3101 | (exit $ac_status); }; }; then
|
---|
3102 | ac_cv_type_size_t=yes
|
---|
3103 | else
|
---|
3104 | echo "$as_me: failed program was:" >&5
|
---|
3105 | cat conftest.$ac_ext >&5
|
---|
3106 | ac_cv_type_size_t=no
|
---|
3107 | fi
|
---|
3108 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3109 | fi
|
---|
3110 | echo "$as_me:3110: result: $ac_cv_type_size_t" >&5
|
---|
3111 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
3112 | if test $ac_cv_type_size_t = yes; then
|
---|
3113 | :
|
---|
3114 | else
|
---|
3115 |
|
---|
3116 | cat >>confdefs.h <<EOF
|
---|
3117 | #define size_t unsigned
|
---|
3118 | EOF
|
---|
3119 |
|
---|
3120 | fi
|
---|
3121 |
|
---|
3122 | echo "$as_me:3122: checking whether time.h and sys/time.h may both be included" >&5
|
---|
3123 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
3124 | if test "${ac_cv_header_time+set}" = set; then
|
---|
3125 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3126 | else
|
---|
3127 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3128 | #line 3128 "configure"
|
---|
3129 | #include "confdefs.h"
|
---|
3130 | #include <sys/types.h>
|
---|
3131 | #include <sys/time.h>
|
---|
3132 | #include <time.h>
|
---|
3133 |
|
---|
3134 | int
|
---|
3135 | main ()
|
---|
3136 | {
|
---|
3137 | struct tm *tp;
|
---|
3138 | ;
|
---|
3139 | return 0;
|
---|
3140 | }
|
---|
3141 | _ACEOF
|
---|
3142 | rm -f conftest.$ac_objext
|
---|
3143 | if { (eval echo "$as_me:3143: \"$ac_compile\"") >&5
|
---|
3144 | (eval $ac_compile) 2>&5
|
---|
3145 | ac_status=$?
|
---|
3146 | echo "$as_me:3146: \$? = $ac_status" >&5
|
---|
3147 | (exit $ac_status); } &&
|
---|
3148 | { ac_try='test -s conftest.$ac_objext'
|
---|
3149 | { (eval echo "$as_me:3149: \"$ac_try\"") >&5
|
---|
3150 | (eval $ac_try) 2>&5
|
---|
3151 | ac_status=$?
|
---|
3152 | echo "$as_me:3152: \$? = $ac_status" >&5
|
---|
3153 | (exit $ac_status); }; }; then
|
---|
3154 | ac_cv_header_time=yes
|
---|
3155 | else
|
---|
3156 | echo "$as_me: failed program was:" >&5
|
---|
3157 | cat conftest.$ac_ext >&5
|
---|
3158 | ac_cv_header_time=no
|
---|
3159 | fi
|
---|
3160 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3161 | fi
|
---|
3162 | echo "$as_me:3162: result: $ac_cv_header_time" >&5
|
---|
3163 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
3164 | if test $ac_cv_header_time = yes; then
|
---|
3165 |
|
---|
3166 | cat >>confdefs.h <<\EOF
|
---|
3167 | #define TIME_WITH_SYS_TIME 1
|
---|
3168 | EOF
|
---|
3169 |
|
---|
3170 | fi
|
---|
3171 |
|
---|
3172 | echo "$as_me:3172: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
3173 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
3174 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
3175 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3176 | else
|
---|
3177 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3178 | #line 3178 "configure"
|
---|
3179 | #include "confdefs.h"
|
---|
3180 | #include <sys/types.h>
|
---|
3181 | #include <time.h>
|
---|
3182 |
|
---|
3183 | int
|
---|
3184 | main ()
|
---|
3185 | {
|
---|
3186 | struct tm *tp; tp->tm_sec;
|
---|
3187 | ;
|
---|
3188 | return 0;
|
---|
3189 | }
|
---|
3190 | _ACEOF
|
---|
3191 | rm -f conftest.$ac_objext
|
---|
3192 | if { (eval echo "$as_me:3192: \"$ac_compile\"") >&5
|
---|
3193 | (eval $ac_compile) 2>&5
|
---|
3194 | ac_status=$?
|
---|
3195 | echo "$as_me:3195: \$? = $ac_status" >&5
|
---|
3196 | (exit $ac_status); } &&
|
---|
3197 | { ac_try='test -s conftest.$ac_objext'
|
---|
3198 | { (eval echo "$as_me:3198: \"$ac_try\"") >&5
|
---|
3199 | (eval $ac_try) 2>&5
|
---|
3200 | ac_status=$?
|
---|
3201 | echo "$as_me:3201: \$? = $ac_status" >&5
|
---|
3202 | (exit $ac_status); }; }; then
|
---|
3203 | ac_cv_struct_tm=time.h
|
---|
3204 | else
|
---|
3205 | echo "$as_me: failed program was:" >&5
|
---|
3206 | cat conftest.$ac_ext >&5
|
---|
3207 | ac_cv_struct_tm=sys/time.h
|
---|
3208 | fi
|
---|
3209 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3210 | fi
|
---|
3211 | echo "$as_me:3211: result: $ac_cv_struct_tm" >&5
|
---|
3212 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
3213 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
3214 |
|
---|
3215 | cat >>confdefs.h <<\EOF
|
---|
3216 | #define TM_IN_SYS_TIME 1
|
---|
3217 | EOF
|
---|
3218 |
|
---|
3219 | fi
|
---|
3220 |
|
---|
3221 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
3222 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3223 | #line 3223 "configure"
|
---|
3224 | #include "confdefs.h"
|
---|
3225 | #include <stdio.h>
|
---|
3226 |
|
---|
3227 | int
|
---|
3228 | main ()
|
---|
3229 | {
|
---|
3230 | FILE *rubbish = popen("yes", "r");
|
---|
3231 | ;
|
---|
3232 | return 0;
|
---|
3233 | }
|
---|
3234 | _ACEOF
|
---|
3235 | rm -f conftest.$ac_objext
|
---|
3236 | if { (eval echo "$as_me:3236: \"$ac_compile\"") >&5
|
---|
3237 | (eval $ac_compile) 2>&5
|
---|
3238 | ac_status=$?
|
---|
3239 | echo "$as_me:3239: \$? = $ac_status" >&5
|
---|
3240 | (exit $ac_status); } &&
|
---|
3241 | { ac_try='test -s conftest.$ac_objext'
|
---|
3242 | { (eval echo "$as_me:3242: \"$ac_try\"") >&5
|
---|
3243 | (eval $ac_try) 2>&5
|
---|
3244 | ac_status=$?
|
---|
3245 | echo "$as_me:3245: \$? = $ac_status" >&5
|
---|
3246 | (exit $ac_status); }; }; then
|
---|
3247 | :
|
---|
3248 | else
|
---|
3249 | echo "$as_me: failed program was:" >&5
|
---|
3250 | cat conftest.$ac_ext >&5
|
---|
3251 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
3252 | fi
|
---|
3253 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3254 | fi
|
---|
3255 |
|
---|
3256 | echo "$as_me:3256: checking for main in -lg" >&5
|
---|
3257 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
3258 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
3259 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3260 | else
|
---|
3261 | ac_check_lib_save_LIBS=$LIBS
|
---|
3262 | LIBS="-lg $LIBS"
|
---|
3263 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3264 | #line 3264 "configure"
|
---|
3265 | #include "confdefs.h"
|
---|
3266 |
|
---|
3267 | int
|
---|
3268 | main ()
|
---|
3269 | {
|
---|
3270 | main ();
|
---|
3271 | ;
|
---|
3272 | return 0;
|
---|
3273 | }
|
---|
3274 | _ACEOF
|
---|
3275 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3276 | if { (eval echo "$as_me:3276: \"$ac_link\"") >&5
|
---|
3277 | (eval $ac_link) 2>&5
|
---|
3278 | ac_status=$?
|
---|
3279 | echo "$as_me:3279: \$? = $ac_status" >&5
|
---|
3280 | (exit $ac_status); } &&
|
---|
3281 | { ac_try='test -s conftest$ac_exeext'
|
---|
3282 | { (eval echo "$as_me:3282: \"$ac_try\"") >&5
|
---|
3283 | (eval $ac_try) 2>&5
|
---|
3284 | ac_status=$?
|
---|
3285 | echo "$as_me:3285: \$? = $ac_status" >&5
|
---|
3286 | (exit $ac_status); }; }; then
|
---|
3287 | ac_cv_lib_g_main=yes
|
---|
3288 | else
|
---|
3289 | echo "$as_me: failed program was:" >&5
|
---|
3290 | cat conftest.$ac_ext >&5
|
---|
3291 | ac_cv_lib_g_main=no
|
---|
3292 | fi
|
---|
3293 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
3294 | LIBS=$ac_check_lib_save_LIBS
|
---|
3295 | fi
|
---|
3296 | echo "$as_me:3296: result: $ac_cv_lib_g_main" >&5
|
---|
3297 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
3298 | if test $ac_cv_lib_g_main = yes; then
|
---|
3299 | cat >>confdefs.h <<EOF
|
---|
3300 | #define HAVE_LIBG 1
|
---|
3301 | EOF
|
---|
3302 |
|
---|
3303 | LIBS="-lg $LIBS"
|
---|
3304 |
|
---|
3305 | fi
|
---|
3306 |
|
---|
3307 | echo "$as_me:3307: checking for main in -lm" >&5
|
---|
3308 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
3309 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
3310 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3311 | else
|
---|
3312 | ac_check_lib_save_LIBS=$LIBS
|
---|
3313 | LIBS="-lm $LIBS"
|
---|
3314 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3315 | #line 3315 "configure"
|
---|
3316 | #include "confdefs.h"
|
---|
3317 |
|
---|
3318 | int
|
---|
3319 | main ()
|
---|
3320 | {
|
---|
3321 | main ();
|
---|
3322 | ;
|
---|
3323 | return 0;
|
---|
3324 | }
|
---|
3325 | _ACEOF
|
---|
3326 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3327 | if { (eval echo "$as_me:3327: \"$ac_link\"") >&5
|
---|
3328 | (eval $ac_link) 2>&5
|
---|
3329 | ac_status=$?
|
---|
3330 | echo "$as_me:3330: \$? = $ac_status" >&5
|
---|
3331 | (exit $ac_status); } &&
|
---|
3332 | { ac_try='test -s conftest$ac_exeext'
|
---|
3333 | { (eval echo "$as_me:3333: \"$ac_try\"") >&5
|
---|
3334 | (eval $ac_try) 2>&5
|
---|
3335 | ac_status=$?
|
---|
3336 | echo "$as_me:3336: \$? = $ac_status" >&5
|
---|
3337 | (exit $ac_status); }; }; then
|
---|
3338 | ac_cv_lib_m_main=yes
|
---|
3339 | else
|
---|
3340 | echo "$as_me: failed program was:" >&5
|
---|
3341 | cat conftest.$ac_ext >&5
|
---|
3342 | ac_cv_lib_m_main=no
|
---|
3343 | fi
|
---|
3344 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
3345 | LIBS=$ac_check_lib_save_LIBS
|
---|
3346 | fi
|
---|
3347 | echo "$as_me:3347: result: $ac_cv_lib_m_main" >&5
|
---|
3348 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
3349 | if test $ac_cv_lib_m_main = yes; then
|
---|
3350 | cat >>confdefs.h <<EOF
|
---|
3351 | #define HAVE_LIBM 1
|
---|
3352 | EOF
|
---|
3353 |
|
---|
3354 | LIBS="-lm $LIBS"
|
---|
3355 |
|
---|
3356 | fi
|
---|
3357 |
|
---|
3358 | echo "$as_me:3358: checking for main in -lstdc++" >&5
|
---|
3359 | echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
|
---|
3360 | if test "${ac_cv_lib_stdcpp_main+set}" = set; then
|
---|
3361 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3362 | else
|
---|
3363 | ac_check_lib_save_LIBS=$LIBS
|
---|
3364 | LIBS="-lstdc++ $LIBS"
|
---|
3365 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3366 | #line 3366 "configure"
|
---|
3367 | #include "confdefs.h"
|
---|
3368 |
|
---|
3369 | int
|
---|
3370 | main ()
|
---|
3371 | {
|
---|
3372 | main ();
|
---|
3373 | ;
|
---|
3374 | return 0;
|
---|
3375 | }
|
---|
3376 | _ACEOF
|
---|
3377 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3378 | if { (eval echo "$as_me:3378: \"$ac_link\"") >&5
|
---|
3379 | (eval $ac_link) 2>&5
|
---|
3380 | ac_status=$?
|
---|
3381 | echo "$as_me:3381: \$? = $ac_status" >&5
|
---|
3382 | (exit $ac_status); } &&
|
---|
3383 | { ac_try='test -s conftest$ac_exeext'
|
---|
3384 | { (eval echo "$as_me:3384: \"$ac_try\"") >&5
|
---|
3385 | (eval $ac_try) 2>&5
|
---|
3386 | ac_status=$?
|
---|
3387 | echo "$as_me:3387: \$? = $ac_status" >&5
|
---|
3388 | (exit $ac_status); }; }; then
|
---|
3389 | ac_cv_lib_stdcpp_main=yes
|
---|
3390 | else
|
---|
3391 | echo "$as_me: failed program was:" >&5
|
---|
3392 | cat conftest.$ac_ext >&5
|
---|
3393 | ac_cv_lib_stdcpp_main=no
|
---|
3394 | fi
|
---|
3395 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
3396 | LIBS=$ac_check_lib_save_LIBS
|
---|
3397 | fi
|
---|
3398 | echo "$as_me:3398: result: $ac_cv_lib_stdcpp_main" >&5
|
---|
3399 | echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
|
---|
3400 | if test $ac_cv_lib_stdcpp_main = yes; then
|
---|
3401 | cat >>confdefs.h <<EOF
|
---|
3402 | #define HAVE_LIBSTDC__ 1
|
---|
3403 | EOF
|
---|
3404 |
|
---|
3405 | LIBS="-lstdc++ $LIBS"
|
---|
3406 |
|
---|
3407 | fi
|
---|
3408 |
|
---|
3409 | echo "$as_me:3409: checking for main in -lcrypt" >&5
|
---|
3410 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
3411 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
3412 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3413 | else
|
---|
3414 | ac_check_lib_save_LIBS=$LIBS
|
---|
3415 | LIBS="-lcrypt $LIBS"
|
---|
3416 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3417 | #line 3417 "configure"
|
---|
3418 | #include "confdefs.h"
|
---|
3419 |
|
---|
3420 | int
|
---|
3421 | main ()
|
---|
3422 | {
|
---|
3423 | main ();
|
---|
3424 | ;
|
---|
3425 | return 0;
|
---|
3426 | }
|
---|
3427 | _ACEOF
|
---|
3428 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3429 | if { (eval echo "$as_me:3429: \"$ac_link\"") >&5
|
---|
3430 | (eval $ac_link) 2>&5
|
---|
3431 | ac_status=$?
|
---|
3432 | echo "$as_me:3432: \$? = $ac_status" >&5
|
---|
3433 | (exit $ac_status); } &&
|
---|
3434 | { ac_try='test -s conftest$ac_exeext'
|
---|
3435 | { (eval echo "$as_me:3435: \"$ac_try\"") >&5
|
---|
3436 | (eval $ac_try) 2>&5
|
---|
3437 | ac_status=$?
|
---|
3438 | echo "$as_me:3438: \$? = $ac_status" >&5
|
---|
3439 | (exit $ac_status); }; }; then
|
---|
3440 | ac_cv_lib_crypt_main=yes
|
---|
3441 | else
|
---|
3442 | echo "$as_me: failed program was:" >&5
|
---|
3443 | cat conftest.$ac_ext >&5
|
---|
3444 | ac_cv_lib_crypt_main=no
|
---|
3445 | fi
|
---|
3446 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
3447 | LIBS=$ac_check_lib_save_LIBS
|
---|
3448 | fi
|
---|
3449 | echo "$as_me:3449: result: $ac_cv_lib_crypt_main" >&5
|
---|
3450 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
3451 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
3452 | cat >>confdefs.h <<EOF
|
---|
3453 | #define HAVE_LIBCRYPT 1
|
---|
3454 | EOF
|
---|
3455 |
|
---|
3456 | LIBS="-lcrypt $LIBS"
|
---|
3457 |
|
---|
3458 | fi
|
---|
3459 |
|
---|
3460 | ac_header_dirent=no
|
---|
3461 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
3462 | ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
|
---|
3463 | echo "$as_me:3463: checking for $ac_hdr that defines DIR" >&5
|
---|
3464 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
3465 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then
|
---|
3466 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3467 | else
|
---|
3468 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3469 | #line 3469 "configure"
|
---|
3470 | #include "confdefs.h"
|
---|
3471 | #include <sys/types.h>
|
---|
3472 | #include <$ac_hdr>
|
---|
3473 |
|
---|
3474 | int
|
---|
3475 | main ()
|
---|
3476 | {
|
---|
3477 | DIR *dirp = 0;
|
---|
3478 | ;
|
---|
3479 | return 0;
|
---|
3480 | }
|
---|
3481 | _ACEOF
|
---|
3482 | rm -f conftest.$ac_objext
|
---|
3483 | if { (eval echo "$as_me:3483: \"$ac_compile\"") >&5
|
---|
3484 | (eval $ac_compile) 2>&5
|
---|
3485 | ac_status=$?
|
---|
3486 | echo "$as_me:3486: \$? = $ac_status" >&5
|
---|
3487 | (exit $ac_status); } &&
|
---|
3488 | { ac_try='test -s conftest.$ac_objext'
|
---|
3489 | { (eval echo "$as_me:3489: \"$ac_try\"") >&5
|
---|
3490 | (eval $ac_try) 2>&5
|
---|
3491 | ac_status=$?
|
---|
3492 | echo "$as_me:3492: \$? = $ac_status" >&5
|
---|
3493 | (exit $ac_status); }; }; then
|
---|
3494 | eval "$ac_ac_Header=yes"
|
---|
3495 | else
|
---|
3496 | echo "$as_me: failed program was:" >&5
|
---|
3497 | cat conftest.$ac_ext >&5
|
---|
3498 | eval "$ac_ac_Header=no"
|
---|
3499 | fi
|
---|
3500 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3501 | fi
|
---|
3502 | echo "$as_me:3502: result: `eval echo '${'$ac_ac_Header'}'`" >&5
|
---|
3503 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
|
---|
3504 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then
|
---|
3505 | cat >>confdefs.h <<EOF
|
---|
3506 | #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
|
---|
3507 | EOF
|
---|
3508 |
|
---|
3509 | ac_header_dirent=$ac_hdr; break
|
---|
3510 | fi
|
---|
3511 |
|
---|
3512 | done
|
---|
3513 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
3514 | if test $ac_header_dirent = dirent.h; then
|
---|
3515 | echo "$as_me:3515: checking for opendir in -ldir" >&5
|
---|
3516 | echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
|
---|
3517 | if test "${ac_cv_lib_dir_opendir+set}" = set; then
|
---|
3518 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3519 | else
|
---|
3520 | ac_check_lib_save_LIBS=$LIBS
|
---|
3521 | LIBS="-ldir $LIBS"
|
---|
3522 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3523 | #line 3523 "configure"
|
---|
3524 | #include "confdefs.h"
|
---|
3525 |
|
---|
3526 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3527 | #ifdef __cplusplus
|
---|
3528 | extern "C"
|
---|
3529 | #endif
|
---|
3530 | /* We use char because int might match the return type of a gcc2
|
---|
3531 | builtin and then its argument prototype would still apply. */
|
---|
3532 | char opendir ();
|
---|
3533 | int
|
---|
3534 | main ()
|
---|
3535 | {
|
---|
3536 | opendir ();
|
---|
3537 | ;
|
---|
3538 | return 0;
|
---|
3539 | }
|
---|
3540 | _ACEOF
|
---|
3541 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3542 | if { (eval echo "$as_me:3542: \"$ac_link\"") >&5
|
---|
3543 | (eval $ac_link) 2>&5
|
---|
3544 | ac_status=$?
|
---|
3545 | echo "$as_me:3545: \$? = $ac_status" >&5
|
---|
3546 | (exit $ac_status); } &&
|
---|
3547 | { ac_try='test -s conftest$ac_exeext'
|
---|
3548 | { (eval echo "$as_me:3548: \"$ac_try\"") >&5
|
---|
3549 | (eval $ac_try) 2>&5
|
---|
3550 | ac_status=$?
|
---|
3551 | echo "$as_me:3551: \$? = $ac_status" >&5
|
---|
3552 | (exit $ac_status); }; }; then
|
---|
3553 | ac_cv_lib_dir_opendir=yes
|
---|
3554 | else
|
---|
3555 | echo "$as_me: failed program was:" >&5
|
---|
3556 | cat conftest.$ac_ext >&5
|
---|
3557 | ac_cv_lib_dir_opendir=no
|
---|
3558 | fi
|
---|
3559 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
3560 | LIBS=$ac_check_lib_save_LIBS
|
---|
3561 | fi
|
---|
3562 | echo "$as_me:3562: result: $ac_cv_lib_dir_opendir" >&5
|
---|
3563 | echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
|
---|
3564 | if test $ac_cv_lib_dir_opendir = yes; then
|
---|
3565 | LIBS="$LIBS -ldir"
|
---|
3566 | fi
|
---|
3567 |
|
---|
3568 | else
|
---|
3569 | echo "$as_me:3569: checking for opendir in -lx" >&5
|
---|
3570 | echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
|
---|
3571 | if test "${ac_cv_lib_x_opendir+set}" = set; then
|
---|
3572 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3573 | else
|
---|
3574 | ac_check_lib_save_LIBS=$LIBS
|
---|
3575 | LIBS="-lx $LIBS"
|
---|
3576 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3577 | #line 3577 "configure"
|
---|
3578 | #include "confdefs.h"
|
---|
3579 |
|
---|
3580 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3581 | #ifdef __cplusplus
|
---|
3582 | extern "C"
|
---|
3583 | #endif
|
---|
3584 | /* We use char because int might match the return type of a gcc2
|
---|
3585 | builtin and then its argument prototype would still apply. */
|
---|
3586 | char opendir ();
|
---|
3587 | int
|
---|
3588 | main ()
|
---|
3589 | {
|
---|
3590 | opendir ();
|
---|
3591 | ;
|
---|
3592 | return 0;
|
---|
3593 | }
|
---|
3594 | _ACEOF
|
---|
3595 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3596 | if { (eval echo "$as_me:3596: \"$ac_link\"") >&5
|
---|
3597 | (eval $ac_link) 2>&5
|
---|
3598 | ac_status=$?
|
---|
3599 | echo "$as_me:3599: \$? = $ac_status" >&5
|
---|
3600 | (exit $ac_status); } &&
|
---|
3601 | { ac_try='test -s conftest$ac_exeext'
|
---|
3602 | { (eval echo "$as_me:3602: \"$ac_try\"") >&5
|
---|
3603 | (eval $ac_try) 2>&5
|
---|
3604 | ac_status=$?
|
---|
3605 | echo "$as_me:3605: \$? = $ac_status" >&5
|
---|
3606 | (exit $ac_status); }; }; then
|
---|
3607 | ac_cv_lib_x_opendir=yes
|
---|
3608 | else
|
---|
3609 | echo "$as_me: failed program was:" >&5
|
---|
3610 | cat conftest.$ac_ext >&5
|
---|
3611 | ac_cv_lib_x_opendir=no
|
---|
3612 | fi
|
---|
3613 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
3614 | LIBS=$ac_check_lib_save_LIBS
|
---|
3615 | fi
|
---|
3616 | echo "$as_me:3616: result: $ac_cv_lib_x_opendir" >&5
|
---|
3617 | echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
|
---|
3618 | if test $ac_cv_lib_x_opendir = yes; then
|
---|
3619 | LIBS="$LIBS -lx"
|
---|
3620 | fi
|
---|
3621 |
|
---|
3622 | fi
|
---|
3623 |
|
---|
3624 | echo "$as_me:3624: checking for ANSI C header files" >&5
|
---|
3625 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
3626 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
3627 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3628 | else
|
---|
3629 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3630 | #line 3630 "configure"
|
---|
3631 | #include "confdefs.h"
|
---|
3632 | #include <stdlib.h>
|
---|
3633 | #include <stdarg.h>
|
---|
3634 | #include <string.h>
|
---|
3635 | #include <float.h>
|
---|
3636 |
|
---|
3637 | _ACEOF
|
---|
3638 | if { (eval echo "$as_me:3638: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3639 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3640 | ac_status=$?
|
---|
3641 | egrep -v '^ *\+' conftest.er1 >conftest.err
|
---|
3642 | rm -f conftest.er1
|
---|
3643 | cat conftest.err >&5
|
---|
3644 | echo "$as_me:3644: \$? = $ac_status" >&5
|
---|
3645 | (exit $ac_status); } >/dev/null; then
|
---|
3646 | if test -s conftest.err; then
|
---|
3647 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3648 | else
|
---|
3649 | ac_cpp_err=
|
---|
3650 | fi
|
---|
3651 | else
|
---|
3652 | ac_cpp_err=yes
|
---|
3653 | fi
|
---|
3654 | if test -z "$ac_cpp_err"; then
|
---|
3655 | ac_cv_header_stdc=yes
|
---|
3656 | else
|
---|
3657 | echo "$as_me: failed program was:" >&5
|
---|
3658 | cat conftest.$ac_ext >&5
|
---|
3659 | ac_cv_header_stdc=no
|
---|
3660 | fi
|
---|
3661 | rm -f conftest.err conftest.$ac_ext
|
---|
3662 |
|
---|
3663 | if test $ac_cv_header_stdc = yes; then
|
---|
3664 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3665 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3666 | #line 3666 "configure"
|
---|
3667 | #include "confdefs.h"
|
---|
3668 | #include <string.h>
|
---|
3669 |
|
---|
3670 | _ACEOF
|
---|
3671 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3672 | egrep "memchr" >/dev/null 2>&1; then
|
---|
3673 | :
|
---|
3674 | else
|
---|
3675 | ac_cv_header_stdc=no
|
---|
3676 | fi
|
---|
3677 | rm -f conftest*
|
---|
3678 |
|
---|
3679 | fi
|
---|
3680 |
|
---|
3681 | if test $ac_cv_header_stdc = yes; then
|
---|
3682 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3683 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3684 | #line 3684 "configure"
|
---|
3685 | #include "confdefs.h"
|
---|
3686 | #include <stdlib.h>
|
---|
3687 |
|
---|
3688 | _ACEOF
|
---|
3689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3690 | egrep "free" >/dev/null 2>&1; then
|
---|
3691 | :
|
---|
3692 | else
|
---|
3693 | ac_cv_header_stdc=no
|
---|
3694 | fi
|
---|
3695 | rm -f conftest*
|
---|
3696 |
|
---|
3697 | fi
|
---|
3698 |
|
---|
3699 | if test $ac_cv_header_stdc = yes; then
|
---|
3700 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3701 | if test "$cross_compiling" = yes; then
|
---|
3702 | :
|
---|
3703 | else
|
---|
3704 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3705 | #line 3705 "configure"
|
---|
3706 | #include "confdefs.h"
|
---|
3707 | #include <ctype.h>
|
---|
3708 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3709 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3710 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3711 | #else
|
---|
3712 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
|
---|
3713 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3714 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3715 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3716 | #endif
|
---|
3717 |
|
---|
3718 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3719 | int
|
---|
3720 | main ()
|
---|
3721 | {
|
---|
3722 | int i;
|
---|
3723 | for (i = 0; i < 256; i++)
|
---|
3724 | if (XOR (islower (i), ISLOWER (i))
|
---|
3725 | || toupper (i) != TOUPPER (i))
|
---|
3726 | exit(2);
|
---|
3727 | exit (0);
|
---|
3728 | }
|
---|
3729 | _ACEOF
|
---|
3730 | rm -f conftest$ac_exeext
|
---|
3731 | if { (eval echo "$as_me:3731: \"$ac_link\"") >&5
|
---|
3732 | (eval $ac_link) 2>&5
|
---|
3733 | ac_status=$?
|
---|
3734 | echo "$as_me:3734: \$? = $ac_status" >&5
|
---|
3735 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
3736 | { (eval echo "$as_me:3736: \"$ac_try\"") >&5
|
---|
3737 | (eval $ac_try) 2>&5
|
---|
3738 | ac_status=$?
|
---|
3739 | echo "$as_me:3739: \$? = $ac_status" >&5
|
---|
3740 | (exit $ac_status); }; }; then
|
---|
3741 | :
|
---|
3742 | else
|
---|
3743 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
3744 | echo "$as_me: failed program was:" >&5
|
---|
3745 | cat conftest.$ac_ext >&5
|
---|
3746 | ac_cv_header_stdc=no
|
---|
3747 | fi
|
---|
3748 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
|
---|
3749 | fi
|
---|
3750 | fi
|
---|
3751 | fi
|
---|
3752 | echo "$as_me:3752: result: $ac_cv_header_stdc" >&5
|
---|
3753 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
3754 | if test $ac_cv_header_stdc = yes; then
|
---|
3755 |
|
---|
3756 | cat >>confdefs.h <<\EOF
|
---|
3757 | #define STDC_HEADERS 1
|
---|
3758 | EOF
|
---|
3759 |
|
---|
3760 | fi
|
---|
3761 |
|
---|
3762 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
3763 | do
|
---|
3764 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
|
---|
3765 | echo "$as_me:3765: checking for $ac_header" >&5
|
---|
3766 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
3767 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then
|
---|
3768 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3769 | else
|
---|
3770 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3771 | #line 3771 "configure"
|
---|
3772 | #include "confdefs.h"
|
---|
3773 | #include <$ac_header>
|
---|
3774 | _ACEOF
|
---|
3775 | if { (eval echo "$as_me:3775: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3776 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3777 | ac_status=$?
|
---|
3778 | egrep -v '^ *\+' conftest.er1 >conftest.err
|
---|
3779 | rm -f conftest.er1
|
---|
3780 | cat conftest.err >&5
|
---|
3781 | echo "$as_me:3781: \$? = $ac_status" >&5
|
---|
3782 | (exit $ac_status); } >/dev/null; then
|
---|
3783 | if test -s conftest.err; then
|
---|
3784 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3785 | else
|
---|
3786 | ac_cpp_err=
|
---|
3787 | fi
|
---|
3788 | else
|
---|
3789 | ac_cpp_err=yes
|
---|
3790 | fi
|
---|
3791 | if test -z "$ac_cpp_err"; then
|
---|
3792 | eval "$ac_ac_Header=yes"
|
---|
3793 | else
|
---|
3794 | echo "$as_me: failed program was:" >&5
|
---|
3795 | cat conftest.$ac_ext >&5
|
---|
3796 | eval "$ac_ac_Header=no"
|
---|
3797 | fi
|
---|
3798 | rm -f conftest.err conftest.$ac_ext
|
---|
3799 | fi
|
---|
3800 | echo "$as_me:3800: result: `eval echo '${'$ac_ac_Header'}'`" >&5
|
---|
3801 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
|
---|
3802 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then
|
---|
3803 | cat >>confdefs.h <<EOF
|
---|
3804 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
|
---|
3805 | EOF
|
---|
3806 |
|
---|
3807 | fi
|
---|
3808 | done
|
---|
3809 |
|
---|
3810 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3811 | #line 3811 "configure"
|
---|
3812 | #include "confdefs.h"
|
---|
3813 | #include <stdio.h>
|
---|
3814 |
|
---|
3815 | _ACEOF
|
---|
3816 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3817 | egrep "fread" >/dev/null 2>&1; then
|
---|
3818 | cat >>confdefs.h <<\EOF
|
---|
3819 | #define HAVE_FREAD_DECL 1
|
---|
3820 | EOF
|
---|
3821 |
|
---|
3822 | fi
|
---|
3823 | rm -f conftest*
|
---|
3824 |
|
---|
3825 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3826 | #line 3826 "configure"
|
---|
3827 | #include "confdefs.h"
|
---|
3828 | #include <stdio.h>
|
---|
3829 |
|
---|
3830 | _ACEOF
|
---|
3831 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3832 | egrep "fgetc" >/dev/null 2>&1; then
|
---|
3833 | cat >>confdefs.h <<\EOF
|
---|
3834 | #define HAVE_FGETC_DECL 1
|
---|
3835 | EOF
|
---|
3836 |
|
---|
3837 | fi
|
---|
3838 | rm -f conftest*
|
---|
3839 |
|
---|
3840 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3841 | #line 3841 "configure"
|
---|
3842 | #include "confdefs.h"
|
---|
3843 | #include <sys/procfs.h>
|
---|
3844 |
|
---|
3845 | _ACEOF
|
---|
3846 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3847 | egrep "pr_brksize" >/dev/null 2>&1; then
|
---|
3848 | cat >>confdefs.h <<\EOF
|
---|
3849 | #define HAVE_PR_BRKSIZE 1
|
---|
3850 | EOF
|
---|
3851 |
|
---|
3852 | fi
|
---|
3853 | rm -f conftest*
|
---|
3854 |
|
---|
3855 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
3856 | # for constant arguments. Useless!
|
---|
3857 | echo "$as_me:3857: checking for working alloca.h" >&5
|
---|
3858 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
3859 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
3860 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3861 | else
|
---|
3862 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3863 | #line 3863 "configure"
|
---|
3864 | #include "confdefs.h"
|
---|
3865 | #include <alloca.h>
|
---|
3866 | int
|
---|
3867 | main ()
|
---|
3868 | {
|
---|
3869 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
3870 | ;
|
---|
3871 | return 0;
|
---|
3872 | }
|
---|
3873 | _ACEOF
|
---|
3874 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3875 | if { (eval echo "$as_me:3875: \"$ac_link\"") >&5
|
---|
3876 | (eval $ac_link) 2>&5
|
---|
3877 | ac_status=$?
|
---|
3878 | echo "$as_me:3878: \$? = $ac_status" >&5
|
---|
3879 | (exit $ac_status); } &&
|
---|
3880 | { ac_try='test -s conftest$ac_exeext'
|
---|
3881 | { (eval echo "$as_me:3881: \"$ac_try\"") >&5
|
---|
3882 | (eval $ac_try) 2>&5
|
---|
3883 | ac_status=$?
|
---|
3884 | echo "$as_me:3884: \$? = $ac_status" >&5
|
---|
3885 | (exit $ac_status); }; }; then
|
---|
3886 | ac_cv_working_alloca_h=yes
|
---|
3887 | else
|
---|
3888 | echo "$as_me: failed program was:" >&5
|
---|
3889 | cat conftest.$ac_ext >&5
|
---|
3890 | ac_cv_working_alloca_h=no
|
---|
3891 | fi
|
---|
3892 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
3893 | fi
|
---|
3894 | echo "$as_me:3894: result: $ac_cv_working_alloca_h" >&5
|
---|
3895 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
3896 | if test $ac_cv_working_alloca_h = yes; then
|
---|
3897 |
|
---|
3898 | cat >>confdefs.h <<\EOF
|
---|
3899 | #define HAVE_ALLOCA_H 1
|
---|
3900 | EOF
|
---|
3901 |
|
---|
3902 | fi
|
---|
3903 |
|
---|
3904 | echo "$as_me:3904: checking for alloca" >&5
|
---|
3905 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
3906 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
3907 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3908 | else
|
---|
3909 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3910 | #line 3910 "configure"
|
---|
3911 | #include "confdefs.h"
|
---|
3912 | #ifdef __GNUC__
|
---|
3913 | # define alloca __builtin_alloca
|
---|
3914 | #else
|
---|
3915 | # ifdef _MSC_VER
|
---|
3916 | # include <malloc.h>
|
---|
3917 | # define alloca _alloca
|
---|
3918 | # else
|
---|
3919 | # if HAVE_ALLOCA_H
|
---|
3920 | # include <alloca.h>
|
---|
3921 | # else
|
---|
3922 | # ifdef _AIX
|
---|
3923 | #pragma alloca
|
---|
3924 | # else
|
---|
3925 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
3926 | char *alloca ();
|
---|
3927 | # endif
|
---|
3928 | # endif
|
---|
3929 | # endif
|
---|
3930 | # endif
|
---|
3931 | #endif
|
---|
3932 |
|
---|
3933 | int
|
---|
3934 | main ()
|
---|
3935 | {
|
---|
3936 | char *p = (char *) alloca (1);
|
---|
3937 | ;
|
---|
3938 | return 0;
|
---|
3939 | }
|
---|
3940 | _ACEOF
|
---|
3941 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3942 | if { (eval echo "$as_me:3942: \"$ac_link\"") >&5
|
---|
3943 | (eval $ac_link) 2>&5
|
---|
3944 | ac_status=$?
|
---|
3945 | echo "$as_me:3945: \$? = $ac_status" >&5
|
---|
3946 | (exit $ac_status); } &&
|
---|
3947 | { ac_try='test -s conftest$ac_exeext'
|
---|
3948 | { (eval echo "$as_me:3948: \"$ac_try\"") >&5
|
---|
3949 | (eval $ac_try) 2>&5
|
---|
3950 | ac_status=$?
|
---|
3951 | echo "$as_me:3951: \$? = $ac_status" >&5
|
---|
3952 | (exit $ac_status); }; }; then
|
---|
3953 | ac_cv_func_alloca_works=yes
|
---|
3954 | else
|
---|
3955 | echo "$as_me: failed program was:" >&5
|
---|
3956 | cat conftest.$ac_ext >&5
|
---|
3957 | ac_cv_func_alloca_works=no
|
---|
3958 | fi
|
---|
3959 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
3960 | fi
|
---|
3961 | echo "$as_me:3961: result: $ac_cv_func_alloca_works" >&5
|
---|
3962 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
3963 |
|
---|
3964 | if test $ac_cv_func_alloca_works = yes; then
|
---|
3965 |
|
---|
3966 | cat >>confdefs.h <<\EOF
|
---|
3967 | #define HAVE_ALLOCA 1
|
---|
3968 | EOF
|
---|
3969 |
|
---|
3970 | else
|
---|
3971 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
3972 | # that cause trouble. Some versions do not even contain alloca or
|
---|
3973 | # contain a buggy version. If you still want to use their alloca,
|
---|
3974 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
3975 |
|
---|
3976 | ALLOCA=alloca.$ac_objext
|
---|
3977 |
|
---|
3978 | cat >>confdefs.h <<\EOF
|
---|
3979 | #define C_ALLOCA 1
|
---|
3980 | EOF
|
---|
3981 |
|
---|
3982 | echo "$as_me:3982: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
3983 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
3984 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
3985 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3986 | else
|
---|
3987 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3988 | #line 3988 "configure"
|
---|
3989 | #include "confdefs.h"
|
---|
3990 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
3991 | webecray
|
---|
3992 | #else
|
---|
3993 | wenotbecray
|
---|
3994 | #endif
|
---|
3995 |
|
---|
3996 | _ACEOF
|
---|
3997 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3998 | egrep "webecray" >/dev/null 2>&1; then
|
---|
3999 | ac_cv_os_cray=yes
|
---|
4000 | else
|
---|
4001 | ac_cv_os_cray=no
|
---|
4002 | fi
|
---|
4003 | rm -f conftest*
|
---|
4004 |
|
---|
4005 | fi
|
---|
4006 | echo "$as_me:4006: result: $ac_cv_os_cray" >&5
|
---|
4007 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
4008 | if test $ac_cv_os_cray = yes; then
|
---|
4009 | for ac_func in _getb67 GETB67 getb67; do
|
---|
4010 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
|
---|
4011 | echo "$as_me:4011: checking for $ac_func" >&5
|
---|
4012 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
4013 | if eval "test \"\${$ac_ac_var+set}\" = set"; then
|
---|
4014 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4015 | else
|
---|
4016 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4017 | #line 4017 "configure"
|
---|
4018 | #include "confdefs.h"
|
---|
4019 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4020 | which can conflict with char $ac_func (); below. */
|
---|
4021 | #include <assert.h>
|
---|
4022 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4023 | #ifdef __cplusplus
|
---|
4024 | extern "C"
|
---|
4025 | #endif
|
---|
4026 | /* We use char because int might match the return type of a gcc2
|
---|
4027 | builtin and then its argument prototype would still apply. */
|
---|
4028 | char $ac_func ();
|
---|
4029 | char (*f) ();
|
---|
4030 |
|
---|
4031 | int
|
---|
4032 | main ()
|
---|
4033 | {
|
---|
4034 | /* The GNU C library defines this for functions which it implements
|
---|
4035 | to always fail with ENOSYS. Some functions are actually named
|
---|
4036 | something starting with __ and the normal name is an alias. */
|
---|
4037 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4038 | choke me
|
---|
4039 | #else
|
---|
4040 | f = $ac_func;
|
---|
4041 | #endif
|
---|
4042 |
|
---|
4043 | ;
|
---|
4044 | return 0;
|
---|
4045 | }
|
---|
4046 | _ACEOF
|
---|
4047 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4048 | if { (eval echo "$as_me:4048: \"$ac_link\"") >&5
|
---|
4049 | (eval $ac_link) 2>&5
|
---|
4050 | ac_status=$?
|
---|
4051 | echo "$as_me:4051: \$? = $ac_status" >&5
|
---|
4052 | (exit $ac_status); } &&
|
---|
4053 | { ac_try='test -s conftest$ac_exeext'
|
---|
4054 | { (eval echo "$as_me:4054: \"$ac_try\"") >&5
|
---|
4055 | (eval $ac_try) 2>&5
|
---|
4056 | ac_status=$?
|
---|
4057 | echo "$as_me:4057: \$? = $ac_status" >&5
|
---|
4058 | (exit $ac_status); }; }; then
|
---|
4059 | eval "$ac_ac_var=yes"
|
---|
4060 | else
|
---|
4061 | echo "$as_me: failed program was:" >&5
|
---|
4062 | cat conftest.$ac_ext >&5
|
---|
4063 | eval "$ac_ac_var=no"
|
---|
4064 | fi
|
---|
4065 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
4066 | fi
|
---|
4067 | echo "$as_me:4067: result: `eval echo '${'$ac_ac_var'}'`" >&5
|
---|
4068 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
|
---|
4069 | if test `eval echo '${'$ac_ac_var'}'` = yes; then
|
---|
4070 |
|
---|
4071 | cat >>confdefs.h <<EOF
|
---|
4072 | #define CRAY_STACKSEG_END $ac_func
|
---|
4073 | EOF
|
---|
4074 |
|
---|
4075 | break
|
---|
4076 | fi
|
---|
4077 |
|
---|
4078 | done
|
---|
4079 | fi
|
---|
4080 |
|
---|
4081 | echo "$as_me:4081: checking stack direction for C alloca" >&5
|
---|
4082 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
4083 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
4084 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4085 | else
|
---|
4086 | if test "$cross_compiling" = yes; then
|
---|
4087 | ac_cv_c_stack_direction=0
|
---|
4088 | else
|
---|
4089 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4090 | #line 4090 "configure"
|
---|
4091 | #include "confdefs.h"
|
---|
4092 | int
|
---|
4093 | find_stack_direction ()
|
---|
4094 | {
|
---|
4095 | static char *addr = 0;
|
---|
4096 | auto char dummy;
|
---|
4097 | if (addr == 0)
|
---|
4098 | {
|
---|
4099 | addr = &dummy;
|
---|
4100 | return find_stack_direction ();
|
---|
4101 | }
|
---|
4102 | else
|
---|
4103 | return (&dummy > addr) ? 1 : -1;
|
---|
4104 | }
|
---|
4105 |
|
---|
4106 | int
|
---|
4107 | main ()
|
---|
4108 | {
|
---|
4109 | exit (find_stack_direction () < 0);
|
---|
4110 | }
|
---|
4111 | _ACEOF
|
---|
4112 | rm -f conftest$ac_exeext
|
---|
4113 | if { (eval echo "$as_me:4113: \"$ac_link\"") >&5
|
---|
4114 | (eval $ac_link) 2>&5
|
---|
4115 | ac_status=$?
|
---|
4116 | echo "$as_me:4116: \$? = $ac_status" >&5
|
---|
4117 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
4118 | { (eval echo "$as_me:4118: \"$ac_try\"") >&5
|
---|
4119 | (eval $ac_try) 2>&5
|
---|
4120 | ac_status=$?
|
---|
4121 | echo "$as_me:4121: \$? = $ac_status" >&5
|
---|
4122 | (exit $ac_status); }; }; then
|
---|
4123 | ac_cv_c_stack_direction=1
|
---|
4124 | else
|
---|
4125 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
4126 | echo "$as_me: failed program was:" >&5
|
---|
4127 | cat conftest.$ac_ext >&5
|
---|
4128 | ac_cv_c_stack_direction=-1
|
---|
4129 | fi
|
---|
4130 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
|
---|
4131 | fi
|
---|
4132 | fi
|
---|
4133 | echo "$as_me:4133: result: $ac_cv_c_stack_direction" >&5
|
---|
4134 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
4135 |
|
---|
4136 | cat >>confdefs.h <<EOF
|
---|
4137 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
4138 | EOF
|
---|
4139 |
|
---|
4140 | fi
|
---|
4141 |
|
---|
4142 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
4143 | echo "$as_me:4143: checking whether $CC needs -traditional" >&5
|
---|
4144 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
4145 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
4146 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4147 | else
|
---|
4148 | ac_pattern="Autoconf.*'x'"
|
---|
4149 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4150 | #line 4150 "configure"
|
---|
4151 | #include "confdefs.h"
|
---|
4152 | #include <sgtty.h>
|
---|
4153 | Autoconf TIOCGETP
|
---|
4154 | _ACEOF
|
---|
4155 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4156 | egrep "$ac_pattern" >/dev/null 2>&1; then
|
---|
4157 | ac_cv_prog_gcc_traditional=yes
|
---|
4158 | else
|
---|
4159 | ac_cv_prog_gcc_traditional=no
|
---|
4160 | fi
|
---|
4161 | rm -f conftest*
|
---|
4162 |
|
---|
4163 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
4164 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4165 | #line 4165 "configure"
|
---|
4166 | #include "confdefs.h"
|
---|
4167 | #include <termio.h>
|
---|
4168 | Autoconf TCGETA
|
---|
4169 | _ACEOF
|
---|
4170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4171 | egrep "$ac_pattern" >/dev/null 2>&1; then
|
---|
4172 | ac_cv_prog_gcc_traditional=yes
|
---|
4173 | fi
|
---|
4174 | rm -f conftest*
|
---|
4175 |
|
---|
4176 | fi
|
---|
4177 | fi
|
---|
4178 | echo "$as_me:4178: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
4179 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
4180 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
4181 | CC="$CC -traditional"
|
---|
4182 | fi
|
---|
4183 | fi
|
---|
4184 |
|
---|
4185 | echo "$as_me:4185: checking return type of signal handlers" >&5
|
---|
4186 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
4187 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
4188 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4189 | else
|
---|
4190 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4191 | #line 4191 "configure"
|
---|
4192 | #include "confdefs.h"
|
---|
4193 | #include <sys/types.h>
|
---|
4194 | #include <signal.h>
|
---|
4195 | #ifdef signal
|
---|
4196 | # undef signal
|
---|
4197 | #endif
|
---|
4198 | #ifdef __cplusplus
|
---|
4199 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
4200 | #else
|
---|
4201 | void (*signal ()) ();
|
---|
4202 | #endif
|
---|
4203 |
|
---|
4204 | int
|
---|
4205 | main ()
|
---|
4206 | {
|
---|
4207 | int i;
|
---|
4208 | ;
|
---|
4209 | return 0;
|
---|
4210 | }
|
---|
4211 | _ACEOF
|
---|
4212 | rm -f conftest.$ac_objext
|
---|
4213 | if { (eval echo "$as_me:4213: \"$ac_compile\"") >&5
|
---|
4214 | (eval $ac_compile) 2>&5
|
---|
4215 | ac_status=$?
|
---|
4216 | echo "$as_me:4216: \$? = $ac_status" >&5
|
---|
4217 | (exit $ac_status); } &&
|
---|
4218 | { ac_try='test -s conftest.$ac_objext'
|
---|
4219 | { (eval echo "$as_me:4219: \"$ac_try\"") >&5
|
---|
4220 | (eval $ac_try) 2>&5
|
---|
4221 | ac_status=$?
|
---|
4222 | echo "$as_me:4222: \$? = $ac_status" >&5
|
---|
4223 | (exit $ac_status); }; }; then
|
---|
4224 | ac_cv_type_signal=void
|
---|
4225 | else
|
---|
4226 | echo "$as_me: failed program was:" >&5
|
---|
4227 | cat conftest.$ac_ext >&5
|
---|
4228 | ac_cv_type_signal=int
|
---|
4229 | fi
|
---|
4230 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
4231 | fi
|
---|
4232 | echo "$as_me:4232: result: $ac_cv_type_signal" >&5
|
---|
4233 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
4234 |
|
---|
4235 | cat >>confdefs.h <<EOF
|
---|
4236 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
4237 | EOF
|
---|
4238 |
|
---|
4239 | for ac_func in vprintf
|
---|
4240 | do
|
---|
4241 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
|
---|
4242 | echo "$as_me:4242: checking for $ac_func" >&5
|
---|
4243 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
4244 | if eval "test \"\${$ac_ac_var+set}\" = set"; then
|
---|
4245 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4246 | else
|
---|
4247 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4248 | #line 4248 "configure"
|
---|
4249 | #include "confdefs.h"
|
---|
4250 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4251 | which can conflict with char $ac_func (); below. */
|
---|
4252 | #include <assert.h>
|
---|
4253 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4254 | #ifdef __cplusplus
|
---|
4255 | extern "C"
|
---|
4256 | #endif
|
---|
4257 | /* We use char because int might match the return type of a gcc2
|
---|
4258 | builtin and then its argument prototype would still apply. */
|
---|
4259 | char $ac_func ();
|
---|
4260 | char (*f) ();
|
---|
4261 |
|
---|
4262 | int
|
---|
4263 | main ()
|
---|
4264 | {
|
---|
4265 | /* The GNU C library defines this for functions which it implements
|
---|
4266 | to always fail with ENOSYS. Some functions are actually named
|
---|
4267 | something starting with __ and the normal name is an alias. */
|
---|
4268 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4269 | choke me
|
---|
4270 | #else
|
---|
4271 | f = $ac_func;
|
---|
4272 | #endif
|
---|
4273 |
|
---|
4274 | ;
|
---|
4275 | return 0;
|
---|
4276 | }
|
---|
4277 | _ACEOF
|
---|
4278 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4279 | if { (eval echo "$as_me:4279: \"$ac_link\"") >&5
|
---|
4280 | (eval $ac_link) 2>&5
|
---|
4281 | ac_status=$?
|
---|
4282 | echo "$as_me:4282: \$? = $ac_status" >&5
|
---|
4283 | (exit $ac_status); } &&
|
---|
4284 | { ac_try='test -s conftest$ac_exeext'
|
---|
4285 | { (eval echo "$as_me:4285: \"$ac_try\"") >&5
|
---|
4286 | (eval $ac_try) 2>&5
|
---|
4287 | ac_status=$?
|
---|
4288 | echo "$as_me:4288: \$? = $ac_status" >&5
|
---|
4289 | (exit $ac_status); }; }; then
|
---|
4290 | eval "$ac_ac_var=yes"
|
---|
4291 | else
|
---|
4292 | echo "$as_me: failed program was:" >&5
|
---|
4293 | cat conftest.$ac_ext >&5
|
---|
4294 | eval "$ac_ac_var=no"
|
---|
4295 | fi
|
---|
4296 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
4297 | fi
|
---|
4298 | echo "$as_me:4298: result: `eval echo '${'$ac_ac_var'}'`" >&5
|
---|
4299 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
|
---|
4300 | if test `eval echo '${'$ac_ac_var'}'` = yes; then
|
---|
4301 | cat >>confdefs.h <<EOF
|
---|
4302 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
|
---|
4303 | EOF
|
---|
4304 |
|
---|
4305 | echo "$as_me:4305: checking for _doprnt" >&5
|
---|
4306 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
4307 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
4308 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4309 | else
|
---|
4310 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4311 | #line 4311 "configure"
|
---|
4312 | #include "confdefs.h"
|
---|
4313 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4314 | which can conflict with char _doprnt (); below. */
|
---|
4315 | #include <assert.h>
|
---|
4316 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4317 | #ifdef __cplusplus
|
---|
4318 | extern "C"
|
---|
4319 | #endif
|
---|
4320 | /* We use char because int might match the return type of a gcc2
|
---|
4321 | builtin and then its argument prototype would still apply. */
|
---|
4322 | char _doprnt ();
|
---|
4323 | char (*f) ();
|
---|
4324 |
|
---|
4325 | int
|
---|
4326 | main ()
|
---|
4327 | {
|
---|
4328 | /* The GNU C library defines this for functions which it implements
|
---|
4329 | to always fail with ENOSYS. Some functions are actually named
|
---|
4330 | something starting with __ and the normal name is an alias. */
|
---|
4331 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
4332 | choke me
|
---|
4333 | #else
|
---|
4334 | f = _doprnt;
|
---|
4335 | #endif
|
---|
4336 |
|
---|
4337 | ;
|
---|
4338 | return 0;
|
---|
4339 | }
|
---|
4340 | _ACEOF
|
---|
4341 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4342 | if { (eval echo "$as_me:4342: \"$ac_link\"") >&5
|
---|
4343 | (eval $ac_link) 2>&5
|
---|
4344 | ac_status=$?
|
---|
4345 | echo "$as_me:4345: \$? = $ac_status" >&5
|
---|
4346 | (exit $ac_status); } &&
|
---|
4347 | { ac_try='test -s conftest$ac_exeext'
|
---|
4348 | { (eval echo "$as_me:4348: \"$ac_try\"") >&5
|
---|
4349 | (eval $ac_try) 2>&5
|
---|
4350 | ac_status=$?
|
---|
4351 | echo "$as_me:4351: \$? = $ac_status" >&5
|
---|
4352 | (exit $ac_status); }; }; then
|
---|
4353 | ac_cv_func__doprnt=yes
|
---|
4354 | else
|
---|
4355 | echo "$as_me: failed program was:" >&5
|
---|
4356 | cat conftest.$ac_ext >&5
|
---|
4357 | ac_cv_func__doprnt=no
|
---|
4358 | fi
|
---|
4359 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
4360 | fi
|
---|
4361 | echo "$as_me:4361: result: $ac_cv_func__doprnt" >&5
|
---|
4362 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
4363 | if test $ac_cv_func__doprnt = yes; then
|
---|
4364 |
|
---|
4365 | cat >>confdefs.h <<\EOF
|
---|
4366 | #define HAVE_DOPRNT 1
|
---|
4367 | EOF
|
---|
4368 |
|
---|
4369 | fi
|
---|
4370 |
|
---|
4371 | fi
|
---|
4372 | done
|
---|
4373 |
|
---|
4374 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
4375 | do
|
---|
4376 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
|
---|
4377 | echo "$as_me:4377: checking for $ac_func" >&5
|
---|
4378 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
4379 | if eval "test \"\${$ac_ac_var+set}\" = set"; then
|
---|
4380 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4381 | else
|
---|
4382 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4383 | #line 4383 "configure"
|
---|
4384 | #include "confdefs.h"
|
---|
4385 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4386 | which can conflict with char $ac_func (); below. */
|
---|
4387 | #include <assert.h>
|
---|
4388 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4389 | #ifdef __cplusplus
|
---|
4390 | extern "C"
|
---|
4391 | #endif
|
---|
4392 | /* We use char because int might match the return type of a gcc2
|
---|
4393 | builtin and then its argument prototype would still apply. */
|
---|
4394 | char $ac_func ();
|
---|
4395 | char (*f) ();
|
---|
4396 |
|
---|
4397 | int
|
---|
4398 | main ()
|
---|
4399 | {
|
---|
4400 | /* The GNU C library defines this for functions which it implements
|
---|
4401 | to always fail with ENOSYS. Some functions are actually named
|
---|
4402 | something starting with __ and the normal name is an alias. */
|
---|
4403 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4404 | choke me
|
---|
4405 | #else
|
---|
4406 | f = $ac_func;
|
---|
4407 | #endif
|
---|
4408 |
|
---|
4409 | ;
|
---|
4410 | return 0;
|
---|
4411 | }
|
---|
4412 | _ACEOF
|
---|
4413 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4414 | if { (eval echo "$as_me:4414: \"$ac_link\"") >&5
|
---|
4415 | (eval $ac_link) 2>&5
|
---|
4416 | ac_status=$?
|
---|
4417 | echo "$as_me:4417: \$? = $ac_status" >&5
|
---|
4418 | (exit $ac_status); } &&
|
---|
4419 | { ac_try='test -s conftest$ac_exeext'
|
---|
4420 | { (eval echo "$as_me:4420: \"$ac_try\"") >&5
|
---|
4421 | (eval $ac_try) 2>&5
|
---|
4422 | ac_status=$?
|
---|
4423 | echo "$as_me:4423: \$? = $ac_status" >&5
|
---|
4424 | (exit $ac_status); }; }; then
|
---|
4425 | eval "$ac_ac_var=yes"
|
---|
4426 | else
|
---|
4427 | echo "$as_me: failed program was:" >&5
|
---|
4428 | cat conftest.$ac_ext >&5
|
---|
4429 | eval "$ac_ac_var=no"
|
---|
4430 | fi
|
---|
4431 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
4432 | fi
|
---|
4433 | echo "$as_me:4433: result: `eval echo '${'$ac_ac_var'}'`" >&5
|
---|
4434 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
|
---|
4435 | if test `eval echo '${'$ac_ac_var'}'` = yes; then
|
---|
4436 | cat >>confdefs.h <<EOF
|
---|
4437 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
|
---|
4438 | EOF
|
---|
4439 |
|
---|
4440 | fi
|
---|
4441 | done
|
---|
4442 |
|
---|
4443 | for ac_func in ftruncate strstr strcasecmp
|
---|
4444 | do
|
---|
4445 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
|
---|
4446 | echo "$as_me:4446: checking for $ac_func" >&5
|
---|
4447 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
4448 | if eval "test \"\${$ac_ac_var+set}\" = set"; then
|
---|
4449 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4450 | else
|
---|
4451 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4452 | #line 4452 "configure"
|
---|
4453 | #include "confdefs.h"
|
---|
4454 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4455 | which can conflict with char $ac_func (); below. */
|
---|
4456 | #include <assert.h>
|
---|
4457 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4458 | #ifdef __cplusplus
|
---|
4459 | extern "C"
|
---|
4460 | #endif
|
---|
4461 | /* We use char because int might match the return type of a gcc2
|
---|
4462 | builtin and then its argument prototype would still apply. */
|
---|
4463 | char $ac_func ();
|
---|
4464 | char (*f) ();
|
---|
4465 |
|
---|
4466 | int
|
---|
4467 | main ()
|
---|
4468 | {
|
---|
4469 | /* The GNU C library defines this for functions which it implements
|
---|
4470 | to always fail with ENOSYS. Some functions are actually named
|
---|
4471 | something starting with __ and the normal name is an alias. */
|
---|
4472 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4473 | choke me
|
---|
4474 | #else
|
---|
4475 | f = $ac_func;
|
---|
4476 | #endif
|
---|
4477 |
|
---|
4478 | ;
|
---|
4479 | return 0;
|
---|
4480 | }
|
---|
4481 | _ACEOF
|
---|
4482 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4483 | if { (eval echo "$as_me:4483: \"$ac_link\"") >&5
|
---|
4484 | (eval $ac_link) 2>&5
|
---|
4485 | ac_status=$?
|
---|
4486 | echo "$as_me:4486: \$? = $ac_status" >&5
|
---|
4487 | (exit $ac_status); } &&
|
---|
4488 | { ac_try='test -s conftest$ac_exeext'
|
---|
4489 | { (eval echo "$as_me:4489: \"$ac_try\"") >&5
|
---|
4490 | (eval $ac_try) 2>&5
|
---|
4491 | ac_status=$?
|
---|
4492 | echo "$as_me:4492: \$? = $ac_status" >&5
|
---|
4493 | (exit $ac_status); }; }; then
|
---|
4494 | eval "$ac_ac_var=yes"
|
---|
4495 | else
|
---|
4496 | echo "$as_me: failed program was:" >&5
|
---|
4497 | cat conftest.$ac_ext >&5
|
---|
4498 | eval "$ac_ac_var=no"
|
---|
4499 | fi
|
---|
4500 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
4501 | fi
|
---|
4502 | echo "$as_me:4502: result: `eval echo '${'$ac_ac_var'}'`" >&5
|
---|
4503 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
|
---|
4504 | if test `eval echo '${'$ac_ac_var'}'` = yes; then
|
---|
4505 | cat >>confdefs.h <<EOF
|
---|
4506 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
|
---|
4507 | EOF
|
---|
4508 |
|
---|
4509 | else
|
---|
4510 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
---|
4511 | fi
|
---|
4512 | done
|
---|
4513 |
|
---|
4514 | echo "$as_me:4514: checking for textdomain " >&5
|
---|
4515 | echo $ECHO_N "checking for textdomain ... $ECHO_C" >&6
|
---|
4516 | if test "${ac_cv_func_textdomain_+set}" = set; then
|
---|
4517 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4518 | else
|
---|
4519 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4520 | #line 4520 "configure"
|
---|
4521 | #include "confdefs.h"
|
---|
4522 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4523 | which can conflict with char textdomain (); below. */
|
---|
4524 | #include <assert.h>
|
---|
4525 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4526 | #ifdef __cplusplus
|
---|
4527 | extern "C"
|
---|
4528 | #endif
|
---|
4529 | /* We use char because int might match the return type of a gcc2
|
---|
4530 | builtin and then its argument prototype would still apply. */
|
---|
4531 | char textdomain ();
|
---|
4532 | char (*f) ();
|
---|
4533 |
|
---|
4534 | int
|
---|
4535 | main ()
|
---|
4536 | {
|
---|
4537 | /* The GNU C library defines this for functions which it implements
|
---|
4538 | to always fail with ENOSYS. Some functions are actually named
|
---|
4539 | something starting with __ and the normal name is an alias. */
|
---|
4540 | #if defined (__stub_textdomain ) || defined (__stub___textdomain )
|
---|
4541 | choke me
|
---|
4542 | #else
|
---|
4543 | f = textdomain ;
|
---|
4544 | #endif
|
---|
4545 |
|
---|
4546 | ;
|
---|
4547 | return 0;
|
---|
4548 | }
|
---|
4549 | _ACEOF
|
---|
4550 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4551 | if { (eval echo "$as_me:4551: \"$ac_link\"") >&5
|
---|
4552 | (eval $ac_link) 2>&5
|
---|
4553 | ac_status=$?
|
---|
4554 | echo "$as_me:4554: \$? = $ac_status" >&5
|
---|
4555 | (exit $ac_status); } &&
|
---|
4556 | { ac_try='test -s conftest$ac_exeext'
|
---|
4557 | { (eval echo "$as_me:4557: \"$ac_try\"") >&5
|
---|
4558 | (eval $ac_try) 2>&5
|
---|
4559 | ac_status=$?
|
---|
4560 | echo "$as_me:4560: \$? = $ac_status" >&5
|
---|
4561 | (exit $ac_status); }; }; then
|
---|
4562 | ac_cv_func_textdomain_=yes
|
---|
4563 | else
|
---|
4564 | echo "$as_me: failed program was:" >&5
|
---|
4565 | cat conftest.$ac_ext >&5
|
---|
4566 | ac_cv_func_textdomain_=no
|
---|
4567 | fi
|
---|
4568 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
4569 | fi
|
---|
4570 | echo "$as_me:4570: result: $ac_cv_func_textdomain_" >&5
|
---|
4571 | echo "${ECHO_T}$ac_cv_func_textdomain_" >&6
|
---|
4572 | if test $ac_cv_func_textdomain_ = yes; then
|
---|
4573 | cat >>confdefs.h <<\EOF
|
---|
4574 | #define ENABLE_NLS 1
|
---|
4575 | EOF
|
---|
4576 |
|
---|
4577 | fi
|
---|
4578 |
|
---|
4579 | ac_ext=cc
|
---|
4580 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
4581 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4582 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4583 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
4584 |
|
---|
4585 | success=no
|
---|
4586 | echo "$as_me:4586: checking \"whether STL library has known faults\"" >&5
|
---|
4587 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
4588 |
|
---|
4589 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4590 | #line 4590 "configure"
|
---|
4591 | #include "confdefs.h"
|
---|
4592 | #include <vector>
|
---|
4593 |
|
---|
4594 | int
|
---|
4595 | main ()
|
---|
4596 | {
|
---|
4597 |
|
---|
4598 | ;
|
---|
4599 | return 0;
|
---|
4600 | }
|
---|
4601 | _ACEOF
|
---|
4602 | rm -f conftest.$ac_objext
|
---|
4603 | if { (eval echo "$as_me:4603: \"$ac_compile\"") >&5
|
---|
4604 | (eval $ac_compile) 2>&5
|
---|
4605 | ac_status=$?
|
---|
4606 | echo "$as_me:4606: \$? = $ac_status" >&5
|
---|
4607 | (exit $ac_status); } &&
|
---|
4608 | { ac_try='test -s conftest.$ac_objext'
|
---|
4609 | { (eval echo "$as_me:4609: \"$ac_try\"") >&5
|
---|
4610 | (eval $ac_try) 2>&5
|
---|
4611 | ac_status=$?
|
---|
4612 | echo "$as_me:4612: \$? = $ac_status" >&5
|
---|
4613 | (exit $ac_status); }; }; then
|
---|
4614 | success=yes
|
---|
4615 | else
|
---|
4616 | echo "$as_me: failed program was:" >&5
|
---|
4617 | cat conftest.$ac_ext >&5
|
---|
4618 | fi
|
---|
4619 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
4620 |
|
---|
4621 | if test $success = "no"; then
|
---|
4622 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4623 | #line 4623 "configure"
|
---|
4624 | #include "confdefs.h"
|
---|
4625 | #include <vector.h>
|
---|
4626 |
|
---|
4627 | int
|
---|
4628 | main ()
|
---|
4629 | {
|
---|
4630 |
|
---|
4631 | ;
|
---|
4632 | return 0;
|
---|
4633 | }
|
---|
4634 | _ACEOF
|
---|
4635 | rm -f conftest.$ac_objext
|
---|
4636 | if { (eval echo "$as_me:4636: \"$ac_compile\"") >&5
|
---|
4637 | (eval $ac_compile) 2>&5
|
---|
4638 | ac_status=$?
|
---|
4639 | echo "$as_me:4639: \$? = $ac_status" >&5
|
---|
4640 | (exit $ac_status); } &&
|
---|
4641 | { ac_try='test -s conftest.$ac_objext'
|
---|
4642 | { (eval echo "$as_me:4642: \"$ac_try\"") >&5
|
---|
4643 | (eval $ac_try) 2>&5
|
---|
4644 | ac_status=$?
|
---|
4645 | echo "$as_me:4645: \$? = $ac_status" >&5
|
---|
4646 | (exit $ac_status); }; }; then
|
---|
4647 | success="yes"
|
---|
4648 | else
|
---|
4649 | echo "$as_me: failed program was:" >&5
|
---|
4650 | cat conftest.$ac_ext >&5
|
---|
4651 | fi
|
---|
4652 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
4653 | fi
|
---|
4654 |
|
---|
4655 | if test $success = "no"; then
|
---|
4656 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4657 | #line 4657 "configure"
|
---|
4658 | #include "confdefs.h"
|
---|
4659 | #include <ospace\\std\\vector>
|
---|
4660 |
|
---|
4661 | int
|
---|
4662 | main ()
|
---|
4663 | {
|
---|
4664 |
|
---|
4665 | ;
|
---|
4666 | return 0;
|
---|
4667 | }
|
---|
4668 | _ACEOF
|
---|
4669 | rm -f conftest.$ac_objext
|
---|
4670 | if { (eval echo "$as_me:4670: \"$ac_compile\"") >&5
|
---|
4671 | (eval $ac_compile) 2>&5
|
---|
4672 | ac_status=$?
|
---|
4673 | echo "$as_me:4673: \$? = $ac_status" >&5
|
---|
4674 | (exit $ac_status); } &&
|
---|
4675 | { ac_try='test -s conftest.$ac_objext'
|
---|
4676 | { (eval echo "$as_me:4676: \"$ac_try\"") >&5
|
---|
4677 | (eval $ac_try) 2>&5
|
---|
4678 | ac_status=$?
|
---|
4679 | echo "$as_me:4679: \$? = $ac_status" >&5
|
---|
4680 | (exit $ac_status); }; }; then
|
---|
4681 | success="yes"
|
---|
4682 | else
|
---|
4683 | echo "$as_me: failed program was:" >&5
|
---|
4684 | cat conftest.$ac_ext >&5
|
---|
4685 | fi
|
---|
4686 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
4687 | fi
|
---|
4688 |
|
---|
4689 | if test $success = yes; then
|
---|
4690 | echo "$as_me:4690: result: \"no\"" >&5
|
---|
4691 | echo "${ECHO_T}\"no\"" >&6
|
---|
4692 | else
|
---|
4693 | echo "$as_me:4693: result: \"yes\"" >&5
|
---|
4694 | echo "${ECHO_T}\"yes\"" >&6
|
---|
4695 | { { echo "$as_me:4695: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
4696 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
4697 | { (exit 1); exit 1; }; }
|
---|
4698 | fi
|
---|
4699 |
|
---|
4700 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
4701 | # check for running bash under cygwin
|
---|
4702 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
4703 | then
|
---|
4704 | gsdlos=windows
|
---|
4705 | fi
|
---|
4706 |
|
---|
4707 | # ---------------------------------------------------------------------------
|
---|
4708 | ac_configure_args="$ac_configure_args --host=$host --target=$target"
|
---|
4709 |
|
---|
4710 | subdirs="$subdirs packages"
|
---|
4711 |
|
---|
4712 | # the list of folders in the src folder
|
---|
4713 | srclist="packages/mgpp/lib/Makefile packages/mgpp/text/Makefile packages/mgpp/Makefile"
|
---|
4714 |
|
---|
4715 | ac_config_files="$ac_config_files packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile packages/mg/src/scripts/Makefile packages/mg/lib/Makefile Makefile $srclist"
|
---|
4716 | cat >confcache <<\_ACEOF
|
---|
4717 | # This file is a shell script that caches the results of configure
|
---|
4718 | # tests run on this system so they can be shared between configure
|
---|
4719 | # scripts and configure runs, see configure's option --config-cache.
|
---|
4720 | # It is not useful on other systems. If it contains results you don't
|
---|
4721 | # want to keep, you may remove or edit it.
|
---|
4722 | #
|
---|
4723 | # config.status only pays attention to the cache file if you give it
|
---|
4724 | # the --recheck option to rerun configure.
|
---|
4725 | #
|
---|
4726 | # `ac_cv_env_foo' variables (set or unset) will be overriden when
|
---|
4727 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
4728 | # following values.
|
---|
4729 |
|
---|
4730 | _ACEOF
|
---|
4731 |
|
---|
4732 | # The following way of writing the cache mishandles newlines in values,
|
---|
4733 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
4734 | # So, don't put newlines in cache variables' values.
|
---|
4735 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
4736 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
4737 | {
|
---|
4738 | (set) 2>&1 |
|
---|
4739 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
4740 | *ac_space=\ *)
|
---|
4741 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
4742 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
4743 | sed -n \
|
---|
4744 | "s/'/'\\\\''/g;
|
---|
4745 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
4746 | ;;
|
---|
4747 | *)
|
---|
4748 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
4749 | sed -n \
|
---|
4750 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
4751 | ;;
|
---|
4752 | esac;
|
---|
4753 | } |
|
---|
4754 | sed '
|
---|
4755 | t clear
|
---|
4756 | : clear
|
---|
4757 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
4758 | t end
|
---|
4759 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
4760 | : end' >>confcache
|
---|
4761 | if cmp -s $cache_file confcache; then :; else
|
---|
4762 | if test -w $cache_file; then
|
---|
4763 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
4764 | cat confcache >$cache_file
|
---|
4765 | else
|
---|
4766 | echo "not updating unwritable cache $cache_file"
|
---|
4767 | fi
|
---|
4768 | fi
|
---|
4769 | rm -f confcache
|
---|
4770 |
|
---|
4771 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
4772 | # Let make expand exec_prefix.
|
---|
4773 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
4774 |
|
---|
4775 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
4776 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
4777 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
4778 | # (actually we leave an empty line to preserve line numbers).
|
---|
4779 | if test "x$srcdir" = x.; then
|
---|
4780 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
4781 | s/:*\$(srcdir):*/:/;
|
---|
4782 | s/:*\${srcdir}:*/:/;
|
---|
4783 | s/:*@srcdir@:*/:/;
|
---|
4784 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
4785 | s/:*$//;
|
---|
4786 | s/^[^=]*=[ ]*$//;
|
---|
4787 | }'
|
---|
4788 | fi
|
---|
4789 |
|
---|
4790 | DEFS=-DHAVE_CONFIG_H
|
---|
4791 |
|
---|
4792 | : ${CONFIG_STATUS=./config.status}
|
---|
4793 | ac_clean_files_save=$ac_clean_files
|
---|
4794 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
4795 | { echo "$as_me:4795: creating $CONFIG_STATUS" >&5
|
---|
4796 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
4797 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
4798 | #! $SHELL
|
---|
4799 | # Generated automatically by configure.
|
---|
4800 | # Run this file to recreate the current configuration.
|
---|
4801 | # Compiler output produced by configure, useful for debugging
|
---|
4802 | # configure, is in config.log if it exists.
|
---|
4803 |
|
---|
4804 | debug=false
|
---|
4805 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
4806 | ac_cs_invocation="\$0 \$@"
|
---|
4807 |
|
---|
4808 | _ACEOF
|
---|
4809 |
|
---|
4810 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
4811 | # Be Bourne compatible
|
---|
4812 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
4813 | emulate sh
|
---|
4814 | NULLCMD=:
|
---|
4815 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
4816 | set -o posix
|
---|
4817 | fi
|
---|
4818 |
|
---|
4819 | # Name of the executable.
|
---|
4820 | as_me=`echo "$0" |sed 's,.*[\\/],,'`
|
---|
4821 |
|
---|
4822 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
4823 | as_expr=expr
|
---|
4824 | else
|
---|
4825 | as_expr=false
|
---|
4826 | fi
|
---|
4827 |
|
---|
4828 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
4829 | echo >conf$$.file
|
---|
4830 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
4831 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
4832 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
4833 | if test -f conf$$.exe; then
|
---|
4834 | # Don't use ln at all; we don't have any links
|
---|
4835 | as_ln_s='cp -p'
|
---|
4836 | else
|
---|
4837 | as_ln_s='ln -s'
|
---|
4838 | fi
|
---|
4839 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
4840 | as_ln_s=ln
|
---|
4841 | else
|
---|
4842 | as_ln_s='cp -p'
|
---|
4843 | fi
|
---|
4844 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
4845 |
|
---|
4846 | as_executable_p="test -f"
|
---|
4847 |
|
---|
4848 | # Support unset when possible.
|
---|
4849 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
|
---|
4850 | as_unset=unset
|
---|
4851 | else
|
---|
4852 | as_unset=false
|
---|
4853 | fi
|
---|
4854 |
|
---|
4855 | # NLS nuisances.
|
---|
4856 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
|
---|
4857 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
|
---|
4858 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
|
---|
4859 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
|
---|
4860 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
|
---|
4861 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
|
---|
4862 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
|
---|
4863 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
|
---|
4864 |
|
---|
4865 | # IFS
|
---|
4866 | # We need space, tab and new line, in precisely that order.
|
---|
4867 | as_nl='
|
---|
4868 | '
|
---|
4869 | IFS=" $as_nl"
|
---|
4870 |
|
---|
4871 | # CDPATH.
|
---|
4872 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
|
---|
4873 |
|
---|
4874 | exec 6>&1
|
---|
4875 |
|
---|
4876 | _ACEOF
|
---|
4877 |
|
---|
4878 | # Files that config.status was made for.
|
---|
4879 | if test -n "$ac_config_files"; then
|
---|
4880 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
4881 | fi
|
---|
4882 |
|
---|
4883 | if test -n "$ac_config_headers"; then
|
---|
4884 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
4885 | fi
|
---|
4886 |
|
---|
4887 | if test -n "$ac_config_links"; then
|
---|
4888 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
4889 | fi
|
---|
4890 |
|
---|
4891 | if test -n "$ac_config_commands"; then
|
---|
4892 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
4893 | fi
|
---|
4894 |
|
---|
4895 | cat >>$CONFIG_STATUS <<\EOF
|
---|
4896 |
|
---|
4897 | ac_cs_usage="\
|
---|
4898 | \`$as_me' instantiates files from templates according to the
|
---|
4899 | current configuration.
|
---|
4900 |
|
---|
4901 | Usage: $0 [OPTIONS] [FILE]...
|
---|
4902 |
|
---|
4903 | -h, --help print this help, then exit
|
---|
4904 | -V, --version print version number, then exit
|
---|
4905 | -d, --debug don't remove temporary files
|
---|
4906 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
4907 | --file=FILE[:TEMPLATE]
|
---|
4908 | instantiate the configuration file FILE
|
---|
4909 | --header=FILE[:TEMPLATE]
|
---|
4910 | instantiate the configuration header FILE
|
---|
4911 |
|
---|
4912 | Configuration files:
|
---|
4913 | $config_files
|
---|
4914 |
|
---|
4915 | Configuration headers:
|
---|
4916 | $config_headers
|
---|
4917 |
|
---|
4918 | Report bugs to <[email protected]>."
|
---|
4919 | EOF
|
---|
4920 |
|
---|
4921 | cat >>$CONFIG_STATUS <<EOF
|
---|
4922 | ac_cs_version="\\
|
---|
4923 | config.status
|
---|
4924 | configured by $0, generated by GNU Autoconf 2.50,
|
---|
4925 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
4926 |
|
---|
4927 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
|
---|
4928 | Free Software Foundation, Inc.
|
---|
4929 | This config.status script is free software; the Free Software Foundation
|
---|
4930 | gives unlimited permission to copy, distribute and modify it."
|
---|
4931 | srcdir=$srcdir
|
---|
4932 | INSTALL="$INSTALL"
|
---|
4933 | EOF
|
---|
4934 |
|
---|
4935 | cat >>$CONFIG_STATUS <<\EOF
|
---|
4936 | # If no file are specified by the user, then we need to provide default
|
---|
4937 | # value. By we need to know if files were specified by the user.
|
---|
4938 | ac_need_defaults=:
|
---|
4939 | while test $# != 0
|
---|
4940 | do
|
---|
4941 | case $1 in
|
---|
4942 | --*=*)
|
---|
4943 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
4944 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
4945 | shift
|
---|
4946 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
|
---|
4947 | shift
|
---|
4948 | ;;
|
---|
4949 | -*);;
|
---|
4950 | *) # This is not an option, so the user has probably given explicit
|
---|
4951 | # arguments.
|
---|
4952 | ac_need_defaults=false;;
|
---|
4953 | esac
|
---|
4954 |
|
---|
4955 | case $1 in
|
---|
4956 | # Handling of the options.
|
---|
4957 | EOF
|
---|
4958 | cat >>$CONFIG_STATUS <<EOF
|
---|
4959 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
4960 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
|
---|
4961 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
4962 | EOF
|
---|
4963 | cat >>$CONFIG_STATUS <<\EOF
|
---|
4964 | --version | --vers* | -V )
|
---|
4965 | echo "$ac_cs_version"; exit 0 ;;
|
---|
4966 | --he | --h)
|
---|
4967 | # Conflict between --help and --header
|
---|
4968 | { { echo "$as_me:4968: error: ambiguous option: $1
|
---|
4969 | Try \`$0 --help' for more information." >&5
|
---|
4970 | echo "$as_me: error: ambiguous option: $1
|
---|
4971 | Try \`$0 --help' for more information." >&2;}
|
---|
4972 | { (exit 1); exit 1; }; };;
|
---|
4973 | --help | --hel | -h )
|
---|
4974 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
4975 | --debug | --d* | -d )
|
---|
4976 | debug=: ;;
|
---|
4977 | --file | --fil | --fi | --f )
|
---|
4978 | shift
|
---|
4979 | CONFIG_FILES="$CONFIG_FILES $1"
|
---|
4980 | ac_need_defaults=false;;
|
---|
4981 | --header | --heade | --head | --hea )
|
---|
4982 | shift
|
---|
4983 | CONFIG_HEADERS="$CONFIG_HEADERS $1"
|
---|
4984 | ac_need_defaults=false;;
|
---|
4985 |
|
---|
4986 | # Handling of arguments.
|
---|
4987 | 'packages/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
4988 | 'packages/mg/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/Makefile" ;;
|
---|
4989 | 'packages/mg/src/text/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/text/Makefile" ;;
|
---|
4990 | 'packages/mg/src/images/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/images/Makefile" ;;
|
---|
4991 | 'packages/mg/src/scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/scripts/Makefile" ;;
|
---|
4992 | 'packages/mg/lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES packages/mg/lib/Makefile" ;;
|
---|
4993 | 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
4994 | '$srclist' ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
4995 | 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
4996 |
|
---|
4997 | # This is an error.
|
---|
4998 | -*) { { echo "$as_me:4998: error: unrecognized option: $1
|
---|
4999 | Try \`$0 --help' for more information." >&5
|
---|
5000 | echo "$as_me: error: unrecognized option: $1
|
---|
5001 | Try \`$0 --help' for more information." >&2;}
|
---|
5002 | { (exit 1); exit 1; }; } ;;
|
---|
5003 | *) { { echo "$as_me:5003: error: invalid argument: $1" >&5
|
---|
5004 | echo "$as_me: error: invalid argument: $1" >&2;}
|
---|
5005 | { (exit 1); exit 1; }; };;
|
---|
5006 | esac
|
---|
5007 | shift
|
---|
5008 | done
|
---|
5009 |
|
---|
5010 | exec 5>>config.log
|
---|
5011 | cat >&5 << _ACEOF
|
---|
5012 |
|
---|
5013 | ## ----------------------- ##
|
---|
5014 | ## Running config.status. ##
|
---|
5015 | ## ----------------------- ##
|
---|
5016 |
|
---|
5017 | This file was extended by $as_me 2.50, executed with
|
---|
5018 | > $ac_cs_invocation
|
---|
5019 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
5020 |
|
---|
5021 | _ACEOF
|
---|
5022 | EOF
|
---|
5023 |
|
---|
5024 | cat >>$CONFIG_STATUS <<\EOF
|
---|
5025 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
5026 | # then the envvar interface is used. Set only those that are not.
|
---|
5027 | # We use the long form for the default assignment because of an extremely
|
---|
5028 | # bizarre bug on SunOS 4.1.3.
|
---|
5029 | if $ac_need_defaults; then
|
---|
5030 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
5031 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
5032 | fi
|
---|
5033 |
|
---|
5034 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
5035 | $debug ||
|
---|
5036 | {
|
---|
5037 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
5038 | trap '{ (exit $?); exit $?; }' 1 2 13 15
|
---|
5039 | }
|
---|
5040 |
|
---|
5041 | # Create a (secure) tmp directory for tmp files.
|
---|
5042 | : ${TMPDIR=/tmp}
|
---|
5043 | {
|
---|
5044 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
|
---|
5045 | test -n "$tmp" && test -d "$tmp"
|
---|
5046 | } ||
|
---|
5047 | {
|
---|
5048 | tmp=$TMPDIR/cs$$-$RANDOM
|
---|
5049 | (umask 077 && mkdir $tmp)
|
---|
5050 | } ||
|
---|
5051 | {
|
---|
5052 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2
|
---|
5053 | { (exit 1); exit 1; }
|
---|
5054 | }
|
---|
5055 |
|
---|
5056 | EOF
|
---|
5057 |
|
---|
5058 | cat >>$CONFIG_STATUS <<EOF
|
---|
5059 |
|
---|
5060 | #
|
---|
5061 | # CONFIG_FILES section.
|
---|
5062 | #
|
---|
5063 |
|
---|
5064 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
5065 | # This happens for instance when ./config.status config.h
|
---|
5066 | if test -n "\$CONFIG_FILES"; then
|
---|
5067 | # Protect against being on the right side of a sed subst in config.status.
|
---|
5068 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
5069 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
5070 | s,@SHELL@,$SHELL,;t t
|
---|
5071 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
5072 | s,@prefix@,$prefix,;t t
|
---|
5073 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
5074 | s,@bindir@,$bindir,;t t
|
---|
5075 | s,@sbindir@,$sbindir,;t t
|
---|
5076 | s,@libexecdir@,$libexecdir,;t t
|
---|
5077 | s,@datadir@,$datadir,;t t
|
---|
5078 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
5079 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
5080 | s,@localstatedir@,$localstatedir,;t t
|
---|
5081 | s,@libdir@,$libdir,;t t
|
---|
5082 | s,@includedir@,$includedir,;t t
|
---|
5083 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
5084 | s,@infodir@,$infodir,;t t
|
---|
5085 | s,@mandir@,$mandir,;t t
|
---|
5086 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
5087 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
5088 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
5089 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
5090 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
5091 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
5092 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
5093 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
5094 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
5095 | s,@DEFS@,$DEFS,;t t
|
---|
5096 | s,@LIBS@,$LIBS,;t t
|
---|
5097 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
5098 | s,@VERSION@,$VERSION,;t t
|
---|
5099 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
5100 | s,@CC@,$CC,;t t
|
---|
5101 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
5102 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
5103 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
5104 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
5105 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
5106 | s,@CXX@,$CXX,;t t
|
---|
5107 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
5108 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
5109 | s,@AWK@,$AWK,;t t
|
---|
5110 | s,@YACC@,$YACC,;t t
|
---|
5111 | s,@build@,$build,;t t
|
---|
5112 | s,@build_cpu@,$build_cpu,;t t
|
---|
5113 | s,@build_vendor@,$build_vendor,;t t
|
---|
5114 | s,@build_os@,$build_os,;t t
|
---|
5115 | s,@host@,$host,;t t
|
---|
5116 | s,@host_cpu@,$host_cpu,;t t
|
---|
5117 | s,@host_vendor@,$host_vendor,;t t
|
---|
5118 | s,@host_os@,$host_os,;t t
|
---|
5119 | s,@target@,$target,;t t
|
---|
5120 | s,@target_cpu@,$target_cpu,;t t
|
---|
5121 | s,@target_vendor@,$target_vendor,;t t
|
---|
5122 | s,@target_os@,$target_os,;t t
|
---|
5123 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
5124 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
5125 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
5126 | s,@LN_S@,$LN_S,;t t
|
---|
5127 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
5128 | s,@RANLIB@,$RANLIB,;t t
|
---|
5129 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
5130 | s,@CPP@,$CPP,;t t
|
---|
5131 | s,@U@,$U,;t t
|
---|
5132 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
5133 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
5134 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
5135 | s,@gsdlos@,$gsdlos,;t t
|
---|
5136 | s,@subdirs@,$subdirs,;t t
|
---|
5137 | CEOF
|
---|
5138 |
|
---|
5139 | EOF
|
---|
5140 |
|
---|
5141 | cat >>$CONFIG_STATUS <<\EOF
|
---|
5142 | # Split the substitutions into bite-sized pieces for seds with
|
---|
5143 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
5144 | ac_max_sed_lines=48
|
---|
5145 | ac_sed_frag=1 # Number of current file.
|
---|
5146 | ac_beg=1 # First line for current file.
|
---|
5147 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
5148 | ac_more_lines=:
|
---|
5149 | ac_sed_cmds=
|
---|
5150 | while $ac_more_lines; do
|
---|
5151 | if test $ac_beg -gt 1; then
|
---|
5152 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
5153 | else
|
---|
5154 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
5155 | fi
|
---|
5156 | if test ! -s $tmp/subs.frag; then
|
---|
5157 | ac_more_lines=false
|
---|
5158 | else
|
---|
5159 | # The purpose of the label and of the branching condition is to
|
---|
5160 | # speed up the sed processing (if there are no `@' at all, there
|
---|
5161 | # is no need to browse any of the substitutions).
|
---|
5162 | # These are the two extra sed commands mentioned above.
|
---|
5163 | (echo ':t
|
---|
5164 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
5165 | if test -z "$ac_sed_cmds"; then
|
---|
5166 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
5167 | else
|
---|
5168 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
5169 | fi
|
---|
5170 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
5171 | ac_beg=$ac_end
|
---|
5172 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
5173 | fi
|
---|
5174 | done
|
---|
5175 | if test -z "$ac_sed_cmds"; then
|
---|
5176 | ac_sed_cmds=cat
|
---|
5177 | fi
|
---|
5178 | fi # test -n "$CONFIG_FILES"
|
---|
5179 |
|
---|
5180 | EOF
|
---|
5181 | cat >>$CONFIG_STATUS <<\EOF
|
---|
5182 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
5183 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
5184 | case $ac_file in
|
---|
5185 | - | *:- | *:-:* ) # input from stdin
|
---|
5186 | cat >$tmp/stdin
|
---|
5187 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
5188 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
5189 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
5190 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
5191 | * ) ac_file_in=$ac_file.in ;;
|
---|
5192 | esac
|
---|
5193 |
|
---|
5194 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
5195 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
5196 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
5197 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
5198 | X"$ac_file" : 'X\(/\)' \| \
|
---|
5199 | . : '\(.\)' 2>/dev/null ||
|
---|
5200 | echo X"$ac_file" |
|
---|
5201 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
5202 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
5203 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
5204 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
5205 | s/.*/./; q'`
|
---|
5206 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
5207 | { case "$ac_dir" in
|
---|
5208 | [\\/]* | ?:[\\/]* ) as_incr_dir=;;
|
---|
5209 | *) as_incr_dir=.;;
|
---|
5210 | esac
|
---|
5211 | as_dummy="$ac_dir"
|
---|
5212 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
|
---|
5213 | case $as_mkdir_dir in
|
---|
5214 | # Skip DOS drivespec
|
---|
5215 | ?:) as_incr_dir=$as_mkdir_dir ;;
|
---|
5216 | *)
|
---|
5217 | as_incr_dir=$as_incr_dir/$as_mkdir_dir
|
---|
5218 | test -d "$as_incr_dir" || mkdir "$as_incr_dir"
|
---|
5219 | ;;
|
---|
5220 | esac
|
---|
5221 | done; }
|
---|
5222 |
|
---|
5223 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
|
---|
5224 | # A "../" for each directory in $ac_dir_suffix.
|
---|
5225 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
|
---|
5226 | else
|
---|
5227 | ac_dir_suffix= ac_dots=
|
---|
5228 | fi
|
---|
5229 |
|
---|
5230 | case $srcdir in
|
---|
5231 | .) ac_srcdir=.
|
---|
5232 | if test -z "$ac_dots"; then
|
---|
5233 | ac_top_srcdir=.
|
---|
5234 | else
|
---|
5235 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
|
---|
5236 | fi ;;
|
---|
5237 | [\\/]* | ?:[\\/]* )
|
---|
5238 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
5239 | ac_top_srcdir=$srcdir ;;
|
---|
5240 | *) # Relative path.
|
---|
5241 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
|
---|
5242 | ac_top_srcdir=$ac_dots$srcdir ;;
|
---|
5243 | esac
|
---|
5244 |
|
---|
5245 | case $INSTALL in
|
---|
5246 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
5247 | *) ac_INSTALL=$ac_dots$INSTALL ;;
|
---|
5248 | esac
|
---|
5249 |
|
---|
5250 | if test x"$ac_file" != x-; then
|
---|
5251 | { echo "$as_me:5251: creating $ac_file" >&5
|
---|
5252 | echo "$as_me: creating $ac_file" >&6;}
|
---|
5253 | rm -f "$ac_file"
|
---|
5254 | fi
|
---|
5255 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
5256 | # use $as_me), people would be surprised to read:
|
---|
5257 | # /* config.h. Generated automatically by config.status. */
|
---|
5258 | configure_input="Generated automatically from `echo $ac_file_in |
|
---|
5259 | sed 's,.*/,,'` by configure."
|
---|
5260 |
|
---|
5261 | # First look for the input files in the build tree, otherwise in the
|
---|
5262 | # src tree.
|
---|
5263 | ac_file_inputs=`IFS=:
|
---|
5264 | for f in $ac_file_in; do
|
---|
5265 | case $f in
|
---|
5266 | -) echo $tmp/stdin ;;
|
---|
5267 | [\\/$]*)
|
---|
5268 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
5269 | test -f "$f" || { { echo "$as_me:5269: error: cannot find input file: $f" >&5
|
---|
5270 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
5271 | { (exit 1); exit 1; }; }
|
---|
5272 | echo $f;;
|
---|
5273 | *) # Relative
|
---|
5274 | if test -f "$f"; then
|
---|
5275 | # Build tree
|
---|
5276 | echo $f
|
---|
5277 | elif test -f "$srcdir/$f"; then
|
---|
5278 | # Source tree
|
---|
5279 | echo $srcdir/$f
|
---|
5280 | else
|
---|
5281 | # /dev/null tree
|
---|
5282 | { { echo "$as_me:5282: error: cannot find input file: $f" >&5
|
---|
5283 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
5284 | { (exit 1); exit 1; }; }
|
---|
5285 | fi;;
|
---|
5286 | esac
|
---|
5287 | done` || { (exit 1); exit 1; }
|
---|
5288 | EOF
|
---|
5289 | cat >>$CONFIG_STATUS <<EOF
|
---|
5290 | sed "$ac_vpsub
|
---|
5291 | $extrasub
|
---|
5292 | EOF
|
---|
5293 | cat >>$CONFIG_STATUS <<\EOF
|
---|
5294 | :t
|
---|
5295 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
5296 | s,@configure_input@,$configure_input,;t t
|
---|
5297 | s,@srcdir@,$ac_srcdir,;t t
|
---|
5298 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
5299 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
5300 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
5301 | rm -f $tmp/stdin
|
---|
5302 | if test x"$ac_file" != x-; then
|
---|
5303 | mv $tmp/out $ac_file
|
---|
5304 | else
|
---|
5305 | cat $tmp/out
|
---|
5306 | rm -f $tmp/out
|
---|
5307 | fi
|
---|
5308 |
|
---|
5309 | done
|
---|
5310 | EOF
|
---|
5311 | cat >>$CONFIG_STATUS <<\EOF
|
---|
5312 |
|
---|
5313 | #
|
---|
5314 | # CONFIG_HEADER section.
|
---|
5315 | #
|
---|
5316 |
|
---|
5317 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
5318 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
5319 | #
|
---|
5320 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
5321 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
5322 | ac_dB='[ ].*$,\1#\2'
|
---|
5323 | ac_dC=' '
|
---|
5324 | ac_dD=',;t'
|
---|
5325 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
5326 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
5327 | ac_uB='$,\1#\2define\3'
|
---|
5328 | ac_uC=' '
|
---|
5329 | ac_uD=',;t'
|
---|
5330 |
|
---|
5331 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
5332 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
5333 | case $ac_file in
|
---|
5334 | - | *:- | *:-:* ) # input from stdin
|
---|
5335 | cat >$tmp/stdin
|
---|
5336 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
5337 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
5338 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
5339 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
5340 | * ) ac_file_in=$ac_file.in ;;
|
---|
5341 | esac
|
---|
5342 |
|
---|
5343 | test x"$ac_file" != x- && { echo "$as_me:5343: creating $ac_file" >&5
|
---|
5344 | echo "$as_me: creating $ac_file" >&6;}
|
---|
5345 |
|
---|
5346 | # First look for the input files in the build tree, otherwise in the
|
---|
5347 | # src tree.
|
---|
5348 | ac_file_inputs=`IFS=:
|
---|
5349 | for f in $ac_file_in; do
|
---|
5350 | case $f in
|
---|
5351 | -) echo $tmp/stdin ;;
|
---|
5352 | [\\/$]*)
|
---|
5353 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
5354 | test -f "$f" || { { echo "$as_me:5354: error: cannot find input file: $f" >&5
|
---|
5355 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
5356 | { (exit 1); exit 1; }; }
|
---|
5357 | echo $f;;
|
---|
5358 | *) # Relative
|
---|
5359 | if test -f "$f"; then
|
---|
5360 | # Build tree
|
---|
5361 | echo $f
|
---|
5362 | elif test -f "$srcdir/$f"; then
|
---|
5363 | # Source tree
|
---|
5364 | echo $srcdir/$f
|
---|
5365 | else
|
---|
5366 | # /dev/null tree
|
---|
5367 | { { echo "$as_me:5367: error: cannot find input file: $f" >&5
|
---|
5368 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
5369 | { (exit 1); exit 1; }; }
|
---|
5370 | fi;;
|
---|
5371 | esac
|
---|
5372 | done` || { (exit 1); exit 1; }
|
---|
5373 | # Remove the trailing spaces.
|
---|
5374 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
5375 |
|
---|
5376 | EOF
|
---|
5377 |
|
---|
5378 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
5379 | # `conftest.undefs', that substitutes the proper values into
|
---|
5380 | # config.h.in to produce config.h. The first handles `#define'
|
---|
5381 | # templates, and the second `#undef' templates.
|
---|
5382 | # And first: Protect against being on the right side of a sed subst in
|
---|
5383 | # config.status. Protect against being in an unquoted here document
|
---|
5384 | # in config.status.
|
---|
5385 | rm -f conftest.defines conftest.undefs
|
---|
5386 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
5387 | # Putting comments in sed scripts is not portable.
|
---|
5388 | #
|
---|
5389 | # `end' is used to avoid that the second main sed command (meant for
|
---|
5390 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
5391 | # See the Autoconf documentation for `clear'.
|
---|
5392 | cat >confdef2sed.sed <<\EOF
|
---|
5393 | s/[\\&,]/\\&/g
|
---|
5394 | s,[\\$`],\\&,g
|
---|
5395 | t clear
|
---|
5396 | : clear
|
---|
5397 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
|
---|
5398 | t end
|
---|
5399 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
5400 | : end
|
---|
5401 | EOF
|
---|
5402 | # If some macros were called several times there might be several times
|
---|
5403 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
5404 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
5405 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
5406 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
5407 | rm -f confdef2sed.sed
|
---|
5408 |
|
---|
5409 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
5410 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
5411 | # on some systems where configure will not decide to define it.
|
---|
5412 | cat >>conftest.undefs <<\EOF
|
---|
5413 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
5414 | EOF
|
---|
5415 |
|
---|
5416 | # Break up conftest.defines because some shells have a limit on the size
|
---|
5417 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
5418 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
5419 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
5420 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
5421 | echo ' :' >>$CONFIG_STATUS
|
---|
5422 | rm -f conftest.tail
|
---|
5423 | while grep . conftest.defines >/dev/null
|
---|
5424 | do
|
---|
5425 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
5426 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
5427 | # Speed up: don't consider the non `#define' lines.
|
---|
5428 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
5429 | # Work around the forget-to-reset-the-flag bug.
|
---|
5430 | echo 't clr' >>$CONFIG_STATUS
|
---|
5431 | echo ': clr' >>$CONFIG_STATUS
|
---|
5432 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
5433 | echo 'CEOF
|
---|
5434 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
5435 | rm -f $tmp/in
|
---|
5436 | mv $tmp/out $tmp/in
|
---|
5437 | ' >>$CONFIG_STATUS
|
---|
5438 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
5439 | rm -f conftest.defines
|
---|
5440 | mv conftest.tail conftest.defines
|
---|
5441 | done
|
---|
5442 | rm -f conftest.defines
|
---|
5443 | echo ' fi # egrep' >>$CONFIG_STATUS
|
---|
5444 | echo >>$CONFIG_STATUS
|
---|
5445 |
|
---|
5446 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
5447 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
5448 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
5449 | rm -f conftest.tail
|
---|
5450 | while grep . conftest.undefs >/dev/null
|
---|
5451 | do
|
---|
5452 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
5453 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
5454 | # Speed up: don't consider the non `#undef'
|
---|
5455 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
5456 | # Work around the forget-to-reset-the-flag bug.
|
---|
5457 | echo 't clr' >>$CONFIG_STATUS
|
---|
5458 | echo ': clr' >>$CONFIG_STATUS
|
---|
5459 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
5460 | echo 'CEOF
|
---|
5461 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
5462 | rm -f $tmp/in
|
---|
5463 | mv $tmp/out $tmp/in
|
---|
5464 | ' >>$CONFIG_STATUS
|
---|
5465 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
5466 | rm -f conftest.undefs
|
---|
5467 | mv conftest.tail conftest.undefs
|
---|
5468 | done
|
---|
5469 | rm -f conftest.undefs
|
---|
5470 |
|
---|
5471 | cat >>$CONFIG_STATUS <<\EOF
|
---|
5472 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
5473 | # use $as_me), people would be surprised to read:
|
---|
5474 | # /* config.h. Generated automatically by config.status. */
|
---|
5475 | if test x"$ac_file" = x-; then
|
---|
5476 | echo "/* Generated automatically by configure. */" >$tmp/config.h
|
---|
5477 | else
|
---|
5478 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
|
---|
5479 | fi
|
---|
5480 | cat $tmp/in >>$tmp/config.h
|
---|
5481 | rm -f $tmp/in
|
---|
5482 | if test x"$ac_file" != x-; then
|
---|
5483 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
|
---|
5484 | { echo "$as_me:5484: $ac_file is unchanged" >&5
|
---|
5485 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
5486 | else
|
---|
5487 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
5488 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
5489 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
5490 | X"$ac_file" : 'X\(/\)' \| \
|
---|
5491 | . : '\(.\)' 2>/dev/null ||
|
---|
5492 | echo X"$ac_file" |
|
---|
5493 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
5494 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
5495 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
5496 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
5497 | s/.*/./; q'`
|
---|
5498 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
5499 | { case "$ac_dir" in
|
---|
5500 | [\\/]* | ?:[\\/]* ) as_incr_dir=;;
|
---|
5501 | *) as_incr_dir=.;;
|
---|
5502 | esac
|
---|
5503 | as_dummy="$ac_dir"
|
---|
5504 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
|
---|
5505 | case $as_mkdir_dir in
|
---|
5506 | # Skip DOS drivespec
|
---|
5507 | ?:) as_incr_dir=$as_mkdir_dir ;;
|
---|
5508 | *)
|
---|
5509 | as_incr_dir=$as_incr_dir/$as_mkdir_dir
|
---|
5510 | test -d "$as_incr_dir" || mkdir "$as_incr_dir"
|
---|
5511 | ;;
|
---|
5512 | esac
|
---|
5513 | done; }
|
---|
5514 |
|
---|
5515 | fi
|
---|
5516 | rm -f $ac_file
|
---|
5517 | mv $tmp/config.h $ac_file
|
---|
5518 | fi
|
---|
5519 | else
|
---|
5520 | cat $tmp/config.h
|
---|
5521 | rm -f $tmp/config.h
|
---|
5522 | fi
|
---|
5523 | done
|
---|
5524 | EOF
|
---|
5525 |
|
---|
5526 | cat >>$CONFIG_STATUS <<\EOF
|
---|
5527 |
|
---|
5528 | { (exit 0); exit 0; }
|
---|
5529 | EOF
|
---|
5530 | chmod +x $CONFIG_STATUS
|
---|
5531 | ac_clean_files=$ac_clean_files_save
|
---|
5532 |
|
---|
5533 | # configure is writing to config.log, and then calls config.status.
|
---|
5534 | # config.status does its own redirection, appending to config.log.
|
---|
5535 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
5536 | # by configure, so config.status won't be able to write to it; its
|
---|
5537 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
5538 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
5539 | # appended to by config.status. When coming back to configure, we
|
---|
5540 | # need to make the FD available again.
|
---|
5541 | if test "$no_create" != yes; then
|
---|
5542 | ac_cs_success=:
|
---|
5543 | exec 5>/dev/null
|
---|
5544 | $SHELL $CONFIG_STATUS || ac_cs_success=false
|
---|
5545 | exec 5>>config.log
|
---|
5546 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
5547 | # would make configure fail if this is the last instruction.
|
---|
5548 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
5549 | fi
|
---|
5550 |
|
---|
5551 | #
|
---|
5552 | # CONFIG_SUBDIRS section.
|
---|
5553 | #
|
---|
5554 | if test "$no_recursion" != yes; then
|
---|
5555 |
|
---|
5556 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
5557 | ac_sub_configure_args=
|
---|
5558 | ac_prev=
|
---|
5559 | for ac_arg in $ac_configure_args; do
|
---|
5560 | if test -n "$ac_prev"; then
|
---|
5561 | ac_prev=
|
---|
5562 | continue
|
---|
5563 | fi
|
---|
5564 | case $ac_arg in
|
---|
5565 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
5566 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
5567 | ac_prev=cache_file ;;
|
---|
5568 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
5569 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
5570 | | --c=*)
|
---|
5571 | ;;
|
---|
5572 | --config-cache | -C)
|
---|
5573 | ;;
|
---|
5574 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
5575 | ac_prev=srcdir ;;
|
---|
5576 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
5577 | ;;
|
---|
5578 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
5579 | esac
|
---|
5580 | done
|
---|
5581 |
|
---|
5582 | for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
|
---|
5583 |
|
---|
5584 | # Do not complain, so a configure script can configure whichever
|
---|
5585 | # parts of a large source tree are present.
|
---|
5586 | test -d $srcdir/$ac_subdir || continue
|
---|
5587 |
|
---|
5588 | { echo "$as_me:5588: configuring in $ac_subdir" >&5
|
---|
5589 | echo "$as_me: configuring in $ac_subdir" >&6;}
|
---|
5590 | case $srcdir in
|
---|
5591 | .) ;;
|
---|
5592 | *) { case "./$ac_subdir" in
|
---|
5593 | [\\/]* | ?:[\\/]* ) as_incr_dir=;;
|
---|
5594 | *) as_incr_dir=.;;
|
---|
5595 | esac
|
---|
5596 | as_dummy="./$ac_subdir"
|
---|
5597 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
|
---|
5598 | case $as_mkdir_dir in
|
---|
5599 | # Skip DOS drivespec
|
---|
5600 | ?:) as_incr_dir=$as_mkdir_dir ;;
|
---|
5601 | *)
|
---|
5602 | as_incr_dir=$as_incr_dir/$as_mkdir_dir
|
---|
5603 | test -d "$as_incr_dir" || mkdir "$as_incr_dir"
|
---|
5604 | ;;
|
---|
5605 | esac
|
---|
5606 | done; }
|
---|
5607 |
|
---|
5608 | if test -d ./$ac_subdir; then :;
|
---|
5609 | else
|
---|
5610 | { { echo "$as_me:5610: error: cannot create \`pwd\`/$ac_subdir" >&5
|
---|
5611 | echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;}
|
---|
5612 | { (exit 1); exit 1; }; }
|
---|
5613 | fi
|
---|
5614 | ;;
|
---|
5615 | esac
|
---|
5616 |
|
---|
5617 | ac_popdir=`pwd`
|
---|
5618 | cd $ac_subdir
|
---|
5619 |
|
---|
5620 | # A "../" for each directory in /$ac_subdir.
|
---|
5621 | ac_dots=`echo $ac_subdir |
|
---|
5622 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
|
---|
5623 |
|
---|
5624 | case $srcdir in
|
---|
5625 | .) # No --srcdir option. We are building in place.
|
---|
5626 | ac_sub_srcdir=$srcdir ;;
|
---|
5627 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
5628 | ac_sub_srcdir=$srcdir/$ac_subdir ;;
|
---|
5629 | *) # Relative path.
|
---|
5630 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
|
---|
5631 | esac
|
---|
5632 |
|
---|
5633 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
5634 | if test -f $ac_sub_srcdir/configure.gnu; then
|
---|
5635 | ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'"
|
---|
5636 | elif test -f $ac_sub_srcdir/configure; then
|
---|
5637 | ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'"
|
---|
5638 | elif test -f $ac_sub_srcdir/configure.in; then
|
---|
5639 | ac_sub_configure=$ac_configure
|
---|
5640 | else
|
---|
5641 | { echo "$as_me:5641: WARNING: no configuration information is in $ac_subdir" >&5
|
---|
5642 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
|
---|
5643 | ac_sub_configure=
|
---|
5644 | fi
|
---|
5645 |
|
---|
5646 | # The recursion is here.
|
---|
5647 | if test -n "$ac_sub_configure"; then
|
---|
5648 | # Make the cache file name correct relative to the subdirectory.
|
---|
5649 | case $cache_file in
|
---|
5650 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
5651 | *) # Relative path.
|
---|
5652 | ac_sub_cache_file=$ac_dots$cache_file ;;
|
---|
5653 | esac
|
---|
5654 |
|
---|
5655 | { echo "$as_me:5655: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
|
---|
5656 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;}
|
---|
5657 | # The eval makes quoting arguments work.
|
---|
5658 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
5659 | --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir ||
|
---|
5660 | { { echo "$as_me:5660: error: $ac_sub_configure failed for $ac_subdir" >&5
|
---|
5661 | echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;}
|
---|
5662 | { (exit 1); exit 1; }; }
|
---|
5663 | fi
|
---|
5664 |
|
---|
5665 | cd $ac_popdir
|
---|
5666 | done
|
---|
5667 | fi
|
---|
5668 |
|
---|