Commit | Line | Data |
---|---|---|
1ffd292b C |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
168c5ef4 | 4 | # Generated automatically using autoconf version 2.12.2 |
68867afb | 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
1ffd292b C |
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: | |
f50dc105 | 14 | ac_help="$ac_help |
126d9d0a | 15 | --enable-sim " |
a21a12e3 NC |
16 | ac_help="$ac_help |
17 | " | |
1ffd292b C |
18 | |
19 | # Initialize some variables set by options. | |
20 | # The variables have the same names as the options, with | |
21 | # dashes changed to underlines. | |
22 | build=NONE | |
23 | cache_file=./config.cache | |
24 | exec_prefix=NONE | |
25 | host=NONE | |
26 | no_create= | |
27 | nonopt=NONE | |
28 | no_recursion= | |
29 | prefix=NONE | |
30 | program_prefix=NONE | |
31 | program_suffix=NONE | |
32 | program_transform_name=s,x,x, | |
33 | silent= | |
34 | site= | |
35 | srcdir= | |
36 | target=NONE | |
37 | verbose= | |
38 | x_includes=NONE | |
39 | x_libraries=NONE | |
d4663715 RS |
40 | bindir='${exec_prefix}/bin' |
41 | sbindir='${exec_prefix}/sbin' | |
42 | libexecdir='${exec_prefix}/libexec' | |
43 | datadir='${prefix}/share' | |
44 | sysconfdir='${prefix}/etc' | |
45 | sharedstatedir='${prefix}/com' | |
46 | localstatedir='${prefix}/var' | |
47 | libdir='${exec_prefix}/lib' | |
48 | includedir='${prefix}/include' | |
49 | oldincludedir='/usr/include' | |
50 | infodir='${prefix}/info' | |
51 | mandir='${prefix}/man' | |
1ffd292b C |
52 | |
53 | # Initialize some other variables. | |
54 | subdirs= | |
d4663715 | 55 | MFLAGS= MAKEFLAGS= |
168c5ef4 | 56 | SHELL=${CONFIG_SHELL-/bin/sh} |
6e1510a2 SG |
57 | # Maximum number of lines to put in a shell here document. |
58 | ac_max_here_lines=12 | |
1ffd292b C |
59 | |
60 | ac_prev= | |
61 | for ac_option | |
62 | do | |
63 | ||
64 | # If the previous option needs an argument, assign it. | |
65 | if test -n "$ac_prev"; then | |
66 | eval "$ac_prev=\$ac_option" | |
67 | ac_prev= | |
68 | continue | |
69 | fi | |
70 | ||
71 | case "$ac_option" in | |
72 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
73 | *) ac_optarg= ;; | |
74 | esac | |
75 | ||
76 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
77 | ||
78 | case "$ac_option" in | |
79 | ||
d4663715 RS |
80 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
81 | ac_prev=bindir ;; | |
82 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
83 | bindir="$ac_optarg" ;; | |
84 | ||
85 | -build | --build | --buil | --bui | --bu) | |
1ffd292b | 86 | ac_prev=build ;; |
d4663715 | 87 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1ffd292b C |
88 | build="$ac_optarg" ;; |
89 | ||
90 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
91 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
92 | ac_prev=cache_file ;; | |
93 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
94 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
95 | cache_file="$ac_optarg" ;; | |
96 | ||
d4663715 RS |
97 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
98 | ac_prev=datadir ;; | |
99 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
100 | | --da=*) | |
101 | datadir="$ac_optarg" ;; | |
102 | ||
1ffd292b C |
103 | -disable-* | --disable-*) |
104 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
105 | # Reject names that are not valid shell variable names. | |
106 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
107 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
108 | fi | |
109 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
110 | eval "enable_${ac_feature}=no" ;; | |
111 | ||
112 | -enable-* | --enable-*) | |
113 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
114 | # Reject names that are not valid shell variable names. | |
115 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
116 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
117 | fi | |
118 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
119 | case "$ac_option" in | |
120 | *=*) ;; | |
121 | *) ac_optarg=yes ;; | |
122 | esac | |
123 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
124 | ||
125 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
126 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
127 | | --exec | --exe | --ex) | |
128 | ac_prev=exec_prefix ;; | |
129 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
130 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
131 | | --exec=* | --exe=* | --ex=*) | |
132 | exec_prefix="$ac_optarg" ;; | |
133 | ||
134 | -gas | --gas | --ga | --g) | |
135 | # Obsolete; use --with-gas. | |
136 | with_gas=yes ;; | |
137 | ||
138 | -help | --help | --hel | --he) | |
139 | # Omit some internal or obsolete options to make the list less imposing. | |
140 | # This message is too long to be a string in the A/UX 3.1 sh. | |
141 | cat << EOF | |
142 | Usage: configure [options] [host] | |
143 | Options: [defaults in brackets after descriptions] | |
144 | Configuration: | |
145 | --cache-file=FILE cache test results in FILE | |
146 | --help print this message | |
147 | --no-create do not create output files | |
148 | --quiet, --silent do not print \`checking...' messages | |
149 | --version print the version of autoconf that created configure | |
150 | Directory and file names: | |
151 | --prefix=PREFIX install architecture-independent files in PREFIX | |
152 | [$ac_default_prefix] | |
d4663715 | 153 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1ffd292b | 154 | [same as prefix] |
d4663715 RS |
155 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
156 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
157 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
158 | --datadir=DIR read-only architecture-independent data in DIR | |
159 | [PREFIX/share] | |
160 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
161 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
162 | [PREFIX/com] | |
163 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
164 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
165 | --includedir=DIR C header files in DIR [PREFIX/include] | |
166 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
167 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
168 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
1ffd292b C |
169 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
170 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
171 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
d4663715 RS |
172 | --program-transform-name=PROGRAM |
173 | run sed PROGRAM on installed program names | |
174 | EOF | |
175 | cat << EOF | |
1ffd292b C |
176 | Host type: |
177 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
178 | --host=HOST configure for HOST [guessed] | |
179 | --target=TARGET configure for TARGET [TARGET=HOST] | |
180 | Features and packages: | |
181 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
182 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
183 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
184 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
185 | --x-includes=DIR X include files are in DIR | |
186 | --x-libraries=DIR X library files are in DIR | |
1ffd292b | 187 | EOF |
d4663715 RS |
188 | if test -n "$ac_help"; then |
189 | echo "--enable and --with options recognized:$ac_help" | |
190 | fi | |
1ffd292b C |
191 | exit 0 ;; |
192 | ||
193 | -host | --host | --hos | --ho) | |
194 | ac_prev=host ;; | |
195 | -host=* | --host=* | --hos=* | --ho=*) | |
196 | host="$ac_optarg" ;; | |
197 | ||
d4663715 RS |
198 | -includedir | --includedir | --includedi | --included | --include \ |
199 | | --includ | --inclu | --incl | --inc) | |
200 | ac_prev=includedir ;; | |
201 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
202 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
203 | includedir="$ac_optarg" ;; | |
204 | ||
205 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
206 | ac_prev=infodir ;; | |
207 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
208 | infodir="$ac_optarg" ;; | |
209 | ||
210 | -libdir | --libdir | --libdi | --libd) | |
211 | ac_prev=libdir ;; | |
212 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
213 | libdir="$ac_optarg" ;; | |
214 | ||
215 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
216 | | --libexe | --libex | --libe) | |
217 | ac_prev=libexecdir ;; | |
218 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
219 | | --libexe=* | --libex=* | --libe=*) | |
220 | libexecdir="$ac_optarg" ;; | |
221 | ||
222 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
223 | | --localstate | --localstat | --localsta | --localst \ | |
224 | | --locals | --local | --loca | --loc | --lo) | |
225 | ac_prev=localstatedir ;; | |
226 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
227 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
228 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
229 | localstatedir="$ac_optarg" ;; | |
230 | ||
231 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
232 | ac_prev=mandir ;; | |
233 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
234 | mandir="$ac_optarg" ;; | |
235 | ||
1ffd292b C |
236 | -nfp | --nfp | --nf) |
237 | # Obsolete; use --without-fp. | |
238 | with_fp=no ;; | |
239 | ||
240 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
241 | | --no-cr | --no-c) | |
242 | no_create=yes ;; | |
243 | ||
244 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
245 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
246 | no_recursion=yes ;; | |
247 | ||
d4663715 RS |
248 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
249 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
250 | | --oldin | --oldi | --old | --ol | --o) | |
251 | ac_prev=oldincludedir ;; | |
252 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
253 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
254 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
255 | oldincludedir="$ac_optarg" ;; | |
256 | ||
1ffd292b C |
257 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
258 | ac_prev=prefix ;; | |
259 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
260 | prefix="$ac_optarg" ;; | |
261 | ||
262 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
263 | | --program-pre | --program-pr | --program-p) | |
264 | ac_prev=program_prefix ;; | |
265 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
266 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
267 | program_prefix="$ac_optarg" ;; | |
268 | ||
269 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
270 | | --program-suf | --program-su | --program-s) | |
271 | ac_prev=program_suffix ;; | |
272 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
273 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
274 | program_suffix="$ac_optarg" ;; | |
275 | ||
276 | -program-transform-name | --program-transform-name \ | |
277 | | --program-transform-nam | --program-transform-na \ | |
278 | | --program-transform-n | --program-transform- \ | |
279 | | --program-transform | --program-transfor \ | |
280 | | --program-transfo | --program-transf \ | |
281 | | --program-trans | --program-tran \ | |
282 | | --progr-tra | --program-tr | --program-t) | |
283 | ac_prev=program_transform_name ;; | |
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 | program_transform_name="$ac_optarg" ;; | |
292 | ||
293 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
294 | | -silent | --silent | --silen | --sile | --sil) | |
295 | silent=yes ;; | |
296 | ||
d4663715 RS |
297 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
298 | ac_prev=sbindir ;; | |
299 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
300 | | --sbi=* | --sb=*) | |
301 | sbindir="$ac_optarg" ;; | |
302 | ||
303 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
304 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
305 | | --sharedst | --shareds | --shared | --share | --shar \ | |
306 | | --sha | --sh) | |
307 | ac_prev=sharedstatedir ;; | |
308 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
309 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
310 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
311 | | --sha=* | --sh=*) | |
312 | sharedstatedir="$ac_optarg" ;; | |
313 | ||
1ffd292b C |
314 | -site | --site | --sit) |
315 | ac_prev=site ;; | |
316 | -site=* | --site=* | --sit=*) | |
317 | site="$ac_optarg" ;; | |
318 | ||
319 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
320 | ac_prev=srcdir ;; | |
321 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
322 | srcdir="$ac_optarg" ;; | |
323 | ||
d4663715 RS |
324 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
325 | | --syscon | --sysco | --sysc | --sys | --sy) | |
326 | ac_prev=sysconfdir ;; | |
327 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
328 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
329 | sysconfdir="$ac_optarg" ;; | |
330 | ||
1ffd292b C |
331 | -target | --target | --targe | --targ | --tar | --ta | --t) |
332 | ac_prev=target ;; | |
333 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
334 | target="$ac_optarg" ;; | |
335 | ||
336 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
337 | verbose=yes ;; | |
338 | ||
339 | -version | --version | --versio | --versi | --vers) | |
168c5ef4 | 340 | echo "configure generated by autoconf version 2.12.2" |
1ffd292b C |
341 | exit 0 ;; |
342 | ||
343 | -with-* | --with-*) | |
344 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
345 | # Reject names that are not valid shell variable names. | |
346 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
347 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
348 | fi | |
349 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
350 | case "$ac_option" in | |
351 | *=*) ;; | |
352 | *) ac_optarg=yes ;; | |
353 | esac | |
354 | eval "with_${ac_package}='$ac_optarg'" ;; | |
355 | ||
356 | -without-* | --without-*) | |
357 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
358 | # Reject names that are not valid shell variable names. | |
359 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
360 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
361 | fi | |
362 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
363 | eval "with_${ac_package}=no" ;; | |
364 | ||
365 | --x) | |
366 | # Obsolete; use --with-x. | |
367 | with_x=yes ;; | |
368 | ||
369 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
370 | | --x-incl | --x-inc | --x-in | --x-i) | |
371 | ac_prev=x_includes ;; | |
372 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
373 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
374 | x_includes="$ac_optarg" ;; | |
375 | ||
376 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
377 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
378 | ac_prev=x_libraries ;; | |
379 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
380 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
381 | x_libraries="$ac_optarg" ;; | |
382 | ||
383 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
384 | ;; | |
385 | ||
d4663715 | 386 | *) |
1ffd292b C |
387 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
388 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
389 | fi | |
390 | if test "x$nonopt" != xNONE; then | |
391 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
392 | fi | |
393 | nonopt="$ac_option" | |
394 | ;; | |
395 | ||
396 | esac | |
397 | done | |
398 | ||
399 | if test -n "$ac_prev"; then | |
400 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
401 | fi | |
402 | ||
403 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
404 | ||
405 | # File descriptor usage: | |
406 | # 0 standard input | |
407 | # 1 file creation | |
408 | # 2 errors and warnings | |
409 | # 3 some systems may open it to /dev/tty | |
410 | # 4 used on the Kubota Titan | |
411 | # 6 checking for... messages and results | |
412 | # 5 compiler messages saved in config.log | |
413 | if test "$silent" = yes; then | |
414 | exec 6>/dev/null | |
415 | else | |
416 | exec 6>&1 | |
417 | fi | |
418 | exec 5>./config.log | |
419 | ||
420 | echo "\ | |
421 | This file contains any messages produced by compilers while | |
422 | running configure, to aid debugging if configure makes a mistake. | |
423 | " 1>&5 | |
424 | ||
425 | # Strip out --no-create and --no-recursion so they do not pile up. | |
426 | # Also quote any args containing shell metacharacters. | |
427 | ac_configure_args= | |
428 | for ac_arg | |
429 | do | |
430 | case "$ac_arg" in | |
431 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
432 | | --no-cr | --no-c) ;; | |
433 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
434 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
435 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
436 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
437 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
438 | esac | |
439 | done | |
440 | ||
441 | # NLS nuisances. | |
6e1510a2 SG |
442 | # Only set these to C if already set. These must not be set unconditionally |
443 | # because not all systems understand e.g. LANG=C (notably SCO). | |
444 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
445 | # Non-C LC_CTYPE values break the ctype check. | |
1ffd292b | 446 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
6e1510a2 SG |
447 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
448 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
449 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
1ffd292b C |
450 | |
451 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
452 | rm -rf conftest* confdefs.h | |
453 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
454 | echo > confdefs.h | |
455 | ||
456 | # A filename unique to this package, relative to the directory that | |
457 | # configure is in, which we can look for to find out if srcdir is correct. | |
458 | ac_unique_file=Makefile.in | |
459 | ||
460 | # Find the source files, if location was not specified. | |
461 | if test -z "$srcdir"; then | |
462 | ac_srcdir_defaulted=yes | |
463 | # Try the directory containing this script, then its parent. | |
464 | ac_prog=$0 | |
465 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
466 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
467 | srcdir=$ac_confdir | |
468 | if test ! -r $srcdir/$ac_unique_file; then | |
469 | srcdir=.. | |
470 | fi | |
471 | else | |
472 | ac_srcdir_defaulted=no | |
473 | fi | |
474 | if test ! -r $srcdir/$ac_unique_file; then | |
475 | if test "$ac_srcdir_defaulted" = yes; then | |
476 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
477 | else | |
478 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
479 | fi | |
480 | fi | |
481 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
482 | ||
483 | # Prefer explicitly selected file to automatically selected ones. | |
484 | if test -z "$CONFIG_SITE"; then | |
485 | if test "x$prefix" != xNONE; then | |
486 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
487 | else | |
488 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
489 | fi | |
490 | fi | |
491 | for ac_site_file in $CONFIG_SITE; do | |
492 | if test -r "$ac_site_file"; then | |
493 | echo "loading site script $ac_site_file" | |
494 | . "$ac_site_file" | |
495 | fi | |
496 | done | |
497 | ||
498 | if test -r "$cache_file"; then | |
499 | echo "loading cache $cache_file" | |
500 | . $cache_file | |
501 | else | |
502 | echo "creating cache $cache_file" | |
503 | > $cache_file | |
504 | fi | |
505 | ||
506 | ac_ext=c | |
507 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6f07ee29 | 508 | ac_cpp='$CPP $CPPFLAGS' |
d4663715 | 509 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
168c5ef4 | 510 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
6e1510a2 | 511 | cross_compiling=$ac_cv_prog_cc_cross |
1ffd292b | 512 | |
168c5ef4 DB |
513 | ac_exeext= |
514 | ac_objext=o | |
1ffd292b C |
515 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
516 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
517 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
518 | ac_n= ac_c=' | |
519 | ' ac_t=' ' | |
520 | else | |
521 | ac_n=-n ac_c= ac_t= | |
522 | fi | |
523 | else | |
524 | ac_n= ac_c='\c' ac_t= | |
525 | fi | |
526 | ||
527 | ||
528 | ||
d4663715 RS |
529 | # Extract the first word of "gcc", so it can be a program name with args. |
530 | set dummy gcc; ac_word=$2 | |
531 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a21a12e3 | 532 | echo "configure:533: checking for $ac_word" >&5 |
d4663715 RS |
533 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
534 | echo $ac_n "(cached) $ac_c" 1>&6 | |
535 | else | |
536 | if test -n "$CC"; then | |
537 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
538 | else | |
168c5ef4 | 539 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
d4663715 RS |
540 | for ac_dir in $PATH; do |
541 | test -z "$ac_dir" && ac_dir=. | |
542 | if test -f $ac_dir/$ac_word; then | |
543 | ac_cv_prog_CC="gcc" | |
544 | break | |
545 | fi | |
546 | done | |
547 | IFS="$ac_save_ifs" | |
548 | fi | |
549 | fi | |
550 | CC="$ac_cv_prog_CC" | |
551 | if test -n "$CC"; then | |
552 | echo "$ac_t""$CC" 1>&6 | |
553 | else | |
554 | echo "$ac_t""no" 1>&6 | |
555 | fi | |
556 | ||
557 | if test -z "$CC"; then | |
558 | # Extract the first word of "cc", so it can be a program name with args. | |
559 | set dummy cc; ac_word=$2 | |
560 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a21a12e3 | 561 | echo "configure:562: checking for $ac_word" >&5 |
d4663715 RS |
562 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
563 | echo $ac_n "(cached) $ac_c" 1>&6 | |
564 | else | |
565 | if test -n "$CC"; then | |
566 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
567 | else | |
168c5ef4 | 568 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
d4663715 RS |
569 | ac_prog_rejected=no |
570 | for ac_dir in $PATH; do | |
571 | test -z "$ac_dir" && ac_dir=. | |
572 | if test -f $ac_dir/$ac_word; then | |
573 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
574 | ac_prog_rejected=yes | |
575 | continue | |
576 | fi | |
577 | ac_cv_prog_CC="cc" | |
578 | break | |
579 | fi | |
580 | done | |
581 | IFS="$ac_save_ifs" | |
582 | if test $ac_prog_rejected = yes; then | |
583 | # We found a bogon in the path, so make sure we never use it. | |
584 | set dummy $ac_cv_prog_CC | |
585 | shift | |
586 | if test $# -gt 0; then | |
587 | # We chose a different compiler from the bogus one. | |
588 | # However, it has the same basename, so the bogon will be chosen | |
589 | # first if we set CC to just the basename; use the full file name. | |
590 | shift | |
591 | set dummy "$ac_dir/$ac_word" "$@" | |
592 | shift | |
593 | ac_cv_prog_CC="$@" | |
594 | fi | |
595 | fi | |
596 | fi | |
597 | fi | |
598 | CC="$ac_cv_prog_CC" | |
599 | if test -n "$CC"; then | |
600 | echo "$ac_t""$CC" 1>&6 | |
601 | else | |
602 | echo "$ac_t""no" 1>&6 | |
603 | fi | |
604 | ||
168c5ef4 DB |
605 | if test -z "$CC"; then |
606 | case "`uname -s`" in | |
607 | *win32* | *WIN32*) | |
608 | # Extract the first word of "cl", so it can be a program name with args. | |
609 | set dummy cl; ac_word=$2 | |
610 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a21a12e3 | 611 | echo "configure:612: checking for $ac_word" >&5 |
168c5ef4 DB |
612 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
614 | else | |
615 | if test -n "$CC"; then | |
616 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
617 | else | |
618 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
619 | for ac_dir in $PATH; do | |
620 | test -z "$ac_dir" && ac_dir=. | |
621 | if test -f $ac_dir/$ac_word; then | |
622 | ac_cv_prog_CC="cl" | |
623 | break | |
624 | fi | |
625 | done | |
626 | IFS="$ac_save_ifs" | |
627 | fi | |
628 | fi | |
629 | CC="$ac_cv_prog_CC" | |
630 | if test -n "$CC"; then | |
631 | echo "$ac_t""$CC" 1>&6 | |
632 | else | |
633 | echo "$ac_t""no" 1>&6 | |
634 | fi | |
635 | ;; | |
636 | esac | |
637 | fi | |
d4663715 RS |
638 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
639 | fi | |
640 | ||
6e1510a2 | 641 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
a21a12e3 | 642 | echo "configure:643: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
6e1510a2 SG |
643 | |
644 | ac_ext=c | |
645 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
646 | ac_cpp='$CPP $CPPFLAGS' | |
647 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
168c5ef4 | 648 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
6e1510a2 SG |
649 | cross_compiling=$ac_cv_prog_cc_cross |
650 | ||
651 | cat > conftest.$ac_ext <<EOF | |
a21a12e3 | 652 | #line 653 "configure" |
6e1510a2 SG |
653 | #include "confdefs.h" |
654 | main(){return(0);} | |
655 | EOF | |
a21a12e3 | 656 | if { (eval echo configure:657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6e1510a2 SG |
657 | ac_cv_prog_cc_works=yes |
658 | # If we can't run a trivial program, we are probably using a cross compiler. | |
659 | if (./conftest; exit) 2>/dev/null; then | |
660 | ac_cv_prog_cc_cross=no | |
661 | else | |
662 | ac_cv_prog_cc_cross=yes | |
663 | fi | |
664 | else | |
665 | echo "configure: failed program was:" >&5 | |
666 | cat conftest.$ac_ext >&5 | |
667 | ac_cv_prog_cc_works=no | |
668 | fi | |
669 | rm -fr conftest* | |
670 | ||
671 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
672 | if test $ac_cv_prog_cc_works = no; then | |
673 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
674 | fi | |
675 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
a21a12e3 | 676 | echo "configure:677: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
6e1510a2 SG |
677 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
678 | cross_compiling=$ac_cv_prog_cc_cross | |
679 | ||
d4663715 | 680 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
a21a12e3 | 681 | echo "configure:682: checking whether we are using GNU C" >&5 |
d4663715 RS |
682 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
684 | else | |
685 | cat > conftest.c <<EOF | |
686 | #ifdef __GNUC__ | |
687 | yes; | |
688 | #endif | |
689 | EOF | |
a21a12e3 | 690 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
d4663715 RS |
691 | ac_cv_prog_gcc=yes |
692 | else | |
693 | ac_cv_prog_gcc=no | |
694 | fi | |
695 | fi | |
696 | ||
697 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
6e1510a2 | 698 | |
d4663715 RS |
699 | if test $ac_cv_prog_gcc = yes; then |
700 | GCC=yes | |
168c5ef4 DB |
701 | else |
702 | GCC= | |
703 | fi | |
704 | ||
705 | ac_test_CFLAGS="${CFLAGS+set}" | |
706 | ac_save_CFLAGS="$CFLAGS" | |
707 | CFLAGS= | |
708 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
a21a12e3 | 709 | echo "configure:710: checking whether ${CC-cc} accepts -g" >&5 |
6e1510a2 | 710 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
d4663715 RS |
711 | echo $ac_n "(cached) $ac_c" 1>&6 |
712 | else | |
713 | echo 'void f(){}' > conftest.c | |
714 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
6e1510a2 | 715 | ac_cv_prog_cc_g=yes |
d4663715 | 716 | else |
6e1510a2 | 717 | ac_cv_prog_cc_g=no |
d4663715 RS |
718 | fi |
719 | rm -f conftest* | |
720 | ||
721 | fi | |
722 | ||
6e1510a2 | 723 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
168c5ef4 DB |
724 | if test "$ac_test_CFLAGS" = set; then |
725 | CFLAGS="$ac_save_CFLAGS" | |
726 | elif test $ac_cv_prog_cc_g = yes; then | |
727 | if test "$GCC" = yes; then | |
6e1510a2 SG |
728 | CFLAGS="-g -O2" |
729 | else | |
168c5ef4 | 730 | CFLAGS="-g" |
d4663715 RS |
731 | fi |
732 | else | |
168c5ef4 DB |
733 | if test "$GCC" = yes; then |
734 | CFLAGS="-O2" | |
735 | else | |
736 | CFLAGS= | |
737 | fi | |
d4663715 RS |
738 | fi |
739 | ||
740 | ac_aux_dir= | |
741 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
742 | if test -f $ac_dir/install-sh; then | |
743 | ac_aux_dir=$ac_dir | |
744 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
745 | break | |
746 | elif test -f $ac_dir/install.sh; then | |
747 | ac_aux_dir=$ac_dir | |
748 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
749 | break | |
750 | fi | |
751 | done | |
752 | if test -z "$ac_aux_dir"; then | |
753 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
754 | fi | |
755 | ac_config_guess=$ac_aux_dir/config.guess | |
756 | ac_config_sub=$ac_aux_dir/config.sub | |
757 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
758 | ||
68867afb ILT |
759 | # Find a good install program. We prefer a C program (faster), |
760 | # so one script is as good as another. But avoid the broken or | |
761 | # incompatible versions: | |
762 | # SysV /etc/install, /usr/sbin/install | |
763 | # SunOS /usr/etc/install | |
764 | # IRIX /sbin/install | |
765 | # AIX /bin/install | |
168c5ef4 | 766 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
68867afb ILT |
767 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
768 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
769 | # ./install, which can be erroneously created by make from ./install.sh. | |
770 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
a21a12e3 | 771 | echo "configure:772: checking for a BSD compatible install" >&5 |
68867afb ILT |
772 | if test -z "$INSTALL"; then |
773 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
775 | else | |
168c5ef4 | 776 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
68867afb ILT |
777 | for ac_dir in $PATH; do |
778 | # Account for people who put trailing slashes in PATH elements. | |
779 | case "$ac_dir/" in | |
780 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
781 | *) | |
782 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
168c5ef4 DB |
783 | # Don't use installbsd from OSF since it installs stuff as root |
784 | # by default. | |
785 | for ac_prog in ginstall scoinst install; do | |
68867afb ILT |
786 | if test -f $ac_dir/$ac_prog; then |
787 | if test $ac_prog = install && | |
788 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
789 | # AIX install. It has an incompatible calling convention. | |
68867afb ILT |
790 | : |
791 | else | |
792 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
793 | break 2 | |
794 | fi | |
795 | fi | |
796 | done | |
797 | ;; | |
798 | esac | |
799 | done | |
6e1510a2 | 800 | IFS="$ac_save_IFS" |
68867afb ILT |
801 | |
802 | fi | |
803 | if test "${ac_cv_path_install+set}" = set; then | |
804 | INSTALL="$ac_cv_path_install" | |
805 | else | |
806 | # As a last resort, use the slow shell script. We don't cache a | |
807 | # path for INSTALL within a source directory, because that will | |
808 | # break other packages using the cache if that directory is | |
809 | # removed, or if the path is relative. | |
810 | INSTALL="$ac_install_sh" | |
811 | fi | |
812 | fi | |
813 | echo "$ac_t""$INSTALL" 1>&6 | |
814 | ||
815 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
816 | # It thinks the first close brace ends the variable substitution. | |
817 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
818 | ||
819 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
820 | ||
d4663715 RS |
821 | |
822 | # Make sure we can run config.sub. | |
168c5ef4 | 823 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
d4663715 RS |
824 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
825 | fi | |
826 | ||
827 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
a21a12e3 | 828 | echo "configure:829: checking host system type" >&5 |
d4663715 RS |
829 | |
830 | host_alias=$host | |
831 | case "$host_alias" in | |
832 | NONE) | |
833 | case $nonopt in | |
834 | NONE) | |
168c5ef4 | 835 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
d4663715 RS |
836 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
837 | fi ;; | |
838 | *) host_alias=$nonopt ;; | |
839 | esac ;; | |
840 | esac | |
841 | ||
168c5ef4 | 842 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
6e1510a2 SG |
843 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
844 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
845 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
d4663715 RS |
846 | echo "$ac_t""$host" 1>&6 |
847 | ||
848 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
a21a12e3 | 849 | echo "configure:850: checking build system type" >&5 |
d4663715 RS |
850 | |
851 | build_alias=$build | |
852 | case "$build_alias" in | |
853 | NONE) | |
854 | case $nonopt in | |
855 | NONE) build_alias=$host_alias ;; | |
856 | *) build_alias=$nonopt ;; | |
857 | esac ;; | |
858 | esac | |
859 | ||
168c5ef4 | 860 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
6e1510a2 SG |
861 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
862 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
863 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
d4663715 RS |
864 | echo "$ac_t""$build" 1>&6 |
865 | ||
866 | if test $host != $build; then | |
867 | ac_tool_prefix=${host_alias}- | |
868 | else | |
869 | ac_tool_prefix= | |
870 | fi | |
871 | ||
872 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
873 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
874 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a21a12e3 | 875 | echo "configure:876: checking for $ac_word" >&5 |
d4663715 RS |
876 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
878 | else | |
879 | if test -n "$AR"; then | |
880 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
881 | else | |
168c5ef4 | 882 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
d4663715 RS |
883 | for ac_dir in $PATH; do |
884 | test -z "$ac_dir" && ac_dir=. | |
885 | if test -f $ac_dir/$ac_word; then | |
886 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
887 | break | |
888 | fi | |
889 | done | |
890 | IFS="$ac_save_ifs" | |
891 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
892 | fi | |
893 | fi | |
894 | AR="$ac_cv_prog_AR" | |
895 | if test -n "$AR"; then | |
896 | echo "$ac_t""$AR" 1>&6 | |
897 | else | |
898 | echo "$ac_t""no" 1>&6 | |
899 | fi | |
900 | ||
901 | ||
902 | ||
903 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
904 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
905 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a21a12e3 | 906 | echo "configure:907: checking for $ac_word" >&5 |
d4663715 RS |
907 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
908 | echo $ac_n "(cached) $ac_c" 1>&6 | |
909 | else | |
910 | if test -n "$RANLIB"; then | |
911 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
912 | else | |
168c5ef4 | 913 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
d4663715 RS |
914 | for ac_dir in $PATH; do |
915 | test -z "$ac_dir" && ac_dir=. | |
916 | if test -f $ac_dir/$ac_word; then | |
917 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
918 | break | |
919 | fi | |
920 | done | |
921 | IFS="$ac_save_ifs" | |
922 | fi | |
923 | fi | |
924 | RANLIB="$ac_cv_prog_RANLIB" | |
925 | if test -n "$RANLIB"; then | |
926 | echo "$ac_t""$RANLIB" 1>&6 | |
927 | else | |
928 | echo "$ac_t""no" 1>&6 | |
929 | fi | |
930 | ||
931 | ||
932 | if test -z "$ac_cv_prog_RANLIB"; then | |
933 | if test -n "$ac_tool_prefix"; then | |
934 | # Extract the first word of "ranlib", so it can be a program name with args. | |
935 | set dummy ranlib; ac_word=$2 | |
936 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a21a12e3 | 937 | echo "configure:938: checking for $ac_word" >&5 |
d4663715 RS |
938 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
939 | echo $ac_n "(cached) $ac_c" 1>&6 | |
940 | else | |
941 | if test -n "$RANLIB"; then | |
942 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
943 | else | |
168c5ef4 | 944 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
d4663715 RS |
945 | for ac_dir in $PATH; do |
946 | test -z "$ac_dir" && ac_dir=. | |
947 | if test -f $ac_dir/$ac_word; then | |
948 | ac_cv_prog_RANLIB="ranlib" | |
949 | break | |
950 | fi | |
951 | done | |
952 | IFS="$ac_save_ifs" | |
953 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
954 | fi | |
955 | fi | |
956 | RANLIB="$ac_cv_prog_RANLIB" | |
957 | if test -n "$RANLIB"; then | |
958 | echo "$ac_t""$RANLIB" 1>&6 | |
959 | else | |
960 | echo "$ac_t""no" 1>&6 | |
961 | fi | |
962 | ||
963 | else | |
964 | RANLIB=":" | |
965 | fi | |
966 | fi | |
967 | ||
968 | ||
1ffd292b C |
969 | ac_aux_dir= |
970 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
1ffd292b C |
971 | if test -f $ac_dir/install-sh; then |
972 | ac_aux_dir=$ac_dir | |
973 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
974 | break | |
975 | elif test -f $ac_dir/install.sh; then | |
976 | ac_aux_dir=$ac_dir | |
977 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
978 | break | |
979 | fi | |
980 | done | |
981 | if test -z "$ac_aux_dir"; then | |
982 | { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; } | |
983 | fi | |
984 | ac_config_guess=$ac_aux_dir/config.guess | |
985 | ac_config_sub=$ac_aux_dir/config.sub | |
986 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
987 | ||
988 | ||
989 | # Do some error checking and defaulting for the host and target type. | |
990 | # The inputs are: | |
991 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
992 | # | |
993 | # The rules are: | |
994 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
d4663715 | 995 | # same time. |
1ffd292b C |
996 | # 2. Host defaults to nonopt. |
997 | # 3. If nonopt is not specified, then host defaults to the current host, | |
998 | # as determined by config.guess. | |
999 | # 4. Target and build default to nonopt. | |
1000 | # 5. If nonopt is not specified, then target and build default to host. | |
1001 | ||
1002 | # The aliases save the names the user supplied, while $host etc. | |
1003 | # will get canonicalized. | |
1004 | case $host---$target---$nonopt in | |
1005 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1006 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1007 | esac | |
1008 | ||
1009 | ||
1010 | # Make sure we can run config.sub. | |
168c5ef4 | 1011 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
1ffd292b C |
1012 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
1013 | fi | |
1014 | ||
1015 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
a21a12e3 | 1016 | echo "configure:1017: checking host system type" >&5 |
1ffd292b C |
1017 | |
1018 | host_alias=$host | |
1019 | case "$host_alias" in | |
1020 | NONE) | |
1021 | case $nonopt in | |
1022 | NONE) | |
168c5ef4 | 1023 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
1ffd292b C |
1024 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
1025 | fi ;; | |
1026 | *) host_alias=$nonopt ;; | |
1027 | esac ;; | |
1028 | esac | |
1029 | ||
168c5ef4 | 1030 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
6e1510a2 SG |
1031 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1032 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1033 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1ffd292b C |
1034 | echo "$ac_t""$host" 1>&6 |
1035 | ||
1036 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
a21a12e3 | 1037 | echo "configure:1038: checking target system type" >&5 |
1ffd292b C |
1038 | |
1039 | target_alias=$target | |
1040 | case "$target_alias" in | |
1041 | NONE) | |
1042 | case $nonopt in | |
1043 | NONE) target_alias=$host_alias ;; | |
1044 | *) target_alias=$nonopt ;; | |
1045 | esac ;; | |
1046 | esac | |
1047 | ||
168c5ef4 | 1048 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
6e1510a2 SG |
1049 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1050 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1051 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1ffd292b C |
1052 | echo "$ac_t""$target" 1>&6 |
1053 | ||
1054 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
a21a12e3 | 1055 | echo "configure:1056: checking build system type" >&5 |
1ffd292b C |
1056 | |
1057 | build_alias=$build | |
1058 | case "$build_alias" in | |
1059 | NONE) | |
1060 | case $nonopt in | |
1061 | NONE) build_alias=$host_alias ;; | |
1062 | *) build_alias=$nonopt ;; | |
1063 | esac ;; | |
1064 | esac | |
1065 | ||
168c5ef4 | 1066 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
6e1510a2 SG |
1067 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1068 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1069 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1ffd292b C |
1070 | echo "$ac_t""$build" 1>&6 |
1071 | ||
1072 | test "$host_alias" != "$target_alias" && | |
1073 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1074 | NONENONEs,x,x, && | |
1075 | program_prefix=${target_alias}- | |
1076 | ||
1077 | if test "$program_transform_name" = s,x,x,; then | |
1078 | program_transform_name= | |
1079 | else | |
d4663715 RS |
1080 | # Double any \ or $. echo might interpret backslashes. |
1081 | cat <<\EOF_SED > conftestsed | |
1082 | s,\\,\\\\,g; s,\$,$$,g | |
1083 | EOF_SED | |
1ffd292b C |
1084 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
1085 | rm -f conftestsed | |
1086 | fi | |
1087 | test "$program_prefix" != NONE && | |
1088 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
1089 | # Use a double $ so make ignores it. | |
1090 | test "$program_suffix" != NONE && | |
1091 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
1092 | ||
1093 | # sed with no file args requires a program. | |
1094 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
1095 | ||
6f07ee29 MM |
1096 | # Extract the first word of "gcc", so it can be a program name with args. |
1097 | set dummy gcc; ac_word=$2 | |
1098 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a21a12e3 | 1099 | echo "configure:1100: checking for $ac_word" >&5 |
6f07ee29 MM |
1100 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1101 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1102 | else | |
1103 | if test -n "$CC"; then | |
1104 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1105 | else | |
168c5ef4 | 1106 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6f07ee29 MM |
1107 | for ac_dir in $PATH; do |
1108 | test -z "$ac_dir" && ac_dir=. | |
1109 | if test -f $ac_dir/$ac_word; then | |
1110 | ac_cv_prog_CC="gcc" | |
1111 | break | |
1112 | fi | |
1113 | done | |
1114 | IFS="$ac_save_ifs" | |
6f07ee29 MM |
1115 | fi |
1116 | fi | |
1117 | CC="$ac_cv_prog_CC" | |
1118 | if test -n "$CC"; then | |
1119 | echo "$ac_t""$CC" 1>&6 | |
1120 | else | |
1121 | echo "$ac_t""no" 1>&6 | |
1122 | fi | |
1123 | ||
d4663715 RS |
1124 | if test -z "$CC"; then |
1125 | # Extract the first word of "cc", so it can be a program name with args. | |
1126 | set dummy cc; ac_word=$2 | |
1127 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a21a12e3 | 1128 | echo "configure:1129: checking for $ac_word" >&5 |
d4663715 RS |
1129 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1131 | else | |
1132 | if test -n "$CC"; then | |
1133 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1134 | else | |
168c5ef4 | 1135 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
d4663715 RS |
1136 | ac_prog_rejected=no |
1137 | for ac_dir in $PATH; do | |
1138 | test -z "$ac_dir" && ac_dir=. | |
1139 | if test -f $ac_dir/$ac_word; then | |
1140 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1141 | ac_prog_rejected=yes | |
1142 | continue | |
1143 | fi | |
1144 | ac_cv_prog_CC="cc" | |
1145 | break | |
1146 | fi | |
1147 | done | |
1148 | IFS="$ac_save_ifs" | |
1149 | if test $ac_prog_rejected = yes; then | |
1150 | # We found a bogon in the path, so make sure we never use it. | |
1151 | set dummy $ac_cv_prog_CC | |
1152 | shift | |
1153 | if test $# -gt 0; then | |
1154 | # We chose a different compiler from the bogus one. | |
1155 | # However, it has the same basename, so the bogon will be chosen | |
1156 | # first if we set CC to just the basename; use the full file name. | |
1157 | shift | |
1158 | set dummy "$ac_dir/$ac_word" "$@" | |
1159 | shift | |
1160 | ac_cv_prog_CC="$@" | |
1161 | fi | |
1162 | fi | |
1163 | fi | |
1164 | fi | |
1165 | CC="$ac_cv_prog_CC" | |
1166 | if test -n "$CC"; then | |
1167 | echo "$ac_t""$CC" 1>&6 | |
1168 | else | |
1169 | echo "$ac_t""no" 1>&6 | |
1170 | fi | |
1171 | ||
168c5ef4 DB |
1172 | if test -z "$CC"; then |
1173 | case "`uname -s`" in | |
1174 | *win32* | *WIN32*) | |
1175 | # Extract the first word of "cl", so it can be a program name with args. | |
1176 | set dummy cl; ac_word=$2 | |
1177 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a21a12e3 | 1178 | echo "configure:1179: checking for $ac_word" >&5 |
168c5ef4 DB |
1179 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1180 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1181 | else | |
1182 | if test -n "$CC"; then | |
1183 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1184 | else | |
1185 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1186 | for ac_dir in $PATH; do | |
1187 | test -z "$ac_dir" && ac_dir=. | |
1188 | if test -f $ac_dir/$ac_word; then | |
1189 | ac_cv_prog_CC="cl" | |
1190 | break | |
1191 | fi | |
1192 | done | |
1193 | IFS="$ac_save_ifs" | |
1194 | fi | |
1195 | fi | |
1196 | CC="$ac_cv_prog_CC" | |
1197 | if test -n "$CC"; then | |
1198 | echo "$ac_t""$CC" 1>&6 | |
1199 | else | |
1200 | echo "$ac_t""no" 1>&6 | |
1201 | fi | |
1202 | ;; | |
1203 | esac | |
1204 | fi | |
d4663715 RS |
1205 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1206 | fi | |
6f07ee29 | 1207 | |
6e1510a2 | 1208 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
a21a12e3 | 1209 | echo "configure:1210: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
6e1510a2 SG |
1210 | |
1211 | ac_ext=c | |
1212 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1213 | ac_cpp='$CPP $CPPFLAGS' | |
1214 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
168c5ef4 | 1215 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
6e1510a2 SG |
1216 | cross_compiling=$ac_cv_prog_cc_cross |
1217 | ||
1218 | cat > conftest.$ac_ext <<EOF | |
a21a12e3 | 1219 | #line 1220 "configure" |
6e1510a2 SG |
1220 | #include "confdefs.h" |
1221 | main(){return(0);} | |
1222 | EOF | |
a21a12e3 | 1223 | if { (eval echo configure:1224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6e1510a2 SG |
1224 | ac_cv_prog_cc_works=yes |
1225 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1226 | if (./conftest; exit) 2>/dev/null; then | |
1227 | ac_cv_prog_cc_cross=no | |
1228 | else | |
1229 | ac_cv_prog_cc_cross=yes | |
1230 | fi | |
1231 | else | |
1232 | echo "configure: failed program was:" >&5 | |
1233 | cat conftest.$ac_ext >&5 | |
1234 | ac_cv_prog_cc_works=no | |
1235 | fi | |
1236 | rm -fr conftest* | |
1237 | ||
1238 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1239 | if test $ac_cv_prog_cc_works = no; then | |
1240 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1241 | fi | |
1242 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
a21a12e3 | 1243 | echo "configure:1244: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
6e1510a2 SG |
1244 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1245 | cross_compiling=$ac_cv_prog_cc_cross | |
1246 | ||
6f07ee29 | 1247 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
a21a12e3 | 1248 | echo "configure:1249: checking whether we are using GNU C" >&5 |
6f07ee29 MM |
1249 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1251 | else | |
1252 | cat > conftest.c <<EOF | |
1253 | #ifdef __GNUC__ | |
1254 | yes; | |
1255 | #endif | |
1256 | EOF | |
a21a12e3 | 1257 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
6f07ee29 MM |
1258 | ac_cv_prog_gcc=yes |
1259 | else | |
1260 | ac_cv_prog_gcc=no | |
1261 | fi | |
1262 | fi | |
d4663715 | 1263 | |
6f07ee29 | 1264 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
6e1510a2 | 1265 | |
6f07ee29 MM |
1266 | if test $ac_cv_prog_gcc = yes; then |
1267 | GCC=yes | |
168c5ef4 DB |
1268 | else |
1269 | GCC= | |
1270 | fi | |
1271 | ||
1272 | ac_test_CFLAGS="${CFLAGS+set}" | |
1273 | ac_save_CFLAGS="$CFLAGS" | |
1274 | CFLAGS= | |
1275 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
a21a12e3 | 1276 | echo "configure:1277: checking whether ${CC-cc} accepts -g" >&5 |
6e1510a2 | 1277 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
6f07ee29 MM |
1278 | echo $ac_n "(cached) $ac_c" 1>&6 |
1279 | else | |
1280 | echo 'void f(){}' > conftest.c | |
1281 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
6e1510a2 | 1282 | ac_cv_prog_cc_g=yes |
6f07ee29 | 1283 | else |
6e1510a2 | 1284 | ac_cv_prog_cc_g=no |
6f07ee29 MM |
1285 | fi |
1286 | rm -f conftest* | |
1287 | ||
1288 | fi | |
d4663715 | 1289 | |
6e1510a2 | 1290 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
168c5ef4 DB |
1291 | if test "$ac_test_CFLAGS" = set; then |
1292 | CFLAGS="$ac_save_CFLAGS" | |
1293 | elif test $ac_cv_prog_cc_g = yes; then | |
1294 | if test "$GCC" = yes; then | |
6e1510a2 SG |
1295 | CFLAGS="-g -O2" |
1296 | else | |
168c5ef4 | 1297 | CFLAGS="-g" |
6f07ee29 MM |
1298 | fi |
1299 | else | |
168c5ef4 DB |
1300 | if test "$GCC" = yes; then |
1301 | CFLAGS="-O2" | |
1302 | else | |
1303 | CFLAGS= | |
1304 | fi | |
6f07ee29 MM |
1305 | fi |
1306 | ||
1307 | ||
1308 | ||
1309 | AR=${AR-ar} | |
1310 | ||
1311 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1312 | set dummy ranlib; ac_word=$2 | |
1313 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a21a12e3 | 1314 | echo "configure:1315: checking for $ac_word" >&5 |
6f07ee29 MM |
1315 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1317 | else | |
1318 | if test -n "$RANLIB"; then | |
1319 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1320 | else | |
168c5ef4 | 1321 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6f07ee29 MM |
1322 | for ac_dir in $PATH; do |
1323 | test -z "$ac_dir" && ac_dir=. | |
1324 | if test -f $ac_dir/$ac_word; then | |
1325 | ac_cv_prog_RANLIB="ranlib" | |
1326 | break | |
1327 | fi | |
1328 | done | |
1329 | IFS="$ac_save_ifs" | |
1330 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1331 | fi | |
1332 | fi | |
1333 | RANLIB="$ac_cv_prog_RANLIB" | |
1334 | if test -n "$RANLIB"; then | |
1335 | echo "$ac_t""$RANLIB" 1>&6 | |
1336 | else | |
1337 | echo "$ac_t""no" 1>&6 | |
1338 | fi | |
1339 | ||
1340 | ||
1341 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
6f07ee29 MM |
1342 | |
1343 | if test "x$cross_compiling" = "xno"; then | |
1344 | CC_FOR_BUILD='$(CC)' | |
1345 | else | |
1346 | CC_FOR_BUILD=gcc | |
1347 | fi | |
1348 | ||
1ffd292b | 1349 | |
126d9d0a DE |
1350 | # If a cpu ever has more than one simulator to choose from, use |
1351 | # --enable-sim=... to choose. | |
1352 | # Check whether --enable-sim or --disable-sim was given. | |
1353 | if test "${enable_sim+set}" = set; then | |
1354 | enableval="$enable_sim" | |
f50dc105 | 1355 | case "${enableval}" in |
126d9d0a DE |
1356 | yes | no) ;; |
1357 | *) { echo "configure: error: bad value ${enableval} given for --enable-sim option" 1>&2; exit 1; } ;; | |
f50dc105 | 1358 | esac |
f50dc105 MM |
1359 | fi |
1360 | ||
1361 | ||
126d9d0a DE |
1362 | # Assume simulator can be built with cc. |
1363 | # If the user passes --enable-sim built it regardless of $(CC). | |
1364 | only_if_gcc=no | |
247fccde | 1365 | only_if_enabled=no |
15c16493 | 1366 | extra_subdirs=common |
126d9d0a | 1367 | |
1ffd292b C |
1368 | # WHEN ADDING ENTRIES TO THIS MATRIX: |
1369 | # Make sure that the left side always has two dashes. Otherwise you | |
1370 | # can get spurious matches. Even for unambiguous cases, do this as a | |
1371 | # convention, else the table becomes a real mess to understand and maintain. | |
1372 | ||
1373 | case "${target}" in | |
1374 | arm*-*-*) sim_target=arm ;; | |
e46ede53 | 1375 | thumb*-*-*) sim_target=arm ;; |
68867afb | 1376 | d10v-*-*) sim_target=d10v ;; |
15c16493 AC |
1377 | d30v-*-*) |
1378 | sim_target=d30v | |
1379 | only_if_gcc=yes | |
52352d38 | 1380 | extra_subdirs="${extra_subdirs} igen" |
15c16493 | 1381 | ;; |
168c5ef4 | 1382 | fr30-*-*) sim_target=fr30 ;; |
1ffd292b C |
1383 | h8300*-*-*) sim_target=h8300 ;; |
1384 | h8500-*-*) sim_target=h8500 ;; | |
a21a12e3 | 1385 | i960-*-*) sim_target=i960 ;; |
247fccde | 1386 | m32r-*-*) sim_target=m32r ;; |
68867afb | 1387 | mips*-*-*) |
126d9d0a DE |
1388 | # The MIPS simulator can only be compiled by gcc. |
1389 | sim_target=mips | |
1390 | only_if_gcc=yes | |
e46ede53 IC |
1391 | extra_subdirs="${extra_subdirs} igen" |
1392 | ;; | |
6e1510a2 SG |
1393 | mn10300*-*-*) |
1394 | # The mn10300 simulator can only be compiled by gcc. | |
1395 | sim_target=mn10300 | |
1396 | only_if_gcc=yes | |
9bd4b461 | 1397 | extra_subdirs="${extra_subdirs} igen" |
6e1510a2 | 1398 | ;; |
15c16493 AC |
1399 | mn10200*-*-*) |
1400 | sim_target=mn10200 | |
1401 | ;; | |
126d9d0a DE |
1402 | sh*-*-*) sim_target=sh ;; |
1403 | powerpc*-*-eabi* | powerpc*-*-solaris* | powerpc*-*-sysv4* | powerpc*-*-elf* | powerpc*-*-linux* ) | |
1404 | # The PowerPC simulator uses the GCC extension long long as well as | |
1405 | # ANSI prototypes, so don't enable it for random host compilers | |
1406 | # unless asked to. | |
1407 | sim_target=ppc | |
1408 | only_if_gcc=yes | |
15c16493 AC |
1409 | #extra_subdirs="${extra_subdirs}" |
1410 | ;; | |
1411 | # start-sanitize-tic80 | |
1412 | tic80-*-*) | |
1413 | sim_target=tic80 | |
1414 | only_if_gcc=yes | |
1415 | extra_subdirs="${extra_subdirs} igen" | |
126d9d0a | 1416 | ;; |
15c16493 | 1417 | # end-sanitize-tic80 |
aee4f36a | 1418 | v850-*-*) |
126d9d0a DE |
1419 | # The V850 simulator can only be compiled by gcc. |
1420 | sim_target=v850 | |
04258dee | 1421 | extra_subdirs="${extra_subdirs} igen" |
126d9d0a DE |
1422 | only_if_gcc=yes |
1423 | ;; | |
247fccde AC |
1424 | v850e-*-*) |
1425 | # The V850 simulator can only be compiled by gcc. | |
1426 | sim_target=v850 | |
04258dee | 1427 | extra_subdirs="${extra_subdirs} igen" |
247fccde AC |
1428 | only_if_gcc=yes |
1429 | ;; | |
e46ede53 | 1430 | v850ea-*-*) |
247fccde AC |
1431 | # The V850 simulator can only be compiled by gcc. |
1432 | sim_target=v850 | |
944deab6 | 1433 | extra_subdirs="${extra_subdirs} igen" |
247fccde AC |
1434 | only_if_gcc=yes |
1435 | ;; | |
3f1a33d6 AC |
1436 | w65-*-*) |
1437 | sim_target=w65 | |
1438 | # The w65 is suffering from gradual decay. | |
1439 | only_if_enabled=yes | |
1440 | ;; | |
1ffd292b | 1441 | z8k*-*-*) sim_target=z8k ;; |
2a2eda4d | 1442 | sparc64-*-*) |
8f06365c JL |
1443 | sim_target=none # Don't build erc32 if sparc64. |
1444 | ;; | |
168c5ef4 DB |
1445 | sparclite*-*-* | sparc86x*-*-*) |
1446 | # The SPARC simulator can only be compiled by gcc. | |
1447 | sim_target=erc32 | |
1448 | only_if_gcc=yes | |
1449 | ;; | |
126d9d0a DE |
1450 | sparc*-*-*) |
1451 | # The SPARC simulator can only be compiled by gcc. | |
1452 | sim_target=erc32 | |
1453 | only_if_gcc=yes | |
247fccde AC |
1454 | # Unfortunately erc32 won't build on many hosts, so only enable |
1455 | # it if the user really really wants it. | |
1456 | only_if_enabled=yes | |
126d9d0a | 1457 | ;; |
1ffd292b C |
1458 | *) sim_target=none ;; |
1459 | esac | |
1460 | ||
52352d38 | 1461 | |
a21a12e3 NC |
1462 | # start-sanitize-gxsim |
1463 | # Check whether --enable-sim-gx or --disable-sim-gx was given. | |
1464 | if test "${enable_sim_gx+set}" = set; then | |
1465 | enableval="$enable_sim_gx" | |
1466 | case "${enableval}" in | |
1467 | yes) | |
1468 | if test -d ${srcdir}/${sim_target}-gx ; then | |
1469 | extra_subdirs="${sim_target}-gx" | |
1470 | else | |
1471 | echo "configure: warning: GX simulator not available for ${sim_target}" 1>&2 | |
1472 | fi ;; | |
1473 | esac | |
1474 | fi | |
1475 | # end-sanitize-gxsim | |
1476 | ||
1477 | ||
52352d38 AC |
1478 | # Is there a testsuite directory for the target? |
1479 | testdir=`echo ${target} | sed -e 's/-.*-/-/'` | |
1480 | if test -r ${srcdir}/testsuite/${testdir}/configure ; then | |
1481 | extra_subdirs="${extra_subdirs} testsuite" | |
1482 | fi | |
1483 | ||
1484 | ||
126d9d0a DE |
1485 | case "${enable_sim}" in |
1486 | no) sim_target=none ;; | |
1487 | yes) | |
1488 | if test ${only_if_gcc} = yes ; then | |
1489 | if test "${GCC}" != yes ; then | |
1490 | echo "Can't enable simulator since not compiling with GCC." | |
1491 | sim_target=none | |
1492 | fi | |
1493 | fi | |
1494 | ;; | |
1495 | *) | |
247fccde AC |
1496 | if test ${only_if_enabled} = yes ; then |
1497 | sim_target=none | |
1498 | else | |
1499 | if test ${only_if_gcc} = yes ; then | |
1500 | if test "${GCC}" != yes ; then | |
1501 | sim_target=none | |
1502 | fi | |
126d9d0a DE |
1503 | fi |
1504 | fi | |
1505 | ;; | |
1506 | esac | |
1507 | ||
8f06365c | 1508 | if test x"${sim_target}" != xnone ; then |
15c16493 | 1509 | configdirs="${extra_subdirs} ${sim_target}" |
2a2eda4d | 1510 | subdirs="$configdirs" |
1ffd292b | 1511 | |
2a2eda4d | 1512 | fi |
1ffd292b | 1513 | |
1ffd292b C |
1514 | trap '' 1 2 15 |
1515 | cat > confcache <<\EOF | |
1516 | # This file is a shell script that caches the results of configure | |
1517 | # tests run on this system so they can be shared between configure | |
1518 | # scripts and configure runs. It is not useful on other systems. | |
1519 | # If it contains results you don't want to keep, you may remove or edit it. | |
1520 | # | |
1521 | # By default, configure uses ./config.cache as the cache file, | |
1522 | # creating it if it does not exist already. You can give configure | |
1523 | # the --cache-file=FILE option to use a different cache file; that is | |
1524 | # what configure does when it calls configure scripts in | |
1525 | # subdirectories, so they share the cache. | |
1526 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
1527 | # config.status only pays attention to the cache file if you give it the | |
1528 | # --recheck option to rerun configure. | |
1529 | # | |
1530 | EOF | |
6e1510a2 SG |
1531 | # The following way of writing the cache mishandles newlines in values, |
1532 | # but we know of no workaround that is simple, portable, and efficient. | |
1533 | # So, don't put newlines in cache variables' values. | |
1ffd292b C |
1534 | # Ultrix sh set writes to stderr and can't be redirected directly, |
1535 | # and sets the high bit in the cache file unless we assign to the vars. | |
1536 | (set) 2>&1 | | |
168c5ef4 | 1537 | case `(ac_space=' '; set) 2>&1 | grep ac_space` in |
6e1510a2 SG |
1538 | *ac_space=\ *) |
1539 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
1540 | # turns \\\\ into \\, and sed turns \\ into \). | |
1541 | sed -n \ | |
1542 | -e "s/'/'\\\\''/g" \ | |
1543 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
1544 | ;; | |
1545 | *) | |
1546 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
1547 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
1548 | ;; | |
1549 | esac >> confcache | |
1ffd292b C |
1550 | if cmp -s $cache_file confcache; then |
1551 | : | |
1552 | else | |
1553 | if test -w $cache_file; then | |
1554 | echo "updating cache $cache_file" | |
1555 | cat confcache > $cache_file | |
1556 | else | |
1557 | echo "not updating unwritable cache $cache_file" | |
1558 | fi | |
1559 | fi | |
1560 | rm -f confcache | |
1561 | ||
1562 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
1563 | ||
1564 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
1565 | # Let make expand exec_prefix. | |
1566 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
1567 | ||
1568 | # Any assignment to VPATH causes Sun make to only execute | |
1569 | # the first set of double-colon rules, so remove it if not needed. | |
1570 | # If there is a colon in the path, we need to keep it. | |
1571 | if test "x$srcdir" = x.; then | |
1572 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
1573 | fi | |
1574 | ||
1575 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
1576 | ||
1577 | # Transform confdefs.h into DEFS. | |
1578 | # Protect against shell expansion while executing Makefile rules. | |
1579 | # Protect against Makefile macro expansion. | |
1580 | cat > conftest.defs <<\EOF | |
d4663715 | 1581 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
1ffd292b C |
1582 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
1583 | s%\[%\\&%g | |
1584 | s%\]%\\&%g | |
1585 | s%\$%$$%g | |
1586 | EOF | |
1587 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
1588 | rm -f conftest.defs | |
1589 | ||
1590 | ||
1591 | # Without the "./", some shells look in PATH for config.status. | |
1592 | : ${CONFIG_STATUS=./config.status} | |
1593 | ||
1594 | echo creating $CONFIG_STATUS | |
1595 | rm -f $CONFIG_STATUS | |
1596 | cat > $CONFIG_STATUS <<EOF | |
1597 | #! /bin/sh | |
1598 | # Generated automatically by configure. | |
1599 | # Run this file to recreate the current configuration. | |
1600 | # This directory was configured as follows, | |
1601 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
1602 | # | |
1603 | # $0 $ac_configure_args | |
1604 | # | |
1605 | # Compiler output produced by configure, useful for debugging | |
1606 | # configure, is in ./config.log if it exists. | |
1607 | ||
1608 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
1609 | for ac_option | |
1610 | do | |
1611 | case "\$ac_option" in | |
1612 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
1613 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
1614 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
1615 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
168c5ef4 | 1616 | echo "$CONFIG_STATUS generated by autoconf version 2.12.2" |
1ffd292b C |
1617 | exit 0 ;; |
1618 | -help | --help | --hel | --he | --h) | |
1619 | echo "\$ac_cs_usage"; exit 0 ;; | |
1620 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
1621 | esac | |
1622 | done | |
1623 | ||
1624 | ac_given_srcdir=$srcdir | |
68867afb | 1625 | ac_given_INSTALL="$INSTALL" |
1ffd292b C |
1626 | |
1627 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
d4663715 RS |
1628 | EOF |
1629 | cat >> $CONFIG_STATUS <<EOF | |
1ffd292b | 1630 | |
d4663715 RS |
1631 | # Protect against being on the right side of a sed subst in config.status. |
1632 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
1633 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
1ffd292b C |
1634 | $ac_vpsub |
1635 | $extrasub | |
168c5ef4 | 1636 | s%@SHELL@%$SHELL%g |
1ffd292b C |
1637 | s%@CFLAGS@%$CFLAGS%g |
1638 | s%@CPPFLAGS@%$CPPFLAGS%g | |
1639 | s%@CXXFLAGS@%$CXXFLAGS%g | |
1640 | s%@DEFS@%$DEFS%g | |
1641 | s%@LDFLAGS@%$LDFLAGS%g | |
1642 | s%@LIBS@%$LIBS%g | |
1643 | s%@exec_prefix@%$exec_prefix%g | |
1644 | s%@prefix@%$prefix%g | |
1645 | s%@program_transform_name@%$program_transform_name%g | |
d4663715 RS |
1646 | s%@bindir@%$bindir%g |
1647 | s%@sbindir@%$sbindir%g | |
1648 | s%@libexecdir@%$libexecdir%g | |
1649 | s%@datadir@%$datadir%g | |
1650 | s%@sysconfdir@%$sysconfdir%g | |
1651 | s%@sharedstatedir@%$sharedstatedir%g | |
1652 | s%@localstatedir@%$localstatedir%g | |
1653 | s%@libdir@%$libdir%g | |
1654 | s%@includedir@%$includedir%g | |
1655 | s%@oldincludedir@%$oldincludedir%g | |
1656 | s%@infodir@%$infodir%g | |
1657 | s%@mandir@%$mandir%g | |
1658 | s%@CC@%$CC%g | |
68867afb ILT |
1659 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
1660 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
1ffd292b C |
1661 | s%@host@%$host%g |
1662 | s%@host_alias@%$host_alias%g | |
1663 | s%@host_cpu@%$host_cpu%g | |
1664 | s%@host_vendor@%$host_vendor%g | |
1665 | s%@host_os@%$host_os%g | |
1ffd292b C |
1666 | s%@build@%$build%g |
1667 | s%@build_alias@%$build_alias%g | |
1668 | s%@build_cpu@%$build_cpu%g | |
1669 | s%@build_vendor@%$build_vendor%g | |
1670 | s%@build_os@%$build_os%g | |
6f07ee29 MM |
1671 | s%@AR@%$AR%g |
1672 | s%@RANLIB@%$RANLIB%g | |
d4663715 RS |
1673 | s%@target@%$target%g |
1674 | s%@target_alias@%$target_alias%g | |
1675 | s%@target_cpu@%$target_cpu%g | |
1676 | s%@target_vendor@%$target_vendor%g | |
1677 | s%@target_os@%$target_os%g | |
1678 | s%@HDEFINES@%$HDEFINES%g | |
6f07ee29 | 1679 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g |
1ffd292b | 1680 | s%@subdirs@%$subdirs%g |
1ffd292b C |
1681 | |
1682 | CEOF | |
1683 | EOF | |
6e1510a2 SG |
1684 | |
1685 | cat >> $CONFIG_STATUS <<\EOF | |
1686 | ||
1687 | # Split the substitutions into bite-sized pieces for seds with | |
1688 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
1689 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
1690 | ac_file=1 # Number of current file. | |
1691 | ac_beg=1 # First line for current file. | |
1692 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
1693 | ac_more_lines=: | |
1694 | ac_sed_cmds="" | |
1695 | while $ac_more_lines; do | |
1696 | if test $ac_beg -gt 1; then | |
1697 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
1698 | else | |
1699 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
1700 | fi | |
1701 | if test ! -s conftest.s$ac_file; then | |
1702 | ac_more_lines=false | |
1703 | rm -f conftest.s$ac_file | |
1704 | else | |
1705 | if test -z "$ac_sed_cmds"; then | |
1706 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
1707 | else | |
1708 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
1709 | fi | |
1710 | ac_file=`expr $ac_file + 1` | |
1711 | ac_beg=$ac_end | |
1712 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
1713 | fi | |
1714 | done | |
1715 | if test -z "$ac_sed_cmds"; then | |
1716 | ac_sed_cmds=cat | |
1717 | fi | |
1718 | EOF | |
1719 | ||
1ffd292b C |
1720 | cat >> $CONFIG_STATUS <<EOF |
1721 | ||
1722 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | |
1723 | EOF | |
1724 | cat >> $CONFIG_STATUS <<\EOF | |
1725 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
6e1510a2 | 1726 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
1ffd292b | 1727 | case "$ac_file" in |
6e1510a2 | 1728 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
1ffd292b C |
1729 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
1730 | *) ac_file_in="${ac_file}.in" ;; | |
1731 | esac | |
1732 | ||
6e1510a2 | 1733 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1ffd292b C |
1734 | |
1735 | # Remove last slash and all that follows it. Not all systems have dirname. | |
1736 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
1737 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
1738 | # The file is in a subdirectory. | |
1739 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
1740 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
1741 | # A "../" for each directory in $ac_dir_suffix. | |
1742 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
1743 | else | |
1744 | ac_dir_suffix= ac_dots= | |
1745 | fi | |
1746 | ||
1747 | case "$ac_given_srcdir" in | |
1748 | .) srcdir=. | |
1749 | if test -z "$ac_dots"; then top_srcdir=. | |
1750 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
1751 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
1752 | *) # Relative path. | |
1753 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
1754 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
1755 | esac | |
1756 | ||
68867afb ILT |
1757 | case "$ac_given_INSTALL" in |
1758 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
1759 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
1760 | esac | |
6e1510a2 | 1761 | |
1ffd292b C |
1762 | echo creating "$ac_file" |
1763 | rm -f "$ac_file" | |
1764 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
1765 | case "$ac_file" in | |
1766 | *Makefile*) ac_comsub="1i\\ | |
1767 | # $configure_input" ;; | |
1768 | *) ac_comsub= ;; | |
1769 | esac | |
6e1510a2 SG |
1770 | |
1771 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
1ffd292b C |
1772 | sed -e "$ac_comsub |
1773 | s%@configure_input@%$configure_input%g | |
1774 | s%@srcdir@%$srcdir%g | |
1775 | s%@top_srcdir@%$top_srcdir%g | |
68867afb | 1776 | s%@INSTALL@%$INSTALL%g |
6e1510a2 | 1777 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
1ffd292b | 1778 | fi; done |
6e1510a2 | 1779 | rm -f conftest.s* |
1ffd292b | 1780 | |
6e1510a2 SG |
1781 | EOF |
1782 | cat >> $CONFIG_STATUS <<EOF | |
1ffd292b | 1783 | |
6e1510a2 SG |
1784 | EOF |
1785 | cat >> $CONFIG_STATUS <<\EOF | |
1ffd292b C |
1786 | |
1787 | exit 0 | |
1788 | EOF | |
1789 | chmod +x $CONFIG_STATUS | |
1790 | rm -fr confdefs* $ac_clean_files | |
1791 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
1792 | ||
1793 | if test "$no_recursion" != yes; then | |
1794 | ||
1795 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
1796 | ac_sub_configure_args= | |
1797 | ac_prev= | |
1798 | for ac_arg in $ac_configure_args; do | |
1799 | if test -n "$ac_prev"; then | |
1800 | ac_prev= | |
1801 | continue | |
1802 | fi | |
1803 | case "$ac_arg" in | |
1804 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1805 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1806 | ac_prev=cache_file ;; | |
1807 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1808 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1809 | ;; | |
1810 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1811 | ac_prev=srcdir ;; | |
1812 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1813 | ;; | |
1814 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
1815 | esac | |
1816 | done | |
1817 | ||
1818 | for ac_config_dir in $configdirs; do | |
1819 | ||
1820 | # Do not complain, so a configure script can configure whichever | |
1821 | # parts of a large source tree are present. | |
1822 | if test ! -d $srcdir/$ac_config_dir; then | |
1823 | continue | |
1824 | fi | |
1825 | ||
1826 | echo configuring in $ac_config_dir | |
1827 | ||
1828 | case "$srcdir" in | |
1829 | .) ;; | |
1830 | *) | |
1831 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
1832 | else | |
1833 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
1834 | fi | |
1835 | ;; | |
1836 | esac | |
1837 | ||
1838 | ac_popdir=`pwd` | |
1839 | cd $ac_config_dir | |
1840 | ||
6e1510a2 SG |
1841 | # A "../" for each directory in /$ac_config_dir. |
1842 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
1843 | ||
1ffd292b C |
1844 | case "$srcdir" in |
1845 | .) # No --srcdir option. We are building in place. | |
1846 | ac_sub_srcdir=$srcdir ;; | |
1847 | /*) # Absolute path. | |
1848 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
1849 | *) # Relative path. | |
6e1510a2 | 1850 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
1ffd292b C |
1851 | esac |
1852 | ||
1853 | # Check for guested configure; otherwise get Cygnus style configure. | |
1854 | if test -f $ac_sub_srcdir/configure; then | |
1855 | ac_sub_configure=$ac_sub_srcdir/configure | |
1856 | elif test -f $ac_sub_srcdir/configure.in; then | |
1857 | ac_sub_configure=$ac_configure | |
1858 | else | |
1859 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
1860 | ac_sub_configure= | |
1861 | fi | |
1862 | ||
1863 | # The recursion is here. | |
1864 | if test -n "$ac_sub_configure"; then | |
1865 | ||
1866 | # Make the cache file name correct relative to the subdirectory. | |
1ffd292b C |
1867 | case "$cache_file" in |
1868 | /*) ac_sub_cache_file=$cache_file ;; | |
1869 | *) # Relative path. | |
1870 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
1871 | esac | |
68867afb ILT |
1872 | case "$ac_given_INSTALL" in |
1873 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
1874 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
1875 | esac | |
1ffd292b C |
1876 | |
1877 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
1878 | # The eval makes quoting arguments work. | |
1879 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
1880 | then : | |
1881 | else | |
1882 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
1883 | fi | |
1884 | fi | |
1885 | ||
1886 | cd $ac_popdir | |
1887 | done | |
1888 | fi | |
1889 | ||
595a6ec3 JSC |
1890 | |
1891 | exit 0 |