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