]>
Commit | Line | Data |
---|---|---|
8fe44445 | 1 | #! /bin/sh |
885824d3 | 2 | # Guess values for system-dependent variables and create Makefiles. |
077d4458 | 3 | # Generated by Autoconf 2.52 for Splint 3.0.1.4. |
8fe44445 | 4 | # |
4dd72714 | 5 | # Report bugs to <splint-bug@splint.org>. |
8fe44445 | 6 | # |
7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
8 | # Free Software Foundation, Inc. | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
885824d3 | 11 | |
8fe44445 | 12 | # Avoid depending upon Character Ranges. |
13 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16 | as_cr_digits='0123456789' | |
17 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
885824d3 | 18 | |
8fe44445 | 19 | # Sed expression to map a string onto a valid variable name. |
20 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
885824d3 | 21 | |
8fe44445 | 22 | # Sed expression to map a string onto a valid CPP name. |
23 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
885824d3 | 24 | |
8fe44445 | 25 | # Be Bourne compatible |
26 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
27 | emulate sh | |
28 | NULLCMD=: | |
29 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
30 | set -o posix | |
31 | fi | |
885824d3 | 32 | |
8fe44445 | 33 | # Name of the executable. |
34 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
885824d3 | 35 | |
8fe44445 | 36 | if expr a : '\(a\)' >/dev/null 2>&1; then |
37 | as_expr=expr | |
38 | else | |
39 | as_expr=false | |
40 | fi | |
41 | ||
42 | rm -f conf$$ conf$$.exe conf$$.file | |
43 | echo >conf$$.file | |
44 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
45 | # We could just check for DJGPP; but this test a) works b) is more generic | |
46 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
47 | if test -f conf$$.exe; then | |
48 | # Don't use ln at all; we don't have any links | |
49 | as_ln_s='cp -p' | |
885824d3 | 50 | else |
8fe44445 | 51 | as_ln_s='ln -s' |
52 | fi | |
53 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
54 | as_ln_s=ln | |
55 | else | |
56 | as_ln_s='cp -p' | |
57 | fi | |
58 | rm -f conf$$ conf$$.exe conf$$.file | |
59 | ||
60 | as_executable_p="test -f" | |
61 | ||
62 | # Support unset when possible. | |
63 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
64 | as_unset=unset | |
65 | else | |
66 | as_unset=false | |
67 | fi | |
68 | ||
69 | # NLS nuisances. | |
70 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
71 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
72 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
73 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
74 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
75 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
76 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
77 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
78 | ||
79 | # IFS | |
80 | # We need space, tab and new line, in precisely that order. | |
81 | as_nl=' | |
82 | ' | |
83 | IFS=" $as_nl" | |
84 | ||
85 | # CDPATH. | |
86 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
87 | ||
88 | # Name of the host. | |
89 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
90 | # so uname gets run too. | |
91 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
92 | ||
93 | exec 6>&1 | |
94 | ||
95 | # | |
96 | # Initializations. | |
97 | # | |
98 | ac_default_prefix=/usr/local | |
99 | cross_compiling=no | |
100 | subdirs= | |
101 | MFLAGS= MAKEFLAGS= | |
102 | SHELL=${CONFIG_SHELL-/bin/sh} | |
103 | ||
104 | # Maximum number of lines to put in a shell here document. | |
105 | # This variable seems obsolete. It should probably be removed, and | |
106 | # only ac_max_sed_lines should be used. | |
107 | : ${ac_max_here_lines=38} | |
108 | ||
109 | ac_unique_file="src/lclinit.c" | |
110 | ||
111 | # Initialize some variables set by options. | |
112 | ac_init_help= | |
113 | ac_init_version=false | |
114 | # The variables have the same names as the options, with | |
115 | # dashes changed to underlines. | |
116 | cache_file=/dev/null | |
117 | exec_prefix=NONE | |
118 | no_create= | |
119 | no_recursion= | |
120 | prefix=NONE | |
121 | program_prefix=NONE | |
122 | program_suffix=NONE | |
123 | program_transform_name=s,x,x, | |
124 | silent= | |
125 | site= | |
126 | srcdir= | |
127 | verbose= | |
128 | x_includes=NONE | |
129 | x_libraries=NONE | |
130 | ||
131 | # Installation directory options. | |
132 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
133 | # and all the variables that are supposed to be based on exec_prefix | |
134 | # by default will actually change. | |
135 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
136 | bindir='${exec_prefix}/bin' | |
137 | sbindir='${exec_prefix}/sbin' | |
138 | libexecdir='${exec_prefix}/libexec' | |
139 | datadir='${prefix}/share' | |
140 | sysconfdir='${prefix}/etc' | |
141 | sharedstatedir='${prefix}/com' | |
142 | localstatedir='${prefix}/var' | |
143 | libdir='${exec_prefix}/lib' | |
144 | includedir='${prefix}/include' | |
145 | oldincludedir='/usr/include' | |
146 | infodir='${prefix}/info' | |
147 | mandir='${prefix}/man' | |
148 | ||
149 | # Identity of this package. | |
11db3170 | 150 | PACKAGE_NAME='Splint' |
151 | PACKAGE_TARNAME='splint' | |
077d4458 | 152 | PACKAGE_VERSION='3.0.1.4' |
153 | PACKAGE_STRING='Splint 3.0.1.4' | |
4dd72714 | 154 | PACKAGE_BUGREPORT='splint-bug@splint.org' |
8fe44445 | 155 | |
156 | ac_prev= | |
157 | for ac_option | |
158 | do | |
159 | # If the previous option needs an argument, assign it. | |
160 | if test -n "$ac_prev"; then | |
161 | eval "$ac_prev=\$ac_option" | |
162 | ac_prev= | |
163 | continue | |
885824d3 | 164 | fi |
8fe44445 | 165 | |
166 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
167 | ||
168 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
169 | ||
170 | case $ac_option in | |
171 | ||
172 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
173 | ac_prev=bindir ;; | |
174 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
175 | bindir=$ac_optarg ;; | |
176 | ||
177 | -build | --build | --buil | --bui | --bu) | |
178 | ac_prev=build_alias ;; | |
179 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
180 | build_alias=$ac_optarg ;; | |
181 | ||
182 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
183 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
184 | ac_prev=cache_file ;; | |
185 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
186 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
187 | cache_file=$ac_optarg ;; | |
188 | ||
189 | --config-cache | -C) | |
190 | cache_file=config.cache ;; | |
191 | ||
192 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
193 | ac_prev=datadir ;; | |
194 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
195 | | --da=*) | |
196 | datadir=$ac_optarg ;; | |
197 | ||
198 | -disable-* | --disable-*) | |
199 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
200 | # Reject names that are not valid shell variable names. | |
201 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
202 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
203 | { (exit 1); exit 1; }; } | |
204 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
205 | eval "enable_$ac_feature=no" ;; | |
206 | ||
207 | -enable-* | --enable-*) | |
208 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
209 | # Reject names that are not valid shell variable names. | |
210 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
211 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
212 | { (exit 1); exit 1; }; } | |
213 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
214 | case $ac_option in | |
215 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
216 | *) ac_optarg=yes ;; | |
217 | esac | |
218 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
219 | ||
220 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
221 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
222 | | --exec | --exe | --ex) | |
223 | ac_prev=exec_prefix ;; | |
224 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
225 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
226 | | --exec=* | --exe=* | --ex=*) | |
227 | exec_prefix=$ac_optarg ;; | |
228 | ||
229 | -gas | --gas | --ga | --g) | |
230 | # Obsolete; use --with-gas. | |
231 | with_gas=yes ;; | |
232 | ||
233 | -help | --help | --hel | --he | -h) | |
234 | ac_init_help=long ;; | |
235 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
236 | ac_init_help=recursive ;; | |
237 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
238 | ac_init_help=short ;; | |
239 | ||
240 | -host | --host | --hos | --ho) | |
241 | ac_prev=host_alias ;; | |
242 | -host=* | --host=* | --hos=* | --ho=*) | |
243 | host_alias=$ac_optarg ;; | |
244 | ||
245 | -includedir | --includedir | --includedi | --included | --include \ | |
246 | | --includ | --inclu | --incl | --inc) | |
247 | ac_prev=includedir ;; | |
248 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
249 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
250 | includedir=$ac_optarg ;; | |
251 | ||
252 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
253 | ac_prev=infodir ;; | |
254 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
255 | infodir=$ac_optarg ;; | |
256 | ||
257 | -libdir | --libdir | --libdi | --libd) | |
258 | ac_prev=libdir ;; | |
259 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
260 | libdir=$ac_optarg ;; | |
261 | ||
262 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
263 | | --libexe | --libex | --libe) | |
264 | ac_prev=libexecdir ;; | |
265 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
266 | | --libexe=* | --libex=* | --libe=*) | |
267 | libexecdir=$ac_optarg ;; | |
268 | ||
269 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
270 | | --localstate | --localstat | --localsta | --localst \ | |
271 | | --locals | --local | --loca | --loc | --lo) | |
272 | ac_prev=localstatedir ;; | |
273 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
274 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
275 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
276 | localstatedir=$ac_optarg ;; | |
277 | ||
278 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
279 | ac_prev=mandir ;; | |
280 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
281 | mandir=$ac_optarg ;; | |
282 | ||
283 | -nfp | --nfp | --nf) | |
284 | # Obsolete; use --without-fp. | |
285 | with_fp=no ;; | |
286 | ||
287 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
288 | | --no-cr | --no-c) | |
289 | no_create=yes ;; | |
290 | ||
291 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
292 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
293 | no_recursion=yes ;; | |
294 | ||
295 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
296 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
297 | | --oldin | --oldi | --old | --ol | --o) | |
298 | ac_prev=oldincludedir ;; | |
299 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
300 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
301 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
302 | oldincludedir=$ac_optarg ;; | |
303 | ||
304 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
305 | ac_prev=prefix ;; | |
306 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
307 | prefix=$ac_optarg ;; | |
308 | ||
309 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
310 | | --program-pre | --program-pr | --program-p) | |
311 | ac_prev=program_prefix ;; | |
312 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
313 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
314 | program_prefix=$ac_optarg ;; | |
315 | ||
316 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
317 | | --program-suf | --program-su | --program-s) | |
318 | ac_prev=program_suffix ;; | |
319 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
320 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
321 | program_suffix=$ac_optarg ;; | |
322 | ||
323 | -program-transform-name | --program-transform-name \ | |
324 | | --program-transform-nam | --program-transform-na \ | |
325 | | --program-transform-n | --program-transform- \ | |
326 | | --program-transform | --program-transfor \ | |
327 | | --program-transfo | --program-transf \ | |
328 | | --program-trans | --program-tran \ | |
329 | | --progr-tra | --program-tr | --program-t) | |
330 | ac_prev=program_transform_name ;; | |
331 | -program-transform-name=* | --program-transform-name=* \ | |
332 | | --program-transform-nam=* | --program-transform-na=* \ | |
333 | | --program-transform-n=* | --program-transform-=* \ | |
334 | | --program-transform=* | --program-transfor=* \ | |
335 | | --program-transfo=* | --program-transf=* \ | |
336 | | --program-trans=* | --program-tran=* \ | |
337 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
338 | program_transform_name=$ac_optarg ;; | |
339 | ||
340 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
341 | | -silent | --silent | --silen | --sile | --sil) | |
342 | silent=yes ;; | |
343 | ||
344 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
345 | ac_prev=sbindir ;; | |
346 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
347 | | --sbi=* | --sb=*) | |
348 | sbindir=$ac_optarg ;; | |
349 | ||
350 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
351 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
352 | | --sharedst | --shareds | --shared | --share | --shar \ | |
353 | | --sha | --sh) | |
354 | ac_prev=sharedstatedir ;; | |
355 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
356 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
357 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
358 | | --sha=* | --sh=*) | |
359 | sharedstatedir=$ac_optarg ;; | |
360 | ||
361 | -site | --site | --sit) | |
362 | ac_prev=site ;; | |
363 | -site=* | --site=* | --sit=*) | |
364 | site=$ac_optarg ;; | |
365 | ||
366 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
367 | ac_prev=srcdir ;; | |
368 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
369 | srcdir=$ac_optarg ;; | |
370 | ||
371 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
372 | | --syscon | --sysco | --sysc | --sys | --sy) | |
373 | ac_prev=sysconfdir ;; | |
374 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
375 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
376 | sysconfdir=$ac_optarg ;; | |
377 | ||
378 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
379 | ac_prev=target_alias ;; | |
380 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
381 | target_alias=$ac_optarg ;; | |
382 | ||
383 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
384 | verbose=yes ;; | |
385 | ||
386 | -version | --version | --versio | --versi | --vers | -V) | |
387 | ac_init_version=: ;; | |
388 | ||
389 | -with-* | --with-*) | |
390 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
391 | # Reject names that are not valid shell variable names. | |
392 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
393 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
394 | { (exit 1); exit 1; }; } | |
395 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
396 | case $ac_option in | |
397 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
398 | *) ac_optarg=yes ;; | |
399 | esac | |
400 | eval "with_$ac_package='$ac_optarg'" ;; | |
401 | ||
402 | -without-* | --without-*) | |
403 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
404 | # Reject names that are not valid shell variable names. | |
405 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
406 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
407 | { (exit 1); exit 1; }; } | |
408 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
409 | eval "with_$ac_package=no" ;; | |
410 | ||
411 | --x) | |
412 | # Obsolete; use --with-x. | |
413 | with_x=yes ;; | |
414 | ||
415 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
416 | | --x-incl | --x-inc | --x-in | --x-i) | |
417 | ac_prev=x_includes ;; | |
418 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
419 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
420 | x_includes=$ac_optarg ;; | |
421 | ||
422 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
423 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
424 | ac_prev=x_libraries ;; | |
425 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
426 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
427 | x_libraries=$ac_optarg ;; | |
428 | ||
429 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
430 | Try \`$0 --help' for more information." >&2 | |
431 | { (exit 1); exit 1; }; } | |
432 | ;; | |
433 | ||
434 | *=*) | |
435 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
436 | # Reject names that are not valid shell variable names. | |
437 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
438 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
439 | { (exit 1); exit 1; }; } | |
440 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
441 | eval "$ac_envvar='$ac_optarg'" | |
442 | export $ac_envvar ;; | |
443 | ||
444 | *) | |
445 | # FIXME: should be removed in autoconf 3.0. | |
446 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
447 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
448 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
449 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
450 | ;; | |
451 | ||
452 | esac | |
453 | done | |
454 | ||
455 | if test -n "$ac_prev"; then | |
456 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
457 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
458 | { (exit 1); exit 1; }; } | |
459 | fi | |
460 | ||
461 | # Be sure to have absolute paths. | |
462 | for ac_var in exec_prefix prefix | |
463 | do | |
464 | eval ac_val=$`echo $ac_var` | |
465 | case $ac_val in | |
466 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
467 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
468 | { (exit 1); exit 1; }; };; | |
469 | esac | |
470 | done | |
471 | ||
472 | # Be sure to have absolute paths. | |
473 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
474 | localstatedir libdir includedir oldincludedir infodir mandir | |
475 | do | |
476 | eval ac_val=$`echo $ac_var` | |
477 | case $ac_val in | |
478 | [\\/$]* | ?:[\\/]* ) ;; | |
479 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
480 | { (exit 1); exit 1; }; };; | |
481 | esac | |
885824d3 | 482 | done |
483 | ||
8fe44445 | 484 | # There might be people who depend on the old broken behavior: `$host' |
485 | # used to hold the argument of --host etc. | |
486 | build=$build_alias | |
487 | host=$host_alias | |
488 | target=$target_alias | |
885824d3 | 489 | |
8fe44445 | 490 | # FIXME: should be removed in autoconf 3.0. |
491 | if test "x$host_alias" != x; then | |
492 | if test "x$build_alias" = x; then | |
493 | cross_compiling=maybe | |
494 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
495 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
496 | elif test "x$build_alias" != "x$host_alias"; then | |
497 | cross_compiling=yes | |
498 | fi | |
885824d3 | 499 | fi |
500 | ||
8fe44445 | 501 | ac_tool_prefix= |
502 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
885824d3 | 503 | |
8fe44445 | 504 | test "$silent" = yes && exec 6>/dev/null |
885824d3 | 505 | |
506 | # Find the source files, if location was not specified. | |
507 | if test -z "$srcdir"; then | |
8fe44445 | 508 | ac_srcdir_defaulted=yes |
509 | # Try the directory containing this script, then its parent. | |
510 | ac_prog=$0 | |
511 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` | |
512 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
513 | srcdir=$ac_confdir | |
514 | if test ! -r $srcdir/$ac_unique_file; then | |
885824d3 | 515 | srcdir=.. |
516 | fi | |
8fe44445 | 517 | else |
518 | ac_srcdir_defaulted=no | |
885824d3 | 519 | fi |
8fe44445 | 520 | if test ! -r $srcdir/$ac_unique_file; then |
521 | if test "$ac_srcdir_defaulted" = yes; then | |
522 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 | |
523 | { (exit 1); exit 1; }; } | |
885824d3 | 524 | else |
8fe44445 | 525 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
526 | { (exit 1); exit 1; }; } | |
885824d3 | 527 | fi |
885824d3 | 528 | fi |
8fe44445 | 529 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
530 | ac_env_build_alias_set=${build_alias+set} | |
531 | ac_env_build_alias_value=$build_alias | |
532 | ac_cv_env_build_alias_set=${build_alias+set} | |
533 | ac_cv_env_build_alias_value=$build_alias | |
534 | ac_env_host_alias_set=${host_alias+set} | |
535 | ac_env_host_alias_value=$host_alias | |
536 | ac_cv_env_host_alias_set=${host_alias+set} | |
537 | ac_cv_env_host_alias_value=$host_alias | |
538 | ac_env_target_alias_set=${target_alias+set} | |
539 | ac_env_target_alias_value=$target_alias | |
540 | ac_cv_env_target_alias_set=${target_alias+set} | |
541 | ac_cv_env_target_alias_value=$target_alias | |
8fe44445 | 542 | ac_env_CC_set=${CC+set} |
543 | ac_env_CC_value=$CC | |
544 | ac_cv_env_CC_set=${CC+set} | |
545 | ac_cv_env_CC_value=$CC | |
546 | ac_env_CFLAGS_set=${CFLAGS+set} | |
547 | ac_env_CFLAGS_value=$CFLAGS | |
548 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
549 | ac_cv_env_CFLAGS_value=$CFLAGS | |
c1dda563 | 550 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
551 | ac_env_LDFLAGS_value=$LDFLAGS | |
552 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
553 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
554 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
555 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
556 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
557 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
8fe44445 | 558 | ac_env_CPP_set=${CPP+set} |
559 | ac_env_CPP_value=$CPP | |
560 | ac_cv_env_CPP_set=${CPP+set} | |
561 | ac_cv_env_CPP_value=$CPP | |
885824d3 | 562 | |
8fe44445 | 563 | # |
564 | # Report the --help message. | |
565 | # | |
566 | if test "$ac_init_help" = "long"; then | |
567 | # Omit some internal or obsolete options to make the list less imposing. | |
568 | # This message is too long to be a string in the A/UX 3.1 sh. | |
569 | cat <<EOF | |
077d4458 | 570 | \`configure' configures Splint 3.0.1.4 to adapt to many kinds of systems. |
885824d3 | 571 | |
8fe44445 | 572 | Usage: $0 [OPTION]... [VAR=VALUE]... |
885824d3 | 573 | |
8fe44445 | 574 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
575 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
576 | ||
577 | Defaults for the options are specified in brackets. | |
578 | ||
579 | Configuration: | |
580 | -h, --help display this help and exit | |
581 | --help=short display options specific to this package | |
582 | --help=recursive display the short help of all the included packages | |
583 | -V, --version display version information and exit | |
584 | -q, --quiet, --silent do not print \`checking...' messages | |
585 | --cache-file=FILE cache test results in FILE [disabled] | |
586 | -C, --config-cache alias for \`--cache-file=config.cache' | |
587 | -n, --no-create do not create output files | |
588 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
589 | ||
590 | EOF | |
591 | ||
592 | cat <<EOF | |
593 | Installation directories: | |
594 | --prefix=PREFIX install architecture-independent files in PREFIX | |
595 | [$ac_default_prefix] | |
596 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
597 | [PREFIX] | |
598 | ||
599 | By default, \`make install' will install all the files in | |
600 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
601 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
602 | for instance \`--prefix=\$HOME'. | |
603 | ||
604 | For better control, use the options below. | |
605 | ||
606 | Fine tuning of the installation directories: | |
607 | --bindir=DIR user executables [EPREFIX/bin] | |
608 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
609 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
610 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
611 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
612 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
613 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
614 | --libdir=DIR object code libraries [EPREFIX/lib] | |
615 | --includedir=DIR C header files [PREFIX/include] | |
616 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
617 | --infodir=DIR info documentation [PREFIX/info] | |
618 | --mandir=DIR man documentation [PREFIX/man] | |
619 | EOF | |
620 | ||
621 | cat <<\EOF | |
622 | ||
623 | Program names: | |
624 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
625 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
626 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
627 | ||
628 | System types: | |
629 | --build=BUILD configure for building on BUILD [guessed] | |
630 | --host=HOST build programs to run on HOST [BUILD] | |
f7bbce9e | 631 | --target=TARGET configure for building compilers for TARGET [HOST] |
885824d3 | 632 | EOF |
885824d3 | 633 | fi |
885824d3 | 634 | |
8fe44445 | 635 | if test -n "$ac_init_help"; then |
636 | case $ac_init_help in | |
077d4458 | 637 | short | recursive ) echo "Configuration of Splint 3.0.1.4:";; |
8fe44445 | 638 | esac |
639 | cat <<\EOF | |
640 | ||
8fe44445 | 641 | Optional Packages: |
642 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
643 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
644 | --without-lcl don't include support for LCL files | |
645 | ||
646 | Some influential environment variables: | |
c1dda563 | 647 | CC C compiler command |
648 | CFLAGS C compiler flags | |
8fe44445 | 649 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
650 | nonstandard directory <lib dir> | |
651 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
652 | headers in a nonstandard directory <include dir> | |
8fe44445 | 653 | CPP C preprocessor |
654 | ||
655 | Use these variables to override the choices made by `configure' or to help | |
656 | it to find libraries and programs with nonstandard names/locations. | |
657 | ||
4dd72714 | 658 | Report bugs to <splint-bug@splint.org>. |
8fe44445 | 659 | EOF |
885824d3 | 660 | fi |
661 | ||
8fe44445 | 662 | if test "$ac_init_help" = "recursive"; then |
663 | # If there are subdirs, report their specific --help. | |
664 | ac_popdir=`pwd` | |
665 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
666 | cd $ac_subdir | |
667 | # A "../" for each directory in /$ac_subdir. | |
668 | ac_dots=`echo $ac_subdir | | |
669 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
885824d3 | 670 | |
8fe44445 | 671 | case $srcdir in |
672 | .) # No --srcdir option. We are building in place. | |
673 | ac_sub_srcdir=$srcdir ;; | |
674 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
675 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
676 | *) # Relative path. | |
677 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
678 | esac | |
679 | ||
680 | # Check for guested configure; otherwise get Cygnus style configure. | |
681 | if test -f $ac_sub_srcdir/configure.gnu; then | |
682 | echo | |
683 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
684 | elif test -f $ac_sub_srcdir/configure; then | |
685 | echo | |
686 | $SHELL $ac_sub_srcdir/configure --help=recursive | |
687 | elif test -f $ac_sub_srcdir/configure.ac || | |
688 | test -f $ac_sub_srcdir/configure.in; then | |
689 | echo | |
690 | $ac_configure --help | |
691 | else | |
692 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 | |
885824d3 | 693 | fi |
8fe44445 | 694 | cd $ac_popdir |
885824d3 | 695 | done |
885824d3 | 696 | fi |
697 | ||
8fe44445 | 698 | test -n "$ac_init_help" && exit 0 |
699 | if $ac_init_version; then | |
700 | cat <<\EOF | |
077d4458 | 701 | Splint configure 3.0.1.4 |
8fe44445 | 702 | generated by GNU Autoconf 2.52 |
885824d3 | 703 | |
8fe44445 | 704 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
705 | Free Software Foundation, Inc. | |
706 | This configure script is free software; the Free Software Foundation | |
707 | gives unlimited permission to copy, distribute and modify it. | |
885824d3 | 708 | EOF |
8fe44445 | 709 | exit 0 |
885824d3 | 710 | fi |
8fe44445 | 711 | exec 5>config.log |
712 | cat >&5 <<EOF | |
713 | This file contains any messages produced by compilers while | |
714 | running configure, to aid debugging if configure makes a mistake. | |
715 | ||
077d4458 | 716 | It was created by Splint $as_me 3.0.1.4, which was |
8fe44445 | 717 | generated by GNU Autoconf 2.52. Invocation command line was |
718 | ||
719 | $ $0 $@ | |
720 | ||
721 | EOF | |
722 | { | |
723 | cat <<_ASUNAME | |
724 | ## ---------- ## | |
725 | ## Platform. ## | |
726 | ## ---------- ## | |
727 | ||
728 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
729 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
730 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
731 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
732 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
733 | ||
734 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
735 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
736 | ||
737 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
738 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
739 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
740 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
741 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
742 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
743 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
744 | ||
745 | PATH = $PATH | |
746 | ||
747 | _ASUNAME | |
748 | } >&5 | |
749 | ||
750 | cat >&5 <<EOF | |
751 | ## ------------ ## | |
752 | ## Core tests. ## | |
753 | ## ------------ ## | |
754 | ||
755 | EOF | |
756 | ||
757 | # Keep a trace of the command line. | |
758 | # Strip out --no-create and --no-recursion so they do not pile up. | |
759 | # Also quote any args containing shell meta-characters. | |
760 | ac_configure_args= | |
761 | ac_sep= | |
762 | for ac_arg | |
763 | do | |
764 | case $ac_arg in | |
765 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
766 | | --no-cr | --no-c) ;; | |
767 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
768 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
769 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
770 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
771 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
772 | ac_sep=" " ;; | |
773 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
774 | ac_sep=" " ;; | |
775 | esac | |
776 | # Get rid of the leading space. | |
777 | done | |
778 | ||
779 | # When interrupted or exit'd, cleanup temporary files, and complete | |
780 | # config.log. We remove comments because anyway the quotes in there | |
781 | # would cause problems or look ugly. | |
782 | trap 'exit_status=$? | |
783 | # Save into config.log some information that might help in debugging. | |
784 | echo >&5 | |
785 | echo "## ----------------- ##" >&5 | |
786 | echo "## Cache variables. ##" >&5 | |
787 | echo "## ----------------- ##" >&5 | |
788 | echo >&5 | |
789 | # The following way of writing the cache mishandles newlines in values, | |
790 | { | |
791 | (set) 2>&1 | | |
792 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
793 | *ac_space=\ *) | |
794 | sed -n \ | |
795 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
796 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
797 | ;; | |
798 | *) | |
799 | sed -n \ | |
800 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
801 | ;; | |
802 | esac; | |
803 | } >&5 | |
804 | sed "/^$/d" confdefs.h >conftest.log | |
805 | if test -s conftest.log; then | |
806 | echo >&5 | |
807 | echo "## ------------ ##" >&5 | |
808 | echo "## confdefs.h. ##" >&5 | |
809 | echo "## ------------ ##" >&5 | |
810 | echo >&5 | |
811 | cat conftest.log >&5 | |
812 | fi | |
813 | (echo; echo) >&5 | |
814 | test "$ac_signal" != 0 && | |
815 | echo "$as_me: caught signal $ac_signal" >&5 | |
816 | echo "$as_me: exit $exit_status" >&5 | |
817 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
818 | exit $exit_status | |
819 | ' 0 | |
820 | for ac_signal in 1 2 13 15; do | |
821 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
822 | done | |
823 | ac_signal=0 | |
824 | ||
825 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
826 | rm -rf conftest* confdefs.h | |
827 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
828 | echo >confdefs.h | |
885824d3 | 829 | |
8fe44445 | 830 | # Let the site file select an alternate cache file if it wants to. |
831 | # Prefer explicitly selected file to automatically selected ones. | |
832 | if test -z "$CONFIG_SITE"; then | |
833 | if test "x$prefix" != xNONE; then | |
834 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
835 | else | |
836 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
837 | fi | |
885824d3 | 838 | fi |
8fe44445 | 839 | for ac_site_file in $CONFIG_SITE; do |
840 | if test -r "$ac_site_file"; then | |
d33f8f06 | 841 | { echo "$as_me:841: loading site script $ac_site_file" >&5 |
8fe44445 | 842 | echo "$as_me: loading site script $ac_site_file" >&6;} |
843 | cat "$ac_site_file" >&5 | |
844 | . "$ac_site_file" | |
845 | fi | |
846 | done | |
885824d3 | 847 | |
8fe44445 | 848 | if test -r "$cache_file"; then |
849 | # Some versions of bash will fail to source /dev/null (special | |
850 | # files actually), so we avoid doing that. | |
851 | if test -f "$cache_file"; then | |
d33f8f06 | 852 | { echo "$as_me:852: loading cache $cache_file" >&5 |
8fe44445 | 853 | echo "$as_me: loading cache $cache_file" >&6;} |
854 | case $cache_file in | |
855 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
856 | *) . ./$cache_file;; | |
857 | esac | |
858 | fi | |
885824d3 | 859 | else |
d33f8f06 | 860 | { echo "$as_me:860: creating cache $cache_file" >&5 |
8fe44445 | 861 | echo "$as_me: creating cache $cache_file" >&6;} |
862 | >$cache_file | |
885824d3 | 863 | fi |
885824d3 | 864 | |
8fe44445 | 865 | # Check that the precious variables saved in the cache have kept the same |
866 | # value. | |
867 | ac_cache_corrupted=false | |
868 | for ac_var in `(set) 2>&1 | | |
869 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
870 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
871 | eval ac_new_set=\$ac_env_${ac_var}_set | |
872 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
873 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
874 | case $ac_old_set,$ac_new_set in | |
875 | set,) | |
d33f8f06 | 876 | { echo "$as_me:876: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
8fe44445 | 877 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
878 | ac_cache_corrupted=: ;; | |
879 | ,set) | |
d33f8f06 | 880 | { echo "$as_me:880: error: \`$ac_var' was not set in the previous run" >&5 |
8fe44445 | 881 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
882 | ac_cache_corrupted=: ;; | |
883 | ,);; | |
885824d3 | 884 | *) |
8fe44445 | 885 | if test "x$ac_old_val" != "x$ac_new_val"; then |
d33f8f06 | 886 | { echo "$as_me:886: error: \`$ac_var' has changed since the previous run:" >&5 |
8fe44445 | 887 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
d33f8f06 | 888 | { echo "$as_me:888: former value: $ac_old_val" >&5 |
8fe44445 | 889 | echo "$as_me: former value: $ac_old_val" >&2;} |
d33f8f06 | 890 | { echo "$as_me:890: current value: $ac_new_val" >&5 |
8fe44445 | 891 | echo "$as_me: current value: $ac_new_val" >&2;} |
892 | ac_cache_corrupted=: | |
893 | fi;; | |
894 | esac | |
895 | # Pass precious variables to config.status. It doesn't matter if | |
896 | # we pass some twice (in addition to the command line arguments). | |
897 | if test "$ac_new_set" = set; then | |
898 | case $ac_new_val in | |
899 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
900 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` | |
901 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
885824d3 | 902 | ;; |
8fe44445 | 903 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" |
904 | ;; | |
885824d3 | 905 | esac |
8fe44445 | 906 | fi |
907 | done | |
908 | if $ac_cache_corrupted; then | |
d33f8f06 | 909 | { echo "$as_me:909: error: changes in the environment can compromise the build" >&5 |
8fe44445 | 910 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
d33f8f06 | 911 | { { echo "$as_me:911: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
8fe44445 | 912 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
913 | { (exit 1); exit 1; }; } | |
885824d3 | 914 | fi |
885824d3 | 915 | |
8fe44445 | 916 | ac_ext=c |
917 | ac_cpp='$CPP $CPPFLAGS' | |
918 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
919 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
920 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
885824d3 | 921 | |
8fe44445 | 922 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
923 | *c*,-n*) ECHO_N= ECHO_C=' | |
924 | ' ECHO_T=' ' ;; | |
925 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
926 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
927 | esac | |
928 | echo "#! $SHELL" >conftest.sh | |
929 | echo "exit 0" >>conftest.sh | |
930 | chmod +x conftest.sh | |
d33f8f06 | 931 | if { (echo "$as_me:931: PATH=\".;.\"; conftest.sh") >&5 |
8fe44445 | 932 | (PATH=".;."; conftest.sh) 2>&5 |
933 | ac_status=$? | |
d33f8f06 | 934 | echo "$as_me:934: \$? = $ac_status" >&5 |
8fe44445 | 935 | (exit $ac_status); }; then |
936 | ac_path_separator=';' | |
937 | else | |
938 | ac_path_separator=: | |
885824d3 | 939 | fi |
8fe44445 | 940 | PATH_SEPARATOR="$ac_path_separator" |
941 | rm -f conftest.sh | |
885824d3 | 942 | |
8fe44445 | 943 | ac_aux_dir= |
944 | for ac_dir in config $srcdir/config; do | |
945 | if test -f $ac_dir/install-sh; then | |
946 | ac_aux_dir=$ac_dir | |
947 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
948 | break | |
949 | elif test -f $ac_dir/install.sh; then | |
950 | ac_aux_dir=$ac_dir | |
951 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
952 | break | |
953 | elif test -f $ac_dir/shtool; then | |
954 | ac_aux_dir=$ac_dir | |
955 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
956 | break | |
957 | fi | |
958 | done | |
959 | if test -z "$ac_aux_dir"; then | |
d33f8f06 | 960 | { { echo "$as_me:960: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 |
8fe44445 | 961 | echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} |
962 | { (exit 1); exit 1; }; } | |
885824d3 | 963 | fi |
8fe44445 | 964 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
965 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
966 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
885824d3 | 967 | |
8fe44445 | 968 | # Make sure we can run config.sub. |
969 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
d33f8f06 | 970 | { { echo "$as_me:970: error: cannot run $ac_config_sub" >&5 |
8fe44445 | 971 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
972 | { (exit 1); exit 1; }; } | |
885824d3 | 973 | |
d33f8f06 | 974 | echo "$as_me:974: checking build system type" >&5 |
8fe44445 | 975 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
976 | if test "${ac_cv_build+set}" = set; then | |
977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 978 | else |
8fe44445 | 979 | ac_cv_build_alias=$build_alias |
980 | test -z "$ac_cv_build_alias" && | |
981 | ac_cv_build_alias=`$ac_config_guess` | |
982 | test -z "$ac_cv_build_alias" && | |
d33f8f06 | 983 | { { echo "$as_me:983: error: cannot guess build type; you must specify one" >&5 |
8fe44445 | 984 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
985 | { (exit 1); exit 1; }; } | |
986 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
d33f8f06 | 987 | { { echo "$as_me:987: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
8fe44445 | 988 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
989 | { (exit 1); exit 1; }; } | |
885824d3 | 990 | |
991 | fi | |
d33f8f06 | 992 | echo "$as_me:992: result: $ac_cv_build" >&5 |
8fe44445 | 993 | echo "${ECHO_T}$ac_cv_build" >&6 |
994 | build=$ac_cv_build | |
995 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
996 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
997 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
885824d3 | 998 | |
d33f8f06 | 999 | echo "$as_me:999: checking host system type" >&5 |
8fe44445 | 1000 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1001 | if test "${ac_cv_host+set}" = set; then | |
1002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 1003 | else |
8fe44445 | 1004 | ac_cv_host_alias=$host_alias |
1005 | test -z "$ac_cv_host_alias" && | |
1006 | ac_cv_host_alias=$ac_cv_build_alias | |
1007 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
d33f8f06 | 1008 | { { echo "$as_me:1008: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
8fe44445 | 1009 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1010 | { (exit 1); exit 1; }; } | |
885824d3 | 1011 | |
1012 | fi | |
d33f8f06 | 1013 | echo "$as_me:1013: result: $ac_cv_host" >&5 |
8fe44445 | 1014 | echo "${ECHO_T}$ac_cv_host" >&6 |
1015 | host=$ac_cv_host | |
1016 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1017 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1018 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
885824d3 | 1019 | |
d33f8f06 | 1020 | echo "$as_me:1020: checking target system type" >&5 |
f7bbce9e | 1021 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
1022 | if test "${ac_cv_target+set}" = set; then | |
1023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1024 | else | |
1025 | ac_cv_target_alias=$target_alias | |
1026 | test "x$ac_cv_target_alias" = "x" && | |
1027 | ac_cv_target_alias=$ac_cv_host_alias | |
1028 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
d33f8f06 | 1029 | { { echo "$as_me:1029: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
f7bbce9e | 1030 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
1031 | { (exit 1); exit 1; }; } | |
1032 | ||
1033 | fi | |
d33f8f06 | 1034 | echo "$as_me:1034: result: $ac_cv_target" >&5 |
f7bbce9e | 1035 | echo "${ECHO_T}$ac_cv_target" >&6 |
1036 | target=$ac_cv_target | |
1037 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1038 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1039 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1040 | ||
1041 | # The aliases save the names the user supplied, while $host etc. | |
1042 | # will get canonicalized. | |
1043 | test -n "$target_alias" && | |
1044 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1045 | NONENONEs,x,x, && | |
1046 | program_prefix=${target_alias}- | |
1047 | ||
8fe44445 | 1048 | # Find a good install program. We prefer a C program (faster), |
1049 | # so one script is as good as another. But avoid the broken or | |
1050 | # incompatible versions: | |
1051 | # SysV /etc/install, /usr/sbin/install | |
1052 | # SunOS /usr/etc/install | |
1053 | # IRIX /sbin/install | |
1054 | # AIX /bin/install | |
1055 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1056 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1057 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1058 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1059 | # ./install, which can be erroneously created by make from ./install.sh. | |
d33f8f06 | 1060 | echo "$as_me:1060: checking for a BSD compatible install" >&5 |
8fe44445 | 1061 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
1062 | if test -z "$INSTALL"; then | |
1063 | if test "${ac_cv_path_install+set}" = set; then | |
1064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 1065 | else |
8fe44445 | 1066 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
1067 | for ac_dir in $PATH; do | |
1068 | IFS=$ac_save_IFS | |
1069 | # Account for people who put trailing slashes in PATH elements. | |
1070 | case $ac_dir/ in | |
1071 | / | ./ | .// | /cC/* \ | |
1072 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
1073 | | /usr/ucb/* ) ;; | |
1074 | *) | |
1075 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1076 | # Don't use installbsd from OSF since it installs stuff as root | |
1077 | # by default. | |
1078 | for ac_prog in ginstall scoinst install; do | |
1079 | if $as_executable_p "$ac_dir/$ac_prog"; then | |
1080 | if test $ac_prog = install && | |
1081 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1082 | # AIX install. It has an incompatible calling convention. | |
1083 | : | |
1084 | elif test $ac_prog = install && | |
1085 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1086 | # program-specific install script used by HP pwplus--don't use. | |
1087 | : | |
1088 | else | |
1089 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1090 | break 2 | |
1091 | fi | |
1092 | fi | |
1093 | done | |
1094 | ;; | |
1095 | esac | |
1096 | done | |
885824d3 | 1097 | |
1098 | fi | |
8fe44445 | 1099 | if test "${ac_cv_path_install+set}" = set; then |
1100 | INSTALL=$ac_cv_path_install | |
1101 | else | |
1102 | # As a last resort, use the slow shell script. We don't cache a | |
1103 | # path for INSTALL within a source directory, because that will | |
1104 | # break other packages using the cache if that directory is | |
1105 | # removed, or if the path is relative. | |
1106 | INSTALL=$ac_install_sh | |
1107 | fi | |
1108 | fi | |
d33f8f06 | 1109 | echo "$as_me:1109: result: $INSTALL" >&5 |
8fe44445 | 1110 | echo "${ECHO_T}$INSTALL" >&6 |
885824d3 | 1111 | |
8fe44445 | 1112 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1113 | # It thinks the first close brace ends the variable substitution. | |
1114 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1115 | ||
1116 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1117 | ||
1118 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1119 | ||
d33f8f06 | 1120 | echo "$as_me:1120: checking whether build environment is sane" >&5 |
8fe44445 | 1121 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1122 | # Just in case | |
1123 | sleep 1 | |
d33f8f06 | 1124 | echo timestamp > conftestfile |
8fe44445 | 1125 | # Do `set' in a subshell so we don't clobber the current shell's |
1126 | # arguments. Must try -L first in case configure is actually a | |
1127 | # symlink; some systems play weird games with the mod time of symlinks | |
1128 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1129 | # directory). | |
1130 | if ( | |
d33f8f06 | 1131 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
8fe44445 | 1132 | if test "$*" = "X"; then |
1133 | # -L didn't work. | |
d33f8f06 | 1134 | set X `ls -t $srcdir/configure conftestfile` |
8fe44445 | 1135 | fi |
d33f8f06 | 1136 | if test "$*" != "X $srcdir/configure conftestfile" \ |
1137 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
8fe44445 | 1138 | |
1139 | # If neither matched, then we have a broken ls. This can happen | |
1140 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1141 | # broken ls alias from the environment. This has actually | |
1142 | # happened. Such a system could not be considered "sane". | |
d33f8f06 | 1143 | { { echo "$as_me:1143: error: ls -t appears to fail. Make sure there is not a broken |
8fe44445 | 1144 | alias in your environment" >&5 |
1145 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1146 | alias in your environment" >&2;} | |
1147 | { (exit 1); exit 1; }; } | |
1148 | fi | |
1149 | ||
d33f8f06 | 1150 | test "$2" = conftestfile |
8fe44445 | 1151 | ) |
1152 | then | |
1153 | # Ok. | |
1154 | : | |
885824d3 | 1155 | else |
d33f8f06 | 1156 | { { echo "$as_me:1156: error: newly created file is older than distributed files! |
8fe44445 | 1157 | Check your system clock" >&5 |
1158 | echo "$as_me: error: newly created file is older than distributed files! | |
1159 | Check your system clock" >&2;} | |
1160 | { (exit 1); exit 1; }; } | |
885824d3 | 1161 | fi |
d33f8f06 | 1162 | rm -f conftest* |
1163 | echo "$as_me:1163: result: yes" >&5 | |
8fe44445 | 1164 | echo "${ECHO_T}yes" >&6 |
1165 | test "$program_prefix" != NONE && | |
1166 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1167 | # Use a double $ so make ignores it. | |
1168 | test "$program_suffix" != NONE && | |
1169 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1170 | # Double any \ or $. echo might interpret backslashes. | |
1171 | # By default was `s,x,x', remove it if useless. | |
1172 | cat <<\_ACEOF >conftest.sed | |
1173 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1174 | _ACEOF | |
1175 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1176 | rm conftest.sed | |
885824d3 | 1177 | |
d33f8f06 | 1178 | echo "$as_me:1178: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
8fe44445 | 1179 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
1180 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1181 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 1183 | else |
8fe44445 | 1184 | cat >conftest.make <<\EOF |
1185 | all: | |
1186 | @echo 'ac_maketemp="${MAKE}"' | |
1187 | EOF | |
1188 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1189 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1190 | if test -n "$ac_maketemp"; then | |
1191 | eval ac_cv_prog_make_${ac_make}_set=yes | |
885824d3 | 1192 | else |
8fe44445 | 1193 | eval ac_cv_prog_make_${ac_make}_set=no |
885824d3 | 1194 | fi |
8fe44445 | 1195 | rm -f conftest.make |
1196 | fi | |
1197 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
d33f8f06 | 1198 | echo "$as_me:1198: result: yes" >&5 |
8fe44445 | 1199 | echo "${ECHO_T}yes" >&6 |
1200 | SET_MAKE= | |
1201 | else | |
d33f8f06 | 1202 | echo "$as_me:1202: result: no" >&5 |
8fe44445 | 1203 | echo "${ECHO_T}no" >&6 |
1204 | SET_MAKE="MAKE=${MAKE-make}" | |
885824d3 | 1205 | fi |
885824d3 | 1206 | |
d33f8f06 | 1207 | PACKAGE=splint |
8fe44445 | 1208 | |
d33f8f06 | 1209 | VERSION=3.0.1.4 |
8fe44445 | 1210 | |
d33f8f06 | 1211 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
1212 | { { echo "$as_me:1212: error: source directory already configured; run \"make distclean\" there first" >&5 | |
8fe44445 | 1213 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1214 | { (exit 1); exit 1; }; } | |
885824d3 | 1215 | fi |
885824d3 | 1216 | |
d33f8f06 | 1217 | missing_dir=`cd $ac_aux_dir && pwd` |
1218 | echo "$as_me:1218: checking for working aclocal" >&5 | |
1219 | echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 | |
1220 | # Run test in a subshell; some versions of sh will print an error if | |
1221 | # an executable is not found, even if stderr is redirected. | |
1222 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1223 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
1224 | ACLOCAL=aclocal | |
1225 | echo "$as_me:1225: result: found" >&5 | |
1226 | echo "${ECHO_T}found" >&6 | |
1227 | else | |
1228 | ACLOCAL="$missing_dir/missing aclocal" | |
1229 | echo "$as_me:1229: result: missing" >&5 | |
1230 | echo "${ECHO_T}missing" >&6 | |
1231 | fi | |
1232 | ||
1233 | echo "$as_me:1233: checking for working autoconf" >&5 | |
1234 | echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 | |
1235 | # Run test in a subshell; some versions of sh will print an error if | |
1236 | # an executable is not found, even if stderr is redirected. | |
1237 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1238 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
1239 | AUTOCONF=autoconf | |
1240 | echo "$as_me:1240: result: found" >&5 | |
1241 | echo "${ECHO_T}found" >&6 | |
1242 | else | |
1243 | AUTOCONF="$missing_dir/missing autoconf" | |
1244 | echo "$as_me:1244: result: missing" >&5 | |
1245 | echo "${ECHO_T}missing" >&6 | |
1246 | fi | |
1247 | ||
1248 | echo "$as_me:1248: checking for working automake" >&5 | |
1249 | echo $ECHO_N "checking for working automake... $ECHO_C" >&6 | |
1250 | # Run test in a subshell; some versions of sh will print an error if | |
1251 | # an executable is not found, even if stderr is redirected. | |
1252 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1253 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
1254 | AUTOMAKE=automake | |
1255 | echo "$as_me:1255: result: found" >&5 | |
1256 | echo "${ECHO_T}found" >&6 | |
1257 | else | |
1258 | AUTOMAKE="$missing_dir/missing automake" | |
1259 | echo "$as_me:1259: result: missing" >&5 | |
1260 | echo "${ECHO_T}missing" >&6 | |
1261 | fi | |
1262 | ||
1263 | echo "$as_me:1263: checking for working autoheader" >&5 | |
1264 | echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 | |
1265 | # Run test in a subshell; some versions of sh will print an error if | |
1266 | # an executable is not found, even if stderr is redirected. | |
1267 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1268 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1269 | AUTOHEADER=autoheader | |
1270 | echo "$as_me:1270: result: found" >&5 | |
1271 | echo "${ECHO_T}found" >&6 | |
1272 | else | |
1273 | AUTOHEADER="$missing_dir/missing autoheader" | |
1274 | echo "$as_me:1274: result: missing" >&5 | |
1275 | echo "${ECHO_T}missing" >&6 | |
1276 | fi | |
1277 | ||
1278 | echo "$as_me:1278: checking for working makeinfo" >&5 | |
1279 | echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 | |
1280 | # Run test in a subshell; some versions of sh will print an error if | |
1281 | # an executable is not found, even if stderr is redirected. | |
1282 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1283 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1284 | MAKEINFO=makeinfo | |
1285 | echo "$as_me:1285: result: found" >&5 | |
1286 | echo "${ECHO_T}found" >&6 | |
1287 | else | |
1288 | MAKEINFO="$missing_dir/missing makeinfo" | |
1289 | echo "$as_me:1289: result: missing" >&5 | |
1290 | echo "${ECHO_T}missing" >&6 | |
1291 | fi | |
1292 | ||
1293 | ac_config_headers="$ac_config_headers config.h:config.hin" | |
8fe44445 | 1294 | |
d33f8f06 | 1295 | ac_config_commands="$ac_config_commands default-1" |
c1dda563 | 1296 | |
11db3170 | 1297 | #drl 12-19-2001 commented out so Splint won't depend on C++ |
c1dda563 | 1298 | #AC_PROG_CXX |
8fe44445 | 1299 | ac_ext=c |
1300 | ac_cpp='$CPP $CPPFLAGS' | |
1301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1304 | if test -n "$ac_tool_prefix"; then | |
1305 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1306 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
d33f8f06 | 1307 | echo "$as_me:1307: checking for $ac_word" >&5 |
8fe44445 | 1308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1309 | if test "${ac_cv_prog_CC+set}" = set; then | |
1310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1311 | else | |
1312 | if test -n "$CC"; then | |
1313 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1314 | else | |
1315 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1316 | ac_dummy="$PATH" | |
1317 | for ac_dir in $ac_dummy; do | |
1318 | IFS=$ac_save_IFS | |
1319 | test -z "$ac_dir" && ac_dir=. | |
1320 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1321 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
d33f8f06 | 1322 | echo "$as_me:1322: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1323 | break |
1324 | done | |
1325 | ||
1326 | fi | |
1327 | fi | |
1328 | CC=$ac_cv_prog_CC | |
1329 | if test -n "$CC"; then | |
d33f8f06 | 1330 | echo "$as_me:1330: result: $CC" >&5 |
8fe44445 | 1331 | echo "${ECHO_T}$CC" >&6 |
1332 | else | |
d33f8f06 | 1333 | echo "$as_me:1333: result: no" >&5 |
8fe44445 | 1334 | echo "${ECHO_T}no" >&6 |
1335 | fi | |
1336 | ||
1337 | fi | |
1338 | if test -z "$ac_cv_prog_CC"; then | |
1339 | ac_ct_CC=$CC | |
1340 | # Extract the first word of "gcc", so it can be a program name with args. | |
1341 | set dummy gcc; ac_word=$2 | |
d33f8f06 | 1342 | echo "$as_me:1342: checking for $ac_word" >&5 |
8fe44445 | 1343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1344 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1346 | else | |
1347 | if test -n "$ac_ct_CC"; then | |
1348 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1349 | else | |
1350 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1351 | ac_dummy="$PATH" | |
1352 | for ac_dir in $ac_dummy; do | |
1353 | IFS=$ac_save_IFS | |
1354 | test -z "$ac_dir" && ac_dir=. | |
1355 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1356 | ac_cv_prog_ac_ct_CC="gcc" | |
d33f8f06 | 1357 | echo "$as_me:1357: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1358 | break |
1359 | done | |
1360 | ||
1361 | fi | |
1362 | fi | |
1363 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1364 | if test -n "$ac_ct_CC"; then | |
d33f8f06 | 1365 | echo "$as_me:1365: result: $ac_ct_CC" >&5 |
8fe44445 | 1366 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1367 | else | |
d33f8f06 | 1368 | echo "$as_me:1368: result: no" >&5 |
8fe44445 | 1369 | echo "${ECHO_T}no" >&6 |
1370 | fi | |
1371 | ||
1372 | CC=$ac_ct_CC | |
1373 | else | |
1374 | CC="$ac_cv_prog_CC" | |
1375 | fi | |
1376 | ||
1377 | if test -z "$CC"; then | |
1378 | if test -n "$ac_tool_prefix"; then | |
1379 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1380 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
d33f8f06 | 1381 | echo "$as_me:1381: checking for $ac_word" >&5 |
8fe44445 | 1382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1383 | if test "${ac_cv_prog_CC+set}" = set; then | |
1384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1385 | else | |
1386 | if test -n "$CC"; then | |
1387 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1388 | else | |
1389 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1390 | ac_dummy="$PATH" | |
1391 | for ac_dir in $ac_dummy; do | |
1392 | IFS=$ac_save_IFS | |
1393 | test -z "$ac_dir" && ac_dir=. | |
1394 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1395 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
d33f8f06 | 1396 | echo "$as_me:1396: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1397 | break |
1398 | done | |
1399 | ||
1400 | fi | |
1401 | fi | |
1402 | CC=$ac_cv_prog_CC | |
1403 | if test -n "$CC"; then | |
d33f8f06 | 1404 | echo "$as_me:1404: result: $CC" >&5 |
8fe44445 | 1405 | echo "${ECHO_T}$CC" >&6 |
1406 | else | |
d33f8f06 | 1407 | echo "$as_me:1407: result: no" >&5 |
8fe44445 | 1408 | echo "${ECHO_T}no" >&6 |
1409 | fi | |
1410 | ||
1411 | fi | |
1412 | if test -z "$ac_cv_prog_CC"; then | |
1413 | ac_ct_CC=$CC | |
1414 | # Extract the first word of "cc", so it can be a program name with args. | |
1415 | set dummy cc; ac_word=$2 | |
d33f8f06 | 1416 | echo "$as_me:1416: checking for $ac_word" >&5 |
8fe44445 | 1417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1418 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1420 | else | |
1421 | if test -n "$ac_ct_CC"; then | |
1422 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1423 | else | |
1424 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1425 | ac_dummy="$PATH" | |
1426 | for ac_dir in $ac_dummy; do | |
1427 | IFS=$ac_save_IFS | |
1428 | test -z "$ac_dir" && ac_dir=. | |
1429 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1430 | ac_cv_prog_ac_ct_CC="cc" | |
d33f8f06 | 1431 | echo "$as_me:1431: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1432 | break |
1433 | done | |
1434 | ||
1435 | fi | |
1436 | fi | |
1437 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1438 | if test -n "$ac_ct_CC"; then | |
d33f8f06 | 1439 | echo "$as_me:1439: result: $ac_ct_CC" >&5 |
8fe44445 | 1440 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1441 | else | |
d33f8f06 | 1442 | echo "$as_me:1442: result: no" >&5 |
8fe44445 | 1443 | echo "${ECHO_T}no" >&6 |
1444 | fi | |
1445 | ||
1446 | CC=$ac_ct_CC | |
1447 | else | |
1448 | CC="$ac_cv_prog_CC" | |
1449 | fi | |
1450 | ||
1451 | fi | |
1452 | if test -z "$CC"; then | |
1453 | # Extract the first word of "cc", so it can be a program name with args. | |
1454 | set dummy cc; ac_word=$2 | |
d33f8f06 | 1455 | echo "$as_me:1455: checking for $ac_word" >&5 |
8fe44445 | 1456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1457 | if test "${ac_cv_prog_CC+set}" = set; then | |
1458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1459 | else | |
1460 | if test -n "$CC"; then | |
1461 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1462 | else | |
1463 | ac_prog_rejected=no | |
1464 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1465 | ac_dummy="$PATH" | |
1466 | for ac_dir in $ac_dummy; do | |
1467 | IFS=$ac_save_IFS | |
1468 | test -z "$ac_dir" && ac_dir=. | |
1469 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1470 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1471 | ac_prog_rejected=yes | |
1472 | continue | |
1473 | fi | |
1474 | ac_cv_prog_CC="cc" | |
d33f8f06 | 1475 | echo "$as_me:1475: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1476 | break |
1477 | done | |
1478 | ||
1479 | if test $ac_prog_rejected = yes; then | |
1480 | # We found a bogon in the path, so make sure we never use it. | |
1481 | set dummy $ac_cv_prog_CC | |
1482 | shift | |
1483 | if test $# != 0; then | |
1484 | # We chose a different compiler from the bogus one. | |
1485 | # However, it has the same basename, so the bogon will be chosen | |
1486 | # first if we set CC to just the basename; use the full file name. | |
1487 | shift | |
1488 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | |
1489 | shift | |
1490 | ac_cv_prog_CC="$@" | |
1491 | fi | |
1492 | fi | |
1493 | fi | |
1494 | fi | |
1495 | CC=$ac_cv_prog_CC | |
1496 | if test -n "$CC"; then | |
d33f8f06 | 1497 | echo "$as_me:1497: result: $CC" >&5 |
8fe44445 | 1498 | echo "${ECHO_T}$CC" >&6 |
1499 | else | |
d33f8f06 | 1500 | echo "$as_me:1500: result: no" >&5 |
8fe44445 | 1501 | echo "${ECHO_T}no" >&6 |
1502 | fi | |
1503 | ||
1504 | fi | |
1505 | if test -z "$CC"; then | |
1506 | if test -n "$ac_tool_prefix"; then | |
1507 | for ac_prog in cl | |
1508 | do | |
1509 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1510 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
d33f8f06 | 1511 | echo "$as_me:1511: checking for $ac_word" >&5 |
8fe44445 | 1512 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1513 | if test "${ac_cv_prog_CC+set}" = set; then | |
1514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1515 | else | |
1516 | if test -n "$CC"; then | |
1517 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1518 | else | |
1519 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1520 | ac_dummy="$PATH" | |
1521 | for ac_dir in $ac_dummy; do | |
1522 | IFS=$ac_save_IFS | |
1523 | test -z "$ac_dir" && ac_dir=. | |
1524 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1525 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
d33f8f06 | 1526 | echo "$as_me:1526: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1527 | break |
1528 | done | |
1529 | ||
1530 | fi | |
1531 | fi | |
1532 | CC=$ac_cv_prog_CC | |
1533 | if test -n "$CC"; then | |
d33f8f06 | 1534 | echo "$as_me:1534: result: $CC" >&5 |
8fe44445 | 1535 | echo "${ECHO_T}$CC" >&6 |
1536 | else | |
d33f8f06 | 1537 | echo "$as_me:1537: result: no" >&5 |
8fe44445 | 1538 | echo "${ECHO_T}no" >&6 |
1539 | fi | |
1540 | ||
1541 | test -n "$CC" && break | |
1542 | done | |
1543 | fi | |
1544 | if test -z "$CC"; then | |
1545 | ac_ct_CC=$CC | |
1546 | for ac_prog in cl | |
1547 | do | |
1548 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1549 | set dummy $ac_prog; ac_word=$2 | |
d33f8f06 | 1550 | echo "$as_me:1550: checking for $ac_word" >&5 |
8fe44445 | 1551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1552 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1554 | else | |
1555 | if test -n "$ac_ct_CC"; then | |
1556 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1557 | else | |
1558 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1559 | ac_dummy="$PATH" | |
1560 | for ac_dir in $ac_dummy; do | |
1561 | IFS=$ac_save_IFS | |
1562 | test -z "$ac_dir" && ac_dir=. | |
1563 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1564 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
d33f8f06 | 1565 | echo "$as_me:1565: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1566 | break |
1567 | done | |
1568 | ||
1569 | fi | |
1570 | fi | |
1571 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1572 | if test -n "$ac_ct_CC"; then | |
d33f8f06 | 1573 | echo "$as_me:1573: result: $ac_ct_CC" >&5 |
8fe44445 | 1574 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1575 | else | |
d33f8f06 | 1576 | echo "$as_me:1576: result: no" >&5 |
8fe44445 | 1577 | echo "${ECHO_T}no" >&6 |
1578 | fi | |
1579 | ||
1580 | test -n "$ac_ct_CC" && break | |
1581 | done | |
1582 | ||
1583 | CC=$ac_ct_CC | |
1584 | fi | |
1585 | ||
1586 | fi | |
1587 | ||
d33f8f06 | 1588 | test -z "$CC" && { { echo "$as_me:1588: error: no acceptable cc found in \$PATH" >&5 |
8fe44445 | 1589 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
1590 | { (exit 1); exit 1; }; } | |
1591 | ||
1592 | # Provide some information about the compiler. | |
d33f8f06 | 1593 | echo "$as_me:1593:" \ |
8fe44445 | 1594 | "checking for C compiler version" >&5 |
1595 | ac_compiler=`set X $ac_compile; echo $2` | |
d33f8f06 | 1596 | { (eval echo "$as_me:1596: \"$ac_compiler --version </dev/null >&5\"") >&5 |
8fe44445 | 1597 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
1598 | ac_status=$? | |
d33f8f06 | 1599 | echo "$as_me:1599: \$? = $ac_status" >&5 |
8fe44445 | 1600 | (exit $ac_status); } |
d33f8f06 | 1601 | { (eval echo "$as_me:1601: \"$ac_compiler -v </dev/null >&5\"") >&5 |
8fe44445 | 1602 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
1603 | ac_status=$? | |
d33f8f06 | 1604 | echo "$as_me:1604: \$? = $ac_status" >&5 |
8fe44445 | 1605 | (exit $ac_status); } |
d33f8f06 | 1606 | { (eval echo "$as_me:1606: \"$ac_compiler -V </dev/null >&5\"") >&5 |
8fe44445 | 1607 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
1608 | ac_status=$? | |
d33f8f06 | 1609 | echo "$as_me:1609: \$? = $ac_status" >&5 |
8fe44445 | 1610 | (exit $ac_status); } |
1611 | ||
c1dda563 | 1612 | cat >conftest.$ac_ext <<_ACEOF |
d33f8f06 | 1613 | #line 1613 "configure" |
c1dda563 | 1614 | #include "confdefs.h" |
1615 | ||
1616 | int | |
1617 | main () | |
1618 | { | |
1619 | ||
1620 | ; | |
1621 | return 0; | |
1622 | } | |
1623 | _ACEOF | |
1624 | ac_clean_files_save=$ac_clean_files | |
1625 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1626 | # Try to create an executable without -o first, disregard a.out. | |
1627 | # It will help us diagnose broken compilers, and finding out an intuition | |
1628 | # of exeext. | |
d33f8f06 | 1629 | echo "$as_me:1629: checking for C compiler default output" >&5 |
c1dda563 | 1630 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
1631 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
d33f8f06 | 1632 | if { (eval echo "$as_me:1632: \"$ac_link_default\"") >&5 |
c1dda563 | 1633 | (eval $ac_link_default) 2>&5 |
1634 | ac_status=$? | |
d33f8f06 | 1635 | echo "$as_me:1635: \$? = $ac_status" >&5 |
c1dda563 | 1636 | (exit $ac_status); }; then |
1637 | # Find the output, starting from the most likely. This scheme is | |
1638 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1639 | # resort. | |
1640 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; | |
1641 | ls a.out conftest 2>/dev/null; | |
1642 | ls a.* conftest.* 2>/dev/null`; do | |
1643 | case $ac_file in | |
1644 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1645 | a.out ) # We found the default executable, but exeext='' is most | |
1646 | # certainly right. | |
1647 | break;; | |
1648 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1649 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
1650 | export ac_cv_exeext | |
1651 | break;; | |
1652 | * ) break;; | |
1653 | esac | |
1654 | done | |
1655 | else | |
1656 | echo "$as_me: failed program was:" >&5 | |
1657 | cat conftest.$ac_ext >&5 | |
d33f8f06 | 1658 | { { echo "$as_me:1658: error: C compiler cannot create executables" >&5 |
c1dda563 | 1659 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
1660 | { (exit 77); exit 77; }; } | |
1661 | fi | |
1662 | ||
1663 | ac_exeext=$ac_cv_exeext | |
d33f8f06 | 1664 | echo "$as_me:1664: result: $ac_file" >&5 |
c1dda563 | 1665 | echo "${ECHO_T}$ac_file" >&6 |
1666 | ||
1667 | # Check the compiler produces executables we can run. If not, either | |
1668 | # the compiler is broken, or we cross compile. | |
d33f8f06 | 1669 | echo "$as_me:1669: checking whether the C compiler works" >&5 |
c1dda563 | 1670 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1671 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1672 | # If not cross compiling, check that we can run a simple program. | |
1673 | if test "$cross_compiling" != yes; then | |
1674 | if { ac_try='./$ac_file' | |
d33f8f06 | 1675 | { (eval echo "$as_me:1675: \"$ac_try\"") >&5 |
c1dda563 | 1676 | (eval $ac_try) 2>&5 |
1677 | ac_status=$? | |
d33f8f06 | 1678 | echo "$as_me:1678: \$? = $ac_status" >&5 |
c1dda563 | 1679 | (exit $ac_status); }; }; then |
1680 | cross_compiling=no | |
1681 | else | |
1682 | if test "$cross_compiling" = maybe; then | |
1683 | cross_compiling=yes | |
1684 | else | |
d33f8f06 | 1685 | { { echo "$as_me:1685: error: cannot run C compiled programs. |
c1dda563 | 1686 | If you meant to cross compile, use \`--host'." >&5 |
1687 | echo "$as_me: error: cannot run C compiled programs. | |
1688 | If you meant to cross compile, use \`--host'." >&2;} | |
1689 | { (exit 1); exit 1; }; } | |
1690 | fi | |
1691 | fi | |
1692 | fi | |
d33f8f06 | 1693 | echo "$as_me:1693: result: yes" >&5 |
c1dda563 | 1694 | echo "${ECHO_T}yes" >&6 |
1695 | ||
1696 | rm -f a.out a.exe conftest$ac_cv_exeext | |
1697 | ac_clean_files=$ac_clean_files_save | |
1698 | # Check the compiler produces executables we can run. If not, either | |
1699 | # the compiler is broken, or we cross compile. | |
d33f8f06 | 1700 | echo "$as_me:1700: checking whether we are cross compiling" >&5 |
c1dda563 | 1701 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
d33f8f06 | 1702 | echo "$as_me:1702: result: $cross_compiling" >&5 |
c1dda563 | 1703 | echo "${ECHO_T}$cross_compiling" >&6 |
1704 | ||
d33f8f06 | 1705 | echo "$as_me:1705: checking for executable suffix" >&5 |
c1dda563 | 1706 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
d33f8f06 | 1707 | if { (eval echo "$as_me:1707: \"$ac_link\"") >&5 |
c1dda563 | 1708 | (eval $ac_link) 2>&5 |
1709 | ac_status=$? | |
d33f8f06 | 1710 | echo "$as_me:1710: \$? = $ac_status" >&5 |
c1dda563 | 1711 | (exit $ac_status); }; then |
1712 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1713 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1714 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1715 | # `rm'. | |
1716 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
1717 | case $ac_file in | |
1718 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1719 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1720 | export ac_cv_exeext | |
1721 | break;; | |
1722 | * ) break;; | |
1723 | esac | |
1724 | done | |
1725 | else | |
d33f8f06 | 1726 | { { echo "$as_me:1726: error: cannot compute EXEEXT: cannot compile and link" >&5 |
c1dda563 | 1727 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
1728 | { (exit 1); exit 1; }; } | |
1729 | fi | |
1730 | ||
1731 | rm -f conftest$ac_cv_exeext | |
d33f8f06 | 1732 | echo "$as_me:1732: result: $ac_cv_exeext" >&5 |
c1dda563 | 1733 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
1734 | ||
1735 | rm -f conftest.$ac_ext | |
1736 | EXEEXT=$ac_cv_exeext | |
1737 | ac_exeext=$EXEEXT | |
d33f8f06 | 1738 | echo "$as_me:1738: checking for object suffix" >&5 |
c1dda563 | 1739 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
1740 | if test "${ac_cv_objext+set}" = set; then | |
1741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1742 | else | |
1743 | cat >conftest.$ac_ext <<_ACEOF | |
d33f8f06 | 1744 | #line 1744 "configure" |
c1dda563 | 1745 | #include "confdefs.h" |
1746 | ||
1747 | int | |
1748 | main () | |
1749 | { | |
1750 | ||
1751 | ; | |
1752 | return 0; | |
1753 | } | |
1754 | _ACEOF | |
1755 | rm -f conftest.o conftest.obj | |
d33f8f06 | 1756 | if { (eval echo "$as_me:1756: \"$ac_compile\"") >&5 |
c1dda563 | 1757 | (eval $ac_compile) 2>&5 |
1758 | ac_status=$? | |
d33f8f06 | 1759 | echo "$as_me:1759: \$? = $ac_status" >&5 |
c1dda563 | 1760 | (exit $ac_status); }; then |
1761 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1762 | case $ac_file in | |
1763 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1764 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1765 | break;; | |
1766 | esac | |
1767 | done | |
1768 | else | |
1769 | echo "$as_me: failed program was:" >&5 | |
1770 | cat conftest.$ac_ext >&5 | |
d33f8f06 | 1771 | { { echo "$as_me:1771: error: cannot compute OBJEXT: cannot compile" >&5 |
c1dda563 | 1772 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
1773 | { (exit 1); exit 1; }; } | |
1774 | fi | |
1775 | ||
1776 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1777 | fi | |
d33f8f06 | 1778 | echo "$as_me:1778: result: $ac_cv_objext" >&5 |
c1dda563 | 1779 | echo "${ECHO_T}$ac_cv_objext" >&6 |
1780 | OBJEXT=$ac_cv_objext | |
1781 | ac_objext=$OBJEXT | |
d33f8f06 | 1782 | echo "$as_me:1782: checking whether we are using the GNU C compiler" >&5 |
8fe44445 | 1783 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
1784 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1786 | else | |
1787 | cat >conftest.$ac_ext <<_ACEOF | |
d33f8f06 | 1788 | #line 1788 "configure" |
8fe44445 | 1789 | #include "confdefs.h" |
1790 | ||
1791 | int | |
1792 | main () | |
1793 | { | |
1794 | #ifndef __GNUC__ | |
1795 | choke me | |
1796 | #endif | |
1797 | ||
1798 | ; | |
1799 | return 0; | |
1800 | } | |
1801 | _ACEOF | |
1802 | rm -f conftest.$ac_objext | |
d33f8f06 | 1803 | if { (eval echo "$as_me:1803: \"$ac_compile\"") >&5 |
8fe44445 | 1804 | (eval $ac_compile) 2>&5 |
1805 | ac_status=$? | |
d33f8f06 | 1806 | echo "$as_me:1806: \$? = $ac_status" >&5 |
8fe44445 | 1807 | (exit $ac_status); } && |
1808 | { ac_try='test -s conftest.$ac_objext' | |
d33f8f06 | 1809 | { (eval echo "$as_me:1809: \"$ac_try\"") >&5 |
8fe44445 | 1810 | (eval $ac_try) 2>&5 |
1811 | ac_status=$? | |
d33f8f06 | 1812 | echo "$as_me:1812: \$? = $ac_status" >&5 |
8fe44445 | 1813 | (exit $ac_status); }; }; then |
1814 | ac_compiler_gnu=yes | |
1815 | else | |
1816 | echo "$as_me: failed program was:" >&5 | |
1817 | cat conftest.$ac_ext >&5 | |
1818 | ac_compiler_gnu=no | |
1819 | fi | |
1820 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1821 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1822 | ||
1823 | fi | |
d33f8f06 | 1824 | echo "$as_me:1824: result: $ac_cv_c_compiler_gnu" >&5 |
8fe44445 | 1825 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
1826 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1827 | ac_test_CFLAGS=${CFLAGS+set} | |
1828 | ac_save_CFLAGS=$CFLAGS | |
1829 | CFLAGS="-g" | |
d33f8f06 | 1830 | echo "$as_me:1830: checking whether $CC accepts -g" >&5 |
8fe44445 | 1831 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
1832 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1834 | else | |
1835 | cat >conftest.$ac_ext <<_ACEOF | |
d33f8f06 | 1836 | #line 1836 "configure" |
8fe44445 | 1837 | #include "confdefs.h" |
1838 | ||
1839 | int | |
1840 | main () | |
1841 | { | |
1842 | ||
1843 | ; | |
1844 | return 0; | |
1845 | } | |
1846 | _ACEOF | |
1847 | rm -f conftest.$ac_objext | |
d33f8f06 | 1848 | if { (eval echo "$as_me:1848: \"$ac_compile\"") >&5 |
8fe44445 | 1849 | (eval $ac_compile) 2>&5 |
1850 | ac_status=$? | |
d33f8f06 | 1851 | echo "$as_me:1851: \$? = $ac_status" >&5 |
8fe44445 | 1852 | (exit $ac_status); } && |
1853 | { ac_try='test -s conftest.$ac_objext' | |
d33f8f06 | 1854 | { (eval echo "$as_me:1854: \"$ac_try\"") >&5 |
8fe44445 | 1855 | (eval $ac_try) 2>&5 |
1856 | ac_status=$? | |
d33f8f06 | 1857 | echo "$as_me:1857: \$? = $ac_status" >&5 |
8fe44445 | 1858 | (exit $ac_status); }; }; then |
1859 | ac_cv_prog_cc_g=yes | |
1860 | else | |
1861 | echo "$as_me: failed program was:" >&5 | |
1862 | cat conftest.$ac_ext >&5 | |
1863 | ac_cv_prog_cc_g=no | |
1864 | fi | |
1865 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1866 | fi | |
d33f8f06 | 1867 | echo "$as_me:1867: result: $ac_cv_prog_cc_g" >&5 |
8fe44445 | 1868 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
1869 | if test "$ac_test_CFLAGS" = set; then | |
1870 | CFLAGS=$ac_save_CFLAGS | |
1871 | elif test $ac_cv_prog_cc_g = yes; then | |
1872 | if test "$GCC" = yes; then | |
1873 | CFLAGS="-g -O2" | |
1874 | else | |
1875 | CFLAGS="-g" | |
1876 | fi | |
1877 | else | |
1878 | if test "$GCC" = yes; then | |
1879 | CFLAGS="-O2" | |
1880 | else | |
1881 | CFLAGS= | |
1882 | fi | |
1883 | fi | |
1884 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
1885 | # in C++ we need to declare it. In case someone uses the same compiler | |
1886 | # for both compiling C and C++ we need to have the C++ compiler decide | |
1887 | # the declaration of exit, since it's the most demanding environment. | |
1888 | cat >conftest.$ac_ext <<_ACEOF | |
1889 | #ifndef __cplusplus | |
1890 | choke me | |
1891 | #endif | |
1892 | _ACEOF | |
1893 | rm -f conftest.$ac_objext | |
d33f8f06 | 1894 | if { (eval echo "$as_me:1894: \"$ac_compile\"") >&5 |
8fe44445 | 1895 | (eval $ac_compile) 2>&5 |
1896 | ac_status=$? | |
d33f8f06 | 1897 | echo "$as_me:1897: \$? = $ac_status" >&5 |
8fe44445 | 1898 | (exit $ac_status); } && |
1899 | { ac_try='test -s conftest.$ac_objext' | |
d33f8f06 | 1900 | { (eval echo "$as_me:1900: \"$ac_try\"") >&5 |
8fe44445 | 1901 | (eval $ac_try) 2>&5 |
1902 | ac_status=$? | |
d33f8f06 | 1903 | echo "$as_me:1903: \$? = $ac_status" >&5 |
8fe44445 | 1904 | (exit $ac_status); }; }; then |
1905 | for ac_declaration in \ | |
1906 | ''\ | |
1907 | '#include <stdlib.h>' \ | |
1908 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
1909 | 'extern "C" void std::exit (int); using std::exit;' \ | |
1910 | 'extern "C" void exit (int) throw ();' \ | |
1911 | 'extern "C" void exit (int);' \ | |
1912 | 'void exit (int);' | |
1913 | do | |
1914 | cat >conftest.$ac_ext <<_ACEOF | |
d33f8f06 | 1915 | #line 1915 "configure" |
8fe44445 | 1916 | #include "confdefs.h" |
1917 | #include <stdlib.h> | |
1918 | $ac_declaration | |
1919 | int | |
1920 | main () | |
1921 | { | |
1922 | exit (42); | |
1923 | ; | |
1924 | return 0; | |
1925 | } | |
1926 | _ACEOF | |
1927 | rm -f conftest.$ac_objext | |
d33f8f06 | 1928 | if { (eval echo "$as_me:1928: \"$ac_compile\"") >&5 |
8fe44445 | 1929 | (eval $ac_compile) 2>&5 |
1930 | ac_status=$? | |
d33f8f06 | 1931 | echo "$as_me:1931: \$? = $ac_status" >&5 |
8fe44445 | 1932 | (exit $ac_status); } && |
1933 | { ac_try='test -s conftest.$ac_objext' | |
d33f8f06 | 1934 | { (eval echo "$as_me:1934: \"$ac_try\"") >&5 |
8fe44445 | 1935 | (eval $ac_try) 2>&5 |
1936 | ac_status=$? | |
d33f8f06 | 1937 | echo "$as_me:1937: \$? = $ac_status" >&5 |
8fe44445 | 1938 | (exit $ac_status); }; }; then |
1939 | : | |
1940 | else | |
1941 | echo "$as_me: failed program was:" >&5 | |
1942 | cat conftest.$ac_ext >&5 | |
1943 | continue | |
1944 | fi | |
1945 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1946 | cat >conftest.$ac_ext <<_ACEOF | |
d33f8f06 | 1947 | #line 1947 "configure" |
8fe44445 | 1948 | #include "confdefs.h" |
1949 | $ac_declaration | |
1950 | int | |
1951 | main () | |
1952 | { | |
1953 | exit (42); | |
1954 | ; | |
1955 | return 0; | |
1956 | } | |
1957 | _ACEOF | |
1958 | rm -f conftest.$ac_objext | |
d33f8f06 | 1959 | if { (eval echo "$as_me:1959: \"$ac_compile\"") >&5 |
8fe44445 | 1960 | (eval $ac_compile) 2>&5 |
1961 | ac_status=$? | |
d33f8f06 | 1962 | echo "$as_me:1962: \$? = $ac_status" >&5 |
8fe44445 | 1963 | (exit $ac_status); } && |
1964 | { ac_try='test -s conftest.$ac_objext' | |
d33f8f06 | 1965 | { (eval echo "$as_me:1965: \"$ac_try\"") >&5 |
8fe44445 | 1966 | (eval $ac_try) 2>&5 |
1967 | ac_status=$? | |
d33f8f06 | 1968 | echo "$as_me:1968: \$? = $ac_status" >&5 |
8fe44445 | 1969 | (exit $ac_status); }; }; then |
1970 | break | |
1971 | else | |
1972 | echo "$as_me: failed program was:" >&5 | |
1973 | cat conftest.$ac_ext >&5 | |
1974 | fi | |
1975 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1976 | done | |
1977 | rm -f conftest* | |
1978 | if test -n "$ac_declaration"; then | |
1979 | echo '#ifdef __cplusplus' >>confdefs.h | |
1980 | echo $ac_declaration >>confdefs.h | |
1981 | echo '#endif' >>confdefs.h | |
1982 | fi | |
1983 | ||
1984 | else | |
1985 | echo "$as_me: failed program was:" >&5 | |
1986 | cat conftest.$ac_ext >&5 | |
1987 | fi | |
1988 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1989 | ac_ext=c | |
1990 | ac_cpp='$CPP $CPPFLAGS' | |
1991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1994 | ||
8fe44445 | 1995 | ac_ext=c |
1996 | ac_cpp='$CPP $CPPFLAGS' | |
1997 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1998 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1999 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d33f8f06 | 2000 | echo "$as_me:2000: checking how to run the C preprocessor" >&5 |
8fe44445 | 2001 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
2002 | # On Suns, sometimes $CPP names a directory. | |
2003 | if test -n "$CPP" && test -d "$CPP"; then | |
2004 | CPP= | |
2005 | fi | |
2006 | if test -z "$CPP"; then | |
2007 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2009 | else | |
2010 | # Double quotes because CPP needs to be expanded | |
2011 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2012 | do | |
2013 | ac_preproc_ok=false | |
2014 | for ac_c_preproc_warn_flag in '' yes | |
2015 | do | |
2016 | # Use a header file that comes with gcc, so configuring glibc | |
2017 | # with a fresh cross-compiler works. | |
2018 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2019 | # not just through cpp. "Syntax error" is here to catch this case. | |
2020 | cat >conftest.$ac_ext <<_ACEOF | |
d33f8f06 | 2021 | #line 2021 "configure" |
8fe44445 | 2022 | #include "confdefs.h" |
2023 | #include <assert.h> | |
2024 | Syntax error | |
2025 | _ACEOF | |
d33f8f06 | 2026 | if { (eval echo "$as_me:2026: \"$ac_cpp conftest.$ac_ext\"") >&5 |
8fe44445 | 2027 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2028 | ac_status=$? | |
2029 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2030 | rm -f conftest.er1 | |
2031 | cat conftest.err >&5 | |
d33f8f06 | 2032 | echo "$as_me:2032: \$? = $ac_status" >&5 |
8fe44445 | 2033 | (exit $ac_status); } >/dev/null; then |
2034 | if test -s conftest.err; then | |
2035 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2036 | else | |
2037 | ac_cpp_err= | |
2038 | fi | |
2039 | else | |
2040 | ac_cpp_err=yes | |
2041 | fi | |
2042 | if test -z "$ac_cpp_err"; then | |
2043 | : | |
2044 | else | |
2045 | echo "$as_me: failed program was:" >&5 | |
2046 | cat conftest.$ac_ext >&5 | |
2047 | # Broken: fails on valid input. | |
2048 | continue | |
2049 | fi | |
2050 | rm -f conftest.err conftest.$ac_ext | |
2051 | ||
2052 | # OK, works on sane cases. Now check whether non-existent headers | |
2053 | # can be detected and how. | |
2054 | cat >conftest.$ac_ext <<_ACEOF | |
d33f8f06 | 2055 | #line 2055 "configure" |
8fe44445 | 2056 | #include "confdefs.h" |
2057 | #include <ac_nonexistent.h> | |
2058 | _ACEOF | |
d33f8f06 | 2059 | if { (eval echo "$as_me:2059: \"$ac_cpp conftest.$ac_ext\"") >&5 |
8fe44445 | 2060 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2061 | ac_status=$? | |
2062 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2063 | rm -f conftest.er1 | |
2064 | cat conftest.err >&5 | |
d33f8f06 | 2065 | echo "$as_me:2065: \$? = $ac_status" >&5 |
8fe44445 | 2066 | (exit $ac_status); } >/dev/null; then |
2067 | if test -s conftest.err; then | |
2068 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2069 | else | |
2070 | ac_cpp_err= | |
2071 | fi | |
2072 | else | |
2073 | ac_cpp_err=yes | |
2074 | fi | |
2075 | if test -z "$ac_cpp_err"; then | |
2076 | # Broken: success on invalid input. | |
2077 | continue | |
2078 | else | |
2079 | echo "$as_me: failed program was:" >&5 | |
2080 | cat conftest.$ac_ext >&5 | |
2081 | # Passes both tests. | |
2082 | ac_preproc_ok=: | |
2083 | break | |
2084 | fi | |
2085 | rm -f conftest.err conftest.$ac_ext | |
2086 | ||
2087 | done | |
2088 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2089 | rm -f conftest.err conftest.$ac_ext | |
2090 | if $ac_preproc_ok; then | |
2091 | break | |
2092 | fi | |
2093 | ||
2094 | done | |
2095 | ac_cv_prog_CPP=$CPP | |
2096 | ||
2097 | fi | |
2098 | CPP=$ac_cv_prog_CPP | |
2099 | else | |
2100 | ac_cv_prog_CPP=$CPP | |
2101 | fi | |
d33f8f06 | 2102 | echo "$as_me:2102: result: $CPP" >&5 |
8fe44445 | 2103 | echo "${ECHO_T}$CPP" >&6 |
2104 | ac_preproc_ok=false | |
2105 | for ac_c_preproc_warn_flag in '' yes | |
2106 | do | |
2107 | # Use a header file that comes with gcc, so configuring glibc | |
2108 | # with a fresh cross-compiler works. | |
2109 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2110 | # not just through cpp. "Syntax error" is here to catch this case. | |
2111 | cat >conftest.$ac_ext <<_ACEOF | |
d33f8f06 | 2112 | #line 2112 "configure" |
8fe44445 | 2113 | #include "confdefs.h" |
2114 | #include <assert.h> | |
2115 | Syntax error | |
2116 | _ACEOF | |
d33f8f06 | 2117 | if { (eval echo "$as_me:2117: \"$ac_cpp conftest.$ac_ext\"") >&5 |
8fe44445 | 2118 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2119 | ac_status=$? | |
2120 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2121 | rm -f conftest.er1 | |
2122 | cat conftest.err >&5 | |
d33f8f06 | 2123 | echo "$as_me:2123: \$? = $ac_status" >&5 |
8fe44445 | 2124 | (exit $ac_status); } >/dev/null; then |
2125 | if test -s conftest.err; then | |
2126 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2127 | else | |
2128 | ac_cpp_err= | |
2129 | fi | |
2130 | else | |
2131 | ac_cpp_err=yes | |
2132 | fi | |
2133 | if test -z "$ac_cpp_err"; then | |
2134 | : | |
2135 | else | |
2136 | echo "$as_me: failed program was:" >&5 | |
2137 | cat conftest.$ac_ext >&5 | |
2138 | # Broken: fails on valid input. | |
2139 | continue | |
2140 | fi | |
2141 | rm -f conftest.err conftest.$ac_ext | |
2142 | ||
2143 | # OK, works on sane cases. Now check whether non-existent headers | |
2144 | # can be detected and how. | |
2145 | cat >conftest.$ac_ext <<_ACEOF | |
d33f8f06 | 2146 | #line 2146 "configure" |
8fe44445 | 2147 | #include "confdefs.h" |
2148 | #include <ac_nonexistent.h> | |
2149 | _ACEOF | |
d33f8f06 | 2150 | if { (eval echo "$as_me:2150: \"$ac_cpp conftest.$ac_ext\"") >&5 |
8fe44445 | 2151 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2152 | ac_status=$? | |
2153 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2154 | rm -f conftest.er1 | |
2155 | cat conftest.err >&5 | |
d33f8f06 | 2156 | echo "$as_me:2156: \$? = $ac_status" >&5 |
8fe44445 | 2157 | (exit $ac_status); } >/dev/null; then |
2158 | if test -s conftest.err; then | |
2159 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2160 | else | |
2161 | ac_cpp_err= | |
2162 | fi | |
2163 | else | |
2164 | ac_cpp_err=yes | |
2165 | fi | |
2166 | if test -z "$ac_cpp_err"; then | |
2167 | # Broken: success on invalid input. | |
2168 | continue | |
2169 | else | |
2170 | echo "$as_me: failed program was:" >&5 | |
2171 | cat conftest.$ac_ext >&5 | |
2172 | # Passes both tests. | |
2173 | ac_preproc_ok=: | |
2174 | break | |
2175 | fi | |
2176 | rm -f conftest.err conftest.$ac_ext | |
2177 | ||
2178 | done | |
2179 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2180 | rm -f conftest.err conftest.$ac_ext | |
2181 | if $ac_preproc_ok; then | |
2182 | : | |
2183 | else | |
d33f8f06 | 2184 | { { echo "$as_me:2184: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
8fe44445 | 2185 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
2186 | { (exit 1); exit 1; }; } | |
2187 | fi | |
2188 | ||
2189 | ac_ext=c | |
2190 | ac_cpp='$CPP $CPPFLAGS' | |
2191 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2192 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2193 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2194 | ||
d33f8f06 | 2195 | missing_dir=`cd $ac_aux_dir && pwd` |
8fe44445 | 2196 | for ac_prog in flex lex |
2197 | do | |
2198 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2199 | set dummy $ac_prog; ac_word=$2 | |
d33f8f06 | 2200 | echo "$as_me:2200: checking for $ac_word" >&5 |
8fe44445 | 2201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2202 | if test "${ac_cv_prog_LEX+set}" = set; then | |
2203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2204 | else | |
2205 | if test -n "$LEX"; then | |
2206 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
2207 | else | |
2208 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2209 | ac_dummy="$PATH" | |
2210 | for ac_dir in $ac_dummy; do | |
2211 | IFS=$ac_save_IFS | |
2212 | test -z "$ac_dir" && ac_dir=. | |
2213 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2214 | ac_cv_prog_LEX="$ac_prog" | |
d33f8f06 | 2215 | echo "$as_me:2215: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2216 | break |
2217 | done | |
2218 | ||
2219 | fi | |
2220 | fi | |
2221 | LEX=$ac_cv_prog_LEX | |
2222 | if test -n "$LEX"; then | |
d33f8f06 | 2223 | echo "$as_me:2223: result: $LEX" >&5 |
8fe44445 | 2224 | echo "${ECHO_T}$LEX" >&6 |
2225 | else | |
d33f8f06 | 2226 | echo "$as_me:2226: result: no" >&5 |
8fe44445 | 2227 | echo "${ECHO_T}no" >&6 |
2228 | fi | |
2229 | ||
2230 | test -n "$LEX" && break | |
2231 | done | |
d33f8f06 | 2232 | test -n "$LEX" || LEX=""$missing_dir/missing flex"" |
8fe44445 | 2233 | |
2234 | for ac_prog in flex lex | |
2235 | do | |
2236 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2237 | set dummy $ac_prog; ac_word=$2 | |
d33f8f06 | 2238 | echo "$as_me:2238: checking for $ac_word" >&5 |
8fe44445 | 2239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2240 | if test "${ac_cv_prog_LEX+set}" = set; then | |
2241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2242 | else | |
2243 | if test -n "$LEX"; then | |
2244 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
2245 | else | |
2246 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2247 | ac_dummy="$PATH" | |
2248 | for ac_dir in $ac_dummy; do | |
2249 | IFS=$ac_save_IFS | |
2250 | test -z "$ac_dir" && ac_dir=. | |
2251 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2252 | ac_cv_prog_LEX="$ac_prog" | |
d33f8f06 | 2253 | echo "$as_me:2253: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2254 | break |
2255 | done | |
2256 | ||
2257 | fi | |
2258 | fi | |
2259 | LEX=$ac_cv_prog_LEX | |
2260 | if test -n "$LEX"; then | |
d33f8f06 | 2261 | echo "$as_me:2261: result: $LEX" >&5 |
8fe44445 | 2262 | echo "${ECHO_T}$LEX" >&6 |
2263 | else | |
d33f8f06 | 2264 | echo "$as_me:2264: result: no" >&5 |
8fe44445 | 2265 | echo "${ECHO_T}no" >&6 |
2266 | fi | |
2267 | ||
2268 | test -n "$LEX" && break | |
2269 | done | |
2270 | test -n "$LEX" || LEX=":" | |
2271 | ||
2272 | if test -z "$LEXLIB" | |
2273 | then | |
d33f8f06 | 2274 | echo "$as_me:2274: checking for yywrap in -lfl" >&5 |
8fe44445 | 2275 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
2276 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
2277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2278 | else | |
2279 | ac_check_lib_save_LIBS=$LIBS | |
2280 | LIBS="-lfl $LIBS" | |
2281 | cat >conftest.$ac_ext <<_ACEOF | |
d33f8f06 | 2282 | #line 2282 "configure" |
8fe44445 | 2283 | #include "confdefs.h" |
2284 | ||
2285 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2286 | #ifdef __cplusplus | |
2287 | extern "C" | |
2288 | #endif | |
2289 | /* We use char because int might match the return type of a gcc2 | |
2290 | builtin and then its argument prototype would still apply. */ | |
2291 | char yywrap (); | |
2292 | int | |
2293 | main () | |
2294 | { | |
2295 | yywrap (); | |
2296 | ; | |
2297 | return 0; | |
2298 | } | |
2299 | _ACEOF | |
2300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d33f8f06 | 2301 | if { (eval echo "$as_me:2301: \"$ac_link\"") >&5 |
8fe44445 | 2302 | (eval $ac_link) 2>&5 |
2303 | ac_status=$? | |
d33f8f06 | 2304 | echo "$as_me:2304: \$? = $ac_status" >&5 |
8fe44445 | 2305 | (exit $ac_status); } && |
2306 | { ac_try='test -s conftest$ac_exeext' | |
d33f8f06 | 2307 | { (eval echo "$as_me:2307: \"$ac_try\"") >&5 |
8fe44445 | 2308 | (eval $ac_try) 2>&5 |
2309 | ac_status=$? | |
d33f8f06 | 2310 | echo "$as_me:2310: \$? = $ac_status" >&5 |
8fe44445 | 2311 | (exit $ac_status); }; }; then |
2312 | ac_cv_lib_fl_yywrap=yes | |
2313 | else | |
2314 | echo "$as_me: failed program was:" >&5 | |
2315 | cat conftest.$ac_ext >&5 | |
2316 | ac_cv_lib_fl_yywrap=no | |
2317 | fi | |
2318 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2319 | LIBS=$ac_check_lib_save_LIBS | |
2320 | fi | |
d33f8f06 | 2321 | echo "$as_me:2321: result: $ac_cv_lib_fl_yywrap" >&5 |
8fe44445 | 2322 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
2323 | if test $ac_cv_lib_fl_yywrap = yes; then | |
2324 | LEXLIB="-lfl" | |
2325 | else | |
d33f8f06 | 2326 | echo "$as_me:2326: checking for yywrap in -ll" >&5 |
8fe44445 | 2327 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
2328 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
2329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2330 | else | |
2331 | ac_check_lib_save_LIBS=$LIBS | |
2332 | LIBS="-ll $LIBS" | |
2333 | cat >conftest.$ac_ext <<_ACEOF | |
d33f8f06 | 2334 | #line 2334 "configure" |
8fe44445 | 2335 | #include "confdefs.h" |
2336 | ||
2337 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2338 | #ifdef __cplusplus | |
2339 | extern "C" | |
2340 | #endif | |
2341 | /* We use char because int might match the return type of a gcc2 | |
2342 | builtin and then its argument prototype would still apply. */ | |
2343 | char yywrap (); | |
2344 | int | |
2345 | main () | |
2346 | { | |
2347 | yywrap (); | |
2348 | ; | |
2349 | return 0; | |
2350 | } | |
2351 | _ACEOF | |
2352 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d33f8f06 | 2353 | if { (eval echo "$as_me:2353: \"$ac_link\"") >&5 |
8fe44445 | 2354 | (eval $ac_link) 2>&5 |
2355 | ac_status=$? | |
d33f8f06 | 2356 | echo "$as_me:2356: \$? = $ac_status" >&5 |
8fe44445 | 2357 | (exit $ac_status); } && |
2358 | { ac_try='test -s conftest$ac_exeext' | |
d33f8f06 | 2359 | { (eval echo "$as_me:2359: \"$ac_try\"") >&5 |
8fe44445 | 2360 | (eval $ac_try) 2>&5 |
2361 | ac_status=$? | |
d33f8f06 | 2362 | echo "$as_me:2362: \$? = $ac_status" >&5 |
8fe44445 | 2363 | (exit $ac_status); }; }; then |
2364 | ac_cv_lib_l_yywrap=yes | |
2365 | else | |
2366 | echo "$as_me: failed program was:" >&5 | |
2367 | cat conftest.$ac_ext >&5 | |
2368 | ac_cv_lib_l_yywrap=no | |
2369 | fi | |
2370 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2371 | LIBS=$ac_check_lib_save_LIBS | |
2372 | fi | |
d33f8f06 | 2373 | echo "$as_me:2373: result: $ac_cv_lib_l_yywrap" >&5 |
8fe44445 | 2374 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
2375 | if test $ac_cv_lib_l_yywrap = yes; then | |
2376 | LEXLIB="-ll" | |
2377 | fi | |
2378 | ||
2379 | fi | |
2380 | ||
2381 | fi | |
2382 | ||
2383 | if test "x$LEX" != "x:"; then | |
d33f8f06 | 2384 | echo "$as_me:2384: checking lex output file root" >&5 |
8fe44445 | 2385 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
2386 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
2387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2388 | else | |
2389 | # The minimal lex program is just a single line: %%. But some broken lexes | |
2390 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
2391 | echo '%% | |
2392 | %%' | $LEX | |
2393 | if test -f lex.yy.c; then | |
2394 | ac_cv_prog_lex_root=lex.yy | |
2395 | elif test -f lexyy.c; then | |
2396 | ac_cv_prog_lex_root=lexyy | |
2397 | else | |
d33f8f06 | 2398 | { { echo "$as_me:2398: error: cannot find output from $LEX; giving up" >&5 |
8fe44445 | 2399 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
2400 | { (exit 1); exit 1; }; } | |
2401 | fi | |
2402 | fi | |
d33f8f06 | 2403 | echo "$as_me:2403: result: $ac_cv_prog_lex_root" >&5 |
8fe44445 | 2404 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
2405 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
2406 | ||
d33f8f06 | 2407 | echo "$as_me:2407: checking whether yytext is a pointer" >&5 |
8fe44445 | 2408 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
2409 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
2410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2411 | else | |
2412 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
2413 | # default is implementation-dependent. Figure out which it is, since | |
2414 | # not all implementations provide the %pointer and %array declarations. | |
2415 | ac_cv_prog_lex_yytext_pointer=no | |
2416 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
2417 | ac_save_LIBS=$LIBS | |
2418 | LIBS="$LIBS $LEXLIB" | |
2419 | cat >conftest.$ac_ext <<_ACEOF | |
2420 | `cat $LEX_OUTPUT_ROOT.c` | |
2421 | _ACEOF | |
2422 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d33f8f06 | 2423 | if { (eval echo "$as_me:2423: \"$ac_link\"") >&5 |
8fe44445 | 2424 | (eval $ac_link) 2>&5 |
2425 | ac_status=$? | |
d33f8f06 | 2426 | echo "$as_me:2426: \$? = $ac_status" >&5 |
8fe44445 | 2427 | (exit $ac_status); } && |
2428 | { ac_try='test -s conftest$ac_exeext' | |
d33f8f06 | 2429 | { (eval echo "$as_me:2429: \"$ac_try\"") >&5 |
8fe44445 | 2430 | (eval $ac_try) 2>&5 |
2431 | ac_status=$? | |
d33f8f06 | 2432 | echo "$as_me:2432: \$? = $ac_status" >&5 |
8fe44445 | 2433 | (exit $ac_status); }; }; then |
2434 | ac_cv_prog_lex_yytext_pointer=yes | |
2435 | else | |
2436 | echo "$as_me: failed program was:" >&5 | |
2437 | cat conftest.$ac_ext >&5 | |
2438 | fi | |
2439 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2440 | LIBS=$ac_save_LIBS | |
2441 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
2442 | ||
2443 | fi | |
d33f8f06 | 2444 | echo "$as_me:2444: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
8fe44445 | 2445 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
2446 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
2447 | ||
2448 | cat >>confdefs.h <<\EOF | |
2449 | #define YYTEXT_POINTER 1 | |
2450 | EOF | |
2451 | ||
2452 | fi | |
2453 | ||
2454 | fi | |
2455 | ||
2456 | # Find a good install program. We prefer a C program (faster), | |
2457 | # so one script is as good as another. But avoid the broken or | |
2458 | # incompatible versions: | |
2459 | # SysV /etc/install, /usr/sbin/install | |
2460 | # SunOS /usr/etc/install | |
2461 | # IRIX /sbin/install | |
2462 | # AIX /bin/install | |
2463 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2464 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2465 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2466 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2467 | # ./install, which can be erroneously created by make from ./install.sh. | |
d33f8f06 | 2468 | echo "$as_me:2468: checking for a BSD compatible install" >&5 |
8fe44445 | 2469 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
2470 | if test -z "$INSTALL"; then | |
2471 | if test "${ac_cv_path_install+set}" = set; then | |
2472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2473 | else | |
2474 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2475 | for ac_dir in $PATH; do | |
2476 | IFS=$ac_save_IFS | |
2477 | # Account for people who put trailing slashes in PATH elements. | |
2478 | case $ac_dir/ in | |
2479 | / | ./ | .// | /cC/* \ | |
2480 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
2481 | | /usr/ucb/* ) ;; | |
2482 | *) | |
2483 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2484 | # Don't use installbsd from OSF since it installs stuff as root | |
2485 | # by default. | |
2486 | for ac_prog in ginstall scoinst install; do | |
2487 | if $as_executable_p "$ac_dir/$ac_prog"; then | |
2488 | if test $ac_prog = install && | |
2489 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
2490 | # AIX install. It has an incompatible calling convention. | |
2491 | : | |
2492 | elif test $ac_prog = install && | |
2493 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
2494 | # program-specific install script used by HP pwplus--don't use. | |
2495 | : | |
2496 | else | |
2497 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2498 | break 2 | |
2499 | fi | |
2500 | fi | |
2501 | done | |
2502 | ;; | |
2503 | esac | |
2504 | done | |
2505 | ||
2506 | fi | |
2507 | if test "${ac_cv_path_install+set}" = set; then | |
2508 | INSTALL=$ac_cv_path_install | |
2509 | else | |
2510 | # As a last resort, use the slow shell script. We don't cache a | |
2511 | # path for INSTALL within a source directory, because that will | |
2512 | # break other packages using the cache if that directory is | |
2513 | # removed, or if the path is relative. | |
2514 | INSTALL=$ac_install_sh | |
2515 | fi | |
2516 | fi | |
d33f8f06 | 2517 | echo "$as_me:2517: result: $INSTALL" >&5 |
8fe44445 | 2518 | echo "${ECHO_T}$INSTALL" >&6 |
2519 | ||
2520 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2521 | # It thinks the first close brace ends the variable substitution. | |
2522 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2523 | ||
2524 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2525 | ||
2526 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2527 | ||
d33f8f06 | 2528 | echo "$as_me:2528: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
8fe44445 | 2529 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
2530 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
2531 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2533 | else | |
2534 | cat >conftest.make <<\EOF | |
2535 | all: | |
2536 | @echo 'ac_maketemp="${MAKE}"' | |
2537 | EOF | |
2538 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2539 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2540 | if test -n "$ac_maketemp"; then | |
2541 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2542 | else | |
2543 | eval ac_cv_prog_make_${ac_make}_set=no | |
2544 | fi | |
2545 | rm -f conftest.make | |
2546 | fi | |
2547 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
d33f8f06 | 2548 | echo "$as_me:2548: result: yes" >&5 |
8fe44445 | 2549 | echo "${ECHO_T}yes" >&6 |
2550 | SET_MAKE= | |
2551 | else | |
d33f8f06 | 2552 | echo "$as_me:2552: result: no" >&5 |
8fe44445 | 2553 | echo "${ECHO_T}no" >&6 |
2554 | SET_MAKE="MAKE=${MAKE-make}" | |
2555 | fi | |
2556 | ||
d33f8f06 | 2557 | echo "$as_me:2557: checking whether ln -s works" >&5 |
8fe44445 | 2558 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
2559 | LN_S=$as_ln_s | |
2560 | if test "$LN_S" = "ln -s"; then | |
d33f8f06 | 2561 | echo "$as_me:2561: result: yes" >&5 |
8fe44445 | 2562 | echo "${ECHO_T}yes" >&6 |
2563 | else | |
d33f8f06 | 2564 | echo "$as_me:2564: result: no, using $LN_S" >&5 |
8fe44445 | 2565 | echo "${ECHO_T}no, using $LN_S" >&6 |
2566 | fi | |
2567 | ||
2568 | # Extract the first word of "bison", so it can be a program name with args. | |
2569 | set dummy bison; ac_word=$2 | |
d33f8f06 | 2570 | echo "$as_me:2570: checking for $ac_word" >&5 |
8fe44445 | 2571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2572 | if test "${ac_cv_prog_BISON+set}" = set; then | |
2573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2574 | else | |
2575 | if test -n "$BISON"; then | |
2576 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
2577 | else | |
2578 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2579 | ac_dummy="$PATH" | |
2580 | for ac_dir in $ac_dummy; do | |
2581 | IFS=$ac_save_IFS | |
2582 | test -z "$ac_dir" && ac_dir=. | |
2583 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2584 | ac_cv_prog_BISON="bison" | |
d33f8f06 | 2585 | echo "$as_me:2585: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2586 | break |
2587 | done | |
2588 | ||
2589 | test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="no" | |
2590 | fi | |
2591 | fi | |
2592 | BISON=$ac_cv_prog_BISON | |
2593 | if test -n "$BISON"; then | |
d33f8f06 | 2594 | echo "$as_me:2594: result: $BISON" >&5 |
8fe44445 | 2595 | echo "${ECHO_T}$BISON" >&6 |
2596 | else | |
d33f8f06 | 2597 | echo "$as_me:2597: result: no" >&5 |
8fe44445 | 2598 | echo "${ECHO_T}no" >&6 |
2599 | fi | |
2600 | ||
2601 | # Extract the first word of "grep", so it can be a program name with args. | |
2602 | set dummy grep; ac_word=$2 | |
d33f8f06 | 2603 | echo "$as_me:2603: checking for $ac_word" >&5 |
8fe44445 | 2604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2605 | if test "${ac_cv_prog_GREP+set}" = set; then | |
2606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2607 | else | |
2608 | if test -n "$GREP"; then | |
2609 | ac_cv_prog_GREP="$GREP" # Let the user override the test. | |
2610 | else | |
2611 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2612 | ac_dummy="$PATH" | |
2613 | for ac_dir in $ac_dummy; do | |
2614 | IFS=$ac_save_IFS | |
2615 | test -z "$ac_dir" && ac_dir=. | |
2616 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2617 | ac_cv_prog_GREP="grep" | |
d33f8f06 | 2618 | echo "$as_me:2618: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2619 | break |
2620 | done | |
2621 | ||
2622 | test -z "$ac_cv_prog_GREP" && ac_cv_prog_GREP="grep-is-missing" | |
2623 | fi | |
2624 | fi | |
2625 | GREP=$ac_cv_prog_GREP | |
2626 | if test -n "$GREP"; then | |
d33f8f06 | 2627 | echo "$as_me:2627: result: $GREP" >&5 |
8fe44445 | 2628 | echo "${ECHO_T}$GREP" >&6 |
2629 | else | |
d33f8f06 | 2630 | echo "$as_me:2630: result: no" >&5 |
8fe44445 | 2631 | echo "${ECHO_T}no" >&6 |
2632 | fi | |
2633 | ||
2634 | # Extract the first word of "diff", so it can be a program name with args. | |
2635 | set dummy diff; ac_word=$2 | |
d33f8f06 | 2636 | echo "$as_me:2636: checking for $ac_word" >&5 |
8fe44445 | 2637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2638 | if test "${ac_cv_prog_DIFF+set}" = set; then | |
2639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2640 | else | |
2641 | if test -n "$DIFF"; then | |
2642 | ac_cv_prog_DIFF="$DIFF" # Let the user override the test. | |
2643 | else | |
2644 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2645 | ac_dummy="$PATH" | |
2646 | for ac_dir in $ac_dummy; do | |
2647 | IFS=$ac_save_IFS | |
2648 | test -z "$ac_dir" && ac_dir=. | |
2649 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2650 | ac_cv_prog_DIFF="diff" | |
d33f8f06 | 2651 | echo "$as_me:2651: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2652 | break |
2653 | done | |
2654 | ||
2655 | test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff-is-missing" | |
2656 | fi | |
2657 | fi | |
2658 | DIFF=$ac_cv_prog_DIFF | |
2659 | if test -n "$DIFF"; then | |
d33f8f06 | 2660 | echo "$as_me:2660: result: $DIFF" >&5 |
8fe44445 | 2661 | echo "${ECHO_T}$DIFF" >&6 |
2662 | else | |
d33f8f06 | 2663 | echo "$as_me:2663: result: no" >&5 |
8fe44445 | 2664 | echo "${ECHO_T}no" >&6 |
2665 | fi | |
2666 | ||
2667 | # Extract the first word of "cat", so it can be a program name with args. | |
2668 | set dummy cat; ac_word=$2 | |
d33f8f06 | 2669 | echo "$as_me:2669: checking for $ac_word" >&5 |
8fe44445 | 2670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2671 | if test "${ac_cv_prog_CAT+set}" = set; then | |
2672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2673 | else | |
2674 | if test -n "$CAT"; then | |
2675 | ac_cv_prog_CAT="$CAT" # Let the user override the test. | |
2676 | else | |
2677 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2678 | ac_dummy="$PATH" | |
2679 | for ac_dir in $ac_dummy; do | |
2680 | IFS=$ac_save_IFS | |
2681 | test -z "$ac_dir" && ac_dir=. | |
2682 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2683 | ac_cv_prog_CAT="cat" | |
d33f8f06 | 2684 | echo "$as_me:2684: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2685 | break |
2686 | done | |
2687 | ||
2688 | test -z "$ac_cv_prog_CAT" && ac_cv_prog_CAT="cat-is-missing" | |
2689 | fi | |
2690 | fi | |
2691 | CAT=$ac_cv_prog_CAT | |
2692 | if test -n "$CAT"; then | |
d33f8f06 | 2693 | echo "$as_me:2693: result: $CAT" >&5 |
8fe44445 | 2694 | echo "${ECHO_T}$CAT" >&6 |
2695 | else | |
d33f8f06 | 2696 | echo "$as_me:2696: result: no" >&5 |
8fe44445 | 2697 | echo "${ECHO_T}no" >&6 |
2698 | fi | |
2699 | ||
2700 | # Extract the first word of "rm", so it can be a program name with args. | |
2701 | set dummy rm; ac_word=$2 | |
d33f8f06 | 2702 | echo "$as_me:2702: checking for $ac_word" >&5 |
8fe44445 | 2703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2704 | if test "${ac_cv_prog_RM+set}" = set; then | |
2705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2706 | else | |
2707 | if test -n "$RM"; then | |
2708 | ac_cv_prog_RM="$RM" # Let the user override the test. | |
2709 | else | |
2710 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2711 | ac_dummy="$PATH" | |
2712 | for ac_dir in $ac_dummy; do | |
2713 | IFS=$ac_save_IFS | |
2714 | test -z "$ac_dir" && ac_dir=. | |
2715 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2716 | ac_cv_prog_RM="rm" | |
d33f8f06 | 2717 | echo "$as_me:2717: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2718 | break |
2719 | done | |
2720 | ||
2721 | test -z "$ac_cv_prog_RM" && ac_cv_prog_RM="rm-is-missing" | |
2722 | fi | |
2723 | fi | |
2724 | RM=$ac_cv_prog_RM | |
2725 | if test -n "$RM"; then | |
d33f8f06 | 2726 | echo "$as_me:2726: result: $RM" >&5 |
8fe44445 | 2727 | echo "${ECHO_T}$RM" >&6 |
2728 | else | |
d33f8f06 | 2729 | echo "$as_me:2729: result: no" >&5 |
8fe44445 | 2730 | echo "${ECHO_T}no" >&6 |
2731 | fi | |
2732 | ||
2733 | # Extract the first word of "mv", so it can be a program name with args. | |
2734 | set dummy mv; ac_word=$2 | |
d33f8f06 | 2735 | echo "$as_me:2735: checking for $ac_word" >&5 |
8fe44445 | 2736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2737 | if test "${ac_cv_prog_MV+set}" = set; then | |
2738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2739 | else | |
2740 | if test -n "$MV"; then | |
2741 | ac_cv_prog_MV="$MV" # Let the user override the test. | |
2742 | else | |
2743 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2744 | ac_dummy="$PATH" | |
2745 | for ac_dir in $ac_dummy; do | |
2746 | IFS=$ac_save_IFS | |
2747 | test -z "$ac_dir" && ac_dir=. | |
2748 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2749 | ac_cv_prog_MV="mv" | |
d33f8f06 | 2750 | echo "$as_me:2750: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2751 | break |
2752 | done | |
2753 | ||
2754 | test -z "$ac_cv_prog_MV" && ac_cv_prog_MV="mv-is-missing" | |
2755 | fi | |
2756 | fi | |
2757 | MV=$ac_cv_prog_MV | |
2758 | if test -n "$MV"; then | |
d33f8f06 | 2759 | echo "$as_me:2759: result: $MV" >&5 |
8fe44445 | 2760 | echo "${ECHO_T}$MV" >&6 |
2761 | else | |
d33f8f06 | 2762 | echo "$as_me:2762: result: no" >&5 |
8fe44445 | 2763 | echo "${ECHO_T}no" >&6 |
2764 | fi | |
2765 | ||
2766 | # Extract the first word of "cp", so it can be a program name with args. | |
2767 | set dummy cp; ac_word=$2 | |
d33f8f06 | 2768 | echo "$as_me:2768: checking for $ac_word" >&5 |
8fe44445 | 2769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2770 | if test "${ac_cv_prog_CP+set}" = set; then | |
2771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2772 | else | |
2773 | if test -n "$CP"; then | |
2774 | ac_cv_prog_CP="$CP" # Let the user override the test. | |
2775 | else | |
2776 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2777 | ac_dummy="$PATH" | |
2778 | for ac_dir in $ac_dummy; do | |
2779 | IFS=$ac_save_IFS | |
2780 | test -z "$ac_dir" && ac_dir=. | |
2781 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2782 | ac_cv_prog_CP="cp" | |
d33f8f06 | 2783 | echo "$as_me:2783: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2784 | break |
2785 | done | |
2786 | ||
2787 | test -z "$ac_cv_prog_CP" && ac_cv_prog_CP="cp-is-missing" | |
2788 | fi | |
2789 | fi | |
2790 | CP=$ac_cv_prog_CP | |
2791 | if test -n "$CP"; then | |
d33f8f06 | 2792 | echo "$as_me:2792: result: $CP" >&5 |
8fe44445 | 2793 | echo "${ECHO_T}$CP" >&6 |
2794 | else | |
d33f8f06 | 2795 | echo "$as_me:2795: result: no" >&5 |
8fe44445 | 2796 | echo "${ECHO_T}no" >&6 |
2797 | fi | |
2798 | ||
d33f8f06 | 2799 | echo "$as_me:2799: checking whether we need _ALL_SOURCE to expose mode_t" >&5 |
55c181ed | 2800 | echo $ECHO_N "checking whether we need _ALL_SOURCE to expose mode_t... $ECHO_C" >&6 |
2801 | all=no | |
2802 | cat >conftest.$ac_ext <<_ACEOF | |
d33f8f06 | 2803 | #line 2803 "configure" |
55c181ed | 2804 | #include "confdefs.h" |
2805 | ||
2806 | #include <stdio.h> | |
2807 | mode_t x; | |
2808 | ||
2809 | int | |
2810 | main () | |
2811 | { | |
2812 | ||
2813 | ; | |
2814 | return 0; | |
2815 | } | |
2816 | _ACEOF | |
2817 | rm -f conftest.$ac_objext | |
d33f8f06 | 2818 | if { (eval echo "$as_me:2818: \"$ac_compile\"") >&5 |
55c181ed | 2819 | (eval $ac_compile) 2>&5 |
2820 | ac_status=$? | |
d33f8f06 | 2821 | echo "$as_me:2821: \$? = $ac_status" >&5 |
55c181ed | 2822 | (exit $ac_status); } && |
2823 | { ac_try='test -s conftest.$ac_objext' | |
d33f8f06 | 2824 | { (eval echo "$as_me:2824: \"$ac_try\"") >&5 |
55c181ed | 2825 | (eval $ac_try) 2>&5 |
2826 | ac_status=$? | |
d33f8f06 | 2827 | echo "$as_me:2827: \$? = $ac_status" >&5 |
55c181ed | 2828 | (exit $ac_status); }; }; then |
2829 | : | |
2830 | else | |
2831 | echo "$as_me: failed program was:" >&5 | |
2832 | cat conftest.$ac_ext >&5 | |
2833 | all=maybe | |
2834 | fi | |
2835 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2836 | if test $all = maybe ; then | |
2837 | cat >conftest.$ac_ext <<_ACEOF | |
d33f8f06 | 2838 | #line 2838 "configure" |
55c181ed | 2839 | #include "confdefs.h" |
2840 | ||
2841 | #define _ALL_SOURCE | |
2842 | #include <stdio.h> | |
2843 | mode_t x; | |
2844 | ||
2845 | int | |
2846 | main () | |
2847 | { | |
2848 | ||
2849 | ; | |
2850 | return 0; | |
2851 | } | |
2852 | _ACEOF | |
2853 | rm -f conftest.$ac_objext | |
d33f8f06 | 2854 | if { (eval echo "$as_me:2854: \"$ac_compile\"") >&5 |
55c181ed | 2855 | (eval $ac_compile) 2>&5 |
2856 | ac_status=$? | |
d33f8f06 | 2857 | echo "$as_me:2857: \$? = $ac_status" >&5 |
55c181ed | 2858 | (exit $ac_status); } && |
2859 | { ac_try='test -s conftest.$ac_objext' | |
d33f8f06 | 2860 | { (eval echo "$as_me:2860: \"$ac_try\"") >&5 |
55c181ed | 2861 | (eval $ac_try) 2>&5 |
2862 | ac_status=$? | |
d33f8f06 | 2863 | echo "$as_me:2863: \$? = $ac_status" >&5 |
55c181ed | 2864 | (exit $ac_status); }; }; then |
2865 | cat >>confdefs.h <<\EOF | |
2866 | #define _ALL_SOURCE 1 | |
2867 | EOF | |
2868 | all=yes | |
2869 | else | |
2870 | echo "$as_me: failed program was:" >&5 | |
2871 | cat conftest.$ac_ext >&5 | |
2872 | fi | |
2873 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2874 | fi | |
2875 | if test $all = maybe ; then all=no ; fi | |
d33f8f06 | 2876 | echo "$as_me:2876: result: $all" >&5 |
55c181ed | 2877 | echo "${ECHO_T}$all" >&6 |
2878 | ||
8fe44445 | 2879 | LCLOBJ='$(lcl_OBJECTS)' |
2880 | ||
2881 | # Check whether --with-lcl or --without-lcl was given. | |
2882 | if test "${with_lcl+set}" = set; then | |
2883 | withval="$with_lcl" | |
2884 | ac_cv_use_lcl=$withval | |
2885 | else | |
d33f8f06 | 2886 | echo "$as_me:2886: checking whether to include support for LCL files" >&5 |
8fe44445 | 2887 | echo $ECHO_N "checking whether to include support for LCL files... $ECHO_C" >&6 |
2888 | if test "${ac_cv_use_lcl+set}" = set; then | |
2889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2890 | else | |
2891 | ac_cv_use_lcl=yes | |
2892 | fi | |
d33f8f06 | 2893 | echo "$as_me:2893: result: $ac_cv_use_lcl" >&5 |
8fe44445 | 2894 | echo "${ECHO_T}$ac_cv_use_lcl" >&6 |
2895 | fi; | |
2896 | if test x$ac_cv_use_lcl != xyes; then | |
2897 | LCLOBJ= | |
2898 | ||
2899 | cat >>confdefs.h <<\EOF | |
2900 | #define NOLCL 1 | |
2901 | EOF | |
2902 | ||
2903 | fi | |
2904 | ||
2905 | # Make sure we have an actual value for $prefix | |
2906 | myprefix=$prefix | |
2907 | test x$myprefix = xNONE && myprefix=$ac_default_prefix | |
2908 | ||
2909 | # cpplib.h defines 2 include dirs; one is $includedir, the other is gcc's | |
2910 | # include dir. Not the most portable setup, but let's do our best. | |
2911 | if test x$ac_cv_c_compiler_gnu = xyes; then | |
e5f31c00 | 2912 | |
2913 | # This breaks on gcc-3.0 on redhat fixing drl 11-15-2001 | |
2914 | # GCC_INCLUDE_DIR=`LANGUAGE= LANG= $CC -v 2>&1 | sed -e '/^gcc/ d' -e 's/.* \(.*\)specs/\1include/'` | |
f2b6724f | 2915 | GCC_INCLUDE_DIR=/usr/include |
2916 | # was /usr/lib/gcc-lib/i386-linux/2.7.2.1/include | |
e5f31c00 | 2917 | # GCC_INCLUDE_DIR=`LANGUAGE= LANG= $CC -v 2>&1 | sed -n -e '/^gcc/ d' -e 's/.* \(.*\)specs/\1include/p'` |
8fe44445 | 2918 | |
2919 | cat >>confdefs.h <<EOF | |
2920 | #define GCC_INCLUDE_DIR "$GCC_INCLUDE_DIR" | |
2921 | EOF | |
2922 | ||
2923 | fi | |
2924 | ||
2925 | cat >>confdefs.h <<EOF | |
2926 | #define GCC_INCLUDE_DIR2 "$myprefix/include" | |
2927 | EOF | |
2928 | ||
2929 | # These used to be in local_constants.h | |
2930 | ||
2931 | cat >>confdefs.h <<EOF | |
2932 | #define SYSTEM_LIBDIR "$myprefix/include" | |
2933 | EOF | |
2934 | ||
2935 | cat >>confdefs.h <<EOF | |
11db3170 | 2936 | #define DEFAULT_LARCHPATH ".$PATH_SEPARATOR$myprefix/share/splint/lib$PATH_SEPARATOR`pwd`/lib$PATH_SEPARATOR" |
8fe44445 | 2937 | EOF |
2938 | ||
2939 | cat >>confdefs.h <<EOF | |
11db3170 | 2940 | #define DEFAULT_LCLIMPORTDIR ".$PATH_SEPARATOR$myprefix/share/splint/imports$PATH_SEPARATOR`pwd`/imports" |
8fe44445 | 2941 | EOF |
2942 | ||
2943 | # These used to be in herald.h | |
077d4458 | 2944 | LCL_PARSE_VERSION="Splint 3.0.1.4" |
8fe44445 | 2945 | |
2946 | cat >>confdefs.h <<EOF | |
146e25eb | 2947 | #define SPLINT_VERSION "$LCL_PARSE_VERSION --- `date +"%d %b %Y"`" |
8fe44445 | 2948 | EOF |
2949 | ||
2950 | cat >>confdefs.h <<EOF | |
2951 | #define LCL_PARSE_VERSION "$LCL_PARSE_VERSION" | |
2952 | EOF | |
2953 | ||
2954 | cat >>confdefs.h <<EOF | |
2955 | #define LCL_COMPILE "Compiled using $CC $CFLAGS on `uname -a` by `whoami`" | |
2956 | EOF | |
2957 | ||
2958 | cat >>confdefs.h <<\EOF | |
2959 | #define UNIX 1 | |
2960 | EOF | |
2961 | ||
f7bbce9e | 2962 | #just define some Header constants for now... |
2963 | ||
9882c722 | 2964 | UNAME=`uname` |
2965 | cat >>confdefs.h <<EOF | |
2966 | #define UNAME "${UNAME}" | |
2967 | EOF | |
2968 | ||
f7bbce9e | 2969 | cat >>confdefs.h <<EOF |
2970 | #define BUILD "${build}" | |
2971 | EOF | |
2972 | ||
2973 | cat >>confdefs.h <<EOF | |
2974 | #define HOST "${host}" | |
2975 | EOF | |
2976 | ||
2977 | cat >>confdefs.h <<EOF | |
2978 | #define TARGET "${target}" | |
2979 | EOF | |
2980 | ||
2981 | cat >>confdefs.h <<EOF | |
2982 | #define BUILD_ALIAS "${build_alias}" | |
2983 | EOF | |
2984 | ||
2985 | cat >>confdefs.h <<EOF | |
2986 | #define HOST_ALIAS "${host_alias}" | |
2987 | EOF | |
2988 | ||
2989 | cat >>confdefs.h <<EOF | |
2990 | #define TARGET_ALIAS "${TARGET_ALIAS}" | |
2991 | EOF | |
2992 | ||
2993 | cat >>confdefs.h <<EOF | |
2994 | #define BUILD_CPU "${build_cpu}" | |
2995 | EOF | |
2996 | ||
2997 | cat >>confdefs.h <<EOF | |
2998 | #define HOST_CPU "$host_cpu" | |
2999 | EOF | |
3000 | ||
3001 | cat >>confdefs.h <<EOF | |
3002 | #define TARGET_CPU "${target_cpu}" | |
3003 | EOF | |
3004 | ||
3005 | cat >>confdefs.h <<EOF | |
3006 | #define BUILD_VENDOR "${build_vendor}" | |
3007 | EOF | |
3008 | ||
3009 | cat >>confdefs.h <<EOF | |
3010 | #define HOST_VENDOR "${host_vendor}" | |
3011 | EOF | |
3012 | ||
3013 | cat >>confdefs.h <<EOF | |
3014 | #define TARGET_VENDOR "${target_vendor}" | |
3015 | EOF | |
3016 | ||
3017 | cat >>confdefs.h <<EOF | |
3018 | #define BUILD_OS "${build_os}" | |
3019 | EOF | |
3020 | ||
3021 | cat >>confdefs.h <<EOF | |
3022 | #define HOST_OS "${host_os}" | |
3023 | EOF | |
3024 | ||
3025 | cat >>confdefs.h <<EOF | |
3026 | #define TARGET_OS "${target_os}" | |
3027 | EOF | |
3028 | ||
fc97bef4 | 3029 | ac_config_files="$ac_config_files Makefile imports/Makefile lib/Makefile src/Makefile test/Makefile doc/Makefile bin/Makefile" |
8fe44445 | 3030 | |
3031 | cat >confcache <<\_ACEOF | |
3032 | # This file is a shell script that caches the results of configure | |
3033 | # tests run on this system so they can be shared between configure | |
3034 | # scripts and configure runs, see configure's option --config-cache. | |
3035 | # It is not useful on other systems. If it contains results you don't | |
3036 | # want to keep, you may remove or edit it. | |
3037 | # | |
3038 | # config.status only pays attention to the cache file if you give it | |
3039 | # the --recheck option to rerun configure. | |
3040 | # | |
3041 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | |
3042 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3043 | # following values. | |
3044 | ||
3045 | _ACEOF | |
3046 | ||
3047 | # The following way of writing the cache mishandles newlines in values, | |
3048 | # but we know of no workaround that is simple, portable, and efficient. | |
3049 | # So, don't put newlines in cache variables' values. | |
3050 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3051 | # and sets the high bit in the cache file unless we assign to the vars. | |
3052 | { | |
3053 | (set) 2>&1 | | |
3054 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
3055 | *ac_space=\ *) | |
3056 | # `set' does not quote correctly, so add quotes (double-quote | |
3057 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3058 | sed -n \ | |
3059 | "s/'/'\\\\''/g; | |
3060 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3061 | ;; | |
3062 | *) | |
3063 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3064 | sed -n \ | |
3065 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
3066 | ;; | |
3067 | esac; | |
3068 | } | | |
3069 | sed ' | |
3070 | t clear | |
3071 | : clear | |
3072 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3073 | t end | |
3074 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3075 | : end' >>confcache | |
3076 | if cmp -s $cache_file confcache; then :; else | |
3077 | if test -w $cache_file; then | |
3078 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
3079 | cat confcache >$cache_file | |
3080 | else | |
3081 | echo "not updating unwritable cache $cache_file" | |
3082 | fi | |
3083 | fi | |
3084 | rm -f confcache | |
3085 | ||
3086 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3087 | # Let make expand exec_prefix. | |
3088 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3089 | ||
3090 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
3091 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
3092 | # trailing colons and then remove the whole line if VPATH becomes empty | |
3093 | # (actually we leave an empty line to preserve line numbers). | |
3094 | if test "x$srcdir" = x.; then | |
3095 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
3096 | s/:*\$(srcdir):*/:/; | |
3097 | s/:*\${srcdir}:*/:/; | |
3098 | s/:*@srcdir@:*/:/; | |
3099 | s/^\([^=]*=[ ]*\):*/\1/; | |
3100 | s/:*$//; | |
3101 | s/^[^=]*=[ ]*$//; | |
3102 | }' | |
3103 | fi | |
3104 | ||
3105 | DEFS=-DHAVE_CONFIG_H | |
3106 | ||
3107 | : ${CONFIG_STATUS=./config.status} | |
3108 | ac_clean_files_save=$ac_clean_files | |
3109 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
d33f8f06 | 3110 | { echo "$as_me:3110: creating $CONFIG_STATUS" >&5 |
8fe44445 | 3111 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
3112 | cat >$CONFIG_STATUS <<_ACEOF | |
3113 | #! $SHELL | |
3114 | # Generated automatically by configure. | |
3115 | # Run this file to recreate the current configuration. | |
3116 | # Compiler output produced by configure, useful for debugging | |
3117 | # configure, is in config.log if it exists. | |
3118 | ||
3119 | debug=false | |
3120 | SHELL=\${CONFIG_SHELL-$SHELL} | |
3121 | ac_cs_invocation="\$0 \$@" | |
3122 | ||
3123 | _ACEOF | |
3124 | ||
3125 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3126 | # Be Bourne compatible | |
3127 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
3128 | emulate sh | |
3129 | NULLCMD=: | |
3130 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
3131 | set -o posix | |
3132 | fi | |
3133 | ||
3134 | # Name of the executable. | |
3135 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
3136 | ||
3137 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
3138 | as_expr=expr | |
3139 | else | |
3140 | as_expr=false | |
3141 | fi | |
3142 | ||
3143 | rm -f conf$$ conf$$.exe conf$$.file | |
3144 | echo >conf$$.file | |
3145 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
3146 | # We could just check for DJGPP; but this test a) works b) is more generic | |
3147 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
3148 | if test -f conf$$.exe; then | |
3149 | # Don't use ln at all; we don't have any links | |
3150 | as_ln_s='cp -p' | |
3151 | else | |
3152 | as_ln_s='ln -s' | |
3153 | fi | |
3154 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
3155 | as_ln_s=ln | |
3156 | else | |
3157 | as_ln_s='cp -p' | |
3158 | fi | |
3159 | rm -f conf$$ conf$$.exe conf$$.file | |
3160 | ||
3161 | as_executable_p="test -f" | |
3162 | ||
3163 | # Support unset when possible. | |
3164 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
3165 | as_unset=unset | |
3166 | else | |
3167 | as_unset=false | |
3168 | fi | |
3169 | ||
3170 | # NLS nuisances. | |
3171 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
3172 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
3173 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
3174 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
3175 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
3176 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
3177 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
3178 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
3179 | ||
3180 | # IFS | |
3181 | # We need space, tab and new line, in precisely that order. | |
3182 | as_nl=' | |
3183 | ' | |
3184 | IFS=" $as_nl" | |
3185 | ||
3186 | # CDPATH. | |
3187 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
3188 | ||
3189 | exec 6>&1 | |
3190 | ||
3191 | _ACEOF | |
3192 | ||
3193 | # Files that config.status was made for. | |
3194 | if test -n "$ac_config_files"; then | |
3195 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
3196 | fi | |
3197 | ||
3198 | if test -n "$ac_config_headers"; then | |
3199 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
3200 | fi | |
3201 | ||
3202 | if test -n "$ac_config_links"; then | |
3203 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
3204 | fi | |
3205 | ||
3206 | if test -n "$ac_config_commands"; then | |
3207 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
3208 | fi | |
3209 | ||
3210 | cat >>$CONFIG_STATUS <<\EOF | |
3211 | ||
3212 | ac_cs_usage="\ | |
3213 | \`$as_me' instantiates files from templates according to the | |
3214 | current configuration. | |
3215 | ||
3216 | Usage: $0 [OPTIONS] [FILE]... | |
3217 | ||
3218 | -h, --help print this help, then exit | |
3219 | -V, --version print version number, then exit | |
3220 | -d, --debug don't remove temporary files | |
3221 | --recheck update $as_me by reconfiguring in the same conditions | |
3222 | --file=FILE[:TEMPLATE] | |
3223 | instantiate the configuration file FILE | |
3224 | --header=FILE[:TEMPLATE] | |
3225 | instantiate the configuration header FILE | |
3226 | ||
3227 | Configuration files: | |
3228 | $config_files | |
3229 | ||
3230 | Configuration headers: | |
3231 | $config_headers | |
3232 | ||
3233 | Configuration commands: | |
3234 | $config_commands | |
3235 | ||
3236 | Report bugs to <bug-autoconf@gnu.org>." | |
3237 | EOF | |
3238 | ||
3239 | cat >>$CONFIG_STATUS <<EOF | |
3240 | ac_cs_version="\\ | |
077d4458 | 3241 | Splint config.status 3.0.1.4 |
8fe44445 | 3242 | configured by $0, generated by GNU Autoconf 2.52, |
3243 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
3244 | ||
3245 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
3246 | Free Software Foundation, Inc. | |
3247 | This config.status script is free software; the Free Software Foundation | |
3248 | gives unlimited permission to copy, distribute and modify it." | |
3249 | srcdir=$srcdir | |
3250 | INSTALL="$INSTALL" | |
3251 | EOF | |
3252 | ||
3253 | cat >>$CONFIG_STATUS <<\EOF | |
3254 | # If no file are specified by the user, then we need to provide default | |
3255 | # value. By we need to know if files were specified by the user. | |
3256 | ac_need_defaults=: | |
3257 | while test $# != 0 | |
3258 | do | |
3259 | case $1 in | |
3260 | --*=*) | |
3261 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
3262 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
3263 | shift | |
3264 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
3265 | shift | |
3266 | ;; | |
3267 | -*);; | |
3268 | *) # This is not an option, so the user has probably given explicit | |
3269 | # arguments. | |
3270 | ac_need_defaults=false;; | |
3271 | esac | |
3272 | ||
3273 | case $1 in | |
3274 | # Handling of the options. | |
3275 | EOF | |
3276 | cat >>$CONFIG_STATUS <<EOF | |
3277 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3278 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
3279 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
3280 | EOF | |
3281 | cat >>$CONFIG_STATUS <<\EOF | |
3282 | --version | --vers* | -V ) | |
3283 | echo "$ac_cs_version"; exit 0 ;; | |
3284 | --he | --h) | |
3285 | # Conflict between --help and --header | |
d33f8f06 | 3286 | { { echo "$as_me:3286: error: ambiguous option: $1 |
8fe44445 | 3287 | Try \`$0 --help' for more information." >&5 |
3288 | echo "$as_me: error: ambiguous option: $1 | |
3289 | Try \`$0 --help' for more information." >&2;} | |
3290 | { (exit 1); exit 1; }; };; | |
3291 | --help | --hel | -h ) | |
3292 | echo "$ac_cs_usage"; exit 0 ;; | |
3293 | --debug | --d* | -d ) | |
3294 | debug=: ;; | |
3295 | --file | --fil | --fi | --f ) | |
3296 | shift | |
3297 | CONFIG_FILES="$CONFIG_FILES $1" | |
3298 | ac_need_defaults=false;; | |
3299 | --header | --heade | --head | --hea ) | |
3300 | shift | |
3301 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
3302 | ac_need_defaults=false;; | |
3303 | ||
3304 | # This is an error. | |
d33f8f06 | 3305 | -*) { { echo "$as_me:3305: error: unrecognized option: $1 |
8fe44445 | 3306 | Try \`$0 --help' for more information." >&5 |
3307 | echo "$as_me: error: unrecognized option: $1 | |
3308 | Try \`$0 --help' for more information." >&2;} | |
3309 | { (exit 1); exit 1; }; } ;; | |
3310 | ||
3311 | *) ac_config_targets="$ac_config_targets $1" ;; | |
3312 | ||
3313 | esac | |
3314 | shift | |
3315 | done | |
3316 | ||
3317 | exec 5>>config.log | |
3318 | cat >&5 << _ACEOF | |
3319 | ||
3320 | ## ----------------------- ## | |
3321 | ## Running config.status. ## | |
3322 | ## ----------------------- ## | |
3323 | ||
077d4458 | 3324 | This file was extended by $as_me (Splint 3.0.1.4) 2.52, executed with |
8fe44445 | 3325 | CONFIG_FILES = $CONFIG_FILES |
3326 | CONFIG_HEADERS = $CONFIG_HEADERS | |
3327 | CONFIG_LINKS = $CONFIG_LINKS | |
3328 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3329 | > $ac_cs_invocation | |
3330 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
3331 | ||
3332 | _ACEOF | |
3333 | EOF | |
3334 | ||
3335 | cat >>$CONFIG_STATUS <<EOF | |
3336 | # | |
3337 | # INIT-COMMANDS section. | |
3338 | # | |
3339 | ||
8fe44445 | 3340 | EOF |
3341 | ||
3342 | cat >>$CONFIG_STATUS <<\EOF | |
3343 | for ac_config_target in $ac_config_targets | |
3344 | do | |
3345 | case "$ac_config_target" in | |
3346 | # Handling of arguments. | |
3347 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
3348 | "imports/Makefile" ) CONFIG_FILES="$CONFIG_FILES imports/Makefile" ;; | |
3349 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
3350 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
3351 | "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; | |
3739432e | 3352 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
fc97bef4 | 3353 | "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; |
8fe44445 | 3354 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
3355 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; | |
d33f8f06 | 3356 | *) { { echo "$as_me:3356: error: invalid argument: $ac_config_target" >&5 |
8fe44445 | 3357 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
3358 | { (exit 1); exit 1; }; };; | |
3359 | esac | |
3360 | done | |
3361 | ||
3362 | # If the user did not use the arguments to specify the items to instantiate, | |
3363 | # then the envvar interface is used. Set only those that are not. | |
3364 | # We use the long form for the default assignment because of an extremely | |
3365 | # bizarre bug on SunOS 4.1.3. | |
3366 | if $ac_need_defaults; then | |
3367 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
3368 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
3369 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
3370 | fi | |
3371 | ||
3372 | # Create a temporary directory, and hook for its removal unless debugging. | |
3373 | $debug || | |
3374 | { | |
3375 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
3376 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
3377 | } | |
3378 | ||
3379 | # Create a (secure) tmp directory for tmp files. | |
3380 | : ${TMPDIR=/tmp} | |
3381 | { | |
3382 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
3383 | test -n "$tmp" && test -d "$tmp" | |
3384 | } || | |
3385 | { | |
3386 | tmp=$TMPDIR/cs$$-$RANDOM | |
3387 | (umask 077 && mkdir $tmp) | |
3388 | } || | |
3389 | { | |
3390 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
3391 | { (exit 1); exit 1; } | |
3392 | } | |
3393 | ||
3394 | EOF | |
3395 | ||
3396 | cat >>$CONFIG_STATUS <<EOF | |
3397 | ||
3398 | # | |
3399 | # CONFIG_FILES section. | |
3400 | # | |
3401 | ||
3402 | # No need to generate the scripts if there are no CONFIG_FILES. | |
3403 | # This happens for instance when ./config.status config.h | |
3404 | if test -n "\$CONFIG_FILES"; then | |
3405 | # Protect against being on the right side of a sed subst in config.status. | |
3406 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
3407 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
3408 | s,@SHELL@,$SHELL,;t t | |
3409 | s,@exec_prefix@,$exec_prefix,;t t | |
3410 | s,@prefix@,$prefix,;t t | |
3411 | s,@program_transform_name@,$program_transform_name,;t t | |
3412 | s,@bindir@,$bindir,;t t | |
3413 | s,@sbindir@,$sbindir,;t t | |
3414 | s,@libexecdir@,$libexecdir,;t t | |
3415 | s,@datadir@,$datadir,;t t | |
3416 | s,@sysconfdir@,$sysconfdir,;t t | |
3417 | s,@sharedstatedir@,$sharedstatedir,;t t | |
3418 | s,@localstatedir@,$localstatedir,;t t | |
3419 | s,@libdir@,$libdir,;t t | |
3420 | s,@includedir@,$includedir,;t t | |
3421 | s,@oldincludedir@,$oldincludedir,;t t | |
3422 | s,@infodir@,$infodir,;t t | |
3423 | s,@mandir@,$mandir,;t t | |
3424 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
3425 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
3426 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
3427 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
3428 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
3429 | s,@build_alias@,$build_alias,;t t | |
3430 | s,@host_alias@,$host_alias,;t t | |
3431 | s,@target_alias@,$target_alias,;t t | |
3432 | s,@ECHO_C@,$ECHO_C,;t t | |
3433 | s,@ECHO_N@,$ECHO_N,;t t | |
3434 | s,@ECHO_T@,$ECHO_T,;t t | |
3435 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
3436 | s,@DEFS@,$DEFS,;t t | |
3437 | s,@LIBS@,$LIBS,;t t | |
3438 | s,@build@,$build,;t t | |
3439 | s,@build_cpu@,$build_cpu,;t t | |
3440 | s,@build_vendor@,$build_vendor,;t t | |
3441 | s,@build_os@,$build_os,;t t | |
3442 | s,@host@,$host,;t t | |
3443 | s,@host_cpu@,$host_cpu,;t t | |
3444 | s,@host_vendor@,$host_vendor,;t t | |
3445 | s,@host_os@,$host_os,;t t | |
f7bbce9e | 3446 | s,@target@,$target,;t t |
3447 | s,@target_cpu@,$target_cpu,;t t | |
3448 | s,@target_vendor@,$target_vendor,;t t | |
3449 | s,@target_os@,$target_os,;t t | |
8fe44445 | 3450 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
3451 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
3452 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
3453 | s,@PACKAGE@,$PACKAGE,;t t | |
3454 | s,@VERSION@,$VERSION,;t t | |
8fe44445 | 3455 | s,@ACLOCAL@,$ACLOCAL,;t t |
3456 | s,@AUTOCONF@,$AUTOCONF,;t t | |
3457 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
3458 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
3459 | s,@MAKEINFO@,$MAKEINFO,;t t | |
8fe44445 | 3460 | s,@SET_MAKE@,$SET_MAKE,;t t |
c1dda563 | 3461 | s,@CC@,$CC,;t t |
3462 | s,@CFLAGS@,$CFLAGS,;t t | |
8fe44445 | 3463 | s,@LDFLAGS@,$LDFLAGS,;t t |
3464 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
c1dda563 | 3465 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
d33f8f06 | 3466 | s,@EXEEXT@,$EXEEXT,;t t |
3467 | s,@OBJEXT@,$OBJEXT,;t t | |
8fe44445 | 3468 | s,@CPP@,$CPP,;t t |
3469 | s,@LEX@,$LEX,;t t | |
3470 | s,@LEXLIB@,$LEXLIB,;t t | |
3471 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
3472 | s,@LN_S@,$LN_S,;t t | |
3473 | s,@BISON@,$BISON,;t t | |
3474 | s,@GREP@,$GREP,;t t | |
3475 | s,@DIFF@,$DIFF,;t t | |
3476 | s,@CAT@,$CAT,;t t | |
3477 | s,@RM@,$RM,;t t | |
3478 | s,@MV@,$MV,;t t | |
3479 | s,@CP@,$CP,;t t | |
3480 | s,@LCLOBJ@,$LCLOBJ,;t t | |
3481 | CEOF | |
3482 | ||
3483 | EOF | |
3484 | ||
3485 | cat >>$CONFIG_STATUS <<\EOF | |
3486 | # Split the substitutions into bite-sized pieces for seds with | |
3487 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
3488 | ac_max_sed_lines=48 | |
3489 | ac_sed_frag=1 # Number of current file. | |
3490 | ac_beg=1 # First line for current file. | |
3491 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
3492 | ac_more_lines=: | |
3493 | ac_sed_cmds= | |
3494 | while $ac_more_lines; do | |
3495 | if test $ac_beg -gt 1; then | |
3496 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
3497 | else | |
3498 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
3499 | fi | |
3500 | if test ! -s $tmp/subs.frag; then | |
3501 | ac_more_lines=false | |
3502 | else | |
3503 | # The purpose of the label and of the branching condition is to | |
3504 | # speed up the sed processing (if there are no `@' at all, there | |
3505 | # is no need to browse any of the substitutions). | |
3506 | # These are the two extra sed commands mentioned above. | |
3507 | (echo ':t | |
3508 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
3509 | if test -z "$ac_sed_cmds"; then | |
3510 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
3511 | else | |
3512 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
3513 | fi | |
3514 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
3515 | ac_beg=$ac_end | |
3516 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
3517 | fi | |
3518 | done | |
3519 | if test -z "$ac_sed_cmds"; then | |
3520 | ac_sed_cmds=cat | |
3521 | fi | |
3522 | fi # test -n "$CONFIG_FILES" | |
3523 | ||
3524 | EOF | |
3525 | cat >>$CONFIG_STATUS <<\EOF | |
3526 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
3527 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3528 | case $ac_file in | |
3529 | - | *:- | *:-:* ) # input from stdin | |
3530 | cat >$tmp/stdin | |
3531 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3532 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3533 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3534 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3535 | * ) ac_file_in=$ac_file.in ;; | |
3536 | esac | |
3537 | ||
3538 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
3539 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3540 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3541 | X"$ac_file" : 'X\(//\)$' \| \ | |
3542 | X"$ac_file" : 'X\(/\)' \| \ | |
3543 | . : '\(.\)' 2>/dev/null || | |
3544 | echo X"$ac_file" | | |
3545 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
3546 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
3547 | /^X\(\/\/\)$/{ s//\1/; q; } | |
3548 | /^X\(\/\).*/{ s//\1/; q; } | |
3549 | s/.*/./; q'` | |
3550 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3551 | { case "$ac_dir" in | |
3552 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
3553 | *) as_incr_dir=.;; | |
3554 | esac | |
3555 | as_dummy="$ac_dir" | |
3556 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
3557 | case $as_mkdir_dir in | |
3558 | # Skip DOS drivespec | |
3559 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
3560 | *) | |
3561 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
3562 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
3563 | ;; | |
3564 | esac | |
3565 | done; } | |
3566 | ||
3567 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | |
3568 | # A "../" for each directory in $ac_dir_suffix. | |
3569 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | |
3570 | else | |
3571 | ac_dir_suffix= ac_dots= | |
3572 | fi | |
3573 | ||
3574 | case $srcdir in | |
3575 | .) ac_srcdir=. | |
3576 | if test -z "$ac_dots"; then | |
3577 | ac_top_srcdir=. | |
3578 | else | |
3579 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
3580 | fi ;; | |
3581 | [\\/]* | ?:[\\/]* ) | |
3582 | ac_srcdir=$srcdir$ac_dir_suffix; | |
3583 | ac_top_srcdir=$srcdir ;; | |
3584 | *) # Relative path. | |
3585 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix | |
3586 | ac_top_srcdir=$ac_dots$srcdir ;; | |
3587 | esac | |
3588 | ||
3589 | case $INSTALL in | |
3590 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
3591 | *) ac_INSTALL=$ac_dots$INSTALL ;; | |
3592 | esac | |
3593 | ||
3594 | if test x"$ac_file" != x-; then | |
d33f8f06 | 3595 | { echo "$as_me:3595: creating $ac_file" >&5 |
8fe44445 | 3596 | echo "$as_me: creating $ac_file" >&6;} |
3597 | rm -f "$ac_file" | |
3598 | fi | |
3599 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
3600 | # use $as_me), people would be surprised to read: | |
3601 | # /* config.h. Generated automatically by config.status. */ | |
3602 | configure_input="Generated automatically from `echo $ac_file_in | | |
3603 | sed 's,.*/,,'` by configure." | |
3604 | ||
3605 | # First look for the input files in the build tree, otherwise in the | |
3606 | # src tree. | |
3607 | ac_file_inputs=`IFS=: | |
3608 | for f in $ac_file_in; do | |
3609 | case $f in | |
3610 | -) echo $tmp/stdin ;; | |
3611 | [\\/$]*) | |
3612 | # Absolute (can't be DOS-style, as IFS=:) | |
d33f8f06 | 3613 | test -f "$f" || { { echo "$as_me:3613: error: cannot find input file: $f" >&5 |
8fe44445 | 3614 | echo "$as_me: error: cannot find input file: $f" >&2;} |
3615 | { (exit 1); exit 1; }; } | |
3616 | echo $f;; | |
3617 | *) # Relative | |
3618 | if test -f "$f"; then | |
3619 | # Build tree | |
3620 | echo $f | |
3621 | elif test -f "$srcdir/$f"; then | |
3622 | # Source tree | |
3623 | echo $srcdir/$f | |
3624 | else | |
3625 | # /dev/null tree | |
d33f8f06 | 3626 | { { echo "$as_me:3626: error: cannot find input file: $f" >&5 |
8fe44445 | 3627 | echo "$as_me: error: cannot find input file: $f" >&2;} |
3628 | { (exit 1); exit 1; }; } | |
3629 | fi;; | |
3630 | esac | |
3631 | done` || { (exit 1); exit 1; } | |
3632 | EOF | |
3633 | cat >>$CONFIG_STATUS <<EOF | |
3634 | sed "$ac_vpsub | |
3635 | $extrasub | |
3636 | EOF | |
3637 | cat >>$CONFIG_STATUS <<\EOF | |
3638 | :t | |
3639 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3640 | s,@configure_input@,$configure_input,;t t | |
3641 | s,@srcdir@,$ac_srcdir,;t t | |
3642 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
3643 | s,@INSTALL@,$ac_INSTALL,;t t | |
3644 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
3645 | rm -f $tmp/stdin | |
3646 | if test x"$ac_file" != x-; then | |
3647 | mv $tmp/out $ac_file | |
3648 | else | |
3649 | cat $tmp/out | |
3650 | rm -f $tmp/out | |
3651 | fi | |
3652 | ||
3653 | done | |
3654 | EOF | |
3655 | cat >>$CONFIG_STATUS <<\EOF | |
3656 | ||
3657 | # | |
3658 | # CONFIG_HEADER section. | |
3659 | # | |
3660 | ||
3661 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
3662 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
3663 | # | |
3664 | # ac_d sets the value in "#define NAME VALUE" lines. | |
3665 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
3666 | ac_dB='[ ].*$,\1#\2' | |
3667 | ac_dC=' ' | |
3668 | ac_dD=',;t' | |
3669 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
3670 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3671 | ac_uB='$,\1#\2define\3' | |
3672 | ac_uC=' ' | |
3673 | ac_uD=',;t' | |
3674 | ||
3675 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
3676 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3677 | case $ac_file in | |
3678 | - | *:- | *:-:* ) # input from stdin | |
3679 | cat >$tmp/stdin | |
3680 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3681 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3682 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3683 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3684 | * ) ac_file_in=$ac_file.in ;; | |
3685 | esac | |
3686 | ||
d33f8f06 | 3687 | test x"$ac_file" != x- && { echo "$as_me:3687: creating $ac_file" >&5 |
8fe44445 | 3688 | echo "$as_me: creating $ac_file" >&6;} |
3689 | ||
3690 | # First look for the input files in the build tree, otherwise in the | |
3691 | # src tree. | |
3692 | ac_file_inputs=`IFS=: | |
3693 | for f in $ac_file_in; do | |
3694 | case $f in | |
3695 | -) echo $tmp/stdin ;; | |
3696 | [\\/$]*) | |
3697 | # Absolute (can't be DOS-style, as IFS=:) | |
d33f8f06 | 3698 | test -f "$f" || { { echo "$as_me:3698: error: cannot find input file: $f" >&5 |
8fe44445 | 3699 | echo "$as_me: error: cannot find input file: $f" >&2;} |
3700 | { (exit 1); exit 1; }; } | |
3701 | echo $f;; | |
3702 | *) # Relative | |
3703 | if test -f "$f"; then | |
3704 | # Build tree | |
3705 | echo $f | |
3706 | elif test -f "$srcdir/$f"; then | |
3707 | # Source tree | |
3708 | echo $srcdir/$f | |
3709 | else | |
3710 | # /dev/null tree | |
d33f8f06 | 3711 | { { echo "$as_me:3711: error: cannot find input file: $f" >&5 |
8fe44445 | 3712 | echo "$as_me: error: cannot find input file: $f" >&2;} |
3713 | { (exit 1); exit 1; }; } | |
3714 | fi;; | |
3715 | esac | |
3716 | done` || { (exit 1); exit 1; } | |
3717 | # Remove the trailing spaces. | |
3718 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
3719 | ||
3720 | EOF | |
3721 | ||
3722 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
3723 | # `conftest.undefs', that substitutes the proper values into | |
3724 | # config.h.in to produce config.h. The first handles `#define' | |
3725 | # templates, and the second `#undef' templates. | |
3726 | # And first: Protect against being on the right side of a sed subst in | |
3727 | # config.status. Protect against being in an unquoted here document | |
3728 | # in config.status. | |
3729 | rm -f conftest.defines conftest.undefs | |
3730 | # Using a here document instead of a string reduces the quoting nightmare. | |
3731 | # Putting comments in sed scripts is not portable. | |
3732 | # | |
3733 | # `end' is used to avoid that the second main sed command (meant for | |
3734 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
3735 | # See the Autoconf documentation for `clear'. | |
3736 | cat >confdef2sed.sed <<\EOF | |
3737 | s/[\\&,]/\\&/g | |
3738 | s,[\\$`],\\&,g | |
3739 | t clear | |
3740 | : clear | |
3741 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
3742 | t end | |
3743 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
3744 | : end | |
3745 | EOF | |
3746 | # If some macros were called several times there might be several times | |
3747 | # the same #defines, which is useless. Nevertheless, we may not want to | |
3748 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
3749 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
3750 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
3751 | rm -f confdef2sed.sed | |
3752 | ||
3753 | # This sed command replaces #undef with comments. This is necessary, for | |
3754 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
3755 | # on some systems where configure will not decide to define it. | |
3756 | cat >>conftest.undefs <<\EOF | |
3757 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
3758 | EOF | |
3759 | ||
3760 | # Break up conftest.defines because some shells have a limit on the size | |
3761 | # of here documents, and old seds have small limits too (100 cmds). | |
3762 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
3763 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
3764 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
3765 | echo ' :' >>$CONFIG_STATUS | |
3766 | rm -f conftest.tail | |
3767 | while grep . conftest.defines >/dev/null | |
3768 | do | |
3769 | # Write a limited-size here document to $tmp/defines.sed. | |
3770 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
3771 | # Speed up: don't consider the non `#define' lines. | |
3772 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
3773 | # Work around the forget-to-reset-the-flag bug. | |
3774 | echo 't clr' >>$CONFIG_STATUS | |
3775 | echo ': clr' >>$CONFIG_STATUS | |
3776 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
3777 | echo 'CEOF | |
3778 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
3779 | rm -f $tmp/in | |
3780 | mv $tmp/out $tmp/in | |
3781 | ' >>$CONFIG_STATUS | |
3782 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
3783 | rm -f conftest.defines | |
3784 | mv conftest.tail conftest.defines | |
3785 | done | |
3786 | rm -f conftest.defines | |
3787 | echo ' fi # egrep' >>$CONFIG_STATUS | |
3788 | echo >>$CONFIG_STATUS | |
3789 | ||
3790 | # Break up conftest.undefs because some shells have a limit on the size | |
3791 | # of here documents, and old seds have small limits too (100 cmds). | |
3792 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
3793 | rm -f conftest.tail | |
3794 | while grep . conftest.undefs >/dev/null | |
3795 | do | |
3796 | # Write a limited-size here document to $tmp/undefs.sed. | |
3797 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
3798 | # Speed up: don't consider the non `#undef' | |
3799 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
3800 | # Work around the forget-to-reset-the-flag bug. | |
3801 | echo 't clr' >>$CONFIG_STATUS | |
3802 | echo ': clr' >>$CONFIG_STATUS | |
3803 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
3804 | echo 'CEOF | |
3805 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
3806 | rm -f $tmp/in | |
3807 | mv $tmp/out $tmp/in | |
3808 | ' >>$CONFIG_STATUS | |
3809 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
3810 | rm -f conftest.undefs | |
3811 | mv conftest.tail conftest.undefs | |
3812 | done | |
3813 | rm -f conftest.undefs | |
3814 | ||
3815 | cat >>$CONFIG_STATUS <<\EOF | |
3816 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
3817 | # use $as_me), people would be surprised to read: | |
3818 | # /* config.h. Generated automatically by config.status. */ | |
3819 | if test x"$ac_file" = x-; then | |
3820 | echo "/* Generated automatically by configure. */" >$tmp/config.h | |
3821 | else | |
3822 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h | |
3823 | fi | |
3824 | cat $tmp/in >>$tmp/config.h | |
3825 | rm -f $tmp/in | |
3826 | if test x"$ac_file" != x-; then | |
3827 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
d33f8f06 | 3828 | { echo "$as_me:3828: $ac_file is unchanged" >&5 |
8fe44445 | 3829 | echo "$as_me: $ac_file is unchanged" >&6;} |
3830 | else | |
3831 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3832 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3833 | X"$ac_file" : 'X\(//\)$' \| \ | |
3834 | X"$ac_file" : 'X\(/\)' \| \ | |
3835 | . : '\(.\)' 2>/dev/null || | |
3836 | echo X"$ac_file" | | |
3837 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
3838 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
3839 | /^X\(\/\/\)$/{ s//\1/; q; } | |
3840 | /^X\(\/\).*/{ s//\1/; q; } | |
3841 | s/.*/./; q'` | |
3842 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3843 | { case "$ac_dir" in | |
3844 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
3845 | *) as_incr_dir=.;; | |
3846 | esac | |
3847 | as_dummy="$ac_dir" | |
3848 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
3849 | case $as_mkdir_dir in | |
3850 | # Skip DOS drivespec | |
3851 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
3852 | *) | |
3853 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
3854 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
3855 | ;; | |
3856 | esac | |
3857 | done; } | |
3858 | ||
3859 | fi | |
3860 | rm -f $ac_file | |
3861 | mv $tmp/config.h $ac_file | |
3862 | fi | |
3863 | else | |
3864 | cat $tmp/config.h | |
3865 | rm -f $tmp/config.h | |
3866 | fi | |
8fe44445 | 3867 | done |
3868 | EOF | |
3869 | cat >>$CONFIG_STATUS <<\EOF | |
3870 | ||
3871 | # | |
3872 | # CONFIG_COMMANDS section. | |
3873 | # | |
3874 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
3875 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
3876 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3877 | ||
3878 | case $ac_dest in | |
d33f8f06 | 3879 | default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; |
8fe44445 | 3880 | esac |
3881 | done | |
3882 | EOF | |
3883 | ||
3884 | cat >>$CONFIG_STATUS <<\EOF | |
3885 | ||
3886 | { (exit 0); exit 0; } | |
3887 | EOF | |
3888 | chmod +x $CONFIG_STATUS | |
3889 | ac_clean_files=$ac_clean_files_save | |
3890 | ||
3891 | # configure is writing to config.log, and then calls config.status. | |
3892 | # config.status does its own redirection, appending to config.log. | |
3893 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
3894 | # by configure, so config.status won't be able to write to it; its | |
3895 | # output is simply discarded. So we exec the FD to /dev/null, | |
3896 | # effectively closing config.log, so it can be properly (re)opened and | |
3897 | # appended to by config.status. When coming back to configure, we | |
3898 | # need to make the FD available again. | |
3899 | if test "$no_create" != yes; then | |
3900 | ac_cs_success=: | |
3901 | exec 5>/dev/null | |
3902 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
3903 | exec 5>>config.log | |
3904 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
3905 | # would make configure fail if this is the last instruction. | |
3906 | $ac_cs_success || { (exit 1); exit 1; } | |
3907 | fi | |
885824d3 | 3908 |