]>
Commit | Line | Data |
---|---|---|
8fe44445 | 1 | #! /bin/sh |
885824d3 | 2 | # Guess values for system-dependent variables and create Makefiles. |
8fe44445 | 3 | # Generated by Autoconf 2.52 for LCLint 3.0.0.19. |
4 | # | |
5 | # Report bugs to <lclint-bug@cs.virginia.edu>. | |
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. | |
150 | PACKAGE_NAME='LCLint' | |
151 | PACKAGE_TARNAME='lclint' | |
152 | PACKAGE_VERSION='3.0.0.19' | |
153 | PACKAGE_STRING='LCLint 3.0.0.19' | |
154 | PACKAGE_BUGREPORT='lclint-bug@cs.virginia.edu' | |
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 | |
542 | ac_env_CXX_set=${CXX+set} | |
543 | ac_env_CXX_value=$CXX | |
544 | ac_cv_env_CXX_set=${CXX+set} | |
545 | ac_cv_env_CXX_value=$CXX | |
546 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
547 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
548 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
549 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
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 | |
558 | ac_env_CC_set=${CC+set} | |
559 | ac_env_CC_value=$CC | |
560 | ac_cv_env_CC_set=${CC+set} | |
561 | ac_cv_env_CC_value=$CC | |
562 | ac_env_CFLAGS_set=${CFLAGS+set} | |
563 | ac_env_CFLAGS_value=$CFLAGS | |
564 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
565 | ac_cv_env_CFLAGS_value=$CFLAGS | |
566 | ac_env_CPP_set=${CPP+set} | |
567 | ac_env_CPP_value=$CPP | |
568 | ac_cv_env_CPP_set=${CPP+set} | |
569 | ac_cv_env_CPP_value=$CPP | |
885824d3 | 570 | |
8fe44445 | 571 | # |
572 | # Report the --help message. | |
573 | # | |
574 | if test "$ac_init_help" = "long"; then | |
575 | # Omit some internal or obsolete options to make the list less imposing. | |
576 | # This message is too long to be a string in the A/UX 3.1 sh. | |
577 | cat <<EOF | |
578 | \`configure' configures LCLint 3.0.0.19 to adapt to many kinds of systems. | |
885824d3 | 579 | |
8fe44445 | 580 | Usage: $0 [OPTION]... [VAR=VALUE]... |
885824d3 | 581 | |
8fe44445 | 582 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
583 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
584 | ||
585 | Defaults for the options are specified in brackets. | |
586 | ||
587 | Configuration: | |
588 | -h, --help display this help and exit | |
589 | --help=short display options specific to this package | |
590 | --help=recursive display the short help of all the included packages | |
591 | -V, --version display version information and exit | |
592 | -q, --quiet, --silent do not print \`checking...' messages | |
593 | --cache-file=FILE cache test results in FILE [disabled] | |
594 | -C, --config-cache alias for \`--cache-file=config.cache' | |
595 | -n, --no-create do not create output files | |
596 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
597 | ||
598 | EOF | |
599 | ||
600 | cat <<EOF | |
601 | Installation directories: | |
602 | --prefix=PREFIX install architecture-independent files in PREFIX | |
603 | [$ac_default_prefix] | |
604 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
605 | [PREFIX] | |
606 | ||
607 | By default, \`make install' will install all the files in | |
608 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
609 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
610 | for instance \`--prefix=\$HOME'. | |
611 | ||
612 | For better control, use the options below. | |
613 | ||
614 | Fine tuning of the installation directories: | |
615 | --bindir=DIR user executables [EPREFIX/bin] | |
616 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
617 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
618 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
619 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
620 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
621 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
622 | --libdir=DIR object code libraries [EPREFIX/lib] | |
623 | --includedir=DIR C header files [PREFIX/include] | |
624 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
625 | --infodir=DIR info documentation [PREFIX/info] | |
626 | --mandir=DIR man documentation [PREFIX/man] | |
627 | EOF | |
628 | ||
629 | cat <<\EOF | |
630 | ||
631 | Program names: | |
632 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
633 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
634 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
635 | ||
636 | System types: | |
637 | --build=BUILD configure for building on BUILD [guessed] | |
638 | --host=HOST build programs to run on HOST [BUILD] | |
885824d3 | 639 | EOF |
885824d3 | 640 | fi |
885824d3 | 641 | |
8fe44445 | 642 | if test -n "$ac_init_help"; then |
643 | case $ac_init_help in | |
644 | short | recursive ) echo "Configuration of LCLint 3.0.0.19:";; | |
645 | esac | |
646 | cat <<\EOF | |
647 | ||
648 | Optional Features: | |
649 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
650 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
651 | --disable-dependency-tracking Speeds up one-time builds | |
652 | --enable-dependency-tracking Do not reject slow dependency extractors | |
653 | ||
654 | Optional Packages: | |
655 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
656 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
657 | --without-lcl don't include support for LCL files | |
658 | ||
659 | Some influential environment variables: | |
660 | CXX C++ compiler command | |
661 | CXXFLAGS C++ compiler flags | |
662 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
663 | nonstandard directory <lib dir> | |
664 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
665 | headers in a nonstandard directory <include dir> | |
666 | CC C compiler command | |
667 | CFLAGS C compiler flags | |
668 | CPP C preprocessor | |
669 | ||
670 | Use these variables to override the choices made by `configure' or to help | |
671 | it to find libraries and programs with nonstandard names/locations. | |
672 | ||
673 | Report bugs to <lclint-bug@cs.virginia.edu>. | |
674 | EOF | |
885824d3 | 675 | fi |
676 | ||
8fe44445 | 677 | if test "$ac_init_help" = "recursive"; then |
678 | # If there are subdirs, report their specific --help. | |
679 | ac_popdir=`pwd` | |
680 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
681 | cd $ac_subdir | |
682 | # A "../" for each directory in /$ac_subdir. | |
683 | ac_dots=`echo $ac_subdir | | |
684 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
885824d3 | 685 | |
8fe44445 | 686 | case $srcdir in |
687 | .) # No --srcdir option. We are building in place. | |
688 | ac_sub_srcdir=$srcdir ;; | |
689 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
690 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
691 | *) # Relative path. | |
692 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
693 | esac | |
694 | ||
695 | # Check for guested configure; otherwise get Cygnus style configure. | |
696 | if test -f $ac_sub_srcdir/configure.gnu; then | |
697 | echo | |
698 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
699 | elif test -f $ac_sub_srcdir/configure; then | |
700 | echo | |
701 | $SHELL $ac_sub_srcdir/configure --help=recursive | |
702 | elif test -f $ac_sub_srcdir/configure.ac || | |
703 | test -f $ac_sub_srcdir/configure.in; then | |
704 | echo | |
705 | $ac_configure --help | |
706 | else | |
707 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 | |
885824d3 | 708 | fi |
8fe44445 | 709 | cd $ac_popdir |
885824d3 | 710 | done |
885824d3 | 711 | fi |
712 | ||
8fe44445 | 713 | test -n "$ac_init_help" && exit 0 |
714 | if $ac_init_version; then | |
715 | cat <<\EOF | |
716 | LCLint configure 3.0.0.19 | |
717 | generated by GNU Autoconf 2.52 | |
885824d3 | 718 | |
8fe44445 | 719 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
720 | Free Software Foundation, Inc. | |
721 | This configure script is free software; the Free Software Foundation | |
722 | gives unlimited permission to copy, distribute and modify it. | |
885824d3 | 723 | EOF |
8fe44445 | 724 | exit 0 |
885824d3 | 725 | fi |
8fe44445 | 726 | exec 5>config.log |
727 | cat >&5 <<EOF | |
728 | This file contains any messages produced by compilers while | |
729 | running configure, to aid debugging if configure makes a mistake. | |
730 | ||
731 | It was created by LCLint $as_me 3.0.0.19, which was | |
732 | generated by GNU Autoconf 2.52. Invocation command line was | |
733 | ||
734 | $ $0 $@ | |
735 | ||
736 | EOF | |
737 | { | |
738 | cat <<_ASUNAME | |
739 | ## ---------- ## | |
740 | ## Platform. ## | |
741 | ## ---------- ## | |
742 | ||
743 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
744 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
745 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
746 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
747 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
748 | ||
749 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
750 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
751 | ||
752 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
753 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
754 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
755 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
756 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
757 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
758 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
759 | ||
760 | PATH = $PATH | |
761 | ||
762 | _ASUNAME | |
763 | } >&5 | |
764 | ||
765 | cat >&5 <<EOF | |
766 | ## ------------ ## | |
767 | ## Core tests. ## | |
768 | ## ------------ ## | |
769 | ||
770 | EOF | |
771 | ||
772 | # Keep a trace of the command line. | |
773 | # Strip out --no-create and --no-recursion so they do not pile up. | |
774 | # Also quote any args containing shell meta-characters. | |
775 | ac_configure_args= | |
776 | ac_sep= | |
777 | for ac_arg | |
778 | do | |
779 | case $ac_arg in | |
780 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
781 | | --no-cr | --no-c) ;; | |
782 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
783 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
784 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
785 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
786 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
787 | ac_sep=" " ;; | |
788 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
789 | ac_sep=" " ;; | |
790 | esac | |
791 | # Get rid of the leading space. | |
792 | done | |
793 | ||
794 | # When interrupted or exit'd, cleanup temporary files, and complete | |
795 | # config.log. We remove comments because anyway the quotes in there | |
796 | # would cause problems or look ugly. | |
797 | trap 'exit_status=$? | |
798 | # Save into config.log some information that might help in debugging. | |
799 | echo >&5 | |
800 | echo "## ----------------- ##" >&5 | |
801 | echo "## Cache variables. ##" >&5 | |
802 | echo "## ----------------- ##" >&5 | |
803 | echo >&5 | |
804 | # The following way of writing the cache mishandles newlines in values, | |
805 | { | |
806 | (set) 2>&1 | | |
807 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
808 | *ac_space=\ *) | |
809 | sed -n \ | |
810 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
811 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
812 | ;; | |
813 | *) | |
814 | sed -n \ | |
815 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
816 | ;; | |
817 | esac; | |
818 | } >&5 | |
819 | sed "/^$/d" confdefs.h >conftest.log | |
820 | if test -s conftest.log; then | |
821 | echo >&5 | |
822 | echo "## ------------ ##" >&5 | |
823 | echo "## confdefs.h. ##" >&5 | |
824 | echo "## ------------ ##" >&5 | |
825 | echo >&5 | |
826 | cat conftest.log >&5 | |
827 | fi | |
828 | (echo; echo) >&5 | |
829 | test "$ac_signal" != 0 && | |
830 | echo "$as_me: caught signal $ac_signal" >&5 | |
831 | echo "$as_me: exit $exit_status" >&5 | |
832 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
833 | exit $exit_status | |
834 | ' 0 | |
835 | for ac_signal in 1 2 13 15; do | |
836 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
837 | done | |
838 | ac_signal=0 | |
839 | ||
840 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
841 | rm -rf conftest* confdefs.h | |
842 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
843 | echo >confdefs.h | |
885824d3 | 844 | |
8fe44445 | 845 | # Let the site file select an alternate cache file if it wants to. |
846 | # Prefer explicitly selected file to automatically selected ones. | |
847 | if test -z "$CONFIG_SITE"; then | |
848 | if test "x$prefix" != xNONE; then | |
849 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
850 | else | |
851 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
852 | fi | |
885824d3 | 853 | fi |
8fe44445 | 854 | for ac_site_file in $CONFIG_SITE; do |
855 | if test -r "$ac_site_file"; then | |
856 | { echo "$as_me:856: loading site script $ac_site_file" >&5 | |
857 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
858 | cat "$ac_site_file" >&5 | |
859 | . "$ac_site_file" | |
860 | fi | |
861 | done | |
885824d3 | 862 | |
8fe44445 | 863 | if test -r "$cache_file"; then |
864 | # Some versions of bash will fail to source /dev/null (special | |
865 | # files actually), so we avoid doing that. | |
866 | if test -f "$cache_file"; then | |
867 | { echo "$as_me:867: loading cache $cache_file" >&5 | |
868 | echo "$as_me: loading cache $cache_file" >&6;} | |
869 | case $cache_file in | |
870 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
871 | *) . ./$cache_file;; | |
872 | esac | |
873 | fi | |
885824d3 | 874 | else |
8fe44445 | 875 | { echo "$as_me:875: creating cache $cache_file" >&5 |
876 | echo "$as_me: creating cache $cache_file" >&6;} | |
877 | >$cache_file | |
885824d3 | 878 | fi |
885824d3 | 879 | |
8fe44445 | 880 | # Check that the precious variables saved in the cache have kept the same |
881 | # value. | |
882 | ac_cache_corrupted=false | |
883 | for ac_var in `(set) 2>&1 | | |
884 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
885 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
886 | eval ac_new_set=\$ac_env_${ac_var}_set | |
887 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
888 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
889 | case $ac_old_set,$ac_new_set in | |
890 | set,) | |
891 | { echo "$as_me:891: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
892 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
893 | ac_cache_corrupted=: ;; | |
894 | ,set) | |
895 | { echo "$as_me:895: error: \`$ac_var' was not set in the previous run" >&5 | |
896 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
897 | ac_cache_corrupted=: ;; | |
898 | ,);; | |
885824d3 | 899 | *) |
8fe44445 | 900 | if test "x$ac_old_val" != "x$ac_new_val"; then |
901 | { echo "$as_me:901: error: \`$ac_var' has changed since the previous run:" >&5 | |
902 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
903 | { echo "$as_me:903: former value: $ac_old_val" >&5 | |
904 | echo "$as_me: former value: $ac_old_val" >&2;} | |
905 | { echo "$as_me:905: current value: $ac_new_val" >&5 | |
906 | echo "$as_me: current value: $ac_new_val" >&2;} | |
907 | ac_cache_corrupted=: | |
908 | fi;; | |
909 | esac | |
910 | # Pass precious variables to config.status. It doesn't matter if | |
911 | # we pass some twice (in addition to the command line arguments). | |
912 | if test "$ac_new_set" = set; then | |
913 | case $ac_new_val in | |
914 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
915 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` | |
916 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
885824d3 | 917 | ;; |
8fe44445 | 918 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" |
919 | ;; | |
885824d3 | 920 | esac |
8fe44445 | 921 | fi |
922 | done | |
923 | if $ac_cache_corrupted; then | |
924 | { echo "$as_me:924: error: changes in the environment can compromise the build" >&5 | |
925 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
926 | { { echo "$as_me:926: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
927 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
928 | { (exit 1); exit 1; }; } | |
885824d3 | 929 | fi |
885824d3 | 930 | |
8fe44445 | 931 | ac_ext=c |
932 | ac_cpp='$CPP $CPPFLAGS' | |
933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
885824d3 | 936 | |
8fe44445 | 937 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
938 | *c*,-n*) ECHO_N= ECHO_C=' | |
939 | ' ECHO_T=' ' ;; | |
940 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
941 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
942 | esac | |
943 | echo "#! $SHELL" >conftest.sh | |
944 | echo "exit 0" >>conftest.sh | |
945 | chmod +x conftest.sh | |
946 | if { (echo "$as_me:946: PATH=\".;.\"; conftest.sh") >&5 | |
947 | (PATH=".;."; conftest.sh) 2>&5 | |
948 | ac_status=$? | |
949 | echo "$as_me:949: \$? = $ac_status" >&5 | |
950 | (exit $ac_status); }; then | |
951 | ac_path_separator=';' | |
952 | else | |
953 | ac_path_separator=: | |
885824d3 | 954 | fi |
8fe44445 | 955 | PATH_SEPARATOR="$ac_path_separator" |
956 | rm -f conftest.sh | |
885824d3 | 957 | |
8fe44445 | 958 | ac_aux_dir= |
959 | for ac_dir in config $srcdir/config; do | |
960 | if test -f $ac_dir/install-sh; then | |
961 | ac_aux_dir=$ac_dir | |
962 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
963 | break | |
964 | elif test -f $ac_dir/install.sh; then | |
965 | ac_aux_dir=$ac_dir | |
966 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
967 | break | |
968 | elif test -f $ac_dir/shtool; then | |
969 | ac_aux_dir=$ac_dir | |
970 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
971 | break | |
972 | fi | |
973 | done | |
974 | if test -z "$ac_aux_dir"; then | |
975 | { { echo "$as_me:975: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 | |
976 | echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} | |
977 | { (exit 1); exit 1; }; } | |
885824d3 | 978 | fi |
8fe44445 | 979 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
980 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
981 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
885824d3 | 982 | |
8fe44445 | 983 | # Make sure we can run config.sub. |
984 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
985 | { { echo "$as_me:985: error: cannot run $ac_config_sub" >&5 | |
986 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
987 | { (exit 1); exit 1; }; } | |
885824d3 | 988 | |
8fe44445 | 989 | echo "$as_me:989: checking build system type" >&5 |
990 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
991 | if test "${ac_cv_build+set}" = set; then | |
992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 993 | else |
8fe44445 | 994 | ac_cv_build_alias=$build_alias |
995 | test -z "$ac_cv_build_alias" && | |
996 | ac_cv_build_alias=`$ac_config_guess` | |
997 | test -z "$ac_cv_build_alias" && | |
998 | { { echo "$as_me:998: error: cannot guess build type; you must specify one" >&5 | |
999 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1000 | { (exit 1); exit 1; }; } | |
1001 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1002 | { { echo "$as_me:1002: error: $ac_config_sub $ac_cv_build_alias failed." >&5 | |
1003 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} | |
1004 | { (exit 1); exit 1; }; } | |
885824d3 | 1005 | |
1006 | fi | |
8fe44445 | 1007 | echo "$as_me:1007: result: $ac_cv_build" >&5 |
1008 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1009 | build=$ac_cv_build | |
1010 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1011 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1012 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
885824d3 | 1013 | |
8fe44445 | 1014 | echo "$as_me:1014: checking host system type" >&5 |
1015 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1016 | if test "${ac_cv_host+set}" = set; then | |
1017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 1018 | else |
8fe44445 | 1019 | ac_cv_host_alias=$host_alias |
1020 | test -z "$ac_cv_host_alias" && | |
1021 | ac_cv_host_alias=$ac_cv_build_alias | |
1022 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1023 | { { echo "$as_me:1023: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1024 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1025 | { (exit 1); exit 1; }; } | |
885824d3 | 1026 | |
1027 | fi | |
8fe44445 | 1028 | echo "$as_me:1028: result: $ac_cv_host" >&5 |
1029 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1030 | host=$ac_cv_host | |
1031 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1032 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1033 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
885824d3 | 1034 | |
8fe44445 | 1035 | # Find a good install program. We prefer a C program (faster), |
1036 | # so one script is as good as another. But avoid the broken or | |
1037 | # incompatible versions: | |
1038 | # SysV /etc/install, /usr/sbin/install | |
1039 | # SunOS /usr/etc/install | |
1040 | # IRIX /sbin/install | |
1041 | # AIX /bin/install | |
1042 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1043 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1044 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1045 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1046 | # ./install, which can be erroneously created by make from ./install.sh. | |
1047 | echo "$as_me:1047: checking for a BSD compatible install" >&5 | |
1048 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 | |
1049 | if test -z "$INSTALL"; then | |
1050 | if test "${ac_cv_path_install+set}" = set; then | |
1051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 1052 | else |
8fe44445 | 1053 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
1054 | for ac_dir in $PATH; do | |
1055 | IFS=$ac_save_IFS | |
1056 | # Account for people who put trailing slashes in PATH elements. | |
1057 | case $ac_dir/ in | |
1058 | / | ./ | .// | /cC/* \ | |
1059 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
1060 | | /usr/ucb/* ) ;; | |
1061 | *) | |
1062 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1063 | # Don't use installbsd from OSF since it installs stuff as root | |
1064 | # by default. | |
1065 | for ac_prog in ginstall scoinst install; do | |
1066 | if $as_executable_p "$ac_dir/$ac_prog"; then | |
1067 | if test $ac_prog = install && | |
1068 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1069 | # AIX install. It has an incompatible calling convention. | |
1070 | : | |
1071 | elif test $ac_prog = install && | |
1072 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1073 | # program-specific install script used by HP pwplus--don't use. | |
1074 | : | |
1075 | else | |
1076 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1077 | break 2 | |
1078 | fi | |
1079 | fi | |
1080 | done | |
1081 | ;; | |
1082 | esac | |
1083 | done | |
885824d3 | 1084 | |
1085 | fi | |
8fe44445 | 1086 | if test "${ac_cv_path_install+set}" = set; then |
1087 | INSTALL=$ac_cv_path_install | |
1088 | else | |
1089 | # As a last resort, use the slow shell script. We don't cache a | |
1090 | # path for INSTALL within a source directory, because that will | |
1091 | # break other packages using the cache if that directory is | |
1092 | # removed, or if the path is relative. | |
1093 | INSTALL=$ac_install_sh | |
1094 | fi | |
1095 | fi | |
1096 | echo "$as_me:1096: result: $INSTALL" >&5 | |
1097 | echo "${ECHO_T}$INSTALL" >&6 | |
885824d3 | 1098 | |
8fe44445 | 1099 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1100 | # It thinks the first close brace ends the variable substitution. | |
1101 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1102 | ||
1103 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1104 | ||
1105 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1106 | ||
1107 | echo "$as_me:1107: checking whether build environment is sane" >&5 | |
1108 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1109 | # Just in case | |
1110 | sleep 1 | |
1111 | echo timestamp > conftest.file | |
1112 | # Do `set' in a subshell so we don't clobber the current shell's | |
1113 | # arguments. Must try -L first in case configure is actually a | |
1114 | # symlink; some systems play weird games with the mod time of symlinks | |
1115 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1116 | # directory). | |
1117 | if ( | |
1118 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1119 | if test "$*" = "X"; then | |
1120 | # -L didn't work. | |
1121 | set X `ls -t $srcdir/configure conftest.file` | |
1122 | fi | |
1123 | rm -f conftest.file | |
1124 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1125 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1126 | ||
1127 | # If neither matched, then we have a broken ls. This can happen | |
1128 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1129 | # broken ls alias from the environment. This has actually | |
1130 | # happened. Such a system could not be considered "sane". | |
1131 | { { echo "$as_me:1131: error: ls -t appears to fail. Make sure there is not a broken | |
1132 | alias in your environment" >&5 | |
1133 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1134 | alias in your environment" >&2;} | |
1135 | { (exit 1); exit 1; }; } | |
1136 | fi | |
1137 | ||
1138 | test "$2" = conftest.file | |
1139 | ) | |
1140 | then | |
1141 | # Ok. | |
1142 | : | |
885824d3 | 1143 | else |
8fe44445 | 1144 | { { echo "$as_me:1144: error: newly created file is older than distributed files! |
1145 | Check your system clock" >&5 | |
1146 | echo "$as_me: error: newly created file is older than distributed files! | |
1147 | Check your system clock" >&2;} | |
1148 | { (exit 1); exit 1; }; } | |
885824d3 | 1149 | fi |
8fe44445 | 1150 | echo "$as_me:1150: result: yes" >&5 |
1151 | echo "${ECHO_T}yes" >&6 | |
1152 | test "$program_prefix" != NONE && | |
1153 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1154 | # Use a double $ so make ignores it. | |
1155 | test "$program_suffix" != NONE && | |
1156 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1157 | # Double any \ or $. echo might interpret backslashes. | |
1158 | # By default was `s,x,x', remove it if useless. | |
1159 | cat <<\_ACEOF >conftest.sed | |
1160 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1161 | _ACEOF | |
1162 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1163 | rm conftest.sed | |
885824d3 | 1164 | |
8fe44445 | 1165 | # expand $ac_aux_dir to an absolute path |
1166 | am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` | |
1167 | ||
1168 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1169 | # Use eval to expand $SHELL | |
1170 | if eval "$MISSING --run true"; then | |
1171 | am_missing_run="$MISSING --run " | |
885824d3 | 1172 | else |
8fe44445 | 1173 | am_missing_run= |
1174 | am_backtick='`' | |
1175 | { echo "$as_me:1175: WARNING: ${am_backtick}missing' script is too old or missing" >&5 | |
1176 | echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} | |
885824d3 | 1177 | fi |
1178 | ||
8fe44445 | 1179 | for ac_prog in mawk gawk nawk awk |
1180 | do | |
1181 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1182 | set dummy $ac_prog; ac_word=$2 | |
1183 | echo "$as_me:1183: checking for $ac_word" >&5 | |
1184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1185 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 1187 | else |
8fe44445 | 1188 | if test -n "$AWK"; then |
1189 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1190 | else | |
1191 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1192 | ac_dummy="$PATH" | |
1193 | for ac_dir in $ac_dummy; do | |
1194 | IFS=$ac_save_IFS | |
1195 | test -z "$ac_dir" && ac_dir=. | |
1196 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1197 | ac_cv_prog_AWK="$ac_prog" | |
1198 | echo "$as_me:1198: found $ac_dir/$ac_word" >&5 | |
1199 | break | |
1200 | done | |
1201 | ||
1202 | fi | |
1203 | fi | |
1204 | AWK=$ac_cv_prog_AWK | |
1205 | if test -n "$AWK"; then | |
1206 | echo "$as_me:1206: result: $AWK" >&5 | |
1207 | echo "${ECHO_T}$AWK" >&6 | |
1208 | else | |
1209 | echo "$as_me:1209: result: no" >&5 | |
1210 | echo "${ECHO_T}no" >&6 | |
885824d3 | 1211 | fi |
1212 | ||
8fe44445 | 1213 | test -n "$AWK" && break |
1214 | done | |
1215 | ||
1216 | echo "$as_me:1216: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
1217 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | |
1218 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1219 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 1221 | else |
8fe44445 | 1222 | cat >conftest.make <<\EOF |
1223 | all: | |
1224 | @echo 'ac_maketemp="${MAKE}"' | |
1225 | EOF | |
1226 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1227 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1228 | if test -n "$ac_maketemp"; then | |
1229 | eval ac_cv_prog_make_${ac_make}_set=yes | |
885824d3 | 1230 | else |
8fe44445 | 1231 | eval ac_cv_prog_make_${ac_make}_set=no |
885824d3 | 1232 | fi |
8fe44445 | 1233 | rm -f conftest.make |
1234 | fi | |
1235 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1236 | echo "$as_me:1236: result: yes" >&5 | |
1237 | echo "${ECHO_T}yes" >&6 | |
1238 | SET_MAKE= | |
1239 | else | |
1240 | echo "$as_me:1240: result: no" >&5 | |
1241 | echo "${ECHO_T}no" >&6 | |
1242 | SET_MAKE="MAKE=${MAKE-make}" | |
885824d3 | 1243 | fi |
885824d3 | 1244 | |
8fe44445 | 1245 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
1246 | if test "${enable_dependency_tracking+set}" = set; then | |
1247 | enableval="$enable_dependency_tracking" | |
885824d3 | 1248 | |
8fe44445 | 1249 | fi; |
1250 | if test "x$enable_dependency_tracking" != xno; then | |
1251 | am_depcomp="$ac_aux_dir/depcomp" | |
1252 | AMDEPBACKSLASH='\' | |
885824d3 | 1253 | fi |
1254 | ||
8fe44445 | 1255 | if test "x$enable_dependency_tracking" != xno; then |
1256 | AMDEP_TRUE= | |
1257 | AMDEP_FALSE='#' | |
1258 | else | |
1259 | AMDEP_TRUE='#' | |
1260 | AMDEP_FALSE= | |
885824d3 | 1261 | fi |
8fe44445 | 1262 | |
1263 | rm -f .deps 2>/dev/null | |
1264 | mkdir .deps 2>/dev/null | |
1265 | if test -d .deps; then | |
1266 | DEPDIR=.deps | |
1267 | else | |
1268 | # MS-DOS does not allow filenames that begin with a dot. | |
1269 | DEPDIR=_deps | |
885824d3 | 1270 | fi |
8fe44445 | 1271 | rmdir .deps 2>/dev/null |
1272 | ||
1273 | # test to see if srcdir already configured | |
1274 | if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && | |
1275 | test -f $srcdir/config.status; then | |
1276 | { { echo "$as_me:1276: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1277 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1278 | { (exit 1); exit 1; }; } | |
885824d3 | 1279 | fi |
885824d3 | 1280 | |
8fe44445 | 1281 | # Define the identity of the package. |
1282 | PACKAGE=lclint | |
1283 | VERSION=3.0.0.19 | |
885824d3 | 1284 | |
8fe44445 | 1285 | # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow |
1286 | # the ones we care about. | |
1287 | ||
1288 | # Autoconf 2.50 always computes EXEEXT. However we need to be | |
1289 | # compatible with 2.13, for now. So we always define EXEEXT, but we | |
1290 | # don't compute it. | |
1291 | ||
1292 | # Similar for OBJEXT -- only we only use OBJEXT if the user actually | |
1293 | # requests that it be used. This is a bit dumb. | |
1294 | : ${OBJEXT=o} | |
1295 | ||
1296 | # Some tools Automake needs. | |
1297 | ||
1298 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} | |
1299 | ||
1300 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1301 | ||
1302 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} | |
885824d3 | 1303 | |
8fe44445 | 1304 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1305 | ||
1306 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1307 | ||
1308 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1309 | ||
1310 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1311 | ||
1312 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1313 | ||
1314 | # We need awk for the "check" target. The system "awk" is bad on | |
1315 | # some platforms. | |
1316 | ||
1317 | ac_config_headers="$ac_config_headers config.h:config.hin" | |
1318 | ||
1319 | ac_ext=cc | |
1320 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1321 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1322 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1323 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1324 | if test -n "$ac_tool_prefix"; then | |
1325 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
1326 | do | |
1327 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1328 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1329 | echo "$as_me:1329: checking for $ac_word" >&5 | |
1330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1331 | if test "${ac_cv_prog_CXX+set}" = set; then | |
1332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1333 | else | |
1334 | if test -n "$CXX"; then | |
1335 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
1336 | else | |
1337 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1338 | ac_dummy="$PATH" | |
1339 | for ac_dir in $ac_dummy; do | |
1340 | IFS=$ac_save_IFS | |
1341 | test -z "$ac_dir" && ac_dir=. | |
1342 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1343 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
1344 | echo "$as_me:1344: found $ac_dir/$ac_word" >&5 | |
1345 | break | |
1346 | done | |
1347 | ||
1348 | fi | |
1349 | fi | |
1350 | CXX=$ac_cv_prog_CXX | |
1351 | if test -n "$CXX"; then | |
1352 | echo "$as_me:1352: result: $CXX" >&5 | |
1353 | echo "${ECHO_T}$CXX" >&6 | |
1354 | else | |
1355 | echo "$as_me:1355: result: no" >&5 | |
1356 | echo "${ECHO_T}no" >&6 | |
1357 | fi | |
1358 | ||
1359 | test -n "$CXX" && break | |
1360 | done | |
1361 | fi | |
1362 | if test -z "$CXX"; then | |
1363 | ac_ct_CXX=$CXX | |
1364 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
1365 | do | |
1366 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1367 | set dummy $ac_prog; ac_word=$2 | |
1368 | echo "$as_me:1368: checking for $ac_word" >&5 | |
1369 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1370 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
1371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1372 | else | |
1373 | if test -n "$ac_ct_CXX"; then | |
1374 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
1375 | else | |
1376 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1377 | ac_dummy="$PATH" | |
1378 | for ac_dir in $ac_dummy; do | |
1379 | IFS=$ac_save_IFS | |
1380 | test -z "$ac_dir" && ac_dir=. | |
1381 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1382 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
1383 | echo "$as_me:1383: found $ac_dir/$ac_word" >&5 | |
1384 | break | |
1385 | done | |
1386 | ||
1387 | fi | |
1388 | fi | |
1389 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
1390 | if test -n "$ac_ct_CXX"; then | |
1391 | echo "$as_me:1391: result: $ac_ct_CXX" >&5 | |
1392 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
1393 | else | |
1394 | echo "$as_me:1394: result: no" >&5 | |
1395 | echo "${ECHO_T}no" >&6 | |
1396 | fi | |
1397 | ||
1398 | test -n "$ac_ct_CXX" && break | |
1399 | done | |
1400 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
1401 | ||
1402 | CXX=$ac_ct_CXX | |
1403 | fi | |
1404 | ||
1405 | # Provide some information about the compiler. | |
1406 | echo "$as_me:1406:" \ | |
1407 | "checking for C++ compiler version" >&5 | |
1408 | ac_compiler=`set X $ac_compile; echo $2` | |
1409 | { (eval echo "$as_me:1409: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1410 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1411 | ac_status=$? | |
1412 | echo "$as_me:1412: \$? = $ac_status" >&5 | |
1413 | (exit $ac_status); } | |
1414 | { (eval echo "$as_me:1414: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1415 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1416 | ac_status=$? | |
1417 | echo "$as_me:1417: \$? = $ac_status" >&5 | |
1418 | (exit $ac_status); } | |
1419 | { (eval echo "$as_me:1419: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1420 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1421 | ac_status=$? | |
1422 | echo "$as_me:1422: \$? = $ac_status" >&5 | |
1423 | (exit $ac_status); } | |
1424 | ||
1425 | cat >conftest.$ac_ext <<_ACEOF | |
1426 | #line 1426 "configure" | |
1427 | #include "confdefs.h" | |
1428 | ||
1429 | int | |
1430 | main () | |
1431 | { | |
1432 | ||
1433 | ; | |
1434 | return 0; | |
1435 | } | |
1436 | _ACEOF | |
1437 | ac_clean_files_save=$ac_clean_files | |
1438 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1439 | # Try to create an executable without -o first, disregard a.out. | |
1440 | # It will help us diagnose broken compilers, and finding out an intuition | |
1441 | # of exeext. | |
1442 | echo "$as_me:1442: checking for C++ compiler default output" >&5 | |
1443 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 | |
1444 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1445 | if { (eval echo "$as_me:1445: \"$ac_link_default\"") >&5 | |
1446 | (eval $ac_link_default) 2>&5 | |
1447 | ac_status=$? | |
1448 | echo "$as_me:1448: \$? = $ac_status" >&5 | |
1449 | (exit $ac_status); }; then | |
1450 | # Find the output, starting from the most likely. This scheme is | |
1451 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1452 | # resort. | |
1453 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; | |
1454 | ls a.out conftest 2>/dev/null; | |
1455 | ls a.* conftest.* 2>/dev/null`; do | |
1456 | case $ac_file in | |
1457 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1458 | a.out ) # We found the default executable, but exeext='' is most | |
1459 | # certainly right. | |
1460 | break;; | |
1461 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1462 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
1463 | export ac_cv_exeext | |
1464 | break;; | |
1465 | * ) break;; | |
1466 | esac | |
1467 | done | |
1468 | else | |
1469 | echo "$as_me: failed program was:" >&5 | |
1470 | cat conftest.$ac_ext >&5 | |
1471 | { { echo "$as_me:1471: error: C++ compiler cannot create executables" >&5 | |
1472 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} | |
1473 | { (exit 77); exit 77; }; } | |
1474 | fi | |
1475 | ||
1476 | ac_exeext=$ac_cv_exeext | |
1477 | echo "$as_me:1477: result: $ac_file" >&5 | |
1478 | echo "${ECHO_T}$ac_file" >&6 | |
1479 | ||
1480 | # Check the compiler produces executables we can run. If not, either | |
1481 | # the compiler is broken, or we cross compile. | |
1482 | echo "$as_me:1482: checking whether the C++ compiler works" >&5 | |
1483 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 | |
1484 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1485 | # If not cross compiling, check that we can run a simple program. | |
1486 | if test "$cross_compiling" != yes; then | |
1487 | if { ac_try='./$ac_file' | |
1488 | { (eval echo "$as_me:1488: \"$ac_try\"") >&5 | |
1489 | (eval $ac_try) 2>&5 | |
1490 | ac_status=$? | |
1491 | echo "$as_me:1491: \$? = $ac_status" >&5 | |
1492 | (exit $ac_status); }; }; then | |
1493 | cross_compiling=no | |
1494 | else | |
1495 | if test "$cross_compiling" = maybe; then | |
1496 | cross_compiling=yes | |
1497 | else | |
1498 | { { echo "$as_me:1498: error: cannot run C++ compiled programs. | |
1499 | If you meant to cross compile, use \`--host'." >&5 | |
1500 | echo "$as_me: error: cannot run C++ compiled programs. | |
1501 | If you meant to cross compile, use \`--host'." >&2;} | |
1502 | { (exit 1); exit 1; }; } | |
1503 | fi | |
1504 | fi | |
1505 | fi | |
1506 | echo "$as_me:1506: result: yes" >&5 | |
1507 | echo "${ECHO_T}yes" >&6 | |
1508 | ||
1509 | rm -f a.out a.exe conftest$ac_cv_exeext | |
1510 | ac_clean_files=$ac_clean_files_save | |
1511 | # Check the compiler produces executables we can run. If not, either | |
1512 | # the compiler is broken, or we cross compile. | |
1513 | echo "$as_me:1513: checking whether we are cross compiling" >&5 | |
1514 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1515 | echo "$as_me:1515: result: $cross_compiling" >&5 | |
1516 | echo "${ECHO_T}$cross_compiling" >&6 | |
1517 | ||
1518 | echo "$as_me:1518: checking for executable suffix" >&5 | |
1519 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 | |
1520 | if { (eval echo "$as_me:1520: \"$ac_link\"") >&5 | |
1521 | (eval $ac_link) 2>&5 | |
1522 | ac_status=$? | |
1523 | echo "$as_me:1523: \$? = $ac_status" >&5 | |
1524 | (exit $ac_status); }; then | |
1525 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1526 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1527 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1528 | # `rm'. | |
1529 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
1530 | case $ac_file in | |
1531 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1532 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1533 | export ac_cv_exeext | |
1534 | break;; | |
1535 | * ) break;; | |
1536 | esac | |
1537 | done | |
1538 | else | |
1539 | { { echo "$as_me:1539: error: cannot compute EXEEXT: cannot compile and link" >&5 | |
1540 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} | |
1541 | { (exit 1); exit 1; }; } | |
1542 | fi | |
1543 | ||
1544 | rm -f conftest$ac_cv_exeext | |
1545 | echo "$as_me:1545: result: $ac_cv_exeext" >&5 | |
1546 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1547 | ||
1548 | rm -f conftest.$ac_ext | |
1549 | EXEEXT=$ac_cv_exeext | |
1550 | ac_exeext=$EXEEXT | |
1551 | echo "$as_me:1551: checking for object suffix" >&5 | |
1552 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 | |
1553 | if test "${ac_cv_objext+set}" = set; then | |
1554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1555 | else | |
1556 | cat >conftest.$ac_ext <<_ACEOF | |
1557 | #line 1557 "configure" | |
1558 | #include "confdefs.h" | |
1559 | ||
1560 | int | |
1561 | main () | |
1562 | { | |
1563 | ||
1564 | ; | |
1565 | return 0; | |
1566 | } | |
1567 | _ACEOF | |
1568 | rm -f conftest.o conftest.obj | |
1569 | if { (eval echo "$as_me:1569: \"$ac_compile\"") >&5 | |
1570 | (eval $ac_compile) 2>&5 | |
1571 | ac_status=$? | |
1572 | echo "$as_me:1572: \$? = $ac_status" >&5 | |
1573 | (exit $ac_status); }; then | |
1574 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1575 | case $ac_file in | |
1576 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1577 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1578 | break;; | |
1579 | esac | |
1580 | done | |
1581 | else | |
1582 | echo "$as_me: failed program was:" >&5 | |
1583 | cat conftest.$ac_ext >&5 | |
1584 | { { echo "$as_me:1584: error: cannot compute OBJEXT: cannot compile" >&5 | |
1585 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} | |
1586 | { (exit 1); exit 1; }; } | |
1587 | fi | |
1588 | ||
1589 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1590 | fi | |
1591 | echo "$as_me:1591: result: $ac_cv_objext" >&5 | |
1592 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1593 | OBJEXT=$ac_cv_objext | |
1594 | ac_objext=$OBJEXT | |
1595 | echo "$as_me:1595: checking whether we are using the GNU C++ compiler" >&5 | |
1596 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
1597 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
1598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1599 | else | |
1600 | cat >conftest.$ac_ext <<_ACEOF | |
1601 | #line 1601 "configure" | |
1602 | #include "confdefs.h" | |
1603 | ||
1604 | int | |
1605 | main () | |
1606 | { | |
1607 | #ifndef __GNUC__ | |
1608 | choke me | |
1609 | #endif | |
1610 | ||
1611 | ; | |
1612 | return 0; | |
1613 | } | |
1614 | _ACEOF | |
1615 | rm -f conftest.$ac_objext | |
1616 | if { (eval echo "$as_me:1616: \"$ac_compile\"") >&5 | |
1617 | (eval $ac_compile) 2>&5 | |
1618 | ac_status=$? | |
1619 | echo "$as_me:1619: \$? = $ac_status" >&5 | |
1620 | (exit $ac_status); } && | |
1621 | { ac_try='test -s conftest.$ac_objext' | |
1622 | { (eval echo "$as_me:1622: \"$ac_try\"") >&5 | |
1623 | (eval $ac_try) 2>&5 | |
1624 | ac_status=$? | |
1625 | echo "$as_me:1625: \$? = $ac_status" >&5 | |
1626 | (exit $ac_status); }; }; then | |
1627 | ac_compiler_gnu=yes | |
1628 | else | |
1629 | echo "$as_me: failed program was:" >&5 | |
1630 | cat conftest.$ac_ext >&5 | |
1631 | ac_compiler_gnu=no | |
1632 | fi | |
1633 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1634 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
1635 | ||
1636 | fi | |
1637 | echo "$as_me:1637: result: $ac_cv_cxx_compiler_gnu" >&5 | |
1638 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
1639 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
1640 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
1641 | ac_save_CXXFLAGS=$CXXFLAGS | |
1642 | CXXFLAGS="-g" | |
1643 | echo "$as_me:1643: checking whether $CXX accepts -g" >&5 | |
1644 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
1645 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
1646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1647 | else | |
1648 | cat >conftest.$ac_ext <<_ACEOF | |
1649 | #line 1649 "configure" | |
1650 | #include "confdefs.h" | |
1651 | ||
1652 | int | |
1653 | main () | |
1654 | { | |
1655 | ||
1656 | ; | |
1657 | return 0; | |
1658 | } | |
1659 | _ACEOF | |
1660 | rm -f conftest.$ac_objext | |
1661 | if { (eval echo "$as_me:1661: \"$ac_compile\"") >&5 | |
1662 | (eval $ac_compile) 2>&5 | |
1663 | ac_status=$? | |
1664 | echo "$as_me:1664: \$? = $ac_status" >&5 | |
1665 | (exit $ac_status); } && | |
1666 | { ac_try='test -s conftest.$ac_objext' | |
1667 | { (eval echo "$as_me:1667: \"$ac_try\"") >&5 | |
1668 | (eval $ac_try) 2>&5 | |
1669 | ac_status=$? | |
1670 | echo "$as_me:1670: \$? = $ac_status" >&5 | |
1671 | (exit $ac_status); }; }; then | |
1672 | ac_cv_prog_cxx_g=yes | |
1673 | else | |
1674 | echo "$as_me: failed program was:" >&5 | |
1675 | cat conftest.$ac_ext >&5 | |
1676 | ac_cv_prog_cxx_g=no | |
1677 | fi | |
1678 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1679 | fi | |
1680 | echo "$as_me:1680: result: $ac_cv_prog_cxx_g" >&5 | |
1681 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
1682 | if test "$ac_test_CXXFLAGS" = set; then | |
1683 | CXXFLAGS=$ac_save_CXXFLAGS | |
1684 | elif test $ac_cv_prog_cxx_g = yes; then | |
1685 | if test "$GXX" = yes; then | |
1686 | CXXFLAGS="-g -O2" | |
1687 | else | |
1688 | CXXFLAGS="-g" | |
1689 | fi | |
1690 | else | |
1691 | if test "$GXX" = yes; then | |
1692 | CXXFLAGS="-O2" | |
1693 | else | |
1694 | CXXFLAGS= | |
1695 | fi | |
1696 | fi | |
1697 | for ac_declaration in \ | |
1698 | ''\ | |
1699 | '#include <stdlib.h>' \ | |
1700 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
1701 | 'extern "C" void std::exit (int); using std::exit;' \ | |
1702 | 'extern "C" void exit (int) throw ();' \ | |
1703 | 'extern "C" void exit (int);' \ | |
1704 | 'void exit (int);' | |
1705 | do | |
1706 | cat >conftest.$ac_ext <<_ACEOF | |
1707 | #line 1707 "configure" | |
1708 | #include "confdefs.h" | |
1709 | #include <stdlib.h> | |
1710 | $ac_declaration | |
1711 | int | |
1712 | main () | |
1713 | { | |
1714 | exit (42); | |
1715 | ; | |
1716 | return 0; | |
1717 | } | |
1718 | _ACEOF | |
1719 | rm -f conftest.$ac_objext | |
1720 | if { (eval echo "$as_me:1720: \"$ac_compile\"") >&5 | |
1721 | (eval $ac_compile) 2>&5 | |
1722 | ac_status=$? | |
1723 | echo "$as_me:1723: \$? = $ac_status" >&5 | |
1724 | (exit $ac_status); } && | |
1725 | { ac_try='test -s conftest.$ac_objext' | |
1726 | { (eval echo "$as_me:1726: \"$ac_try\"") >&5 | |
1727 | (eval $ac_try) 2>&5 | |
1728 | ac_status=$? | |
1729 | echo "$as_me:1729: \$? = $ac_status" >&5 | |
1730 | (exit $ac_status); }; }; then | |
1731 | : | |
1732 | else | |
1733 | echo "$as_me: failed program was:" >&5 | |
1734 | cat conftest.$ac_ext >&5 | |
1735 | continue | |
1736 | fi | |
1737 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1738 | cat >conftest.$ac_ext <<_ACEOF | |
1739 | #line 1739 "configure" | |
1740 | #include "confdefs.h" | |
1741 | $ac_declaration | |
1742 | int | |
1743 | main () | |
1744 | { | |
1745 | exit (42); | |
1746 | ; | |
1747 | return 0; | |
1748 | } | |
1749 | _ACEOF | |
1750 | rm -f conftest.$ac_objext | |
1751 | if { (eval echo "$as_me:1751: \"$ac_compile\"") >&5 | |
1752 | (eval $ac_compile) 2>&5 | |
1753 | ac_status=$? | |
1754 | echo "$as_me:1754: \$? = $ac_status" >&5 | |
1755 | (exit $ac_status); } && | |
1756 | { ac_try='test -s conftest.$ac_objext' | |
1757 | { (eval echo "$as_me:1757: \"$ac_try\"") >&5 | |
1758 | (eval $ac_try) 2>&5 | |
1759 | ac_status=$? | |
1760 | echo "$as_me:1760: \$? = $ac_status" >&5 | |
1761 | (exit $ac_status); }; }; then | |
1762 | break | |
1763 | else | |
1764 | echo "$as_me: failed program was:" >&5 | |
1765 | cat conftest.$ac_ext >&5 | |
1766 | fi | |
1767 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1768 | done | |
1769 | rm -f conftest* | |
1770 | if test -n "$ac_declaration"; then | |
1771 | echo '#ifdef __cplusplus' >>confdefs.h | |
1772 | echo $ac_declaration >>confdefs.h | |
1773 | echo '#endif' >>confdefs.h | |
1774 | fi | |
1775 | ||
1776 | ac_ext=c | |
1777 | ac_cpp='$CPP $CPPFLAGS' | |
1778 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1779 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1780 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1781 | ||
1782 | ac_config_commands="$ac_config_commands default-1" | |
1783 | ||
1784 | am_make=${MAKE-make} | |
1785 | cat > confinc << 'END' | |
1786 | doit: | |
1787 | @echo done | |
1788 | END | |
1789 | # If we don't find an include directive, just comment out the code. | |
1790 | echo "$as_me:1790: checking for style of include used by $am_make" >&5 | |
1791 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
1792 | am__include='#' | |
1793 | am__quote= | |
1794 | _am_result=none | |
1795 | # First try GNU make style include. | |
1796 | echo "include confinc" > confmf | |
1797 | # We grep out `Entering directory' and `Leaving directory' | |
1798 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
1799 | # In particular we don't look at `^make:' because GNU make might | |
1800 | # be invoked under some other name (usually "gmake"), in which | |
1801 | # case it prints its new name instead of `make'. | |
1802 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then | |
1803 | am__include=include | |
1804 | am__quote= | |
1805 | _am_result=GNU | |
1806 | fi | |
1807 | # Now try BSD make style include. | |
1808 | if test "$am__include" = "#"; then | |
1809 | echo '.include "confinc"' > confmf | |
1810 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
1811 | am__include=.include | |
1812 | am__quote='"' | |
1813 | _am_result=BSD | |
1814 | fi | |
1815 | fi | |
1816 | ||
1817 | echo "$as_me:1817: result: $_am_result" >&5 | |
1818 | echo "${ECHO_T}$_am_result" >&6 | |
1819 | rm -f confinc confmf | |
1820 | ||
1821 | depcc="$CXX" am_compiler_list= | |
1822 | ||
1823 | echo "$as_me:1823: checking dependency style of $depcc" >&5 | |
1824 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
1825 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
1826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1827 | else | |
1828 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
1829 | # We make a subdir and do the tests there. Otherwise we can end up | |
1830 | # making bogus files that we don't know about and never remove. For | |
1831 | # instance it was reported that on HP-UX the gcc test will end up | |
1832 | # making a dummy file named `D' -- because `-MD' means `put the output | |
1833 | # in D'. | |
1834 | mkdir conftest.dir | |
1835 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
1836 | # using a relative directory. | |
1837 | cp "$am_depcomp" conftest.dir | |
1838 | cd conftest.dir | |
1839 | ||
1840 | am_cv_CXX_dependencies_compiler_type=none | |
1841 | if test "$am_compiler_list" = ""; then | |
1842 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
1843 | fi | |
1844 | for depmode in $am_compiler_list; do | |
1845 | # We need to recreate these files for each test, as the compiler may | |
1846 | # overwrite some of them when testing with obscure command lines. | |
1847 | # This happens at least with the AIX C compiler. | |
1848 | echo '#include "conftest.h"' > conftest.c | |
1849 | echo 'int i;' > conftest.h | |
1850 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
1851 | ||
1852 | case $depmode in | |
1853 | nosideeffect) | |
1854 | # after this tag, mechanisms are not by side-effect, so they'll | |
1855 | # only be used when explicitly requested | |
1856 | if test "x$enable_dependency_tracking" = xyes; then | |
1857 | continue | |
1858 | else | |
1859 | break | |
1860 | fi | |
1861 | ;; | |
1862 | none) break ;; | |
1863 | esac | |
1864 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
1865 | # mode. It turns out that the SunPro C++ compiler does not properly | |
1866 | # handle `-M -o', and we need to detect this. | |
1867 | if depmode=$depmode \ | |
1868 | source=conftest.c object=conftest.o \ | |
1869 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
1870 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
1871 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
1872 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
1873 | am_cv_CXX_dependencies_compiler_type=$depmode | |
1874 | break | |
1875 | fi | |
1876 | done | |
1877 | ||
1878 | cd .. | |
1879 | rm -rf conftest.dir | |
1880 | else | |
1881 | am_cv_CXX_dependencies_compiler_type=none | |
1882 | fi | |
1883 | ||
1884 | fi | |
1885 | echo "$as_me:1885: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
1886 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
1887 | CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type" | |
1888 | ||
1889 | ac_ext=c | |
1890 | ac_cpp='$CPP $CPPFLAGS' | |
1891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1894 | if test -n "$ac_tool_prefix"; then | |
1895 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1896 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1897 | echo "$as_me:1897: checking for $ac_word" >&5 | |
1898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1899 | if test "${ac_cv_prog_CC+set}" = set; then | |
1900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1901 | else | |
1902 | if test -n "$CC"; then | |
1903 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1904 | else | |
1905 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1906 | ac_dummy="$PATH" | |
1907 | for ac_dir in $ac_dummy; do | |
1908 | IFS=$ac_save_IFS | |
1909 | test -z "$ac_dir" && ac_dir=. | |
1910 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1911 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1912 | echo "$as_me:1912: found $ac_dir/$ac_word" >&5 | |
1913 | break | |
1914 | done | |
1915 | ||
1916 | fi | |
1917 | fi | |
1918 | CC=$ac_cv_prog_CC | |
1919 | if test -n "$CC"; then | |
1920 | echo "$as_me:1920: result: $CC" >&5 | |
1921 | echo "${ECHO_T}$CC" >&6 | |
1922 | else | |
1923 | echo "$as_me:1923: result: no" >&5 | |
1924 | echo "${ECHO_T}no" >&6 | |
1925 | fi | |
1926 | ||
1927 | fi | |
1928 | if test -z "$ac_cv_prog_CC"; then | |
1929 | ac_ct_CC=$CC | |
1930 | # Extract the first word of "gcc", so it can be a program name with args. | |
1931 | set dummy gcc; ac_word=$2 | |
1932 | echo "$as_me:1932: checking for $ac_word" >&5 | |
1933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1934 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1936 | else | |
1937 | if test -n "$ac_ct_CC"; then | |
1938 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1939 | else | |
1940 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1941 | ac_dummy="$PATH" | |
1942 | for ac_dir in $ac_dummy; do | |
1943 | IFS=$ac_save_IFS | |
1944 | test -z "$ac_dir" && ac_dir=. | |
1945 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1946 | ac_cv_prog_ac_ct_CC="gcc" | |
1947 | echo "$as_me:1947: found $ac_dir/$ac_word" >&5 | |
1948 | break | |
1949 | done | |
1950 | ||
1951 | fi | |
1952 | fi | |
1953 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1954 | if test -n "$ac_ct_CC"; then | |
1955 | echo "$as_me:1955: result: $ac_ct_CC" >&5 | |
1956 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1957 | else | |
1958 | echo "$as_me:1958: result: no" >&5 | |
1959 | echo "${ECHO_T}no" >&6 | |
1960 | fi | |
1961 | ||
1962 | CC=$ac_ct_CC | |
1963 | else | |
1964 | CC="$ac_cv_prog_CC" | |
1965 | fi | |
1966 | ||
1967 | if test -z "$CC"; then | |
1968 | if test -n "$ac_tool_prefix"; then | |
1969 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1970 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1971 | echo "$as_me:1971: checking for $ac_word" >&5 | |
1972 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1973 | if test "${ac_cv_prog_CC+set}" = set; then | |
1974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1975 | else | |
1976 | if test -n "$CC"; then | |
1977 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1978 | else | |
1979 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1980 | ac_dummy="$PATH" | |
1981 | for ac_dir in $ac_dummy; do | |
1982 | IFS=$ac_save_IFS | |
1983 | test -z "$ac_dir" && ac_dir=. | |
1984 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1985 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1986 | echo "$as_me:1986: found $ac_dir/$ac_word" >&5 | |
1987 | break | |
1988 | done | |
1989 | ||
1990 | fi | |
1991 | fi | |
1992 | CC=$ac_cv_prog_CC | |
1993 | if test -n "$CC"; then | |
1994 | echo "$as_me:1994: result: $CC" >&5 | |
1995 | echo "${ECHO_T}$CC" >&6 | |
1996 | else | |
1997 | echo "$as_me:1997: result: no" >&5 | |
1998 | echo "${ECHO_T}no" >&6 | |
1999 | fi | |
2000 | ||
2001 | fi | |
2002 | if test -z "$ac_cv_prog_CC"; then | |
2003 | ac_ct_CC=$CC | |
2004 | # Extract the first word of "cc", so it can be a program name with args. | |
2005 | set dummy cc; ac_word=$2 | |
2006 | echo "$as_me:2006: checking for $ac_word" >&5 | |
2007 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2008 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2010 | else | |
2011 | if test -n "$ac_ct_CC"; then | |
2012 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2013 | else | |
2014 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2015 | ac_dummy="$PATH" | |
2016 | for ac_dir in $ac_dummy; do | |
2017 | IFS=$ac_save_IFS | |
2018 | test -z "$ac_dir" && ac_dir=. | |
2019 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2020 | ac_cv_prog_ac_ct_CC="cc" | |
2021 | echo "$as_me:2021: found $ac_dir/$ac_word" >&5 | |
2022 | break | |
2023 | done | |
2024 | ||
2025 | fi | |
2026 | fi | |
2027 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2028 | if test -n "$ac_ct_CC"; then | |
2029 | echo "$as_me:2029: result: $ac_ct_CC" >&5 | |
2030 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2031 | else | |
2032 | echo "$as_me:2032: result: no" >&5 | |
2033 | echo "${ECHO_T}no" >&6 | |
2034 | fi | |
2035 | ||
2036 | CC=$ac_ct_CC | |
2037 | else | |
2038 | CC="$ac_cv_prog_CC" | |
2039 | fi | |
2040 | ||
2041 | fi | |
2042 | if test -z "$CC"; then | |
2043 | # Extract the first word of "cc", so it can be a program name with args. | |
2044 | set dummy cc; ac_word=$2 | |
2045 | echo "$as_me:2045: checking for $ac_word" >&5 | |
2046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2047 | if test "${ac_cv_prog_CC+set}" = set; then | |
2048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2049 | else | |
2050 | if test -n "$CC"; then | |
2051 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2052 | else | |
2053 | ac_prog_rejected=no | |
2054 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2055 | ac_dummy="$PATH" | |
2056 | for ac_dir in $ac_dummy; do | |
2057 | IFS=$ac_save_IFS | |
2058 | test -z "$ac_dir" && ac_dir=. | |
2059 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2060 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2061 | ac_prog_rejected=yes | |
2062 | continue | |
2063 | fi | |
2064 | ac_cv_prog_CC="cc" | |
2065 | echo "$as_me:2065: found $ac_dir/$ac_word" >&5 | |
2066 | break | |
2067 | done | |
2068 | ||
2069 | if test $ac_prog_rejected = yes; then | |
2070 | # We found a bogon in the path, so make sure we never use it. | |
2071 | set dummy $ac_cv_prog_CC | |
2072 | shift | |
2073 | if test $# != 0; then | |
2074 | # We chose a different compiler from the bogus one. | |
2075 | # However, it has the same basename, so the bogon will be chosen | |
2076 | # first if we set CC to just the basename; use the full file name. | |
2077 | shift | |
2078 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | |
2079 | shift | |
2080 | ac_cv_prog_CC="$@" | |
2081 | fi | |
2082 | fi | |
2083 | fi | |
2084 | fi | |
2085 | CC=$ac_cv_prog_CC | |
2086 | if test -n "$CC"; then | |
2087 | echo "$as_me:2087: result: $CC" >&5 | |
2088 | echo "${ECHO_T}$CC" >&6 | |
2089 | else | |
2090 | echo "$as_me:2090: result: no" >&5 | |
2091 | echo "${ECHO_T}no" >&6 | |
2092 | fi | |
2093 | ||
2094 | fi | |
2095 | if test -z "$CC"; then | |
2096 | if test -n "$ac_tool_prefix"; then | |
2097 | for ac_prog in cl | |
2098 | do | |
2099 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2100 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2101 | echo "$as_me:2101: checking for $ac_word" >&5 | |
2102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2103 | if test "${ac_cv_prog_CC+set}" = set; then | |
2104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2105 | else | |
2106 | if test -n "$CC"; then | |
2107 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2108 | else | |
2109 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2110 | ac_dummy="$PATH" | |
2111 | for ac_dir in $ac_dummy; do | |
2112 | IFS=$ac_save_IFS | |
2113 | test -z "$ac_dir" && ac_dir=. | |
2114 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2115 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2116 | echo "$as_me:2116: found $ac_dir/$ac_word" >&5 | |
2117 | break | |
2118 | done | |
2119 | ||
2120 | fi | |
2121 | fi | |
2122 | CC=$ac_cv_prog_CC | |
2123 | if test -n "$CC"; then | |
2124 | echo "$as_me:2124: result: $CC" >&5 | |
2125 | echo "${ECHO_T}$CC" >&6 | |
2126 | else | |
2127 | echo "$as_me:2127: result: no" >&5 | |
2128 | echo "${ECHO_T}no" >&6 | |
2129 | fi | |
2130 | ||
2131 | test -n "$CC" && break | |
2132 | done | |
2133 | fi | |
2134 | if test -z "$CC"; then | |
2135 | ac_ct_CC=$CC | |
2136 | for ac_prog in cl | |
2137 | do | |
2138 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2139 | set dummy $ac_prog; ac_word=$2 | |
2140 | echo "$as_me:2140: checking for $ac_word" >&5 | |
2141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2142 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2144 | else | |
2145 | if test -n "$ac_ct_CC"; then | |
2146 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2147 | else | |
2148 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2149 | ac_dummy="$PATH" | |
2150 | for ac_dir in $ac_dummy; do | |
2151 | IFS=$ac_save_IFS | |
2152 | test -z "$ac_dir" && ac_dir=. | |
2153 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2154 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2155 | echo "$as_me:2155: found $ac_dir/$ac_word" >&5 | |
2156 | break | |
2157 | done | |
2158 | ||
2159 | fi | |
2160 | fi | |
2161 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2162 | if test -n "$ac_ct_CC"; then | |
2163 | echo "$as_me:2163: result: $ac_ct_CC" >&5 | |
2164 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2165 | else | |
2166 | echo "$as_me:2166: result: no" >&5 | |
2167 | echo "${ECHO_T}no" >&6 | |
2168 | fi | |
2169 | ||
2170 | test -n "$ac_ct_CC" && break | |
2171 | done | |
2172 | ||
2173 | CC=$ac_ct_CC | |
2174 | fi | |
2175 | ||
2176 | fi | |
2177 | ||
2178 | test -z "$CC" && { { echo "$as_me:2178: error: no acceptable cc found in \$PATH" >&5 | |
2179 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | |
2180 | { (exit 1); exit 1; }; } | |
2181 | ||
2182 | # Provide some information about the compiler. | |
2183 | echo "$as_me:2183:" \ | |
2184 | "checking for C compiler version" >&5 | |
2185 | ac_compiler=`set X $ac_compile; echo $2` | |
2186 | { (eval echo "$as_me:2186: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2187 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2188 | ac_status=$? | |
2189 | echo "$as_me:2189: \$? = $ac_status" >&5 | |
2190 | (exit $ac_status); } | |
2191 | { (eval echo "$as_me:2191: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2192 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2193 | ac_status=$? | |
2194 | echo "$as_me:2194: \$? = $ac_status" >&5 | |
2195 | (exit $ac_status); } | |
2196 | { (eval echo "$as_me:2196: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2197 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2198 | ac_status=$? | |
2199 | echo "$as_me:2199: \$? = $ac_status" >&5 | |
2200 | (exit $ac_status); } | |
2201 | ||
2202 | echo "$as_me:2202: checking whether we are using the GNU C compiler" >&5 | |
2203 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2204 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2206 | else | |
2207 | cat >conftest.$ac_ext <<_ACEOF | |
2208 | #line 2208 "configure" | |
2209 | #include "confdefs.h" | |
2210 | ||
2211 | int | |
2212 | main () | |
2213 | { | |
2214 | #ifndef __GNUC__ | |
2215 | choke me | |
2216 | #endif | |
2217 | ||
2218 | ; | |
2219 | return 0; | |
2220 | } | |
2221 | _ACEOF | |
2222 | rm -f conftest.$ac_objext | |
2223 | if { (eval echo "$as_me:2223: \"$ac_compile\"") >&5 | |
2224 | (eval $ac_compile) 2>&5 | |
2225 | ac_status=$? | |
2226 | echo "$as_me:2226: \$? = $ac_status" >&5 | |
2227 | (exit $ac_status); } && | |
2228 | { ac_try='test -s conftest.$ac_objext' | |
2229 | { (eval echo "$as_me:2229: \"$ac_try\"") >&5 | |
2230 | (eval $ac_try) 2>&5 | |
2231 | ac_status=$? | |
2232 | echo "$as_me:2232: \$? = $ac_status" >&5 | |
2233 | (exit $ac_status); }; }; then | |
2234 | ac_compiler_gnu=yes | |
2235 | else | |
2236 | echo "$as_me: failed program was:" >&5 | |
2237 | cat conftest.$ac_ext >&5 | |
2238 | ac_compiler_gnu=no | |
2239 | fi | |
2240 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2241 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2242 | ||
2243 | fi | |
2244 | echo "$as_me:2244: result: $ac_cv_c_compiler_gnu" >&5 | |
2245 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2246 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2247 | ac_test_CFLAGS=${CFLAGS+set} | |
2248 | ac_save_CFLAGS=$CFLAGS | |
2249 | CFLAGS="-g" | |
2250 | echo "$as_me:2250: checking whether $CC accepts -g" >&5 | |
2251 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2252 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2254 | else | |
2255 | cat >conftest.$ac_ext <<_ACEOF | |
2256 | #line 2256 "configure" | |
2257 | #include "confdefs.h" | |
2258 | ||
2259 | int | |
2260 | main () | |
2261 | { | |
2262 | ||
2263 | ; | |
2264 | return 0; | |
2265 | } | |
2266 | _ACEOF | |
2267 | rm -f conftest.$ac_objext | |
2268 | if { (eval echo "$as_me:2268: \"$ac_compile\"") >&5 | |
2269 | (eval $ac_compile) 2>&5 | |
2270 | ac_status=$? | |
2271 | echo "$as_me:2271: \$? = $ac_status" >&5 | |
2272 | (exit $ac_status); } && | |
2273 | { ac_try='test -s conftest.$ac_objext' | |
2274 | { (eval echo "$as_me:2274: \"$ac_try\"") >&5 | |
2275 | (eval $ac_try) 2>&5 | |
2276 | ac_status=$? | |
2277 | echo "$as_me:2277: \$? = $ac_status" >&5 | |
2278 | (exit $ac_status); }; }; then | |
2279 | ac_cv_prog_cc_g=yes | |
2280 | else | |
2281 | echo "$as_me: failed program was:" >&5 | |
2282 | cat conftest.$ac_ext >&5 | |
2283 | ac_cv_prog_cc_g=no | |
2284 | fi | |
2285 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2286 | fi | |
2287 | echo "$as_me:2287: result: $ac_cv_prog_cc_g" >&5 | |
2288 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2289 | if test "$ac_test_CFLAGS" = set; then | |
2290 | CFLAGS=$ac_save_CFLAGS | |
2291 | elif test $ac_cv_prog_cc_g = yes; then | |
2292 | if test "$GCC" = yes; then | |
2293 | CFLAGS="-g -O2" | |
2294 | else | |
2295 | CFLAGS="-g" | |
2296 | fi | |
2297 | else | |
2298 | if test "$GCC" = yes; then | |
2299 | CFLAGS="-O2" | |
2300 | else | |
2301 | CFLAGS= | |
2302 | fi | |
2303 | fi | |
2304 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2305 | # in C++ we need to declare it. In case someone uses the same compiler | |
2306 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2307 | # the declaration of exit, since it's the most demanding environment. | |
2308 | cat >conftest.$ac_ext <<_ACEOF | |
2309 | #ifndef __cplusplus | |
2310 | choke me | |
2311 | #endif | |
2312 | _ACEOF | |
2313 | rm -f conftest.$ac_objext | |
2314 | if { (eval echo "$as_me:2314: \"$ac_compile\"") >&5 | |
2315 | (eval $ac_compile) 2>&5 | |
2316 | ac_status=$? | |
2317 | echo "$as_me:2317: \$? = $ac_status" >&5 | |
2318 | (exit $ac_status); } && | |
2319 | { ac_try='test -s conftest.$ac_objext' | |
2320 | { (eval echo "$as_me:2320: \"$ac_try\"") >&5 | |
2321 | (eval $ac_try) 2>&5 | |
2322 | ac_status=$? | |
2323 | echo "$as_me:2323: \$? = $ac_status" >&5 | |
2324 | (exit $ac_status); }; }; then | |
2325 | for ac_declaration in \ | |
2326 | ''\ | |
2327 | '#include <stdlib.h>' \ | |
2328 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2329 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2330 | 'extern "C" void exit (int) throw ();' \ | |
2331 | 'extern "C" void exit (int);' \ | |
2332 | 'void exit (int);' | |
2333 | do | |
2334 | cat >conftest.$ac_ext <<_ACEOF | |
2335 | #line 2335 "configure" | |
2336 | #include "confdefs.h" | |
2337 | #include <stdlib.h> | |
2338 | $ac_declaration | |
2339 | int | |
2340 | main () | |
2341 | { | |
2342 | exit (42); | |
2343 | ; | |
2344 | return 0; | |
2345 | } | |
2346 | _ACEOF | |
2347 | rm -f conftest.$ac_objext | |
2348 | if { (eval echo "$as_me:2348: \"$ac_compile\"") >&5 | |
2349 | (eval $ac_compile) 2>&5 | |
2350 | ac_status=$? | |
2351 | echo "$as_me:2351: \$? = $ac_status" >&5 | |
2352 | (exit $ac_status); } && | |
2353 | { ac_try='test -s conftest.$ac_objext' | |
2354 | { (eval echo "$as_me:2354: \"$ac_try\"") >&5 | |
2355 | (eval $ac_try) 2>&5 | |
2356 | ac_status=$? | |
2357 | echo "$as_me:2357: \$? = $ac_status" >&5 | |
2358 | (exit $ac_status); }; }; then | |
2359 | : | |
2360 | else | |
2361 | echo "$as_me: failed program was:" >&5 | |
2362 | cat conftest.$ac_ext >&5 | |
2363 | continue | |
2364 | fi | |
2365 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2366 | cat >conftest.$ac_ext <<_ACEOF | |
2367 | #line 2367 "configure" | |
2368 | #include "confdefs.h" | |
2369 | $ac_declaration | |
2370 | int | |
2371 | main () | |
2372 | { | |
2373 | exit (42); | |
2374 | ; | |
2375 | return 0; | |
2376 | } | |
2377 | _ACEOF | |
2378 | rm -f conftest.$ac_objext | |
2379 | if { (eval echo "$as_me:2379: \"$ac_compile\"") >&5 | |
2380 | (eval $ac_compile) 2>&5 | |
2381 | ac_status=$? | |
2382 | echo "$as_me:2382: \$? = $ac_status" >&5 | |
2383 | (exit $ac_status); } && | |
2384 | { ac_try='test -s conftest.$ac_objext' | |
2385 | { (eval echo "$as_me:2385: \"$ac_try\"") >&5 | |
2386 | (eval $ac_try) 2>&5 | |
2387 | ac_status=$? | |
2388 | echo "$as_me:2388: \$? = $ac_status" >&5 | |
2389 | (exit $ac_status); }; }; then | |
2390 | break | |
2391 | else | |
2392 | echo "$as_me: failed program was:" >&5 | |
2393 | cat conftest.$ac_ext >&5 | |
2394 | fi | |
2395 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2396 | done | |
2397 | rm -f conftest* | |
2398 | if test -n "$ac_declaration"; then | |
2399 | echo '#ifdef __cplusplus' >>confdefs.h | |
2400 | echo $ac_declaration >>confdefs.h | |
2401 | echo '#endif' >>confdefs.h | |
2402 | fi | |
2403 | ||
2404 | else | |
2405 | echo "$as_me: failed program was:" >&5 | |
2406 | cat conftest.$ac_ext >&5 | |
2407 | fi | |
2408 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2409 | ac_ext=c | |
2410 | ac_cpp='$CPP $CPPFLAGS' | |
2411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2414 | ||
2415 | depcc="$CC" am_compiler_list= | |
2416 | ||
2417 | echo "$as_me:2417: checking dependency style of $depcc" >&5 | |
2418 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2419 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2421 | else | |
2422 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2423 | # We make a subdir and do the tests there. Otherwise we can end up | |
2424 | # making bogus files that we don't know about and never remove. For | |
2425 | # instance it was reported that on HP-UX the gcc test will end up | |
2426 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2427 | # in D'. | |
2428 | mkdir conftest.dir | |
2429 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2430 | # using a relative directory. | |
2431 | cp "$am_depcomp" conftest.dir | |
2432 | cd conftest.dir | |
2433 | ||
2434 | am_cv_CC_dependencies_compiler_type=none | |
2435 | if test "$am_compiler_list" = ""; then | |
2436 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2437 | fi | |
2438 | for depmode in $am_compiler_list; do | |
2439 | # We need to recreate these files for each test, as the compiler may | |
2440 | # overwrite some of them when testing with obscure command lines. | |
2441 | # This happens at least with the AIX C compiler. | |
2442 | echo '#include "conftest.h"' > conftest.c | |
2443 | echo 'int i;' > conftest.h | |
2444 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
2445 | ||
2446 | case $depmode in | |
2447 | nosideeffect) | |
2448 | # after this tag, mechanisms are not by side-effect, so they'll | |
2449 | # only be used when explicitly requested | |
2450 | if test "x$enable_dependency_tracking" = xyes; then | |
2451 | continue | |
2452 | else | |
2453 | break | |
2454 | fi | |
2455 | ;; | |
2456 | none) break ;; | |
2457 | esac | |
2458 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2459 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2460 | # handle `-M -o', and we need to detect this. | |
2461 | if depmode=$depmode \ | |
2462 | source=conftest.c object=conftest.o \ | |
2463 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
2464 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
2465 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
2466 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2467 | am_cv_CC_dependencies_compiler_type=$depmode | |
2468 | break | |
2469 | fi | |
2470 | done | |
2471 | ||
2472 | cd .. | |
2473 | rm -rf conftest.dir | |
2474 | else | |
2475 | am_cv_CC_dependencies_compiler_type=none | |
2476 | fi | |
2477 | ||
2478 | fi | |
2479 | echo "$as_me:2479: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
2480 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
2481 | CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" | |
2482 | ||
2483 | ac_ext=c | |
2484 | ac_cpp='$CPP $CPPFLAGS' | |
2485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2488 | echo "$as_me:2488: checking how to run the C preprocessor" >&5 | |
2489 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2490 | # On Suns, sometimes $CPP names a directory. | |
2491 | if test -n "$CPP" && test -d "$CPP"; then | |
2492 | CPP= | |
2493 | fi | |
2494 | if test -z "$CPP"; then | |
2495 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2497 | else | |
2498 | # Double quotes because CPP needs to be expanded | |
2499 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2500 | do | |
2501 | ac_preproc_ok=false | |
2502 | for ac_c_preproc_warn_flag in '' yes | |
2503 | do | |
2504 | # Use a header file that comes with gcc, so configuring glibc | |
2505 | # with a fresh cross-compiler works. | |
2506 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2507 | # not just through cpp. "Syntax error" is here to catch this case. | |
2508 | cat >conftest.$ac_ext <<_ACEOF | |
2509 | #line 2509 "configure" | |
2510 | #include "confdefs.h" | |
2511 | #include <assert.h> | |
2512 | Syntax error | |
2513 | _ACEOF | |
2514 | if { (eval echo "$as_me:2514: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2515 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2516 | ac_status=$? | |
2517 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2518 | rm -f conftest.er1 | |
2519 | cat conftest.err >&5 | |
2520 | echo "$as_me:2520: \$? = $ac_status" >&5 | |
2521 | (exit $ac_status); } >/dev/null; then | |
2522 | if test -s conftest.err; then | |
2523 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2524 | else | |
2525 | ac_cpp_err= | |
2526 | fi | |
2527 | else | |
2528 | ac_cpp_err=yes | |
2529 | fi | |
2530 | if test -z "$ac_cpp_err"; then | |
2531 | : | |
2532 | else | |
2533 | echo "$as_me: failed program was:" >&5 | |
2534 | cat conftest.$ac_ext >&5 | |
2535 | # Broken: fails on valid input. | |
2536 | continue | |
2537 | fi | |
2538 | rm -f conftest.err conftest.$ac_ext | |
2539 | ||
2540 | # OK, works on sane cases. Now check whether non-existent headers | |
2541 | # can be detected and how. | |
2542 | cat >conftest.$ac_ext <<_ACEOF | |
2543 | #line 2543 "configure" | |
2544 | #include "confdefs.h" | |
2545 | #include <ac_nonexistent.h> | |
2546 | _ACEOF | |
2547 | if { (eval echo "$as_me:2547: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2548 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2549 | ac_status=$? | |
2550 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2551 | rm -f conftest.er1 | |
2552 | cat conftest.err >&5 | |
2553 | echo "$as_me:2553: \$? = $ac_status" >&5 | |
2554 | (exit $ac_status); } >/dev/null; then | |
2555 | if test -s conftest.err; then | |
2556 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2557 | else | |
2558 | ac_cpp_err= | |
2559 | fi | |
2560 | else | |
2561 | ac_cpp_err=yes | |
2562 | fi | |
2563 | if test -z "$ac_cpp_err"; then | |
2564 | # Broken: success on invalid input. | |
2565 | continue | |
2566 | else | |
2567 | echo "$as_me: failed program was:" >&5 | |
2568 | cat conftest.$ac_ext >&5 | |
2569 | # Passes both tests. | |
2570 | ac_preproc_ok=: | |
2571 | break | |
2572 | fi | |
2573 | rm -f conftest.err conftest.$ac_ext | |
2574 | ||
2575 | done | |
2576 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2577 | rm -f conftest.err conftest.$ac_ext | |
2578 | if $ac_preproc_ok; then | |
2579 | break | |
2580 | fi | |
2581 | ||
2582 | done | |
2583 | ac_cv_prog_CPP=$CPP | |
2584 | ||
2585 | fi | |
2586 | CPP=$ac_cv_prog_CPP | |
2587 | else | |
2588 | ac_cv_prog_CPP=$CPP | |
2589 | fi | |
2590 | echo "$as_me:2590: result: $CPP" >&5 | |
2591 | echo "${ECHO_T}$CPP" >&6 | |
2592 | ac_preproc_ok=false | |
2593 | for ac_c_preproc_warn_flag in '' yes | |
2594 | do | |
2595 | # Use a header file that comes with gcc, so configuring glibc | |
2596 | # with a fresh cross-compiler works. | |
2597 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2598 | # not just through cpp. "Syntax error" is here to catch this case. | |
2599 | cat >conftest.$ac_ext <<_ACEOF | |
2600 | #line 2600 "configure" | |
2601 | #include "confdefs.h" | |
2602 | #include <assert.h> | |
2603 | Syntax error | |
2604 | _ACEOF | |
2605 | if { (eval echo "$as_me:2605: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2606 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2607 | ac_status=$? | |
2608 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2609 | rm -f conftest.er1 | |
2610 | cat conftest.err >&5 | |
2611 | echo "$as_me:2611: \$? = $ac_status" >&5 | |
2612 | (exit $ac_status); } >/dev/null; then | |
2613 | if test -s conftest.err; then | |
2614 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2615 | else | |
2616 | ac_cpp_err= | |
2617 | fi | |
2618 | else | |
2619 | ac_cpp_err=yes | |
2620 | fi | |
2621 | if test -z "$ac_cpp_err"; then | |
2622 | : | |
2623 | else | |
2624 | echo "$as_me: failed program was:" >&5 | |
2625 | cat conftest.$ac_ext >&5 | |
2626 | # Broken: fails on valid input. | |
2627 | continue | |
2628 | fi | |
2629 | rm -f conftest.err conftest.$ac_ext | |
2630 | ||
2631 | # OK, works on sane cases. Now check whether non-existent headers | |
2632 | # can be detected and how. | |
2633 | cat >conftest.$ac_ext <<_ACEOF | |
2634 | #line 2634 "configure" | |
2635 | #include "confdefs.h" | |
2636 | #include <ac_nonexistent.h> | |
2637 | _ACEOF | |
2638 | if { (eval echo "$as_me:2638: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2639 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2640 | ac_status=$? | |
2641 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2642 | rm -f conftest.er1 | |
2643 | cat conftest.err >&5 | |
2644 | echo "$as_me:2644: \$? = $ac_status" >&5 | |
2645 | (exit $ac_status); } >/dev/null; then | |
2646 | if test -s conftest.err; then | |
2647 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2648 | else | |
2649 | ac_cpp_err= | |
2650 | fi | |
2651 | else | |
2652 | ac_cpp_err=yes | |
2653 | fi | |
2654 | if test -z "$ac_cpp_err"; then | |
2655 | # Broken: success on invalid input. | |
2656 | continue | |
2657 | else | |
2658 | echo "$as_me: failed program was:" >&5 | |
2659 | cat conftest.$ac_ext >&5 | |
2660 | # Passes both tests. | |
2661 | ac_preproc_ok=: | |
2662 | break | |
2663 | fi | |
2664 | rm -f conftest.err conftest.$ac_ext | |
2665 | ||
2666 | done | |
2667 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2668 | rm -f conftest.err conftest.$ac_ext | |
2669 | if $ac_preproc_ok; then | |
2670 | : | |
2671 | else | |
2672 | { { echo "$as_me:2672: error: C preprocessor \"$CPP\" fails sanity check" >&5 | |
2673 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
2674 | { (exit 1); exit 1; }; } | |
2675 | fi | |
2676 | ||
2677 | ac_ext=c | |
2678 | ac_cpp='$CPP $CPPFLAGS' | |
2679 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2680 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2681 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2682 | ||
2683 | for ac_prog in flex lex | |
2684 | do | |
2685 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2686 | set dummy $ac_prog; ac_word=$2 | |
2687 | echo "$as_me:2687: checking for $ac_word" >&5 | |
2688 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2689 | if test "${ac_cv_prog_LEX+set}" = set; then | |
2690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2691 | else | |
2692 | if test -n "$LEX"; then | |
2693 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
2694 | else | |
2695 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2696 | ac_dummy="$PATH" | |
2697 | for ac_dir in $ac_dummy; do | |
2698 | IFS=$ac_save_IFS | |
2699 | test -z "$ac_dir" && ac_dir=. | |
2700 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2701 | ac_cv_prog_LEX="$ac_prog" | |
2702 | echo "$as_me:2702: found $ac_dir/$ac_word" >&5 | |
2703 | break | |
2704 | done | |
2705 | ||
2706 | fi | |
2707 | fi | |
2708 | LEX=$ac_cv_prog_LEX | |
2709 | if test -n "$LEX"; then | |
2710 | echo "$as_me:2710: result: $LEX" >&5 | |
2711 | echo "${ECHO_T}$LEX" >&6 | |
2712 | else | |
2713 | echo "$as_me:2713: result: no" >&5 | |
2714 | echo "${ECHO_T}no" >&6 | |
2715 | fi | |
2716 | ||
2717 | test -n "$LEX" && break | |
2718 | done | |
2719 | test -n "$LEX" || LEX="${am_missing_run}flex" | |
2720 | ||
2721 | for ac_prog in flex lex | |
2722 | do | |
2723 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2724 | set dummy $ac_prog; ac_word=$2 | |
2725 | echo "$as_me:2725: checking for $ac_word" >&5 | |
2726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2727 | if test "${ac_cv_prog_LEX+set}" = set; then | |
2728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2729 | else | |
2730 | if test -n "$LEX"; then | |
2731 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
2732 | else | |
2733 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2734 | ac_dummy="$PATH" | |
2735 | for ac_dir in $ac_dummy; do | |
2736 | IFS=$ac_save_IFS | |
2737 | test -z "$ac_dir" && ac_dir=. | |
2738 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2739 | ac_cv_prog_LEX="$ac_prog" | |
2740 | echo "$as_me:2740: found $ac_dir/$ac_word" >&5 | |
2741 | break | |
2742 | done | |
2743 | ||
2744 | fi | |
2745 | fi | |
2746 | LEX=$ac_cv_prog_LEX | |
2747 | if test -n "$LEX"; then | |
2748 | echo "$as_me:2748: result: $LEX" >&5 | |
2749 | echo "${ECHO_T}$LEX" >&6 | |
2750 | else | |
2751 | echo "$as_me:2751: result: no" >&5 | |
2752 | echo "${ECHO_T}no" >&6 | |
2753 | fi | |
2754 | ||
2755 | test -n "$LEX" && break | |
2756 | done | |
2757 | test -n "$LEX" || LEX=":" | |
2758 | ||
2759 | if test -z "$LEXLIB" | |
2760 | then | |
2761 | echo "$as_me:2761: checking for yywrap in -lfl" >&5 | |
2762 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
2763 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
2764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2765 | else | |
2766 | ac_check_lib_save_LIBS=$LIBS | |
2767 | LIBS="-lfl $LIBS" | |
2768 | cat >conftest.$ac_ext <<_ACEOF | |
2769 | #line 2769 "configure" | |
2770 | #include "confdefs.h" | |
2771 | ||
2772 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2773 | #ifdef __cplusplus | |
2774 | extern "C" | |
2775 | #endif | |
2776 | /* We use char because int might match the return type of a gcc2 | |
2777 | builtin and then its argument prototype would still apply. */ | |
2778 | char yywrap (); | |
2779 | int | |
2780 | main () | |
2781 | { | |
2782 | yywrap (); | |
2783 | ; | |
2784 | return 0; | |
2785 | } | |
2786 | _ACEOF | |
2787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2788 | if { (eval echo "$as_me:2788: \"$ac_link\"") >&5 | |
2789 | (eval $ac_link) 2>&5 | |
2790 | ac_status=$? | |
2791 | echo "$as_me:2791: \$? = $ac_status" >&5 | |
2792 | (exit $ac_status); } && | |
2793 | { ac_try='test -s conftest$ac_exeext' | |
2794 | { (eval echo "$as_me:2794: \"$ac_try\"") >&5 | |
2795 | (eval $ac_try) 2>&5 | |
2796 | ac_status=$? | |
2797 | echo "$as_me:2797: \$? = $ac_status" >&5 | |
2798 | (exit $ac_status); }; }; then | |
2799 | ac_cv_lib_fl_yywrap=yes | |
2800 | else | |
2801 | echo "$as_me: failed program was:" >&5 | |
2802 | cat conftest.$ac_ext >&5 | |
2803 | ac_cv_lib_fl_yywrap=no | |
2804 | fi | |
2805 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2806 | LIBS=$ac_check_lib_save_LIBS | |
2807 | fi | |
2808 | echo "$as_me:2808: result: $ac_cv_lib_fl_yywrap" >&5 | |
2809 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
2810 | if test $ac_cv_lib_fl_yywrap = yes; then | |
2811 | LEXLIB="-lfl" | |
2812 | else | |
2813 | echo "$as_me:2813: checking for yywrap in -ll" >&5 | |
2814 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
2815 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
2816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2817 | else | |
2818 | ac_check_lib_save_LIBS=$LIBS | |
2819 | LIBS="-ll $LIBS" | |
2820 | cat >conftest.$ac_ext <<_ACEOF | |
2821 | #line 2821 "configure" | |
2822 | #include "confdefs.h" | |
2823 | ||
2824 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2825 | #ifdef __cplusplus | |
2826 | extern "C" | |
2827 | #endif | |
2828 | /* We use char because int might match the return type of a gcc2 | |
2829 | builtin and then its argument prototype would still apply. */ | |
2830 | char yywrap (); | |
2831 | int | |
2832 | main () | |
2833 | { | |
2834 | yywrap (); | |
2835 | ; | |
2836 | return 0; | |
2837 | } | |
2838 | _ACEOF | |
2839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2840 | if { (eval echo "$as_me:2840: \"$ac_link\"") >&5 | |
2841 | (eval $ac_link) 2>&5 | |
2842 | ac_status=$? | |
2843 | echo "$as_me:2843: \$? = $ac_status" >&5 | |
2844 | (exit $ac_status); } && | |
2845 | { ac_try='test -s conftest$ac_exeext' | |
2846 | { (eval echo "$as_me:2846: \"$ac_try\"") >&5 | |
2847 | (eval $ac_try) 2>&5 | |
2848 | ac_status=$? | |
2849 | echo "$as_me:2849: \$? = $ac_status" >&5 | |
2850 | (exit $ac_status); }; }; then | |
2851 | ac_cv_lib_l_yywrap=yes | |
2852 | else | |
2853 | echo "$as_me: failed program was:" >&5 | |
2854 | cat conftest.$ac_ext >&5 | |
2855 | ac_cv_lib_l_yywrap=no | |
2856 | fi | |
2857 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2858 | LIBS=$ac_check_lib_save_LIBS | |
2859 | fi | |
2860 | echo "$as_me:2860: result: $ac_cv_lib_l_yywrap" >&5 | |
2861 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
2862 | if test $ac_cv_lib_l_yywrap = yes; then | |
2863 | LEXLIB="-ll" | |
2864 | fi | |
2865 | ||
2866 | fi | |
2867 | ||
2868 | fi | |
2869 | ||
2870 | if test "x$LEX" != "x:"; then | |
2871 | echo "$as_me:2871: checking lex output file root" >&5 | |
2872 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
2873 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
2874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2875 | else | |
2876 | # The minimal lex program is just a single line: %%. But some broken lexes | |
2877 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
2878 | echo '%% | |
2879 | %%' | $LEX | |
2880 | if test -f lex.yy.c; then | |
2881 | ac_cv_prog_lex_root=lex.yy | |
2882 | elif test -f lexyy.c; then | |
2883 | ac_cv_prog_lex_root=lexyy | |
2884 | else | |
2885 | { { echo "$as_me:2885: error: cannot find output from $LEX; giving up" >&5 | |
2886 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
2887 | { (exit 1); exit 1; }; } | |
2888 | fi | |
2889 | fi | |
2890 | echo "$as_me:2890: result: $ac_cv_prog_lex_root" >&5 | |
2891 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
2892 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
2893 | ||
2894 | echo "$as_me:2894: checking whether yytext is a pointer" >&5 | |
2895 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
2896 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
2897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2898 | else | |
2899 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
2900 | # default is implementation-dependent. Figure out which it is, since | |
2901 | # not all implementations provide the %pointer and %array declarations. | |
2902 | ac_cv_prog_lex_yytext_pointer=no | |
2903 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
2904 | ac_save_LIBS=$LIBS | |
2905 | LIBS="$LIBS $LEXLIB" | |
2906 | cat >conftest.$ac_ext <<_ACEOF | |
2907 | `cat $LEX_OUTPUT_ROOT.c` | |
2908 | _ACEOF | |
2909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2910 | if { (eval echo "$as_me:2910: \"$ac_link\"") >&5 | |
2911 | (eval $ac_link) 2>&5 | |
2912 | ac_status=$? | |
2913 | echo "$as_me:2913: \$? = $ac_status" >&5 | |
2914 | (exit $ac_status); } && | |
2915 | { ac_try='test -s conftest$ac_exeext' | |
2916 | { (eval echo "$as_me:2916: \"$ac_try\"") >&5 | |
2917 | (eval $ac_try) 2>&5 | |
2918 | ac_status=$? | |
2919 | echo "$as_me:2919: \$? = $ac_status" >&5 | |
2920 | (exit $ac_status); }; }; then | |
2921 | ac_cv_prog_lex_yytext_pointer=yes | |
2922 | else | |
2923 | echo "$as_me: failed program was:" >&5 | |
2924 | cat conftest.$ac_ext >&5 | |
2925 | fi | |
2926 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2927 | LIBS=$ac_save_LIBS | |
2928 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
2929 | ||
2930 | fi | |
2931 | echo "$as_me:2931: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
2932 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
2933 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
2934 | ||
2935 | cat >>confdefs.h <<\EOF | |
2936 | #define YYTEXT_POINTER 1 | |
2937 | EOF | |
2938 | ||
2939 | fi | |
2940 | ||
2941 | fi | |
2942 | ||
2943 | # Find a good install program. We prefer a C program (faster), | |
2944 | # so one script is as good as another. But avoid the broken or | |
2945 | # incompatible versions: | |
2946 | # SysV /etc/install, /usr/sbin/install | |
2947 | # SunOS /usr/etc/install | |
2948 | # IRIX /sbin/install | |
2949 | # AIX /bin/install | |
2950 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2951 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2952 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2953 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2954 | # ./install, which can be erroneously created by make from ./install.sh. | |
2955 | echo "$as_me:2955: checking for a BSD compatible install" >&5 | |
2956 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 | |
2957 | if test -z "$INSTALL"; then | |
2958 | if test "${ac_cv_path_install+set}" = set; then | |
2959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2960 | else | |
2961 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2962 | for ac_dir in $PATH; do | |
2963 | IFS=$ac_save_IFS | |
2964 | # Account for people who put trailing slashes in PATH elements. | |
2965 | case $ac_dir/ in | |
2966 | / | ./ | .// | /cC/* \ | |
2967 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
2968 | | /usr/ucb/* ) ;; | |
2969 | *) | |
2970 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2971 | # Don't use installbsd from OSF since it installs stuff as root | |
2972 | # by default. | |
2973 | for ac_prog in ginstall scoinst install; do | |
2974 | if $as_executable_p "$ac_dir/$ac_prog"; then | |
2975 | if test $ac_prog = install && | |
2976 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
2977 | # AIX install. It has an incompatible calling convention. | |
2978 | : | |
2979 | elif test $ac_prog = install && | |
2980 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
2981 | # program-specific install script used by HP pwplus--don't use. | |
2982 | : | |
2983 | else | |
2984 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2985 | break 2 | |
2986 | fi | |
2987 | fi | |
2988 | done | |
2989 | ;; | |
2990 | esac | |
2991 | done | |
2992 | ||
2993 | fi | |
2994 | if test "${ac_cv_path_install+set}" = set; then | |
2995 | INSTALL=$ac_cv_path_install | |
2996 | else | |
2997 | # As a last resort, use the slow shell script. We don't cache a | |
2998 | # path for INSTALL within a source directory, because that will | |
2999 | # break other packages using the cache if that directory is | |
3000 | # removed, or if the path is relative. | |
3001 | INSTALL=$ac_install_sh | |
3002 | fi | |
3003 | fi | |
3004 | echo "$as_me:3004: result: $INSTALL" >&5 | |
3005 | echo "${ECHO_T}$INSTALL" >&6 | |
3006 | ||
3007 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3008 | # It thinks the first close brace ends the variable substitution. | |
3009 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3010 | ||
3011 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3012 | ||
3013 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3014 | ||
3015 | echo "$as_me:3015: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
3016 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | |
3017 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
3018 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
3019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3020 | else | |
3021 | cat >conftest.make <<\EOF | |
3022 | all: | |
3023 | @echo 'ac_maketemp="${MAKE}"' | |
3024 | EOF | |
3025 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3026 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3027 | if test -n "$ac_maketemp"; then | |
3028 | eval ac_cv_prog_make_${ac_make}_set=yes | |
3029 | else | |
3030 | eval ac_cv_prog_make_${ac_make}_set=no | |
3031 | fi | |
3032 | rm -f conftest.make | |
3033 | fi | |
3034 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3035 | echo "$as_me:3035: result: yes" >&5 | |
3036 | echo "${ECHO_T}yes" >&6 | |
3037 | SET_MAKE= | |
3038 | else | |
3039 | echo "$as_me:3039: result: no" >&5 | |
3040 | echo "${ECHO_T}no" >&6 | |
3041 | SET_MAKE="MAKE=${MAKE-make}" | |
3042 | fi | |
3043 | ||
3044 | echo "$as_me:3044: checking whether ln -s works" >&5 | |
3045 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3046 | LN_S=$as_ln_s | |
3047 | if test "$LN_S" = "ln -s"; then | |
3048 | echo "$as_me:3048: result: yes" >&5 | |
3049 | echo "${ECHO_T}yes" >&6 | |
3050 | else | |
3051 | echo "$as_me:3051: result: no, using $LN_S" >&5 | |
3052 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3053 | fi | |
3054 | ||
3055 | # Extract the first word of "bison", so it can be a program name with args. | |
3056 | set dummy bison; ac_word=$2 | |
3057 | echo "$as_me:3057: checking for $ac_word" >&5 | |
3058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3059 | if test "${ac_cv_prog_BISON+set}" = set; then | |
3060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3061 | else | |
3062 | if test -n "$BISON"; then | |
3063 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
3064 | else | |
3065 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3066 | ac_dummy="$PATH" | |
3067 | for ac_dir in $ac_dummy; do | |
3068 | IFS=$ac_save_IFS | |
3069 | test -z "$ac_dir" && ac_dir=. | |
3070 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3071 | ac_cv_prog_BISON="bison" | |
3072 | echo "$as_me:3072: found $ac_dir/$ac_word" >&5 | |
3073 | break | |
3074 | done | |
3075 | ||
3076 | test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="no" | |
3077 | fi | |
3078 | fi | |
3079 | BISON=$ac_cv_prog_BISON | |
3080 | if test -n "$BISON"; then | |
3081 | echo "$as_me:3081: result: $BISON" >&5 | |
3082 | echo "${ECHO_T}$BISON" >&6 | |
3083 | else | |
3084 | echo "$as_me:3084: result: no" >&5 | |
3085 | echo "${ECHO_T}no" >&6 | |
3086 | fi | |
3087 | ||
3088 | # Extract the first word of "grep", so it can be a program name with args. | |
3089 | set dummy grep; ac_word=$2 | |
3090 | echo "$as_me:3090: checking for $ac_word" >&5 | |
3091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3092 | if test "${ac_cv_prog_GREP+set}" = set; then | |
3093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3094 | else | |
3095 | if test -n "$GREP"; then | |
3096 | ac_cv_prog_GREP="$GREP" # Let the user override the test. | |
3097 | else | |
3098 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3099 | ac_dummy="$PATH" | |
3100 | for ac_dir in $ac_dummy; do | |
3101 | IFS=$ac_save_IFS | |
3102 | test -z "$ac_dir" && ac_dir=. | |
3103 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3104 | ac_cv_prog_GREP="grep" | |
3105 | echo "$as_me:3105: found $ac_dir/$ac_word" >&5 | |
3106 | break | |
3107 | done | |
3108 | ||
3109 | test -z "$ac_cv_prog_GREP" && ac_cv_prog_GREP="grep-is-missing" | |
3110 | fi | |
3111 | fi | |
3112 | GREP=$ac_cv_prog_GREP | |
3113 | if test -n "$GREP"; then | |
3114 | echo "$as_me:3114: result: $GREP" >&5 | |
3115 | echo "${ECHO_T}$GREP" >&6 | |
3116 | else | |
3117 | echo "$as_me:3117: result: no" >&5 | |
3118 | echo "${ECHO_T}no" >&6 | |
3119 | fi | |
3120 | ||
3121 | # Extract the first word of "diff", so it can be a program name with args. | |
3122 | set dummy diff; ac_word=$2 | |
3123 | echo "$as_me:3123: checking for $ac_word" >&5 | |
3124 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3125 | if test "${ac_cv_prog_DIFF+set}" = set; then | |
3126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3127 | else | |
3128 | if test -n "$DIFF"; then | |
3129 | ac_cv_prog_DIFF="$DIFF" # Let the user override the test. | |
3130 | else | |
3131 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3132 | ac_dummy="$PATH" | |
3133 | for ac_dir in $ac_dummy; do | |
3134 | IFS=$ac_save_IFS | |
3135 | test -z "$ac_dir" && ac_dir=. | |
3136 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3137 | ac_cv_prog_DIFF="diff" | |
3138 | echo "$as_me:3138: found $ac_dir/$ac_word" >&5 | |
3139 | break | |
3140 | done | |
3141 | ||
3142 | test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff-is-missing" | |
3143 | fi | |
3144 | fi | |
3145 | DIFF=$ac_cv_prog_DIFF | |
3146 | if test -n "$DIFF"; then | |
3147 | echo "$as_me:3147: result: $DIFF" >&5 | |
3148 | echo "${ECHO_T}$DIFF" >&6 | |
3149 | else | |
3150 | echo "$as_me:3150: result: no" >&5 | |
3151 | echo "${ECHO_T}no" >&6 | |
3152 | fi | |
3153 | ||
3154 | # Extract the first word of "cat", so it can be a program name with args. | |
3155 | set dummy cat; ac_word=$2 | |
3156 | echo "$as_me:3156: checking for $ac_word" >&5 | |
3157 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3158 | if test "${ac_cv_prog_CAT+set}" = set; then | |
3159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3160 | else | |
3161 | if test -n "$CAT"; then | |
3162 | ac_cv_prog_CAT="$CAT" # Let the user override the test. | |
3163 | else | |
3164 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3165 | ac_dummy="$PATH" | |
3166 | for ac_dir in $ac_dummy; do | |
3167 | IFS=$ac_save_IFS | |
3168 | test -z "$ac_dir" && ac_dir=. | |
3169 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3170 | ac_cv_prog_CAT="cat" | |
3171 | echo "$as_me:3171: found $ac_dir/$ac_word" >&5 | |
3172 | break | |
3173 | done | |
3174 | ||
3175 | test -z "$ac_cv_prog_CAT" && ac_cv_prog_CAT="cat-is-missing" | |
3176 | fi | |
3177 | fi | |
3178 | CAT=$ac_cv_prog_CAT | |
3179 | if test -n "$CAT"; then | |
3180 | echo "$as_me:3180: result: $CAT" >&5 | |
3181 | echo "${ECHO_T}$CAT" >&6 | |
3182 | else | |
3183 | echo "$as_me:3183: result: no" >&5 | |
3184 | echo "${ECHO_T}no" >&6 | |
3185 | fi | |
3186 | ||
3187 | # Extract the first word of "rm", so it can be a program name with args. | |
3188 | set dummy rm; ac_word=$2 | |
3189 | echo "$as_me:3189: checking for $ac_word" >&5 | |
3190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3191 | if test "${ac_cv_prog_RM+set}" = set; then | |
3192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3193 | else | |
3194 | if test -n "$RM"; then | |
3195 | ac_cv_prog_RM="$RM" # Let the user override the test. | |
3196 | else | |
3197 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3198 | ac_dummy="$PATH" | |
3199 | for ac_dir in $ac_dummy; do | |
3200 | IFS=$ac_save_IFS | |
3201 | test -z "$ac_dir" && ac_dir=. | |
3202 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3203 | ac_cv_prog_RM="rm" | |
3204 | echo "$as_me:3204: found $ac_dir/$ac_word" >&5 | |
3205 | break | |
3206 | done | |
3207 | ||
3208 | test -z "$ac_cv_prog_RM" && ac_cv_prog_RM="rm-is-missing" | |
3209 | fi | |
3210 | fi | |
3211 | RM=$ac_cv_prog_RM | |
3212 | if test -n "$RM"; then | |
3213 | echo "$as_me:3213: result: $RM" >&5 | |
3214 | echo "${ECHO_T}$RM" >&6 | |
3215 | else | |
3216 | echo "$as_me:3216: result: no" >&5 | |
3217 | echo "${ECHO_T}no" >&6 | |
3218 | fi | |
3219 | ||
3220 | # Extract the first word of "mv", so it can be a program name with args. | |
3221 | set dummy mv; ac_word=$2 | |
3222 | echo "$as_me:3222: checking for $ac_word" >&5 | |
3223 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3224 | if test "${ac_cv_prog_MV+set}" = set; then | |
3225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3226 | else | |
3227 | if test -n "$MV"; then | |
3228 | ac_cv_prog_MV="$MV" # Let the user override the test. | |
3229 | else | |
3230 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3231 | ac_dummy="$PATH" | |
3232 | for ac_dir in $ac_dummy; do | |
3233 | IFS=$ac_save_IFS | |
3234 | test -z "$ac_dir" && ac_dir=. | |
3235 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3236 | ac_cv_prog_MV="mv" | |
3237 | echo "$as_me:3237: found $ac_dir/$ac_word" >&5 | |
3238 | break | |
3239 | done | |
3240 | ||
3241 | test -z "$ac_cv_prog_MV" && ac_cv_prog_MV="mv-is-missing" | |
3242 | fi | |
3243 | fi | |
3244 | MV=$ac_cv_prog_MV | |
3245 | if test -n "$MV"; then | |
3246 | echo "$as_me:3246: result: $MV" >&5 | |
3247 | echo "${ECHO_T}$MV" >&6 | |
3248 | else | |
3249 | echo "$as_me:3249: result: no" >&5 | |
3250 | echo "${ECHO_T}no" >&6 | |
3251 | fi | |
3252 | ||
3253 | # Extract the first word of "cp", so it can be a program name with args. | |
3254 | set dummy cp; ac_word=$2 | |
3255 | echo "$as_me:3255: checking for $ac_word" >&5 | |
3256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3257 | if test "${ac_cv_prog_CP+set}" = set; then | |
3258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3259 | else | |
3260 | if test -n "$CP"; then | |
3261 | ac_cv_prog_CP="$CP" # Let the user override the test. | |
3262 | else | |
3263 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3264 | ac_dummy="$PATH" | |
3265 | for ac_dir in $ac_dummy; do | |
3266 | IFS=$ac_save_IFS | |
3267 | test -z "$ac_dir" && ac_dir=. | |
3268 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3269 | ac_cv_prog_CP="cp" | |
3270 | echo "$as_me:3270: found $ac_dir/$ac_word" >&5 | |
3271 | break | |
3272 | done | |
3273 | ||
3274 | test -z "$ac_cv_prog_CP" && ac_cv_prog_CP="cp-is-missing" | |
3275 | fi | |
3276 | fi | |
3277 | CP=$ac_cv_prog_CP | |
3278 | if test -n "$CP"; then | |
3279 | echo "$as_me:3279: result: $CP" >&5 | |
3280 | echo "${ECHO_T}$CP" >&6 | |
3281 | else | |
3282 | echo "$as_me:3282: result: no" >&5 | |
3283 | echo "${ECHO_T}no" >&6 | |
3284 | fi | |
3285 | ||
3286 | LCLOBJ='$(lcl_OBJECTS)' | |
3287 | ||
3288 | # Check whether --with-lcl or --without-lcl was given. | |
3289 | if test "${with_lcl+set}" = set; then | |
3290 | withval="$with_lcl" | |
3291 | ac_cv_use_lcl=$withval | |
3292 | else | |
3293 | echo "$as_me:3293: checking whether to include support for LCL files" >&5 | |
3294 | echo $ECHO_N "checking whether to include support for LCL files... $ECHO_C" >&6 | |
3295 | if test "${ac_cv_use_lcl+set}" = set; then | |
3296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3297 | else | |
3298 | ac_cv_use_lcl=yes | |
3299 | fi | |
3300 | echo "$as_me:3300: result: $ac_cv_use_lcl" >&5 | |
3301 | echo "${ECHO_T}$ac_cv_use_lcl" >&6 | |
3302 | fi; | |
3303 | if test x$ac_cv_use_lcl != xyes; then | |
3304 | LCLOBJ= | |
3305 | ||
3306 | cat >>confdefs.h <<\EOF | |
3307 | #define NOLCL 1 | |
3308 | EOF | |
3309 | ||
3310 | fi | |
3311 | ||
3312 | # Make sure we have an actual value for $prefix | |
3313 | myprefix=$prefix | |
3314 | test x$myprefix = xNONE && myprefix=$ac_default_prefix | |
3315 | ||
3316 | # cpplib.h defines 2 include dirs; one is $includedir, the other is gcc's | |
3317 | # include dir. Not the most portable setup, but let's do our best. | |
3318 | if test x$ac_cv_c_compiler_gnu = xyes; then | |
3319 | GCC_INCLUDE_DIR=`LANGUAGE= LANG= $CC -v 2>&1 | sed -e '/^gcc/ d' -e 's/.* \(.*\)specs/\1include/'` | |
3320 | ||
3321 | cat >>confdefs.h <<EOF | |
3322 | #define GCC_INCLUDE_DIR "$GCC_INCLUDE_DIR" | |
3323 | EOF | |
3324 | ||
3325 | fi | |
3326 | ||
3327 | cat >>confdefs.h <<EOF | |
3328 | #define GCC_INCLUDE_DIR2 "$myprefix/include" | |
3329 | EOF | |
3330 | ||
3331 | # These used to be in local_constants.h | |
3332 | ||
3333 | cat >>confdefs.h <<EOF | |
3334 | #define SYSTEM_LIBDIR "$myprefix/include" | |
3335 | EOF | |
3336 | ||
3337 | cat >>confdefs.h <<EOF | |
3338 | #define DEFAULT_LARCHPATH ".$PATH_SEPARATOR$myprefix/share/lclint/lib" | |
3339 | EOF | |
3340 | ||
3341 | cat >>confdefs.h <<EOF | |
3342 | #define DEFAULT_LCLIMPORTDIR "$myprefix/share/lclint/imports" | |
3343 | EOF | |
3344 | ||
3345 | # These used to be in herald.h | |
3346 | LCL_PARSE_VERSION="LCLint 3.0.0.19" | |
3347 | ||
3348 | cat >>confdefs.h <<EOF | |
3349 | #define LCL_VERSION "$LCL_PARSE_VERSION --- `cat $srcdir/src/DATE`" | |
3350 | EOF | |
3351 | ||
3352 | cat >>confdefs.h <<EOF | |
3353 | #define LCL_PARSE_VERSION "$LCL_PARSE_VERSION" | |
3354 | EOF | |
3355 | ||
3356 | cat >>confdefs.h <<EOF | |
3357 | #define LCL_COMPILE "Compiled using $CC $CFLAGS on `uname -a` by `whoami`" | |
3358 | EOF | |
3359 | ||
3360 | cat >>confdefs.h <<\EOF | |
3361 | #define UNIX 1 | |
3362 | EOF | |
3363 | ||
3364 | ac_config_files="$ac_config_files Makefile imports/Makefile lib/Makefile src/Makefile test/Makefile" | |
3365 | ||
3366 | cat >confcache <<\_ACEOF | |
3367 | # This file is a shell script that caches the results of configure | |
3368 | # tests run on this system so they can be shared between configure | |
3369 | # scripts and configure runs, see configure's option --config-cache. | |
3370 | # It is not useful on other systems. If it contains results you don't | |
3371 | # want to keep, you may remove or edit it. | |
3372 | # | |
3373 | # config.status only pays attention to the cache file if you give it | |
3374 | # the --recheck option to rerun configure. | |
3375 | # | |
3376 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | |
3377 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3378 | # following values. | |
3379 | ||
3380 | _ACEOF | |
3381 | ||
3382 | # The following way of writing the cache mishandles newlines in values, | |
3383 | # but we know of no workaround that is simple, portable, and efficient. | |
3384 | # So, don't put newlines in cache variables' values. | |
3385 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3386 | # and sets the high bit in the cache file unless we assign to the vars. | |
3387 | { | |
3388 | (set) 2>&1 | | |
3389 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
3390 | *ac_space=\ *) | |
3391 | # `set' does not quote correctly, so add quotes (double-quote | |
3392 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3393 | sed -n \ | |
3394 | "s/'/'\\\\''/g; | |
3395 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3396 | ;; | |
3397 | *) | |
3398 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3399 | sed -n \ | |
3400 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
3401 | ;; | |
3402 | esac; | |
3403 | } | | |
3404 | sed ' | |
3405 | t clear | |
3406 | : clear | |
3407 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3408 | t end | |
3409 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3410 | : end' >>confcache | |
3411 | if cmp -s $cache_file confcache; then :; else | |
3412 | if test -w $cache_file; then | |
3413 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
3414 | cat confcache >$cache_file | |
3415 | else | |
3416 | echo "not updating unwritable cache $cache_file" | |
3417 | fi | |
3418 | fi | |
3419 | rm -f confcache | |
3420 | ||
3421 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3422 | # Let make expand exec_prefix. | |
3423 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3424 | ||
3425 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
3426 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
3427 | # trailing colons and then remove the whole line if VPATH becomes empty | |
3428 | # (actually we leave an empty line to preserve line numbers). | |
3429 | if test "x$srcdir" = x.; then | |
3430 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
3431 | s/:*\$(srcdir):*/:/; | |
3432 | s/:*\${srcdir}:*/:/; | |
3433 | s/:*@srcdir@:*/:/; | |
3434 | s/^\([^=]*=[ ]*\):*/\1/; | |
3435 | s/:*$//; | |
3436 | s/^[^=]*=[ ]*$//; | |
3437 | }' | |
3438 | fi | |
3439 | ||
3440 | DEFS=-DHAVE_CONFIG_H | |
3441 | ||
3442 | : ${CONFIG_STATUS=./config.status} | |
3443 | ac_clean_files_save=$ac_clean_files | |
3444 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3445 | { echo "$as_me:3445: creating $CONFIG_STATUS" >&5 | |
3446 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3447 | cat >$CONFIG_STATUS <<_ACEOF | |
3448 | #! $SHELL | |
3449 | # Generated automatically by configure. | |
3450 | # Run this file to recreate the current configuration. | |
3451 | # Compiler output produced by configure, useful for debugging | |
3452 | # configure, is in config.log if it exists. | |
3453 | ||
3454 | debug=false | |
3455 | SHELL=\${CONFIG_SHELL-$SHELL} | |
3456 | ac_cs_invocation="\$0 \$@" | |
3457 | ||
3458 | _ACEOF | |
3459 | ||
3460 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3461 | # Be Bourne compatible | |
3462 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
3463 | emulate sh | |
3464 | NULLCMD=: | |
3465 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
3466 | set -o posix | |
3467 | fi | |
3468 | ||
3469 | # Name of the executable. | |
3470 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
3471 | ||
3472 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
3473 | as_expr=expr | |
3474 | else | |
3475 | as_expr=false | |
3476 | fi | |
3477 | ||
3478 | rm -f conf$$ conf$$.exe conf$$.file | |
3479 | echo >conf$$.file | |
3480 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
3481 | # We could just check for DJGPP; but this test a) works b) is more generic | |
3482 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
3483 | if test -f conf$$.exe; then | |
3484 | # Don't use ln at all; we don't have any links | |
3485 | as_ln_s='cp -p' | |
3486 | else | |
3487 | as_ln_s='ln -s' | |
3488 | fi | |
3489 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
3490 | as_ln_s=ln | |
3491 | else | |
3492 | as_ln_s='cp -p' | |
3493 | fi | |
3494 | rm -f conf$$ conf$$.exe conf$$.file | |
3495 | ||
3496 | as_executable_p="test -f" | |
3497 | ||
3498 | # Support unset when possible. | |
3499 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
3500 | as_unset=unset | |
3501 | else | |
3502 | as_unset=false | |
3503 | fi | |
3504 | ||
3505 | # NLS nuisances. | |
3506 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
3507 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
3508 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
3509 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
3510 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
3511 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
3512 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
3513 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
3514 | ||
3515 | # IFS | |
3516 | # We need space, tab and new line, in precisely that order. | |
3517 | as_nl=' | |
3518 | ' | |
3519 | IFS=" $as_nl" | |
3520 | ||
3521 | # CDPATH. | |
3522 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
3523 | ||
3524 | exec 6>&1 | |
3525 | ||
3526 | _ACEOF | |
3527 | ||
3528 | # Files that config.status was made for. | |
3529 | if test -n "$ac_config_files"; then | |
3530 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
3531 | fi | |
3532 | ||
3533 | if test -n "$ac_config_headers"; then | |
3534 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
3535 | fi | |
3536 | ||
3537 | if test -n "$ac_config_links"; then | |
3538 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
3539 | fi | |
3540 | ||
3541 | if test -n "$ac_config_commands"; then | |
3542 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
3543 | fi | |
3544 | ||
3545 | cat >>$CONFIG_STATUS <<\EOF | |
3546 | ||
3547 | ac_cs_usage="\ | |
3548 | \`$as_me' instantiates files from templates according to the | |
3549 | current configuration. | |
3550 | ||
3551 | Usage: $0 [OPTIONS] [FILE]... | |
3552 | ||
3553 | -h, --help print this help, then exit | |
3554 | -V, --version print version number, then exit | |
3555 | -d, --debug don't remove temporary files | |
3556 | --recheck update $as_me by reconfiguring in the same conditions | |
3557 | --file=FILE[:TEMPLATE] | |
3558 | instantiate the configuration file FILE | |
3559 | --header=FILE[:TEMPLATE] | |
3560 | instantiate the configuration header FILE | |
3561 | ||
3562 | Configuration files: | |
3563 | $config_files | |
3564 | ||
3565 | Configuration headers: | |
3566 | $config_headers | |
3567 | ||
3568 | Configuration commands: | |
3569 | $config_commands | |
3570 | ||
3571 | Report bugs to <bug-autoconf@gnu.org>." | |
3572 | EOF | |
3573 | ||
3574 | cat >>$CONFIG_STATUS <<EOF | |
3575 | ac_cs_version="\\ | |
3576 | LCLint config.status 3.0.0.19 | |
3577 | configured by $0, generated by GNU Autoconf 2.52, | |
3578 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
3579 | ||
3580 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
3581 | Free Software Foundation, Inc. | |
3582 | This config.status script is free software; the Free Software Foundation | |
3583 | gives unlimited permission to copy, distribute and modify it." | |
3584 | srcdir=$srcdir | |
3585 | INSTALL="$INSTALL" | |
3586 | EOF | |
3587 | ||
3588 | cat >>$CONFIG_STATUS <<\EOF | |
3589 | # If no file are specified by the user, then we need to provide default | |
3590 | # value. By we need to know if files were specified by the user. | |
3591 | ac_need_defaults=: | |
3592 | while test $# != 0 | |
3593 | do | |
3594 | case $1 in | |
3595 | --*=*) | |
3596 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
3597 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
3598 | shift | |
3599 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
3600 | shift | |
3601 | ;; | |
3602 | -*);; | |
3603 | *) # This is not an option, so the user has probably given explicit | |
3604 | # arguments. | |
3605 | ac_need_defaults=false;; | |
3606 | esac | |
3607 | ||
3608 | case $1 in | |
3609 | # Handling of the options. | |
3610 | EOF | |
3611 | cat >>$CONFIG_STATUS <<EOF | |
3612 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3613 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
3614 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
3615 | EOF | |
3616 | cat >>$CONFIG_STATUS <<\EOF | |
3617 | --version | --vers* | -V ) | |
3618 | echo "$ac_cs_version"; exit 0 ;; | |
3619 | --he | --h) | |
3620 | # Conflict between --help and --header | |
3621 | { { echo "$as_me:3621: error: ambiguous option: $1 | |
3622 | Try \`$0 --help' for more information." >&5 | |
3623 | echo "$as_me: error: ambiguous option: $1 | |
3624 | Try \`$0 --help' for more information." >&2;} | |
3625 | { (exit 1); exit 1; }; };; | |
3626 | --help | --hel | -h ) | |
3627 | echo "$ac_cs_usage"; exit 0 ;; | |
3628 | --debug | --d* | -d ) | |
3629 | debug=: ;; | |
3630 | --file | --fil | --fi | --f ) | |
3631 | shift | |
3632 | CONFIG_FILES="$CONFIG_FILES $1" | |
3633 | ac_need_defaults=false;; | |
3634 | --header | --heade | --head | --hea ) | |
3635 | shift | |
3636 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
3637 | ac_need_defaults=false;; | |
3638 | ||
3639 | # This is an error. | |
3640 | -*) { { echo "$as_me:3640: error: unrecognized option: $1 | |
3641 | Try \`$0 --help' for more information." >&5 | |
3642 | echo "$as_me: error: unrecognized option: $1 | |
3643 | Try \`$0 --help' for more information." >&2;} | |
3644 | { (exit 1); exit 1; }; } ;; | |
3645 | ||
3646 | *) ac_config_targets="$ac_config_targets $1" ;; | |
3647 | ||
3648 | esac | |
3649 | shift | |
3650 | done | |
3651 | ||
3652 | exec 5>>config.log | |
3653 | cat >&5 << _ACEOF | |
3654 | ||
3655 | ## ----------------------- ## | |
3656 | ## Running config.status. ## | |
3657 | ## ----------------------- ## | |
3658 | ||
3659 | This file was extended by $as_me (LCLint 3.0.0.19) 2.52, executed with | |
3660 | CONFIG_FILES = $CONFIG_FILES | |
3661 | CONFIG_HEADERS = $CONFIG_HEADERS | |
3662 | CONFIG_LINKS = $CONFIG_LINKS | |
3663 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3664 | > $ac_cs_invocation | |
3665 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
3666 | ||
3667 | _ACEOF | |
3668 | EOF | |
3669 | ||
3670 | cat >>$CONFIG_STATUS <<EOF | |
3671 | # | |
3672 | # INIT-COMMANDS section. | |
3673 | # | |
3674 | ||
3675 | AMDEP_TRUE="$AMDEP_TRUE" | |
3676 | ac_aux_dir="$ac_aux_dir" | |
3677 | ||
3678 | EOF | |
3679 | ||
3680 | cat >>$CONFIG_STATUS <<\EOF | |
3681 | for ac_config_target in $ac_config_targets | |
3682 | do | |
3683 | case "$ac_config_target" in | |
3684 | # Handling of arguments. | |
3685 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
3686 | "imports/Makefile" ) CONFIG_FILES="$CONFIG_FILES imports/Makefile" ;; | |
3687 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
3688 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
3689 | "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; | |
3690 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
3691 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; | |
3692 | *) { { echo "$as_me:3692: error: invalid argument: $ac_config_target" >&5 | |
3693 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
3694 | { (exit 1); exit 1; }; };; | |
3695 | esac | |
3696 | done | |
3697 | ||
3698 | # If the user did not use the arguments to specify the items to instantiate, | |
3699 | # then the envvar interface is used. Set only those that are not. | |
3700 | # We use the long form for the default assignment because of an extremely | |
3701 | # bizarre bug on SunOS 4.1.3. | |
3702 | if $ac_need_defaults; then | |
3703 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
3704 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
3705 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
3706 | fi | |
3707 | ||
3708 | # Create a temporary directory, and hook for its removal unless debugging. | |
3709 | $debug || | |
3710 | { | |
3711 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
3712 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
3713 | } | |
3714 | ||
3715 | # Create a (secure) tmp directory for tmp files. | |
3716 | : ${TMPDIR=/tmp} | |
3717 | { | |
3718 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
3719 | test -n "$tmp" && test -d "$tmp" | |
3720 | } || | |
3721 | { | |
3722 | tmp=$TMPDIR/cs$$-$RANDOM | |
3723 | (umask 077 && mkdir $tmp) | |
3724 | } || | |
3725 | { | |
3726 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
3727 | { (exit 1); exit 1; } | |
3728 | } | |
3729 | ||
3730 | EOF | |
3731 | ||
3732 | cat >>$CONFIG_STATUS <<EOF | |
3733 | ||
3734 | # | |
3735 | # CONFIG_FILES section. | |
3736 | # | |
3737 | ||
3738 | # No need to generate the scripts if there are no CONFIG_FILES. | |
3739 | # This happens for instance when ./config.status config.h | |
3740 | if test -n "\$CONFIG_FILES"; then | |
3741 | # Protect against being on the right side of a sed subst in config.status. | |
3742 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
3743 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
3744 | s,@SHELL@,$SHELL,;t t | |
3745 | s,@exec_prefix@,$exec_prefix,;t t | |
3746 | s,@prefix@,$prefix,;t t | |
3747 | s,@program_transform_name@,$program_transform_name,;t t | |
3748 | s,@bindir@,$bindir,;t t | |
3749 | s,@sbindir@,$sbindir,;t t | |
3750 | s,@libexecdir@,$libexecdir,;t t | |
3751 | s,@datadir@,$datadir,;t t | |
3752 | s,@sysconfdir@,$sysconfdir,;t t | |
3753 | s,@sharedstatedir@,$sharedstatedir,;t t | |
3754 | s,@localstatedir@,$localstatedir,;t t | |
3755 | s,@libdir@,$libdir,;t t | |
3756 | s,@includedir@,$includedir,;t t | |
3757 | s,@oldincludedir@,$oldincludedir,;t t | |
3758 | s,@infodir@,$infodir,;t t | |
3759 | s,@mandir@,$mandir,;t t | |
3760 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
3761 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
3762 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
3763 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
3764 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
3765 | s,@build_alias@,$build_alias,;t t | |
3766 | s,@host_alias@,$host_alias,;t t | |
3767 | s,@target_alias@,$target_alias,;t t | |
3768 | s,@ECHO_C@,$ECHO_C,;t t | |
3769 | s,@ECHO_N@,$ECHO_N,;t t | |
3770 | s,@ECHO_T@,$ECHO_T,;t t | |
3771 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
3772 | s,@DEFS@,$DEFS,;t t | |
3773 | s,@LIBS@,$LIBS,;t t | |
3774 | s,@build@,$build,;t t | |
3775 | s,@build_cpu@,$build_cpu,;t t | |
3776 | s,@build_vendor@,$build_vendor,;t t | |
3777 | s,@build_os@,$build_os,;t t | |
3778 | s,@host@,$host,;t t | |
3779 | s,@host_cpu@,$host_cpu,;t t | |
3780 | s,@host_vendor@,$host_vendor,;t t | |
3781 | s,@host_os@,$host_os,;t t | |
3782 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
3783 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
3784 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
3785 | s,@PACKAGE@,$PACKAGE,;t t | |
3786 | s,@VERSION@,$VERSION,;t t | |
3787 | s,@EXEEXT@,$EXEEXT,;t t | |
3788 | s,@OBJEXT@,$OBJEXT,;t t | |
3789 | s,@ACLOCAL@,$ACLOCAL,;t t | |
3790 | s,@AUTOCONF@,$AUTOCONF,;t t | |
3791 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
3792 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
3793 | s,@MAKEINFO@,$MAKEINFO,;t t | |
3794 | s,@AMTAR@,$AMTAR,;t t | |
3795 | s,@install_sh@,$install_sh,;t t | |
3796 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
3797 | s,@AWK@,$AWK,;t t | |
3798 | s,@SET_MAKE@,$SET_MAKE,;t t | |
3799 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
3800 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
3801 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
3802 | s,@DEPDIR@,$DEPDIR,;t t | |
3803 | s,@CXX@,$CXX,;t t | |
3804 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
3805 | s,@LDFLAGS@,$LDFLAGS,;t t | |
3806 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
3807 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
3808 | s,@am__include@,$am__include,;t t | |
3809 | s,@am__quote@,$am__quote,;t t | |
3810 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
3811 | s,@CC@,$CC,;t t | |
3812 | s,@CFLAGS@,$CFLAGS,;t t | |
3813 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
3814 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
3815 | s,@CPP@,$CPP,;t t | |
3816 | s,@LEX@,$LEX,;t t | |
3817 | s,@LEXLIB@,$LEXLIB,;t t | |
3818 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
3819 | s,@LN_S@,$LN_S,;t t | |
3820 | s,@BISON@,$BISON,;t t | |
3821 | s,@GREP@,$GREP,;t t | |
3822 | s,@DIFF@,$DIFF,;t t | |
3823 | s,@CAT@,$CAT,;t t | |
3824 | s,@RM@,$RM,;t t | |
3825 | s,@MV@,$MV,;t t | |
3826 | s,@CP@,$CP,;t t | |
3827 | s,@LCLOBJ@,$LCLOBJ,;t t | |
3828 | CEOF | |
3829 | ||
3830 | EOF | |
3831 | ||
3832 | cat >>$CONFIG_STATUS <<\EOF | |
3833 | # Split the substitutions into bite-sized pieces for seds with | |
3834 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
3835 | ac_max_sed_lines=48 | |
3836 | ac_sed_frag=1 # Number of current file. | |
3837 | ac_beg=1 # First line for current file. | |
3838 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
3839 | ac_more_lines=: | |
3840 | ac_sed_cmds= | |
3841 | while $ac_more_lines; do | |
3842 | if test $ac_beg -gt 1; then | |
3843 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
3844 | else | |
3845 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
3846 | fi | |
3847 | if test ! -s $tmp/subs.frag; then | |
3848 | ac_more_lines=false | |
3849 | else | |
3850 | # The purpose of the label and of the branching condition is to | |
3851 | # speed up the sed processing (if there are no `@' at all, there | |
3852 | # is no need to browse any of the substitutions). | |
3853 | # These are the two extra sed commands mentioned above. | |
3854 | (echo ':t | |
3855 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
3856 | if test -z "$ac_sed_cmds"; then | |
3857 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
3858 | else | |
3859 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
3860 | fi | |
3861 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
3862 | ac_beg=$ac_end | |
3863 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
3864 | fi | |
3865 | done | |
3866 | if test -z "$ac_sed_cmds"; then | |
3867 | ac_sed_cmds=cat | |
3868 | fi | |
3869 | fi # test -n "$CONFIG_FILES" | |
3870 | ||
3871 | EOF | |
3872 | cat >>$CONFIG_STATUS <<\EOF | |
3873 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
3874 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3875 | case $ac_file in | |
3876 | - | *:- | *:-:* ) # input from stdin | |
3877 | cat >$tmp/stdin | |
3878 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3879 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3880 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3881 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3882 | * ) ac_file_in=$ac_file.in ;; | |
3883 | esac | |
3884 | ||
3885 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
3886 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3887 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3888 | X"$ac_file" : 'X\(//\)$' \| \ | |
3889 | X"$ac_file" : 'X\(/\)' \| \ | |
3890 | . : '\(.\)' 2>/dev/null || | |
3891 | echo X"$ac_file" | | |
3892 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
3893 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
3894 | /^X\(\/\/\)$/{ s//\1/; q; } | |
3895 | /^X\(\/\).*/{ s//\1/; q; } | |
3896 | s/.*/./; q'` | |
3897 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3898 | { case "$ac_dir" in | |
3899 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
3900 | *) as_incr_dir=.;; | |
3901 | esac | |
3902 | as_dummy="$ac_dir" | |
3903 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
3904 | case $as_mkdir_dir in | |
3905 | # Skip DOS drivespec | |
3906 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
3907 | *) | |
3908 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
3909 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
3910 | ;; | |
3911 | esac | |
3912 | done; } | |
3913 | ||
3914 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | |
3915 | # A "../" for each directory in $ac_dir_suffix. | |
3916 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | |
3917 | else | |
3918 | ac_dir_suffix= ac_dots= | |
3919 | fi | |
3920 | ||
3921 | case $srcdir in | |
3922 | .) ac_srcdir=. | |
3923 | if test -z "$ac_dots"; then | |
3924 | ac_top_srcdir=. | |
3925 | else | |
3926 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
3927 | fi ;; | |
3928 | [\\/]* | ?:[\\/]* ) | |
3929 | ac_srcdir=$srcdir$ac_dir_suffix; | |
3930 | ac_top_srcdir=$srcdir ;; | |
3931 | *) # Relative path. | |
3932 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix | |
3933 | ac_top_srcdir=$ac_dots$srcdir ;; | |
3934 | esac | |
3935 | ||
3936 | case $INSTALL in | |
3937 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
3938 | *) ac_INSTALL=$ac_dots$INSTALL ;; | |
3939 | esac | |
3940 | ||
3941 | if test x"$ac_file" != x-; then | |
3942 | { echo "$as_me:3942: creating $ac_file" >&5 | |
3943 | echo "$as_me: creating $ac_file" >&6;} | |
3944 | rm -f "$ac_file" | |
3945 | fi | |
3946 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
3947 | # use $as_me), people would be surprised to read: | |
3948 | # /* config.h. Generated automatically by config.status. */ | |
3949 | configure_input="Generated automatically from `echo $ac_file_in | | |
3950 | sed 's,.*/,,'` by configure." | |
3951 | ||
3952 | # First look for the input files in the build tree, otherwise in the | |
3953 | # src tree. | |
3954 | ac_file_inputs=`IFS=: | |
3955 | for f in $ac_file_in; do | |
3956 | case $f in | |
3957 | -) echo $tmp/stdin ;; | |
3958 | [\\/$]*) | |
3959 | # Absolute (can't be DOS-style, as IFS=:) | |
3960 | test -f "$f" || { { echo "$as_me:3960: error: cannot find input file: $f" >&5 | |
3961 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
3962 | { (exit 1); exit 1; }; } | |
3963 | echo $f;; | |
3964 | *) # Relative | |
3965 | if test -f "$f"; then | |
3966 | # Build tree | |
3967 | echo $f | |
3968 | elif test -f "$srcdir/$f"; then | |
3969 | # Source tree | |
3970 | echo $srcdir/$f | |
3971 | else | |
3972 | # /dev/null tree | |
3973 | { { echo "$as_me:3973: error: cannot find input file: $f" >&5 | |
3974 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
3975 | { (exit 1); exit 1; }; } | |
3976 | fi;; | |
3977 | esac | |
3978 | done` || { (exit 1); exit 1; } | |
3979 | EOF | |
3980 | cat >>$CONFIG_STATUS <<EOF | |
3981 | sed "$ac_vpsub | |
3982 | $extrasub | |
3983 | EOF | |
3984 | cat >>$CONFIG_STATUS <<\EOF | |
3985 | :t | |
3986 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3987 | s,@configure_input@,$configure_input,;t t | |
3988 | s,@srcdir@,$ac_srcdir,;t t | |
3989 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
3990 | s,@INSTALL@,$ac_INSTALL,;t t | |
3991 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
3992 | rm -f $tmp/stdin | |
3993 | if test x"$ac_file" != x-; then | |
3994 | mv $tmp/out $ac_file | |
3995 | else | |
3996 | cat $tmp/out | |
3997 | rm -f $tmp/out | |
3998 | fi | |
3999 | ||
4000 | done | |
4001 | EOF | |
4002 | cat >>$CONFIG_STATUS <<\EOF | |
4003 | ||
4004 | # | |
4005 | # CONFIG_HEADER section. | |
4006 | # | |
4007 | ||
4008 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
4009 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
4010 | # | |
4011 | # ac_d sets the value in "#define NAME VALUE" lines. | |
4012 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
4013 | ac_dB='[ ].*$,\1#\2' | |
4014 | ac_dC=' ' | |
4015 | ac_dD=',;t' | |
4016 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
4017 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
4018 | ac_uB='$,\1#\2define\3' | |
4019 | ac_uC=' ' | |
4020 | ac_uD=',;t' | |
4021 | ||
4022 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
4023 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4024 | case $ac_file in | |
4025 | - | *:- | *:-:* ) # input from stdin | |
4026 | cat >$tmp/stdin | |
4027 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
4028 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
4029 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
4030 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
4031 | * ) ac_file_in=$ac_file.in ;; | |
4032 | esac | |
4033 | ||
4034 | test x"$ac_file" != x- && { echo "$as_me:4034: creating $ac_file" >&5 | |
4035 | echo "$as_me: creating $ac_file" >&6;} | |
4036 | ||
4037 | # First look for the input files in the build tree, otherwise in the | |
4038 | # src tree. | |
4039 | ac_file_inputs=`IFS=: | |
4040 | for f in $ac_file_in; do | |
4041 | case $f in | |
4042 | -) echo $tmp/stdin ;; | |
4043 | [\\/$]*) | |
4044 | # Absolute (can't be DOS-style, as IFS=:) | |
4045 | test -f "$f" || { { echo "$as_me:4045: error: cannot find input file: $f" >&5 | |
4046 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
4047 | { (exit 1); exit 1; }; } | |
4048 | echo $f;; | |
4049 | *) # Relative | |
4050 | if test -f "$f"; then | |
4051 | # Build tree | |
4052 | echo $f | |
4053 | elif test -f "$srcdir/$f"; then | |
4054 | # Source tree | |
4055 | echo $srcdir/$f | |
4056 | else | |
4057 | # /dev/null tree | |
4058 | { { echo "$as_me:4058: error: cannot find input file: $f" >&5 | |
4059 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
4060 | { (exit 1); exit 1; }; } | |
4061 | fi;; | |
4062 | esac | |
4063 | done` || { (exit 1); exit 1; } | |
4064 | # Remove the trailing spaces. | |
4065 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
4066 | ||
4067 | EOF | |
4068 | ||
4069 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
4070 | # `conftest.undefs', that substitutes the proper values into | |
4071 | # config.h.in to produce config.h. The first handles `#define' | |
4072 | # templates, and the second `#undef' templates. | |
4073 | # And first: Protect against being on the right side of a sed subst in | |
4074 | # config.status. Protect against being in an unquoted here document | |
4075 | # in config.status. | |
4076 | rm -f conftest.defines conftest.undefs | |
4077 | # Using a here document instead of a string reduces the quoting nightmare. | |
4078 | # Putting comments in sed scripts is not portable. | |
4079 | # | |
4080 | # `end' is used to avoid that the second main sed command (meant for | |
4081 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
4082 | # See the Autoconf documentation for `clear'. | |
4083 | cat >confdef2sed.sed <<\EOF | |
4084 | s/[\\&,]/\\&/g | |
4085 | s,[\\$`],\\&,g | |
4086 | t clear | |
4087 | : clear | |
4088 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
4089 | t end | |
4090 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
4091 | : end | |
4092 | EOF | |
4093 | # If some macros were called several times there might be several times | |
4094 | # the same #defines, which is useless. Nevertheless, we may not want to | |
4095 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
4096 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
4097 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
4098 | rm -f confdef2sed.sed | |
4099 | ||
4100 | # This sed command replaces #undef with comments. This is necessary, for | |
4101 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
4102 | # on some systems where configure will not decide to define it. | |
4103 | cat >>conftest.undefs <<\EOF | |
4104 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
4105 | EOF | |
4106 | ||
4107 | # Break up conftest.defines because some shells have a limit on the size | |
4108 | # of here documents, and old seds have small limits too (100 cmds). | |
4109 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
4110 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
4111 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
4112 | echo ' :' >>$CONFIG_STATUS | |
4113 | rm -f conftest.tail | |
4114 | while grep . conftest.defines >/dev/null | |
4115 | do | |
4116 | # Write a limited-size here document to $tmp/defines.sed. | |
4117 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
4118 | # Speed up: don't consider the non `#define' lines. | |
4119 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
4120 | # Work around the forget-to-reset-the-flag bug. | |
4121 | echo 't clr' >>$CONFIG_STATUS | |
4122 | echo ': clr' >>$CONFIG_STATUS | |
4123 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
4124 | echo 'CEOF | |
4125 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
4126 | rm -f $tmp/in | |
4127 | mv $tmp/out $tmp/in | |
4128 | ' >>$CONFIG_STATUS | |
4129 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
4130 | rm -f conftest.defines | |
4131 | mv conftest.tail conftest.defines | |
4132 | done | |
4133 | rm -f conftest.defines | |
4134 | echo ' fi # egrep' >>$CONFIG_STATUS | |
4135 | echo >>$CONFIG_STATUS | |
4136 | ||
4137 | # Break up conftest.undefs because some shells have a limit on the size | |
4138 | # of here documents, and old seds have small limits too (100 cmds). | |
4139 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
4140 | rm -f conftest.tail | |
4141 | while grep . conftest.undefs >/dev/null | |
4142 | do | |
4143 | # Write a limited-size here document to $tmp/undefs.sed. | |
4144 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
4145 | # Speed up: don't consider the non `#undef' | |
4146 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
4147 | # Work around the forget-to-reset-the-flag bug. | |
4148 | echo 't clr' >>$CONFIG_STATUS | |
4149 | echo ': clr' >>$CONFIG_STATUS | |
4150 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
4151 | echo 'CEOF | |
4152 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
4153 | rm -f $tmp/in | |
4154 | mv $tmp/out $tmp/in | |
4155 | ' >>$CONFIG_STATUS | |
4156 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
4157 | rm -f conftest.undefs | |
4158 | mv conftest.tail conftest.undefs | |
4159 | done | |
4160 | rm -f conftest.undefs | |
4161 | ||
4162 | cat >>$CONFIG_STATUS <<\EOF | |
4163 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
4164 | # use $as_me), people would be surprised to read: | |
4165 | # /* config.h. Generated automatically by config.status. */ | |
4166 | if test x"$ac_file" = x-; then | |
4167 | echo "/* Generated automatically by configure. */" >$tmp/config.h | |
4168 | else | |
4169 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h | |
4170 | fi | |
4171 | cat $tmp/in >>$tmp/config.h | |
4172 | rm -f $tmp/in | |
4173 | if test x"$ac_file" != x-; then | |
4174 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
4175 | { echo "$as_me:4175: $ac_file is unchanged" >&5 | |
4176 | echo "$as_me: $ac_file is unchanged" >&6;} | |
4177 | else | |
4178 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4179 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
4180 | X"$ac_file" : 'X\(//\)$' \| \ | |
4181 | X"$ac_file" : 'X\(/\)' \| \ | |
4182 | . : '\(.\)' 2>/dev/null || | |
4183 | echo X"$ac_file" | | |
4184 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
4185 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
4186 | /^X\(\/\/\)$/{ s//\1/; q; } | |
4187 | /^X\(\/\).*/{ s//\1/; q; } | |
4188 | s/.*/./; q'` | |
4189 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
4190 | { case "$ac_dir" in | |
4191 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
4192 | *) as_incr_dir=.;; | |
4193 | esac | |
4194 | as_dummy="$ac_dir" | |
4195 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
4196 | case $as_mkdir_dir in | |
4197 | # Skip DOS drivespec | |
4198 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
4199 | *) | |
4200 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
4201 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
4202 | ;; | |
4203 | esac | |
4204 | done; } | |
4205 | ||
4206 | fi | |
4207 | rm -f $ac_file | |
4208 | mv $tmp/config.h $ac_file | |
4209 | fi | |
4210 | else | |
4211 | cat $tmp/config.h | |
4212 | rm -f $tmp/config.h | |
4213 | fi | |
4214 | # Run the commands associated with the file. | |
4215 | case $ac_file in | |
4216 | config.h ) # update the timestamp | |
4217 | echo timestamp >"./stamp-h1" | |
4218 | ;; | |
4219 | esac | |
4220 | done | |
4221 | EOF | |
4222 | cat >>$CONFIG_STATUS <<\EOF | |
4223 | ||
4224 | # | |
4225 | # CONFIG_COMMANDS section. | |
4226 | # | |
4227 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
4228 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
4229 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
4230 | ||
4231 | case $ac_dest in | |
4232 | default-1 ) | |
4233 | test x"$AMDEP_TRUE" != x"" || | |
4234 | for mf in $CONFIG_FILES; do | |
4235 | case "$mf" in | |
4236 | Makefile) dirpart=.;; | |
4237 | */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; | |
4238 | *) continue;; | |
4239 | esac | |
4240 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
4241 | # Extract the definition of DEP_FILES from the Makefile without | |
4242 | # running `make'. | |
4243 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | |
4244 | test -z "$DEPDIR" && continue | |
4245 | # When using ansi2knr, U may be empty or an underscore; expand it | |
4246 | U=`sed -n -e '/^U = / s///p' < "$mf"` | |
4247 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
4248 | # We invoke sed twice because it is the simplest approach to | |
4249 | # changing $(DEPDIR) to its actual value in the expansion. | |
4250 | for file in `sed -n -e ' | |
4251 | /^DEP_FILES = .*\\\\$/ { | |
4252 | s/^DEP_FILES = // | |
4253 | :loop | |
4254 | s/\\\\$// | |
4255 | p | |
4256 | n | |
4257 | /\\\\$/ b loop | |
4258 | p | |
4259 | } | |
4260 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
4261 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
4262 | # Make sure the directory exists. | |
4263 | test -f "$dirpart/$file" && continue | |
4264 | fdir=`echo "$file" | sed -e 's|/[^/]*$||'` | |
4265 | $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 | |
4266 | # echo "creating $dirpart/$file" | |
4267 | echo '# dummy' > "$dirpart/$file" | |
4268 | done | |
4269 | done | |
4270 | ;; | |
4271 | esac | |
4272 | done | |
4273 | EOF | |
4274 | ||
4275 | cat >>$CONFIG_STATUS <<\EOF | |
4276 | ||
4277 | { (exit 0); exit 0; } | |
4278 | EOF | |
4279 | chmod +x $CONFIG_STATUS | |
4280 | ac_clean_files=$ac_clean_files_save | |
4281 | ||
4282 | # configure is writing to config.log, and then calls config.status. | |
4283 | # config.status does its own redirection, appending to config.log. | |
4284 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
4285 | # by configure, so config.status won't be able to write to it; its | |
4286 | # output is simply discarded. So we exec the FD to /dev/null, | |
4287 | # effectively closing config.log, so it can be properly (re)opened and | |
4288 | # appended to by config.status. When coming back to configure, we | |
4289 | # need to make the FD available again. | |
4290 | if test "$no_create" != yes; then | |
4291 | ac_cs_success=: | |
4292 | exec 5>/dev/null | |
4293 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
4294 | exec 5>>config.log | |
4295 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
4296 | # would make configure fail if this is the last instruction. | |
4297 | $ac_cs_success || { (exit 1); exit 1; } | |
4298 | fi | |
885824d3 | 4299 |