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