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