]>
Commit | Line | Data |
---|---|---|
cd6ede75 UD |
1 | #! /bin/sh |
2 | ||
3 | # From configure.in CVSid | |
4 | ||
5 | ||
6 | ||
7 | ||
650425ce UD |
8 | |
9 | ||
10 | ||
11 | ||
cd6ede75 UD |
12 | # Guess values for system-dependent variables and create Makefiles. |
13 | # Generated automatically using autoconf version 2.12 | |
14 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
15 | # | |
16 | # This configure script is free software; the Free Software Foundation | |
17 | # gives unlimited permission to copy, distribute and modify it. | |
18 | ||
19 | # Defaults: | |
20 | ac_help= | |
21 | ac_default_prefix=/usr/local | |
22 | # Any additions from configure.in: | |
23 | ac_help="$ac_help | |
24 | --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)" | |
25 | ac_help="$ac_help | |
26 | --with-gettext=DIR find GNU gettext source code in DIR (not needed)" | |
27 | ac_help="$ac_help | |
28 | --with-fp if using floating-point hardware [default=yes]" | |
29 | ac_help="$ac_help | |
a5a0310d | 30 | --with-binutils=PATH specify location of binutils (as and ld)" |
cd6ede75 UD |
31 | ac_help="$ac_help |
32 | --with-elf if using the ELF object format" | |
33 | ac_help="$ac_help | |
34 | --enable-libio build in GNU libio instead of GNU stdio" | |
35 | ac_help="$ac_help | |
36 | --disable-sanity-checks really do not use threads (should not be used | |
37 | except in special situations) [default=yes]" | |
650425ce UD |
38 | ac_help="$ac_help |
39 | --enable-static build static library [default=yes]" | |
cd6ede75 UD |
40 | ac_help="$ac_help |
41 | --enable-shared build shared library [default=yes if GNU ld & ELF]" | |
42 | ac_help="$ac_help | |
43 | --enable-profile build profiled library [default=yes]" | |
44 | ac_help="$ac_help | |
45 | --enable-omitfp build undebuggable optimized library [default=no]" | |
46 | ac_help="$ac_help | |
47 | --enable-bounded build with runtime bounds checking [default=no]" | |
650425ce UD |
48 | ac_help="$ac_help |
49 | --disable-versioning do not include versioning information in the | |
50 | library objects [default=yes if supported]" | |
cd6ede75 UD |
51 | ac_help="$ac_help |
52 | --enable-add-ons=DIR... configure and build named extra directories" | |
53 | ac_help="$ac_help | |
54 | --enable-static-nss build static NSS modules [default=no]" | |
55 | ||
56 | # Initialize some variables set by options. | |
57 | # The variables have the same names as the options, with | |
58 | # dashes changed to underlines. | |
59 | build=NONE | |
60 | cache_file=./config.cache | |
61 | exec_prefix=NONE | |
62 | host=NONE | |
63 | no_create= | |
64 | nonopt=NONE | |
65 | no_recursion= | |
66 | prefix=NONE | |
67 | program_prefix=NONE | |
68 | program_suffix=NONE | |
69 | program_transform_name=s,x,x, | |
70 | silent= | |
71 | site= | |
72 | srcdir= | |
73 | target=NONE | |
74 | verbose= | |
75 | x_includes=NONE | |
76 | x_libraries=NONE | |
77 | bindir='${exec_prefix}/bin' | |
78 | sbindir='${exec_prefix}/sbin' | |
79 | libexecdir='${exec_prefix}/libexec' | |
80 | datadir='${prefix}/share' | |
81 | sysconfdir='${prefix}/etc' | |
82 | sharedstatedir='${prefix}/com' | |
83 | localstatedir='${prefix}/var' | |
84 | libdir='${exec_prefix}/lib' | |
85 | includedir='${prefix}/include' | |
86 | oldincludedir='/usr/include' | |
87 | infodir='${prefix}/info' | |
88 | mandir='${prefix}/man' | |
89 | ||
90 | # Initialize some other variables. | |
91 | subdirs= | |
92 | MFLAGS= MAKEFLAGS= | |
93 | # Maximum number of lines to put in a shell here document. | |
94 | ac_max_here_lines=12 | |
95 | ||
96 | ac_prev= | |
97 | for ac_option | |
98 | do | |
99 | ||
100 | # If the previous option needs an argument, assign it. | |
101 | if test -n "$ac_prev"; then | |
102 | eval "$ac_prev=\$ac_option" | |
103 | ac_prev= | |
104 | continue | |
105 | fi | |
106 | ||
107 | case "$ac_option" in | |
108 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
109 | *) ac_optarg= ;; | |
110 | esac | |
111 | ||
112 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
113 | ||
114 | case "$ac_option" in | |
115 | ||
116 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
117 | ac_prev=bindir ;; | |
118 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
119 | bindir="$ac_optarg" ;; | |
120 | ||
121 | -build | --build | --buil | --bui | --bu) | |
122 | ac_prev=build ;; | |
123 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
124 | build="$ac_optarg" ;; | |
125 | ||
126 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
127 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
128 | ac_prev=cache_file ;; | |
129 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
130 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
131 | cache_file="$ac_optarg" ;; | |
132 | ||
133 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
134 | ac_prev=datadir ;; | |
135 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
136 | | --da=*) | |
137 | datadir="$ac_optarg" ;; | |
138 | ||
139 | -disable-* | --disable-*) | |
140 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
141 | # Reject names that are not valid shell variable names. | |
142 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
143 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
144 | fi | |
145 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
146 | eval "enable_${ac_feature}=no" ;; | |
147 | ||
148 | -enable-* | --enable-*) | |
149 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
150 | # Reject names that are not valid shell variable names. | |
151 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
152 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
153 | fi | |
154 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
155 | case "$ac_option" in | |
156 | *=*) ;; | |
157 | *) ac_optarg=yes ;; | |
158 | esac | |
159 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
160 | ||
161 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
162 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
163 | | --exec | --exe | --ex) | |
164 | ac_prev=exec_prefix ;; | |
165 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
166 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
167 | | --exec=* | --exe=* | --ex=*) | |
168 | exec_prefix="$ac_optarg" ;; | |
169 | ||
170 | -gas | --gas | --ga | --g) | |
171 | # Obsolete; use --with-gas. | |
172 | with_gas=yes ;; | |
173 | ||
174 | -help | --help | --hel | --he) | |
175 | # Omit some internal or obsolete options to make the list less imposing. | |
176 | # This message is too long to be a string in the A/UX 3.1 sh. | |
177 | cat << EOF | |
178 | Usage: configure [options] [host] | |
179 | Options: [defaults in brackets after descriptions] | |
180 | Configuration: | |
181 | --cache-file=FILE cache test results in FILE | |
182 | --help print this message | |
183 | --no-create do not create output files | |
184 | --quiet, --silent do not print \`checking...' messages | |
185 | --version print the version of autoconf that created configure | |
186 | Directory and file names: | |
187 | --prefix=PREFIX install architecture-independent files in PREFIX | |
188 | [$ac_default_prefix] | |
189 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
190 | [same as prefix] | |
191 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
192 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
193 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
194 | --datadir=DIR read-only architecture-independent data in DIR | |
195 | [PREFIX/share] | |
196 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
197 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
198 | [PREFIX/com] | |
199 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
200 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
201 | --includedir=DIR C header files in DIR [PREFIX/include] | |
202 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
203 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
204 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
205 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
206 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
207 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
208 | --program-transform-name=PROGRAM | |
209 | run sed PROGRAM on installed program names | |
210 | EOF | |
211 | cat << EOF | |
212 | Host type: | |
213 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
214 | --host=HOST configure for HOST [guessed] | |
215 | --target=TARGET configure for TARGET [TARGET=HOST] | |
216 | Features and packages: | |
217 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
218 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
219 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
220 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
221 | --x-includes=DIR X include files are in DIR | |
222 | --x-libraries=DIR X library files are in DIR | |
223 | EOF | |
224 | if test -n "$ac_help"; then | |
225 | echo "--enable and --with options recognized:$ac_help" | |
226 | fi | |
227 | exit 0 ;; | |
228 | ||
229 | -host | --host | --hos | --ho) | |
230 | ac_prev=host ;; | |
231 | -host=* | --host=* | --hos=* | --ho=*) | |
232 | host="$ac_optarg" ;; | |
233 | ||
234 | -includedir | --includedir | --includedi | --included | --include \ | |
235 | | --includ | --inclu | --incl | --inc) | |
236 | ac_prev=includedir ;; | |
237 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
238 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
239 | includedir="$ac_optarg" ;; | |
240 | ||
241 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
242 | ac_prev=infodir ;; | |
243 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
244 | infodir="$ac_optarg" ;; | |
245 | ||
246 | -libdir | --libdir | --libdi | --libd) | |
247 | ac_prev=libdir ;; | |
248 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
249 | libdir="$ac_optarg" ;; | |
250 | ||
251 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
252 | | --libexe | --libex | --libe) | |
253 | ac_prev=libexecdir ;; | |
254 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
255 | | --libexe=* | --libex=* | --libe=*) | |
256 | libexecdir="$ac_optarg" ;; | |
257 | ||
258 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
259 | | --localstate | --localstat | --localsta | --localst \ | |
260 | | --locals | --local | --loca | --loc | --lo) | |
261 | ac_prev=localstatedir ;; | |
262 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
263 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
264 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
265 | localstatedir="$ac_optarg" ;; | |
266 | ||
267 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
268 | ac_prev=mandir ;; | |
269 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
270 | mandir="$ac_optarg" ;; | |
271 | ||
272 | -nfp | --nfp | --nf) | |
273 | # Obsolete; use --without-fp. | |
274 | with_fp=no ;; | |
275 | ||
276 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
277 | | --no-cr | --no-c) | |
278 | no_create=yes ;; | |
279 | ||
280 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
281 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
282 | no_recursion=yes ;; | |
283 | ||
284 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
285 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
286 | | --oldin | --oldi | --old | --ol | --o) | |
287 | ac_prev=oldincludedir ;; | |
288 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
289 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
290 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
291 | oldincludedir="$ac_optarg" ;; | |
292 | ||
293 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
294 | ac_prev=prefix ;; | |
295 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
296 | prefix="$ac_optarg" ;; | |
297 | ||
298 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
299 | | --program-pre | --program-pr | --program-p) | |
300 | ac_prev=program_prefix ;; | |
301 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
302 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
303 | program_prefix="$ac_optarg" ;; | |
304 | ||
305 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
306 | | --program-suf | --program-su | --program-s) | |
307 | ac_prev=program_suffix ;; | |
308 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
309 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
310 | program_suffix="$ac_optarg" ;; | |
311 | ||
312 | -program-transform-name | --program-transform-name \ | |
313 | | --program-transform-nam | --program-transform-na \ | |
314 | | --program-transform-n | --program-transform- \ | |
315 | | --program-transform | --program-transfor \ | |
316 | | --program-transfo | --program-transf \ | |
317 | | --program-trans | --program-tran \ | |
318 | | --progr-tra | --program-tr | --program-t) | |
319 | ac_prev=program_transform_name ;; | |
320 | -program-transform-name=* | --program-transform-name=* \ | |
321 | | --program-transform-nam=* | --program-transform-na=* \ | |
322 | | --program-transform-n=* | --program-transform-=* \ | |
323 | | --program-transform=* | --program-transfor=* \ | |
324 | | --program-transfo=* | --program-transf=* \ | |
325 | | --program-trans=* | --program-tran=* \ | |
326 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
327 | program_transform_name="$ac_optarg" ;; | |
328 | ||
329 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
330 | | -silent | --silent | --silen | --sile | --sil) | |
331 | silent=yes ;; | |
332 | ||
333 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
334 | ac_prev=sbindir ;; | |
335 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
336 | | --sbi=* | --sb=*) | |
337 | sbindir="$ac_optarg" ;; | |
338 | ||
339 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
340 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
341 | | --sharedst | --shareds | --shared | --share | --shar \ | |
342 | | --sha | --sh) | |
343 | ac_prev=sharedstatedir ;; | |
344 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
345 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
346 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
347 | | --sha=* | --sh=*) | |
348 | sharedstatedir="$ac_optarg" ;; | |
349 | ||
350 | -site | --site | --sit) | |
351 | ac_prev=site ;; | |
352 | -site=* | --site=* | --sit=*) | |
353 | site="$ac_optarg" ;; | |
354 | ||
355 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
356 | ac_prev=srcdir ;; | |
357 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
358 | srcdir="$ac_optarg" ;; | |
359 | ||
360 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
361 | | --syscon | --sysco | --sysc | --sys | --sy) | |
362 | ac_prev=sysconfdir ;; | |
363 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
364 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
365 | sysconfdir="$ac_optarg" ;; | |
366 | ||
367 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
368 | ac_prev=target ;; | |
369 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
370 | target="$ac_optarg" ;; | |
371 | ||
372 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
373 | verbose=yes ;; | |
374 | ||
375 | -version | --version | --versio | --versi | --vers) | |
376 | echo "configure generated by autoconf version 2.12" | |
377 | exit 0 ;; | |
378 | ||
379 | -with-* | --with-*) | |
380 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
381 | # Reject names that are not valid shell variable names. | |
382 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
383 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
384 | fi | |
385 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
386 | case "$ac_option" in | |
387 | *=*) ;; | |
388 | *) ac_optarg=yes ;; | |
389 | esac | |
390 | eval "with_${ac_package}='$ac_optarg'" ;; | |
391 | ||
392 | -without-* | --without-*) | |
393 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
394 | # Reject names that are not valid shell variable names. | |
395 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
396 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
397 | fi | |
398 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
399 | eval "with_${ac_package}=no" ;; | |
400 | ||
401 | --x) | |
402 | # Obsolete; use --with-x. | |
403 | with_x=yes ;; | |
404 | ||
405 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
406 | | --x-incl | --x-inc | --x-in | --x-i) | |
407 | ac_prev=x_includes ;; | |
408 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
409 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
410 | x_includes="$ac_optarg" ;; | |
411 | ||
412 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
413 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
414 | ac_prev=x_libraries ;; | |
415 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
416 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
417 | x_libraries="$ac_optarg" ;; | |
418 | ||
419 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
420 | ;; | |
421 | ||
422 | *) | |
423 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
424 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
425 | fi | |
426 | if test "x$nonopt" != xNONE; then | |
427 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
428 | fi | |
429 | nonopt="$ac_option" | |
430 | ;; | |
431 | ||
432 | esac | |
433 | done | |
434 | ||
435 | if test -n "$ac_prev"; then | |
436 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
437 | fi | |
438 | ||
439 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
440 | ||
441 | # File descriptor usage: | |
442 | # 0 standard input | |
443 | # 1 file creation | |
444 | # 2 errors and warnings | |
445 | # 3 some systems may open it to /dev/tty | |
446 | # 4 used on the Kubota Titan | |
447 | # 6 checking for... messages and results | |
448 | # 5 compiler messages saved in config.log | |
449 | if test "$silent" = yes; then | |
450 | exec 6>/dev/null | |
451 | else | |
452 | exec 6>&1 | |
453 | fi | |
454 | exec 5>./config.log | |
455 | ||
456 | echo "\ | |
457 | This file contains any messages produced by compilers while | |
458 | running configure, to aid debugging if configure makes a mistake. | |
459 | " 1>&5 | |
460 | ||
461 | # Strip out --no-create and --no-recursion so they do not pile up. | |
462 | # Also quote any args containing shell metacharacters. | |
463 | ac_configure_args= | |
464 | for ac_arg | |
465 | do | |
466 | case "$ac_arg" in | |
467 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
468 | | --no-cr | --no-c) ;; | |
469 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
470 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
471 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
472 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
473 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
474 | esac | |
475 | done | |
476 | ||
477 | # NLS nuisances. | |
478 | # Only set these to C if already set. These must not be set unconditionally | |
479 | # because not all systems understand e.g. LANG=C (notably SCO). | |
480 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
481 | # Non-C LC_CTYPE values break the ctype check. | |
482 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
483 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
484 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
485 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
486 | ||
487 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
488 | rm -rf conftest* confdefs.h | |
489 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
490 | echo > confdefs.h | |
491 | ||
492 | # A filename unique to this package, relative to the directory that | |
493 | # configure is in, which we can look for to find out if srcdir is correct. | |
494 | ac_unique_file=include/features.h | |
495 | ||
496 | # Find the source files, if location was not specified. | |
497 | if test -z "$srcdir"; then | |
498 | ac_srcdir_defaulted=yes | |
499 | # Try the directory containing this script, then its parent. | |
500 | ac_prog=$0 | |
501 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
502 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
503 | srcdir=$ac_confdir | |
504 | if test ! -r $srcdir/$ac_unique_file; then | |
505 | srcdir=.. | |
506 | fi | |
507 | else | |
508 | ac_srcdir_defaulted=no | |
509 | fi | |
510 | if test ! -r $srcdir/$ac_unique_file; then | |
511 | if test "$ac_srcdir_defaulted" = yes; then | |
512 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
513 | else | |
514 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
515 | fi | |
516 | fi | |
517 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
518 | ||
519 | # Prefer explicitly selected file to automatically selected ones. | |
520 | if test -z "$CONFIG_SITE"; then | |
521 | if test "x$prefix" != xNONE; then | |
522 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
523 | else | |
524 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
525 | fi | |
526 | fi | |
527 | for ac_site_file in $CONFIG_SITE; do | |
528 | if test -r "$ac_site_file"; then | |
529 | echo "loading site script $ac_site_file" | |
530 | . "$ac_site_file" | |
531 | fi | |
532 | done | |
533 | ||
534 | if test -r "$cache_file"; then | |
535 | echo "loading cache $cache_file" | |
536 | . $cache_file | |
537 | else | |
538 | echo "creating cache $cache_file" | |
539 | > $cache_file | |
540 | fi | |
541 | ||
542 | ac_ext=c | |
543 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
544 | ac_cpp='$CPP $CPPFLAGS' | |
545 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
546 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
547 | cross_compiling=$ac_cv_prog_cc_cross | |
548 | ||
549 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
550 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
551 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
552 | ac_n= ac_c=' | |
553 | ' ac_t=' ' | |
554 | else | |
555 | ac_n=-n ac_c= ac_t= | |
556 | fi | |
557 | else | |
558 | ac_n= ac_c='\c' ac_t= | |
559 | fi | |
560 | ||
561 | if test -r /vmunix; then | |
562 | kernel_id=`strings /vmunix | grep UNIX` | |
563 | elif test -r /dynix; then | |
564 | kernel_id=`strings /dynix | grep DYNIX` | |
565 | else | |
566 | kernel_id= | |
567 | fi | |
568 | ||
569 | ||
570 | ||
571 | ||
572 | # This will get text that should go into config.make. | |
573 | config_vars= | |
574 | ||
575 | # Check for a --with-gmp argument and set gmp-srcdir in config.make. | |
576 | # Check whether --with-gmp or --without-gmp was given. | |
577 | if test "${with_gmp+set}" = set; then | |
578 | withval="$with_gmp" | |
579 | case "$with_gmp" in | |
580 | yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;; | |
581 | ''|no) ;; | |
582 | *) config_vars="$config_vars | |
583 | gmp-srcdir = $withval" ;; | |
584 | esac | |
585 | ||
586 | fi | |
587 | ||
588 | # Check for a --with-gettext argument and set gettext-srcdir in config.make. | |
589 | # Check whether --with-gettext or --without-gettext was given. | |
590 | if test "${with_gettext+set}" = set; then | |
591 | withval="$with_gettext" | |
592 | case "$with_gettext" in | |
593 | yes) | |
594 | { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;; | |
595 | ''|no) ;; | |
596 | *) | |
597 | config_vars="$config_vars | |
598 | gettext-srcdir = $withval" ;; | |
599 | esac | |
600 | ||
601 | fi | |
602 | ||
603 | ||
604 | # Check whether --with-fp or --without-fp was given. | |
605 | if test "${with_fp+set}" = set; then | |
606 | withval="$with_fp" | |
607 | with_fp=$withval | |
608 | else | |
609 | with_fp=yes | |
610 | fi | |
611 | ||
650425ce UD |
612 | # Check whether --with-binutils or --without-binutils was given. |
613 | if test "${with_binutils+set}" = set; then | |
614 | withval="$with_binutils" | |
a5a0310d UD |
615 | path_binutils=$withval |
616 | else | |
650425ce | 617 | path_binutils='' |
cd6ede75 UD |
618 | fi |
619 | ||
cd6ede75 UD |
620 | # Check whether --with-elf or --without-elf was given. |
621 | if test "${with_elf+set}" = set; then | |
622 | withval="$with_elf" | |
623 | elf=$withval | |
624 | else | |
625 | elf=no | |
626 | fi | |
627 | ||
628 | ||
629 | # Check whether --enable-libio or --disable-libio was given. | |
630 | if test "${enable_libio+set}" = set; then | |
631 | enableval="$enable_libio" | |
632 | if test $enableval = yes; then | |
633 | stdio=libio | |
634 | else | |
635 | stdio=stdio | |
636 | fi | |
637 | else | |
638 | stdio=default | |
639 | fi | |
640 | ||
641 | ||
642 | # Check whether --enable-sanity-checks or --disable-sanity-checks was given. | |
643 | if test "${enable_sanity_checks+set}" = set; then | |
644 | enableval="$enable_sanity_checks" | |
645 | enable_sanity=$enableval | |
646 | else | |
647 | enable_sanity=yes | |
648 | fi | |
649 | ||
650 | ||
650425ce UD |
651 | # Check whether --enable-static or --disable-static was given. |
652 | if test "${enable_static+set}" = set; then | |
653 | enableval="$enable_static" | |
654 | static=$enableval | |
655 | else | |
656 | static=yes | |
657 | fi | |
658 | ||
cd6ede75 UD |
659 | # Check whether --enable-shared or --disable-shared was given. |
660 | if test "${enable_shared+set}" = set; then | |
661 | enableval="$enable_shared" | |
662 | shared=$enableval | |
663 | else | |
664 | shared=default | |
665 | fi | |
666 | ||
667 | # Check whether --enable-profile or --disable-profile was given. | |
668 | if test "${enable_profile+set}" = set; then | |
669 | enableval="$enable_profile" | |
670 | profile=$enableval | |
671 | else | |
672 | profile=yes | |
673 | fi | |
674 | ||
675 | # Check whether --enable-omitfp or --disable-omitfp was given. | |
676 | if test "${enable_omitfp+set}" = set; then | |
677 | enableval="$enable_omitfp" | |
678 | omitfp=$enableval | |
679 | else | |
680 | omitfp=no | |
681 | fi | |
682 | ||
683 | # Check whether --enable-bounded or --disable-bounded was given. | |
684 | if test "${enable_bounded+set}" = set; then | |
685 | enableval="$enable_bounded" | |
686 | bounded=$enableval | |
687 | else | |
688 | bounded=no | |
689 | fi | |
690 | ||
650425ce UD |
691 | # Check whether --enable-versioning or --disable-versioning was given. |
692 | if test "${enable_versioning+set}" = set; then | |
693 | enableval="$enable_versioning" | |
694 | enable_versioning=$enableval | |
695 | else | |
696 | enable_versioning=yes | |
697 | fi | |
698 | ||
cd6ede75 UD |
699 | |
700 | # Check whether --enable-add-ons or --disable-add-ons was given. | |
701 | if test "${enable_add_ons+set}" = set; then | |
702 | enableval="$enable_add_ons" | |
703 | add_ons=`echo "$enableval" | sed 's/,/ /g'` | |
704 | else | |
705 | add_ons= | |
706 | fi | |
707 | ||
708 | ac_aux_dir= | |
709 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
710 | if test -f $ac_dir/install-sh; then | |
711 | ac_aux_dir=$ac_dir | |
712 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
713 | break | |
714 | elif test -f $ac_dir/install.sh; then | |
715 | ac_aux_dir=$ac_dir | |
716 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
717 | break | |
718 | fi | |
719 | done | |
720 | if test -z "$ac_aux_dir"; then | |
721 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
722 | fi | |
723 | ac_config_guess=$ac_aux_dir/config.guess | |
724 | ac_config_sub=$ac_aux_dir/config.sub | |
725 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
726 | ||
727 | subdirs="$add_ons" | |
728 | ||
729 | add_ons_pfx= | |
730 | if test x"$add_ons" != x; then | |
731 | for f in $add_ons; do | |
732 | add_ons_pfx="$add_ons_pfx $f/" | |
733 | done | |
734 | fi | |
735 | ||
736 | # Check whether --enable-static-nss or --disable-static-nss was given. | |
737 | if test "${enable_static_nss+set}" = set; then | |
738 | enableval="$enable_static_nss" | |
739 | static_nss=$enableval | |
740 | else | |
741 | static_nss=no | |
742 | fi | |
743 | ||
744 | if test x"$static_nss" = xyes; then | |
745 | cat >> confdefs.h <<\EOF | |
746 | #define DO_STATIC_NSS 1 | |
747 | EOF | |
748 | ||
749 | fi | |
750 | ||
751 | ||
752 | # Make sure we can run config.sub. | |
753 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
754 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
755 | fi | |
756 | ||
757 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
a5a0310d | 758 | echo "configure:759: checking host system type" >&5 |
cd6ede75 UD |
759 | |
760 | host_alias=$host | |
761 | case "$host_alias" in | |
762 | NONE) | |
763 | case $nonopt in | |
764 | NONE) | |
765 | if host_alias=`$ac_config_guess`; then : | |
766 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
767 | fi ;; | |
768 | *) host_alias=$nonopt ;; | |
769 | esac ;; | |
770 | esac | |
771 | ||
772 | host=`$ac_config_sub $host_alias` | |
773 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
774 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
775 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
776 | echo "$ac_t""$host" 1>&6 | |
777 | ||
778 | ||
779 | # The way shlib-versions is used to generate soversions.mk uses a | |
780 | # fairly simplistic model for name recognition that can't distinguish | |
781 | # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os | |
782 | # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can | |
783 | # tell. This doesn't get used much beyond that, so it's fairly safe. | |
784 | case "$host_os" in | |
785 | linux*) | |
786 | ;; | |
787 | gnu*) | |
788 | host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'` | |
789 | ;; | |
790 | esac | |
791 | ||
61eb22d3 UD |
792 | ### |
793 | ### I put this here to prevent those annoying emails from people who cannot | |
794 | ### read and try to compile glibc on unsupported platforms. --drepper | |
795 | ### | |
650425ce UD |
796 | ### By using the undocumented --enable-hacker-mode option for configure |
797 | ### one can skip this test to make the configuration not fail for unsupported | |
798 | ### platforms. | |
799 | ### | |
800 | if test -z "$enable_hacker_mode"; then | |
801 | case "$host_os" in | |
802 | linux* | gnu*) | |
803 | ;; | |
804 | *) | |
805 | echo "*** The GNU C library is currently not available for this platform." | |
806 | echo "*** So far nobody cared to port it and if there is no volunteer it" | |
807 | echo "*** might never happen. So, if you have interest to see glibc on" | |
808 | echo "*** this platform visit" | |
809 | echo "*** http://www.gnu.ai.mit.edu/software/libc/porting.html" | |
810 | echo "*** and join the group of porters" | |
811 | exit 1 | |
812 | ;; | |
813 | esac | |
814 | fi | |
61eb22d3 | 815 | |
cd6ede75 UD |
816 | # We keep the original values in `$config_*' and never modify them, so we |
817 | # can write them unchanged into config.make. Everything else uses | |
818 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
819 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
820 | ||
821 | # Some configurations imply other options. | |
822 | case "$host_os" in | |
823 | gnu* | linux* | bsd4.4* | netbsd* | freebsd*) | |
824 | # These systems always use GNU tools. | |
825 | gnu_ld=yes gnu_as=yes ;; | |
826 | esac | |
827 | case "$host_os" in | |
828 | # i586-linuxaout is mangled into i586-pc-linux-gnuaout | |
829 | linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*) | |
830 | ;; | |
831 | gnu* | linux* | sysv4* | solaris2*) | |
832 | # These systems (almost) always use the ELF format. | |
833 | elf=yes | |
834 | ;; | |
835 | esac | |
836 | ||
837 | machine=$config_machine | |
838 | vendor=$config_vendor | |
839 | os=$config_os | |
840 | ||
841 | # Expand the configuration machine name into a subdirectory by architecture | |
842 | # type and particular chip. | |
843 | case "$machine" in | |
844 | a29k | am29000) base_machine=a29k machine=a29k ;; | |
845 | alpha*) base_machine=alpha machine=alpha/$machine ;; | |
846 | arm*) base_machine=arm machine=arm/$machine ;; | |
60c96635 UD |
847 | c3[012]) base_machine=cx0 machine=cx0/c30 ;; |
848 | c4[04]) base_machine=cx0 machine=cx0/c40 ;; | |
cd6ede75 UD |
849 | hppa*) base_machine=hppa machine=hppa/$machine ;; |
850 | i[3456]86) base_machine=i386 machine=i386/$machine ;; | |
851 | m680?0) base_machine=m68k machine=m68k/$machine ;; | |
852 | m68k) base_machine=m68k machine=m68k/m68020 ;; | |
853 | m88???) base_machine=m88k machine=m88k/$machine ;; | |
854 | m88k) base_machine=m88k machine=m88k/m88100 ;; | |
855 | mips64*) base_machine=mips64 machine=mips/mips64/$machine ;; | |
856 | mips*) base_machine=mips machine=mips/$machine ;; | |
ca34d7a7 UD |
857 | sparc | sparcv[67]) |
858 | base_machine=sparc machine=sparc/sparc32 ;; | |
859 | sparcv8 | supersparc | hypersparc) | |
860 | base_machine=sparc machine=sparc/sparc32/sparcv8 ;; | |
861 | sparc64 | ultrasparc) | |
862 | base_machine=sparc machine=sparc/sparc64 ;; | |
cd6ede75 UD |
863 | esac |
864 | ||
865 | ||
dfd2257a UD |
866 | if test "$base_machine" = "i386"; then |
867 | cat >> confdefs.h <<\EOF | |
868 | #define USE_REGPARMS 1 | |
869 | EOF | |
870 | ||
871 | fi | |
872 | ||
cd6ede75 UD |
873 | # Compute the list of sysdep directories for this configuration. |
874 | # This can take a while to compute. | |
875 | sysdep_dir=$srcdir/sysdeps | |
876 | echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6 | |
dfd2257a | 877 | echo "configure:878: checking sysdep dirs" >&5 |
cd6ede75 UD |
878 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. |
879 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" | |
880 | ||
881 | case "$os" in | |
882 | gnu*) | |
883 | base_os=mach/hurd ;; | |
884 | netbsd* | 386bsd* | freebsd* | bsdi*) | |
885 | base_os=unix/bsd/bsd4.4 ;; | |
886 | osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*) | |
887 | base_os=unix/bsd ;; | |
888 | sysv* | isc* | esix* | sco* | minix* | irix4* | linux*) | |
889 | base_os=unix/sysv ;; | |
890 | solaris[2-9]*) | |
891 | base_os=unix/sysv/sysv4 ;; | |
892 | none) | |
893 | base_os=standalone ;; | |
894 | *) | |
895 | base_os='' ;; | |
896 | esac | |
897 | ||
898 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. | |
899 | tail=$os | |
900 | ostry=$os | |
901 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
902 | ostry="$ostry /$o" | |
903 | tail=$o | |
904 | done | |
905 | o=`echo $tail | sed 's/[0-9]*$//'` | |
906 | if test $o != $tail; then | |
907 | ostry="$ostry /$o" | |
908 | fi | |
909 | # For linux-gnu, try linux-gnu, then linux. | |
910 | o=`echo $tail | sed 's/-.*$//'` | |
911 | if test $o != $tail; then | |
912 | ostry="$ostry /$o" | |
913 | fi | |
914 | ||
915 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. | |
916 | base= | |
917 | tail=$base_os | |
918 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
919 | set $b | |
920 | base="$base /$1" | |
921 | tail="$2" | |
922 | done | |
923 | ||
924 | # For sparc/sparc9, try sparc/sparc9 and then sparc. | |
925 | mach= | |
926 | tail=$machine | |
927 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
928 | set $m | |
929 | # Prepend the machine's FPU directory unless --without-fp. | |
930 | if test "$with_fp" = yes; then | |
931 | mach="$mach /$1/fpu" | |
932 | fi | |
933 | mach="$mach /$1" | |
934 | tail="$2" | |
935 | done | |
936 | ||
937 | ||
938 | # Find what sysdep directories exist. | |
939 | sysnames= | |
940 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
941 | for d in $add_ons_pfx ''; do | |
942 | for b in $base ''; do | |
943 | for m0 in $mach ''; do | |
944 | for v in /$vendor ''; do | |
945 | for o in /$ostry ''; do | |
946 | for m in $mach ''; do | |
947 | if test "$m0$b$v$o$m"; then | |
948 | try="${d}sysdeps$m0$b$v$o$m" | |
949 | test -n "$enable_debug_configure" && | |
950 | echo "$0 DEBUG: try $try" >&2 | |
951 | case $try in | |
952 | /*) dest=$try ;; | |
953 | *) dest=$srcdir/$try ;; | |
954 | esac | |
955 | if test -d $dest; then | |
956 | sysnames="$sysnames $try" | |
957 | { test -n "$o" || test -n "$b"; } && os_used=t | |
958 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
959 | fi | |
960 | fi | |
961 | done | |
962 | done | |
963 | done | |
964 | done | |
965 | done | |
966 | done | |
967 | IFS="$ac_save_ifs" | |
968 | ||
969 | if test -z "$os_used" && test "$os" != none; then | |
970 | { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; } | |
971 | fi | |
972 | if test -z "$machine_used" && test "$machine" != none; then | |
973 | { echo "configure: error: The $machine is not supported." 1>&2; exit 1; } | |
974 | fi | |
975 | ||
976 | # We have now validated the configuration. | |
977 | ||
978 | ||
979 | # If using ELF, look for an `elf' subdirectory of each machine directory. | |
980 | # We prepend these rather than inserting them whereever the machine appears | |
981 | # because things specified by the machine's ELF ABI should override | |
982 | # OS-specific things, and should always be the same for any OS on the | |
983 | # machine (otherwise what's the point of an ABI?). | |
984 | if test "$elf" = yes; then | |
985 | elf_dirs= | |
986 | for d in $add_ons_pfx ''; do | |
987 | case $d in | |
988 | /*) xsrcdir= ;; | |
989 | *) xsrcdir=$srcdir/ ;; | |
990 | esac | |
991 | for m in $mach; do | |
992 | if test -d $xsrcdir${d}sysdeps$m/elf; then | |
993 | elf_dirs="$elf_dirs ${d}sysdeps$m/elf" | |
994 | fi | |
995 | done | |
996 | done | |
997 | sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames" | |
998 | fi | |
999 | ||
1000 | ||
1001 | # Expand the list of system names into a full list of directories | |
1002 | # from each element's parent name and Implies file (if present). | |
1003 | set $sysnames | |
1004 | names= | |
1005 | while test $# -gt 0; do | |
1006 | name=$1 | |
1007 | shift | |
1008 | ||
1009 | case " $names " in *" $name "*) | |
1010 | # Already in the list. | |
1011 | continue | |
1012 | esac | |
1013 | ||
1014 | # Report each name as we discover it, so there is no long pause in output. | |
1015 | echo $ac_n "$name $ac_c" >&6 | |
1016 | ||
1017 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` | |
1018 | ||
1019 | case $name in | |
1020 | /*) xsrcdir= ;; | |
1021 | *) xsrcdir=$srcdir/ ;; | |
1022 | esac | |
1023 | test -n "$enable_debug_configure" && | |
1024 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
1025 | ||
1026 | if test -f $xsrcdir$name/Implies; then | |
1027 | # Collect more names from the `Implies' file (removing comments). | |
1028 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`" | |
1029 | implied= | |
1030 | for x in $implied_candidate; do | |
1031 | if test -d $xsrcdir$name_base/$x; then | |
1032 | implied="$implied $name_base/$x"; | |
1033 | else | |
1034 | echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2 | |
1035 | fi | |
1036 | done | |
1037 | else | |
1038 | implied= | |
1039 | fi | |
1040 | ||
1041 | # Add NAME to the list of names. | |
1042 | names="$names $name" | |
1043 | ||
1044 | # Find the parent of NAME, using the empty string if it has none. | |
1045 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" | |
1046 | ||
1047 | # Add the names implied by NAME, and NAME's parent (if it has one), to | |
1048 | # the list of names to be processed (the argument list). We prepend the | |
1049 | # implied names to the list and append the parent. We want implied | |
1050 | # directories to come before further directories inferred from the | |
1051 | # configuration components; this ensures that for sysv4, unix/common | |
1052 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
1053 | # after sysv4). | |
1054 | sysnames="`echo $implied $* $parent`" | |
1055 | test -n "$sysnames" && set $sysnames | |
1056 | done | |
1057 | ||
1058 | # Add the default directories. | |
1059 | sysnames="$names sysdeps/generic sysdeps/stub" | |
1060 | ||
1061 | # The other names were emitted during the scan. | |
1062 | echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6 | |
1063 | ||
1064 | ||
1065 | ### Locate tools. | |
1066 | ||
1067 | # Find a good install program. We prefer a C program (faster), | |
1068 | # so one script is as good as another. But avoid the broken or | |
1069 | # incompatible versions: | |
1070 | # SysV /etc/install, /usr/sbin/install | |
1071 | # SunOS /usr/etc/install | |
1072 | # IRIX /sbin/install | |
1073 | # AIX /bin/install | |
1074 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1075 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1076 | # ./install, which can be erroneously created by make from ./install.sh. | |
1077 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
dfd2257a | 1078 | echo "configure:1079: checking for a BSD compatible install" >&5 |
cd6ede75 UD |
1079 | if test -z "$INSTALL"; then |
1080 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1081 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1082 | else | |
1083 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1084 | for ac_dir in $PATH; do | |
1085 | # Account for people who put trailing slashes in PATH elements. | |
1086 | case "$ac_dir/" in | |
1087 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1088 | *) | |
1089 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1090 | for ac_prog in ginstall installbsd scoinst install; do | |
1091 | if test -f $ac_dir/$ac_prog; then | |
1092 | if test $ac_prog = install && | |
1093 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1094 | # AIX install. It has an incompatible calling convention. | |
1095 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1096 | : | |
1097 | else | |
1098 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1099 | break 2 | |
1100 | fi | |
1101 | fi | |
1102 | done | |
1103 | ;; | |
1104 | esac | |
1105 | done | |
1106 | IFS="$ac_save_IFS" | |
1107 | ||
1108 | fi | |
1109 | if test "${ac_cv_path_install+set}" = set; then | |
1110 | INSTALL="$ac_cv_path_install" | |
1111 | else | |
1112 | # As a last resort, use the slow shell script. We don't cache a | |
1113 | # path for INSTALL within a source directory, because that will | |
1114 | # break other packages using the cache if that directory is | |
1115 | # removed, or if the path is relative. | |
1116 | INSTALL="$ac_install_sh" | |
1117 | fi | |
1118 | fi | |
1119 | echo "$ac_t""$INSTALL" 1>&6 | |
1120 | ||
1121 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1122 | # It thinks the first close brace ends the variable substitution. | |
1123 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1124 | ||
1125 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1126 | ||
1127 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
1128 | # The makefiles need to use a different form to find it in $srcdir. | |
f41c8091 | 1129 | INSTALL='\$(..)./install-sh -c' |
cd6ede75 UD |
1130 | fi |
1131 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
dfd2257a | 1132 | echo "configure:1133: checking whether ln -s works" >&5 |
cd6ede75 UD |
1133 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1135 | else | |
1136 | rm -f conftestdata | |
1137 | if ln -s X conftestdata 2>/dev/null | |
1138 | then | |
1139 | rm -f conftestdata | |
1140 | ac_cv_prog_LN_S="ln -s" | |
1141 | else | |
1142 | ac_cv_prog_LN_S=ln | |
1143 | fi | |
1144 | fi | |
1145 | LN_S="$ac_cv_prog_LN_S" | |
1146 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1147 | echo "$ac_t""yes" 1>&6 | |
1148 | else | |
1149 | echo "$ac_t""no" 1>&6 | |
1150 | fi | |
1151 | ||
1152 | for ac_prog in msgfmt gmsgfmt | |
1153 | do | |
1154 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1155 | set dummy $ac_prog; ac_word=$2 | |
1156 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfd2257a | 1157 | echo "configure:1158: checking for $ac_word" >&5 |
cd6ede75 UD |
1158 | if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then |
1159 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1160 | else | |
1161 | if test -n "$MSGFMT"; then | |
1162 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
1163 | else | |
1164 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1165 | for ac_dir in $PATH; do | |
1166 | test -z "$ac_dir" && ac_dir=. | |
1167 | if test -f $ac_dir/$ac_word; then | |
1168 | ac_cv_prog_MSGFMT="$ac_prog" | |
1169 | break | |
1170 | fi | |
1171 | done | |
1172 | IFS="$ac_save_ifs" | |
1173 | fi | |
1174 | fi | |
1175 | MSGFMT="$ac_cv_prog_MSGFMT" | |
1176 | if test -n "$MSGFMT"; then | |
1177 | echo "$ac_t""$MSGFMT" 1>&6 | |
1178 | else | |
1179 | echo "$ac_t""no" 1>&6 | |
1180 | fi | |
1181 | ||
1182 | test -n "$MSGFMT" && break | |
1183 | done | |
1184 | test -n "$MSGFMT" || MSGFMT=":" | |
1185 | ||
1186 | ||
1187 | # Extract the first word of "gcc", so it can be a program name with args. | |
1188 | set dummy gcc; ac_word=$2 | |
1189 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfd2257a | 1190 | echo "configure:1191: checking for $ac_word" >&5 |
cd6ede75 UD |
1191 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1193 | else | |
1194 | if test -n "$CC"; then | |
1195 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1196 | else | |
1197 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1198 | for ac_dir in $PATH; do | |
1199 | test -z "$ac_dir" && ac_dir=. | |
1200 | if test -f $ac_dir/$ac_word; then | |
1201 | ac_cv_prog_CC="gcc" | |
1202 | break | |
1203 | fi | |
1204 | done | |
1205 | IFS="$ac_save_ifs" | |
1206 | fi | |
1207 | fi | |
1208 | CC="$ac_cv_prog_CC" | |
1209 | if test -n "$CC"; then | |
1210 | echo "$ac_t""$CC" 1>&6 | |
1211 | else | |
1212 | echo "$ac_t""no" 1>&6 | |
1213 | fi | |
1214 | ||
1215 | if test -z "$CC"; then | |
1216 | # Extract the first word of "cc", so it can be a program name with args. | |
1217 | set dummy cc; ac_word=$2 | |
1218 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfd2257a | 1219 | echo "configure:1220: checking for $ac_word" >&5 |
cd6ede75 UD |
1220 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1222 | else | |
1223 | if test -n "$CC"; then | |
1224 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1225 | else | |
1226 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1227 | ac_prog_rejected=no | |
1228 | for ac_dir in $PATH; do | |
1229 | test -z "$ac_dir" && ac_dir=. | |
1230 | if test -f $ac_dir/$ac_word; then | |
1231 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1232 | ac_prog_rejected=yes | |
1233 | continue | |
1234 | fi | |
1235 | ac_cv_prog_CC="cc" | |
1236 | break | |
1237 | fi | |
1238 | done | |
1239 | IFS="$ac_save_ifs" | |
1240 | if test $ac_prog_rejected = yes; then | |
1241 | # We found a bogon in the path, so make sure we never use it. | |
1242 | set dummy $ac_cv_prog_CC | |
1243 | shift | |
1244 | if test $# -gt 0; then | |
1245 | # We chose a different compiler from the bogus one. | |
1246 | # However, it has the same basename, so the bogon will be chosen | |
1247 | # first if we set CC to just the basename; use the full file name. | |
1248 | shift | |
1249 | set dummy "$ac_dir/$ac_word" "$@" | |
1250 | shift | |
1251 | ac_cv_prog_CC="$@" | |
1252 | fi | |
1253 | fi | |
1254 | fi | |
1255 | fi | |
1256 | CC="$ac_cv_prog_CC" | |
1257 | if test -n "$CC"; then | |
1258 | echo "$ac_t""$CC" 1>&6 | |
1259 | else | |
1260 | echo "$ac_t""no" 1>&6 | |
1261 | fi | |
1262 | ||
1263 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1264 | fi | |
1265 | ||
1266 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
dfd2257a | 1267 | echo "configure:1268: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
cd6ede75 UD |
1268 | |
1269 | ac_ext=c | |
1270 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1271 | ac_cpp='$CPP $CPPFLAGS' | |
1272 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1273 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1274 | cross_compiling=$ac_cv_prog_cc_cross | |
1275 | ||
1276 | cat > conftest.$ac_ext <<EOF | |
dfd2257a | 1277 | #line 1278 "configure" |
cd6ede75 UD |
1278 | #include "confdefs.h" |
1279 | main(){return(0);} | |
1280 | EOF | |
dfd2257a | 1281 | if { (eval echo configure:1282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
cd6ede75 UD |
1282 | ac_cv_prog_cc_works=yes |
1283 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1284 | if (./conftest; exit) 2>/dev/null; then | |
1285 | ac_cv_prog_cc_cross=no | |
1286 | else | |
1287 | ac_cv_prog_cc_cross=yes | |
1288 | fi | |
1289 | else | |
1290 | echo "configure: failed program was:" >&5 | |
1291 | cat conftest.$ac_ext >&5 | |
1292 | ac_cv_prog_cc_works=no | |
1293 | fi | |
1294 | rm -fr conftest* | |
1295 | ||
1296 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1297 | if test $ac_cv_prog_cc_works = no; then | |
1298 | cross_linkable=no | |
1299 | ac_cv_prog_cc_cross=yes | |
1300 | else | |
1301 | cross_linkable=yes | |
1302 | fi | |
1303 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
dfd2257a | 1304 | echo "configure:1305: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
cd6ede75 UD |
1305 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1306 | ||
1307 | cross_compiling=$ac_cv_prog_cc_cross | |
1308 | ||
1309 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
dfd2257a | 1310 | echo "configure:1311: checking whether we are using GNU C" >&5 |
cd6ede75 UD |
1311 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1312 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1313 | else | |
1314 | cat > conftest.c <<EOF | |
1315 | #ifdef __GNUC__ | |
1316 | yes; | |
1317 | #endif | |
1318 | EOF | |
dfd2257a | 1319 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
cd6ede75 UD |
1320 | ac_cv_prog_gcc=yes |
1321 | else | |
1322 | ac_cv_prog_gcc=no | |
1323 | fi | |
1324 | fi | |
1325 | ||
1326 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1327 | ||
1328 | if test $ac_cv_prog_gcc = yes; then | |
1329 | GCC=yes | |
1330 | ||
1331 | cat > conftest.c <<EOF | |
1332 | #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) | |
1333 | yes; | |
1334 | #endif | |
1335 | EOF | |
dfd2257a | 1336 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
cd6ede75 UD |
1337 | if test -z "$CFLAGS"; then |
1338 | CFLAGS="-g -O2" | |
1339 | fi | |
1340 | else | |
1341 | { echo "configure: error: We require GNU CC version 2.7 or newer" 1>&2; exit 1; } | |
1342 | fi | |
1343 | else | |
1344 | { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; } | |
1345 | fi | |
1346 | ||
1347 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
dfd2257a | 1348 | echo "configure:1349: checking build system type" >&5 |
cd6ede75 UD |
1349 | |
1350 | build_alias=$build | |
1351 | case "$build_alias" in | |
1352 | NONE) | |
1353 | case $nonopt in | |
1354 | NONE) build_alias=$host_alias ;; | |
1355 | *) build_alias=$nonopt ;; | |
1356 | esac ;; | |
1357 | esac | |
1358 | ||
1359 | build=`$ac_config_sub $build_alias` | |
1360 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1361 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1362 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1363 | echo "$ac_t""$build" 1>&6 | |
1364 | ||
1365 | if test $host != $build; then | |
1366 | for ac_prog in gcc cc | |
1367 | do | |
1368 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1369 | set dummy $ac_prog; ac_word=$2 | |
1370 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfd2257a | 1371 | echo "configure:1372: checking for $ac_word" >&5 |
cd6ede75 UD |
1372 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
1373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1374 | else | |
1375 | if test -n "$BUILD_CC"; then | |
1376 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
1377 | else | |
1378 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1379 | for ac_dir in $PATH; do | |
1380 | test -z "$ac_dir" && ac_dir=. | |
1381 | if test -f $ac_dir/$ac_word; then | |
1382 | ac_cv_prog_BUILD_CC="$ac_prog" | |
1383 | break | |
1384 | fi | |
1385 | done | |
1386 | IFS="$ac_save_ifs" | |
1387 | fi | |
1388 | fi | |
1389 | BUILD_CC="$ac_cv_prog_BUILD_CC" | |
1390 | if test -n "$BUILD_CC"; then | |
1391 | echo "$ac_t""$BUILD_CC" 1>&6 | |
1392 | else | |
1393 | echo "$ac_t""no" 1>&6 | |
1394 | fi | |
1395 | ||
1396 | test -n "$BUILD_CC" && break | |
1397 | done | |
1398 | ||
1399 | fi | |
1400 | ||
1401 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
dfd2257a | 1402 | echo "configure:1403: checking how to run the C preprocessor" >&5 |
cd6ede75 UD |
1403 | # On Suns, sometimes $CPP names a directory. |
1404 | if test -n "$CPP" && test -d "$CPP"; then | |
1405 | CPP= | |
1406 | fi | |
1407 | if test -z "$CPP"; then | |
1408 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1410 | else | |
1411 | # This must be in double quotes, not single quotes, because CPP may get | |
1412 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1413 | CPP="${CC-cc} -E" | |
1414 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1415 | # not just through cpp. | |
1416 | cat > conftest.$ac_ext <<EOF | |
dfd2257a | 1417 | #line 1418 "configure" |
cd6ede75 UD |
1418 | #include "confdefs.h" |
1419 | #include <assert.h> | |
1420 | Syntax Error | |
1421 | EOF | |
1422 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfd2257a | 1423 | { (eval echo configure:1424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd6ede75 UD |
1424 | ac_err=`grep -v '^ *+' conftest.out` |
1425 | if test -z "$ac_err"; then | |
1426 | : | |
1427 | else | |
1428 | echo "$ac_err" >&5 | |
1429 | echo "configure: failed program was:" >&5 | |
1430 | cat conftest.$ac_ext >&5 | |
1431 | rm -rf conftest* | |
1432 | CPP="${CC-cc} -E -traditional-cpp" | |
1433 | cat > conftest.$ac_ext <<EOF | |
dfd2257a | 1434 | #line 1435 "configure" |
cd6ede75 UD |
1435 | #include "confdefs.h" |
1436 | #include <assert.h> | |
1437 | Syntax Error | |
1438 | EOF | |
1439 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfd2257a | 1440 | { (eval echo configure:1441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd6ede75 UD |
1441 | ac_err=`grep -v '^ *+' conftest.out` |
1442 | if test -z "$ac_err"; then | |
1443 | : | |
1444 | else | |
1445 | echo "$ac_err" >&5 | |
1446 | echo "configure: failed program was:" >&5 | |
1447 | cat conftest.$ac_ext >&5 | |
1448 | rm -rf conftest* | |
1449 | CPP=/lib/cpp | |
1450 | fi | |
1451 | rm -f conftest* | |
1452 | fi | |
1453 | rm -f conftest* | |
1454 | ac_cv_prog_CPP="$CPP" | |
1455 | fi | |
1456 | CPP="$ac_cv_prog_CPP" | |
1457 | else | |
1458 | ac_cv_prog_CPP="$CPP" | |
1459 | fi | |
1460 | echo "$ac_t""$CPP" 1>&6 | |
1461 | ||
650425ce UD |
1462 | # Was a --with-binutils option given? |
1463 | if test -n "$path_binutils"; then | |
1464 | # Make absolute; ensure a single trailing slash. | |
1465 | path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'` | |
1466 | CC="$CC -B$with_binutils" | |
1467 | fi | |
1468 | AS=`$CC -print-file-name=as` | |
1469 | LD=`$CC -print-file-name=ld` | |
1470 | ||
1471 | # Determine whether we are using GNU binutils. | |
1472 | echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6 | |
dfd2257a | 1473 | echo "configure:1474: checking whether $AS is GNU as" >&5 |
650425ce UD |
1474 | if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then |
1475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1476 | else | |
1477 | # Most GNU programs take a -v and spit out some text including | |
1478 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
1479 | if $AS -v </dev/null 2>&1 | grep -q GNU; then | |
1480 | libc_cv_prog_as_gnu=yes | |
1481 | else | |
1482 | libc_cv_prog_as_gnu=no | |
1483 | fi | |
1484 | fi | |
1485 | ||
1486 | echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6 | |
a5a0310d | 1487 | rm -f a.out |
650425ce UD |
1488 | gnu_as=$libc_cv_prog_as_gnu |
1489 | ||
1490 | echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6 | |
dfd2257a | 1491 | echo "configure:1492: checking whether $LD is GNU ld" >&5 |
650425ce UD |
1492 | if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then |
1493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1494 | else | |
1495 | # Most GNU programs take a -v and spit out some text including | |
1496 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
1497 | if $LD -v </dev/null 2>&1 | grep -q GNU; then | |
1498 | libc_cv_prog_ld_gnu=yes | |
1499 | else | |
1500 | libc_cv_prog_ld_gnu=no | |
1501 | fi | |
1502 | fi | |
1503 | ||
1504 | echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6 | |
1505 | gnu_ld=$libc_cv_prog_ld_gnu | |
cd6ede75 UD |
1506 | if test $host != $build; then |
1507 | ac_tool_prefix=${host_alias}- | |
1508 | else | |
1509 | ac_tool_prefix= | |
1510 | fi | |
1511 | ||
1512 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
1513 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
1514 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfd2257a | 1515 | echo "configure:1516: checking for $ac_word" >&5 |
cd6ede75 UD |
1516 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1517 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1518 | else | |
1519 | if test -n "$AR"; then | |
1520 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1521 | else | |
1522 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1523 | for ac_dir in $PATH; do | |
1524 | test -z "$ac_dir" && ac_dir=. | |
1525 | if test -f $ac_dir/$ac_word; then | |
1526 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
1527 | break | |
1528 | fi | |
1529 | done | |
1530 | IFS="$ac_save_ifs" | |
1531 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1532 | fi | |
1533 | fi | |
1534 | AR="$ac_cv_prog_AR" | |
1535 | if test -n "$AR"; then | |
1536 | echo "$ac_t""$AR" 1>&6 | |
1537 | else | |
1538 | echo "$ac_t""no" 1>&6 | |
1539 | fi | |
1540 | ||
1541 | ||
1542 | ||
1543 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1544 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1545 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfd2257a | 1546 | echo "configure:1547: checking for $ac_word" >&5 |
cd6ede75 UD |
1547 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1549 | else | |
1550 | if test -n "$RANLIB"; then | |
1551 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1552 | else | |
1553 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1554 | for ac_dir in $PATH; do | |
1555 | test -z "$ac_dir" && ac_dir=. | |
1556 | if test -f $ac_dir/$ac_word; then | |
1557 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1558 | break | |
1559 | fi | |
1560 | done | |
1561 | IFS="$ac_save_ifs" | |
1562 | fi | |
1563 | fi | |
1564 | RANLIB="$ac_cv_prog_RANLIB" | |
1565 | if test -n "$RANLIB"; then | |
1566 | echo "$ac_t""$RANLIB" 1>&6 | |
1567 | else | |
1568 | echo "$ac_t""no" 1>&6 | |
1569 | fi | |
1570 | ||
1571 | ||
1572 | if test -z "$ac_cv_prog_RANLIB"; then | |
1573 | if test -n "$ac_tool_prefix"; then | |
1574 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1575 | set dummy ranlib; ac_word=$2 | |
1576 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfd2257a | 1577 | echo "configure:1578: checking for $ac_word" >&5 |
cd6ede75 UD |
1578 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1579 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1580 | else | |
1581 | if test -n "$RANLIB"; then | |
1582 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1583 | else | |
1584 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1585 | for ac_dir in $PATH; do | |
1586 | test -z "$ac_dir" && ac_dir=. | |
1587 | if test -f $ac_dir/$ac_word; then | |
1588 | ac_cv_prog_RANLIB="ranlib" | |
1589 | break | |
1590 | fi | |
1591 | done | |
1592 | IFS="$ac_save_ifs" | |
1593 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1594 | fi | |
1595 | fi | |
1596 | RANLIB="$ac_cv_prog_RANLIB" | |
1597 | if test -n "$RANLIB"; then | |
1598 | echo "$ac_t""$RANLIB" 1>&6 | |
1599 | else | |
1600 | echo "$ac_t""no" 1>&6 | |
1601 | fi | |
1602 | ||
1603 | else | |
1604 | RANLIB=":" | |
1605 | fi | |
1606 | fi | |
1607 | ||
1608 | ||
1609 | # Extract the first word of "bash", so it can be a program name with args. | |
1610 | set dummy bash; ac_word=$2 | |
1611 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfd2257a | 1612 | echo "configure:1613: checking for $ac_word" >&5 |
cd6ede75 UD |
1613 | if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then |
1614 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1615 | else | |
1616 | case "$BASH" in | |
1617 | /*) | |
1618 | ac_cv_path_BASH="$BASH" # Let the user override the test with a path. | |
1619 | ;; | |
1620 | *) | |
1621 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1622 | for ac_dir in $PATH; do | |
1623 | test -z "$ac_dir" && ac_dir=. | |
1624 | if test -f $ac_dir/$ac_word; then | |
1625 | ac_cv_path_BASH="$ac_dir/$ac_word" | |
1626 | break | |
1627 | fi | |
1628 | done | |
1629 | IFS="$ac_save_ifs" | |
1630 | test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no" | |
1631 | ;; | |
1632 | esac | |
1633 | fi | |
1634 | BASH="$ac_cv_path_BASH" | |
1635 | if test -n "$BASH"; then | |
1636 | echo "$ac_t""$BASH" 1>&6 | |
1637 | else | |
1638 | echo "$ac_t""no" 1>&6 | |
1639 | fi | |
1640 | ||
1641 | if test "$BASH" != no && | |
1642 | $BASH -c 'test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then | |
1643 | libc_cv_have_bash2=yes | |
1644 | else | |
1645 | libc_cv_have_bash2=no | |
1646 | fi | |
1647 | ||
1648 | ||
1649 | if test "$BASH" = no; then | |
1650 | # Extract the first word of "ksh", so it can be a program name with args. | |
1651 | set dummy ksh; ac_word=$2 | |
1652 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfd2257a | 1653 | echo "configure:1654: checking for $ac_word" >&5 |
cd6ede75 UD |
1654 | if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then |
1655 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1656 | else | |
1657 | case "$KSH" in | |
1658 | /*) | |
1659 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. | |
1660 | ;; | |
1661 | *) | |
1662 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1663 | for ac_dir in $PATH; do | |
1664 | test -z "$ac_dir" && ac_dir=. | |
1665 | if test -f $ac_dir/$ac_word; then | |
1666 | ac_cv_path_KSH="$ac_dir/$ac_word" | |
1667 | break | |
1668 | fi | |
1669 | done | |
1670 | IFS="$ac_save_ifs" | |
1671 | test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no" | |
1672 | ;; | |
1673 | esac | |
1674 | fi | |
1675 | KSH="$ac_cv_path_KSH" | |
1676 | if test -n "$KSH"; then | |
1677 | echo "$ac_t""$KSH" 1>&6 | |
1678 | else | |
1679 | echo "$ac_t""no" 1>&6 | |
1680 | fi | |
1681 | ||
1682 | if test "$KSH" = no; then | |
1683 | libc_cv_have_ksh=no | |
1684 | else | |
1685 | libc_cv_have_ksh=yes | |
1686 | fi | |
1687 | else | |
1688 | KSH="$BASH" | |
1689 | ||
1690 | libc_cv_have_ksh=yes | |
1691 | fi | |
1692 | ||
1693 | ||
a2b08ee5 UD |
1694 | for ac_prog in perl |
1695 | do | |
1696 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1697 | set dummy $ac_prog; ac_word=$2 | |
1698 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfd2257a | 1699 | echo "configure:1700: checking for $ac_word" >&5 |
a2b08ee5 UD |
1700 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
1701 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1702 | else | |
1703 | case "$PERL" in | |
1704 | /*) | |
1705 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
1706 | ;; | |
1707 | *) | |
1708 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1709 | for ac_dir in $PATH; do | |
1710 | test -z "$ac_dir" && ac_dir=. | |
1711 | if test -f $ac_dir/$ac_word; then | |
1712 | ac_cv_path_PERL="$ac_dir/$ac_word" | |
1713 | break | |
1714 | fi | |
1715 | done | |
1716 | IFS="$ac_save_ifs" | |
1717 | ;; | |
1718 | esac | |
1719 | fi | |
1720 | PERL="$ac_cv_path_PERL" | |
1721 | if test -n "$PERL"; then | |
1722 | echo "$ac_t""$PERL" 1>&6 | |
1723 | else | |
1724 | echo "$ac_t""no" 1>&6 | |
1725 | fi | |
1726 | ||
1727 | test -n "$PERL" && break | |
1728 | done | |
1729 | test -n "$PERL" || PERL="no" | |
1730 | ||
1731 | ||
1732 | ||
cd6ede75 | 1733 | echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6 |
dfd2257a | 1734 | echo "configure:1735: checking for signed size_t type" >&5 |
cd6ede75 UD |
1735 | if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then |
1736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1737 | else | |
1738 | echo '#include <stddef.h> | |
1739 | FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c | |
1740 | if eval "$ac_cpp conftest.c 2>/dev/null" \ | |
1741 | | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then | |
1742 | libc_cv_signed_size_t=no | |
1743 | else | |
1744 | libc_cv_signed_size_t=yes | |
1745 | fi | |
1746 | rm -f conftest* | |
1747 | fi | |
1748 | ||
1749 | echo "$ac_t""$libc_cv_signed_size_t" 1>&6 | |
1750 | if test $libc_cv_signed_size_t = yes; then | |
1751 | cat >> confdefs.h <<\EOF | |
1752 | #undef __SIZE_TYPE__ | |
1753 | #define __SIZE_TYPE__ unsigned | |
1754 | EOF | |
1755 | fi | |
1756 | ||
1757 | echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6 | |
dfd2257a | 1758 | echo "configure:1759: checking for libc-friendly stddef.h" >&5 |
cd6ede75 UD |
1759 | if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then |
1760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1761 | else | |
1762 | cat > conftest.$ac_ext <<EOF | |
dfd2257a | 1763 | #line 1764 "configure" |
cd6ede75 UD |
1764 | #include "confdefs.h" |
1765 | #define __need_size_t | |
1766 | #define __need_wchar_t | |
1767 | #include <stddef.h> | |
1768 | #define __need_NULL | |
1769 | #include <stddef.h> | |
1770 | int main() { | |
1771 | size_t size; wchar_t wchar; | |
1772 | #ifdef offsetof | |
1773 | #error stddef.h ignored __need_* | |
1774 | #endif | |
1775 | if (&size == NULL || &wchar == NULL) abort (); | |
1776 | ; return 0; } | |
1777 | EOF | |
dfd2257a | 1778 | if { (eval echo configure:1779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6ede75 UD |
1779 | rm -rf conftest* |
1780 | libc_cv_friendly_stddef=yes | |
1781 | else | |
1782 | echo "configure: failed program was:" >&5 | |
1783 | cat conftest.$ac_ext >&5 | |
1784 | rm -rf conftest* | |
1785 | libc_cv_friendly_stddef=no | |
1786 | fi | |
1787 | rm -f conftest* | |
1788 | fi | |
1789 | ||
1790 | echo "$ac_t""$libc_cv_friendly_stddef" 1>&6 | |
1791 | if test $libc_cv_friendly_stddef = yes; then | |
1792 | config_vars="$config_vars | |
1793 | override stddef.h = # The installed <stddef.h> seems to be libc-friendly." | |
1794 | fi | |
1795 | ||
1796 | echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6 | |
dfd2257a | 1797 | echo "configure:1798: checking whether we need to use -P to assemble .S files" >&5 |
cd6ede75 UD |
1798 | if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then |
1799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1800 | else | |
1801 | cat > conftest.S <<EOF | |
1802 | #include "confdefs.h" | |
1803 | /* Nothing whatsoever. */ | |
1804 | EOF | |
1805 | if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then | |
1806 | libc_cv_need_minus_P=no | |
1807 | else | |
1808 | libc_cv_need_minus_P=yes | |
1809 | fi | |
1810 | rm -f conftest* | |
1811 | fi | |
1812 | ||
1813 | echo "$ac_t""$libc_cv_need_minus_P" 1>&6 | |
1814 | if test $libc_cv_need_minus_P = yes; then | |
1815 | config_vars="$config_vars | |
1816 | asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives." | |
1817 | fi | |
1818 | ||
1819 | echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6 | |
dfd2257a | 1820 | echo "configure:1821: checking for assembler global-symbol directive" >&5 |
cd6ede75 UD |
1821 | if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then |
1822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1823 | else | |
1824 | libc_cv_asm_global_directive=UNKNOWN | |
1825 | for ac_globl in .globl .global; do | |
1826 | cat > conftest.s <<EOF | |
1827 | .text | |
1828 | ${ac_globl} foo | |
1829 | foo: | |
1830 | EOF | |
1831 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
1832 | libc_cv_asm_global_directive=${ac_globl} | |
1833 | fi | |
1834 | rm -f conftest* | |
1835 | test $libc_cv_asm_global_directive != UNKNOWN && break | |
1836 | done | |
1837 | fi | |
1838 | ||
1839 | echo "$ac_t""$libc_cv_asm_global_directive" 1>&6 | |
1840 | if test $libc_cv_asm_global_directive = UNKNOWN; then | |
1841 | { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; } | |
1842 | else | |
1843 | cat >> confdefs.h <<EOF | |
1844 | #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive} | |
1845 | EOF | |
1846 | ||
1847 | fi | |
1848 | ||
1849 | echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6 | |
dfd2257a | 1850 | echo "configure:1851: checking for .set assembler directive" >&5 |
cd6ede75 UD |
1851 | if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then |
1852 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1853 | else | |
1854 | cat > conftest.s <<EOF | |
1855 | .text | |
1856 | foo: | |
1857 | .set glibc_conftest_frobozz,foo | |
1858 | $libc_cv_asm_global_directive glibc_conftest_frobozz | |
1859 | EOF | |
1860 | # The alpha-dec-osf1 assembler gives only a warning for `.set' | |
1861 | # (but it doesn't work), so we must do a linking check to be sure. | |
1862 | cat > conftest1.c <<\EOF | |
1863 | extern int glibc_conftest_frobozz; | |
1864 | main () { printf ("%d\n", glibc_conftest_frobozz); } | |
1865 | EOF | |
1866 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
1867 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then | |
1868 | libc_cv_asm_set_directive=yes | |
1869 | else | |
1870 | libc_cv_asm_set_directive=no | |
1871 | fi | |
1872 | rm -f conftest* | |
1873 | fi | |
1874 | ||
1875 | echo "$ac_t""$libc_cv_asm_set_directive" 1>&6 | |
1876 | if test $libc_cv_asm_set_directive = yes; then | |
1877 | cat >> confdefs.h <<\EOF | |
1878 | #define HAVE_ASM_SET_DIRECTIVE 1 | |
1879 | EOF | |
1880 | ||
1881 | fi | |
1882 | ||
1883 | echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6 | |
dfd2257a | 1884 | echo "configure:1885: checking for .symver assembler directive" >&5 |
cd6ede75 UD |
1885 | if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then |
1886 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1887 | else | |
1888 | cat > conftest.s <<EOF | |
1889 | .text | |
1890 | _sym: | |
1891 | .symver _sym,sym@VERS | |
1892 | EOF | |
1893 | if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then | |
1894 | libc_cv_asm_symver_directive=yes | |
1895 | else | |
1896 | libc_cv_asm_symver_directive=no | |
1897 | fi | |
1898 | rm -f conftest* | |
1899 | fi | |
1900 | ||
1901 | echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6 | |
1902 | echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6 | |
dfd2257a | 1903 | echo "configure:1904: checking for ld --version-script" >&5 |
cd6ede75 UD |
1904 | if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then |
1905 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1906 | else | |
1907 | if test $libc_cv_asm_symver_directive = yes; then | |
1908 | cat > conftest.s <<EOF | |
1909 | .text | |
1910 | _sym: | |
1911 | .symver _sym,sym@VERS | |
1912 | EOF | |
1913 | cat > conftest.map <<EOF | |
1914 | VERS { | |
1915 | global: sym; | |
1916 | }; | |
1917 | EOF | |
1918 | if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then | |
1919 | if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o | |
1920 | -nostartfiles -nostdlib | |
1921 | -Wl,--version-script,conftest.map | |
dfd2257a | 1922 | 1>&5'; { (eval echo configure:1923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; |
cd6ede75 UD |
1923 | then |
1924 | libc_cv_ld_version_script_option=yes | |
1925 | else | |
1926 | libc_cv_ld_version_script_option=no | |
1927 | fi | |
1928 | else | |
1929 | libc_cv_ld_version_script_option=no | |
1930 | fi | |
1931 | else | |
1932 | libc_cv_ld_version_script_option=no | |
1933 | fi | |
1934 | rm -f conftest* | |
1935 | fi | |
1936 | ||
1937 | echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6 | |
1938 | if test $libc_cv_asm_symver_directive = yes && | |
650425ce UD |
1939 | test $libc_cv_ld_version_script_option = yes && |
1940 | test $enable_versioning = yes; then | |
cd6ede75 UD |
1941 | VERSIONING=yes |
1942 | cat >> confdefs.h <<\EOF | |
1943 | #define DO_VERSIONING 1 | |
1944 | EOF | |
1945 | ||
1946 | else | |
1947 | VERSIONING=no | |
1948 | fi | |
1949 | ||
1950 | ||
1951 | if test $elf = yes; then | |
1952 | echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6 | |
dfd2257a | 1953 | echo "configure:1954: checking for .previous assembler directive" >&5 |
cd6ede75 UD |
1954 | if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then |
1955 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1956 | else | |
1957 | cat > conftest.s <<EOF | |
1958 | .section foo_section | |
1959 | .previous | |
1960 | EOF | |
dfd2257a | 1961 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
cd6ede75 UD |
1962 | libc_cv_asm_previous_directive=yes |
1963 | else | |
1964 | libc_cv_asm_previous_directive=no | |
1965 | fi | |
1966 | rm -f conftest* | |
1967 | fi | |
1968 | ||
1969 | echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6 | |
1970 | if test $libc_cv_asm_previous_directive = yes; then | |
1971 | cat >> confdefs.h <<\EOF | |
1972 | #define HAVE_ASM_PREVIOUS_DIRECTIVE 1 | |
1973 | EOF | |
1974 | ||
1975 | else | |
1976 | echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6 | |
dfd2257a | 1977 | echo "configure:1978: checking for .popsection assembler directive" >&5 |
cd6ede75 UD |
1978 | if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then |
1979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1980 | else | |
1981 | cat > conftest.s <<EOF | |
1982 | .pushsection foo_section | |
1983 | .popsection | |
1984 | EOF | |
dfd2257a | 1985 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
cd6ede75 UD |
1986 | libc_cv_asm_popsection_directive=yes |
1987 | else | |
1988 | libc_cv_asm_popsection_directive=no | |
1989 | fi | |
1990 | rm -f conftest* | |
1991 | fi | |
1992 | ||
1993 | echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6 | |
1994 | if test $libc_cv_asm_popsection_directive = yes; then | |
1995 | cat >> confdefs.h <<\EOF | |
1996 | #define HAVE_ASM_POPSECTION_DIRECTIVE 1 | |
1997 | EOF | |
1998 | ||
1999 | fi | |
2000 | fi | |
2001 | fi | |
2002 | ||
2003 | if test $elf != yes; then | |
2004 | echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6 | |
dfd2257a | 2005 | echo "configure:2006: checking for .init and .fini sections" >&5 |
cd6ede75 UD |
2006 | if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then |
2007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2008 | else | |
2009 | cat > conftest.$ac_ext <<EOF | |
dfd2257a | 2010 | #line 2011 "configure" |
cd6ede75 UD |
2011 | #include "confdefs.h" |
2012 | ||
2013 | int main() { | |
2014 | asm (".section .init"); | |
2015 | asm (".section .fini"); | |
2016 | asm (".text"); | |
2017 | ; return 0; } | |
2018 | EOF | |
dfd2257a | 2019 | if { (eval echo configure:2020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6ede75 UD |
2020 | rm -rf conftest* |
2021 | libc_cv_have_initfini=yes | |
2022 | else | |
2023 | echo "configure: failed program was:" >&5 | |
2024 | cat conftest.$ac_ext >&5 | |
2025 | rm -rf conftest* | |
2026 | libc_cv_have_initfini=no | |
2027 | fi | |
2028 | rm -f conftest* | |
2029 | fi | |
2030 | ||
2031 | echo "$ac_t""$libc_cv_have_initfini" 1>&6 | |
2032 | if test $libc_cv_have_initfini = yes; then | |
2033 | cat >> confdefs.h <<\EOF | |
2034 | #define HAVE_INITFINI 1 | |
2035 | EOF | |
2036 | ||
2037 | fi | |
2038 | fi | |
2039 | ||
9a0a462c UD |
2040 | |
2041 | ||
cd6ede75 UD |
2042 | if test $elf = yes; then |
2043 | libc_cv_asm_underscores=no | |
2044 | else | |
9a0a462c UD |
2045 | if test $ac_cv_prog_cc_works = yes; then |
2046 | echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6 | |
dfd2257a | 2047 | echo "configure:2048: checking for _ prefix on C symbol names" >&5 |
cd6ede75 UD |
2048 | if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then |
2049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2050 | else | |
2051 | cat > conftest.$ac_ext <<EOF | |
dfd2257a | 2052 | #line 2053 "configure" |
cd6ede75 UD |
2053 | #include "confdefs.h" |
2054 | asm ("_glibc_foobar:"); | |
2055 | int main() { | |
2056 | glibc_foobar (); | |
2057 | ; return 0; } | |
2058 | EOF | |
dfd2257a | 2059 | if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
cd6ede75 UD |
2060 | rm -rf conftest* |
2061 | libc_cv_asm_underscores=yes | |
2062 | else | |
2063 | echo "configure: failed program was:" >&5 | |
2064 | cat conftest.$ac_ext >&5 | |
2065 | rm -rf conftest* | |
2066 | libc_cv_asm_underscores=no | |
2067 | fi | |
2068 | rm -f conftest* | |
2069 | fi | |
2070 | ||
2071 | echo "$ac_t""$libc_cv_asm_underscores" 1>&6 | |
9a0a462c UD |
2072 | else |
2073 | echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6 | |
dfd2257a | 2074 | echo "configure:2075: checking for _ prefix on C symbol names" >&5 |
9a0a462c UD |
2075 | if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then |
2076 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2077 | else | |
2078 | cat > conftest.$ac_ext <<EOF | |
dfd2257a | 2079 | #line 2080 "configure" |
9a0a462c UD |
2080 | #include "confdefs.h" |
2081 | void underscore_test(void) { | |
2082 | return; } | |
2083 | EOF | |
dfd2257a | 2084 | if { (eval echo configure:2085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
9a0a462c UD |
2085 | if grep _underscore_test conftest* >/dev/null; then |
2086 | rm -f conftest* | |
2087 | libc_cv_asm_underscores=yes | |
2088 | else | |
2089 | rm -f conftest* | |
2090 | libc_cv_asm_underscores=no | |
2091 | fi | |
2092 | else | |
2093 | echo "configure: failed program was:" >&5 | |
2094 | cat conftest.$ac_ext >&5 | |
2095 | rm -f conftest* | |
2096 | libc_cv_asm_underscores=no | |
2097 | fi | |
2098 | rm -f conftest* | |
2099 | fi | |
2100 | ||
2101 | echo "$ac_t""$libc_cv_asm_underscores" 1>&6 | |
2102 | fi | |
cd6ede75 UD |
2103 | fi |
2104 | if test $libc_cv_asm_underscores = no; then | |
2105 | cat >> confdefs.h <<\EOF | |
2106 | #define NO_UNDERSCORES 1 | |
2107 | EOF | |
2108 | ||
2109 | fi | |
2110 | ||
2111 | if test $elf = yes; then | |
2112 | libc_cv_weak_symbols=yes | |
2113 | libc_cv_asm_weak_directive=yes | |
2114 | libc_cv_asm_weakext_directive=no | |
2115 | else | |
2116 | echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6 | |
dfd2257a | 2117 | echo "configure:2118: checking for assembler .weak directive" >&5 |
cd6ede75 UD |
2118 | if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then |
2119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2120 | else | |
2121 | cat > conftest.s <<EOF | |
2122 | .text | |
2123 | ${libc_cv_asm_global_directive} foo | |
2124 | foo: | |
2125 | .weak foo | |
2126 | .weak bar; bar = foo | |
2127 | EOF | |
2128 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
2129 | libc_cv_asm_weak_directive=yes | |
2130 | else | |
2131 | libc_cv_asm_weak_directive=no | |
2132 | fi | |
2133 | rm -f conftest* | |
2134 | fi | |
2135 | ||
2136 | echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6 | |
2137 | ||
2138 | if test $libc_cv_asm_weak_directive = no; then | |
2139 | echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6 | |
dfd2257a | 2140 | echo "configure:2141: checking for assembler .weakext directive" >&5 |
cd6ede75 UD |
2141 | if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then |
2142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2143 | else | |
2144 | cat > conftest.s <<EOF | |
2145 | .text | |
2146 | ${libc_cv_asm_global_directive} foo | |
2147 | foo: | |
2148 | .weakext foo | |
2149 | .weakext foo, bar | |
2150 | EOF | |
2151 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
2152 | libc_cv_asm_weakext_directive=yes | |
2153 | else | |
2154 | libc_cv_asm_weakext_directive=no | |
2155 | fi | |
2156 | rm -f conftest* | |
2157 | fi | |
2158 | ||
2159 | echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6 | |
2160 | ||
2161 | fi # no .weak | |
2162 | fi # not ELF | |
2163 | ||
2164 | if test $libc_cv_asm_weak_directive = yes; then | |
2165 | cat >> confdefs.h <<\EOF | |
2166 | #define HAVE_ASM_WEAK_DIRECTIVE 1 | |
2167 | EOF | |
2168 | ||
2169 | elif test $libc_cv_asm_weakext_directive = yes; then | |
2170 | cat >> confdefs.h <<\EOF | |
2171 | #define HAVE_ASM_WEAKEXT_DIRECTIVE 1 | |
2172 | EOF | |
2173 | ||
2174 | fi | |
2175 | ||
2176 | echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6 | |
dfd2257a | 2177 | echo "configure:2178: checking for ld --no-whole-archive" >&5 |
cd6ede75 UD |
2178 | if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then |
2179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2180 | else | |
2181 | cat > conftest.c <<\EOF | |
2182 | _start () {} | |
2183 | int __eh_pc; | |
2184 | __throw () {} | |
2185 | EOF | |
2186 | if { ac_try='${CC-cc} $CFLAGS | |
2187 | -nostdlib -nostartfiles -Wl,--no-whole-archive | |
dfd2257a | 2188 | -o conftest conftest.c 1>&5'; { (eval echo configure:2189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
cd6ede75 UD |
2189 | libc_cv_ld_no_whole_archive=yes |
2190 | else | |
2191 | libc_cv_ld_no_whole_archive=no | |
2192 | fi | |
2193 | rm -f conftest* | |
2194 | fi | |
2195 | ||
2196 | echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6 | |
2197 | ||
2198 | echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6 | |
dfd2257a | 2199 | echo "configure:2200: checking for gcc -fno-exceptions" >&5 |
cd6ede75 UD |
2200 | if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then |
2201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2202 | else | |
2203 | cat > conftest.c <<\EOF | |
2204 | _start () {} | |
2205 | int __eh_pc; | |
2206 | __throw () {} | |
2207 | EOF | |
2208 | if { ac_try='${CC-cc} $CFLAGS | |
2209 | -nostdlib -nostartfiles -fno-exceptions | |
dfd2257a | 2210 | -o conftest conftest.c 1>&5'; { (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
cd6ede75 UD |
2211 | libc_cv_gcc_no_exceptions=yes |
2212 | else | |
2213 | libc_cv_gcc_no_exceptions=no | |
2214 | fi | |
2215 | rm -f conftest* | |
2216 | fi | |
2217 | ||
2218 | echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6 | |
2219 | ||
650425ce | 2220 | echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6 |
dfd2257a | 2221 | echo "configure:2222: checking for DWARF2 unwind info support" >&5 |
650425ce UD |
2222 | if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then |
2223 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2224 | else | |
2225 | cat > conftest.c <<EOF | |
dfd2257a | 2226 | #line 2227 "configure" |
650425ce UD |
2227 | static char __EH_FRAME_BEGIN__; |
2228 | _start () | |
2229 | { | |
2230 | __register_frame (__EH_FRAME_BEGIN__); | |
2231 | __deregister_frame (__EH_FRAME_BEGIN__); | |
2232 | } | |
2233 | int __eh_pc; | |
2234 | __throw () {} | |
2235 | /* FIXME: this is fragile. */ | |
2236 | malloc () {} | |
2237 | strcmp () {} | |
2238 | strlen () {} | |
2239 | memcpy () {} | |
2240 | memset () {} | |
2241 | free () {} | |
2242 | abort () {} | |
dfd2257a | 2243 | __bzero () {} |
650425ce UD |
2244 | EOF |
2245 | if { ac_try='${CC-cc} $CFLAGS | |
2246 | -nostdlib -nostartfiles | |
dfd2257a | 2247 | -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
650425ce UD |
2248 | libc_cv_gcc_dwarf2_unwind_info=yes |
2249 | else | |
2250 | libc_cv_gcc_dwarf2_unwind_info=no | |
2251 | fi | |
2252 | rm -f conftest* | |
2253 | fi | |
2254 | ||
2255 | echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6 | |
2256 | if test $libc_cv_gcc_dwarf2_unwind_info = yes; then | |
2257 | cat >> confdefs.h <<\EOF | |
2258 | #define HAVE_DWARF2_UNWIND_INFO 1 | |
2259 | EOF | |
2260 | ||
2261 | fi | |
2262 | ||
cd6ede75 UD |
2263 | ### End of automated tests. |
2264 | ### Now run sysdeps configure fragments. | |
2265 | ||
2266 | # sysdeps configure fragments may set these with files to be linked below. | |
2267 | libc_link_dests= | |
2268 | libc_link_sources= | |
2269 | ||
2270 | # Iterate over all the sysdep directories we will use, running their | |
2271 | # configure fragments, and looking for a uname implementation. | |
2272 | uname= | |
2273 | for dir in $sysnames; do | |
2274 | case $dir in | |
2275 | /*) dest=$dir ;; | |
2276 | *) dest=$srcdir/$dir ;; | |
2277 | esac | |
2278 | if test -r $dest/configure; then | |
2279 | echo "$ac_t""running configure fragment for $dest" 1>&6 | |
2280 | . $dest/configure | |
2281 | fi | |
2282 | ||
2283 | if test -z "$uname"; then | |
2284 | if test -r $dest/uname.c || | |
2285 | test -r $dest/uname.S || | |
2286 | { test -r $dest/syscalls.list && | |
2287 | grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then | |
2288 | uname=$dir | |
2289 | fi | |
2290 | fi | |
2291 | done | |
2292 | ||
2293 | ||
2294 | ||
2295 | # If we will use the generic uname implementation, we must figure out what | |
2296 | # it will say by examining the system, and write the results in config-name.h. | |
2297 | if test "$uname" = "sysdeps/generic"; then | |
2298 | ||
2299 | uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'` | |
2300 | if test $uname_sysname != $config_os; then | |
2301 | config_release=`echo $config_os | sed s/$uname_sysname//` | |
2302 | fi | |
2303 | ||
2304 | echo $ac_n "checking OS release for uname""... $ac_c" 1>&6 | |
dfd2257a | 2305 | echo "configure:2306: checking OS release for uname" >&5 |
cd6ede75 UD |
2306 | if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then |
2307 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2308 | else | |
2309 | kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'` | |
2310 | if test x`echo "$config_release" | sed "s/^$kernel_release//"` \ | |
2311 | != x$config_release; then | |
2312 | # The configuration release is a substring of the kernel release. | |
2313 | libc_cv_uname_release=$kernel_release | |
2314 | elif test x$config_release != x; then | |
2315 | libc_cv_uname_release=$config_release | |
2316 | elif test x$kernel_release != x; then | |
2317 | libc_cv_uname_release=$kernel_release | |
2318 | else | |
2319 | libc_cv_uname_release=unknown | |
2320 | fi | |
2321 | fi | |
2322 | ||
2323 | echo "$ac_t""$libc_cv_uname_release" 1>&6 | |
2324 | uname_release="$libc_cv_uname_release" | |
2325 | ||
2326 | echo $ac_n "checking OS version for uname""... $ac_c" 1>&6 | |
dfd2257a | 2327 | echo "configure:2328: checking OS version for uname" >&5 |
cd6ede75 UD |
2328 | if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then |
2329 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2330 | else | |
2331 | kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'` | |
2332 | if test -n "$kernel_version"; then | |
2333 | libc_cv_uname_version="$kernel_version" | |
2334 | else | |
2335 | libc_cv_uname_version=unknown | |
2336 | fi | |
2337 | fi | |
2338 | ||
2339 | echo "$ac_t""$libc_cv_uname_version" 1>&6 | |
2340 | uname_version="$libc_cv_uname_version" | |
2341 | ||
2342 | config_uname=config-name.h:config-name.in | |
2343 | else | |
2344 | # For non-generic uname, we don't need to create config-name.h at all. | |
2345 | config_uname= | |
2346 | fi | |
2347 | ||
2348 | echo $ac_n "checking stdio selection""... $ac_c" 1>&6 | |
dfd2257a | 2349 | echo "configure:2350: checking stdio selection" >&5 |
cd6ede75 UD |
2350 | |
2351 | case $stdio in | |
2352 | libio) cat >> confdefs.h <<\EOF | |
2353 | #define USE_IN_LIBIO 1 | |
2354 | EOF | |
2355 | ;; | |
2356 | default) stdio=stdio ;; | |
2357 | esac | |
2358 | echo "$ac_t""$stdio" 1>&6 | |
2359 | ||
26b4d766 | 2360 | echo $ac_n "checking ldap selection""... $ac_c" 1>&6 |
dfd2257a | 2361 | echo "configure:2362: checking ldap selection" >&5 |
26b4d766 UD |
2362 | |
2363 | case $add_ons in | |
2364 | *ldap*) | |
2365 | ldap=yes | |
2366 | LDAP=ldap ;; | |
2367 | *) ldap=no | |
2368 | LDAP= ;; | |
2369 | esac | |
2370 | echo "$ac_t""$ldap" 1>&6 | |
2371 | ||
cd6ede75 UD |
2372 | |
2373 | ||
2374 | ||
2375 | ||
2376 | ||
2377 | ||
2378 | ||
2379 | if test $gnu_ld = yes; then | |
2380 | cat >> confdefs.h <<\EOF | |
2381 | #define HAVE_GNU_LD 1 | |
2382 | EOF | |
2383 | ||
2384 | fi | |
2385 | if test $gnu_as = yes; then | |
2386 | cat >> confdefs.h <<\EOF | |
2387 | #define HAVE_GNU_AS 1 | |
2388 | EOF | |
2389 | ||
2390 | fi | |
2391 | if test $elf = yes; then | |
2392 | cat >> confdefs.h <<\EOF | |
2393 | #define HAVE_ELF 1 | |
2394 | EOF | |
2395 | ||
2396 | fi | |
2397 | ||
2398 | ||
650425ce | 2399 | |
cd6ede75 UD |
2400 | if test $shared = default; then |
2401 | if test $gnu_ld = yes; then | |
2402 | shared=$elf | |
2403 | else | |
2404 | # For now we do not assume shared libs are available. In future more | |
2405 | # tests might become available. | |
2406 | shared=no | |
2407 | fi | |
2408 | fi | |
2409 | ||
2410 | ||
2411 | ||
2412 | ||
2413 | ||
2414 | ||
2415 | ||
2416 | ||
2417 | if test "`(cd $srcdir; pwd)`" = "`pwd`"; then | |
2418 | config_makefile= | |
2419 | else | |
2420 | config_makefile=Makefile | |
2421 | fi | |
2422 | ||
2423 | VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h` | |
2424 | ||
2425 | ||
2426 | trap '' 1 2 15 | |
2427 | cat > confcache <<\EOF | |
2428 | # This file is a shell script that caches the results of configure | |
2429 | # tests run on this system so they can be shared between configure | |
2430 | # scripts and configure runs. It is not useful on other systems. | |
2431 | # If it contains results you don't want to keep, you may remove or edit it. | |
2432 | # | |
2433 | # By default, configure uses ./config.cache as the cache file, | |
2434 | # creating it if it does not exist already. You can give configure | |
2435 | # the --cache-file=FILE option to use a different cache file; that is | |
2436 | # what configure does when it calls configure scripts in | |
2437 | # subdirectories, so they share the cache. | |
2438 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2439 | # config.status only pays attention to the cache file if you give it the | |
2440 | # --recheck option to rerun configure. | |
2441 | # | |
2442 | EOF | |
2443 | # The following way of writing the cache mishandles newlines in values, | |
2444 | # but we know of no workaround that is simple, portable, and efficient. | |
2445 | # So, don't put newlines in cache variables' values. | |
2446 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2447 | # and sets the high bit in the cache file unless we assign to the vars. | |
2448 | (set) 2>&1 | | |
2449 | case `(ac_space=' '; set) 2>&1` in | |
2450 | *ac_space=\ *) | |
2451 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2452 | # turns \\\\ into \\, and sed turns \\ into \). | |
2453 | sed -n \ | |
2454 | -e "s/'/'\\\\''/g" \ | |
2455 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2456 | ;; | |
2457 | *) | |
2458 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2459 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2460 | ;; | |
2461 | esac >> confcache | |
2462 | if cmp -s $cache_file confcache; then | |
2463 | : | |
2464 | else | |
2465 | if test -w $cache_file; then | |
2466 | echo "updating cache $cache_file" | |
2467 | cat confcache > $cache_file | |
2468 | else | |
2469 | echo "not updating unwritable cache $cache_file" | |
2470 | fi | |
2471 | fi | |
2472 | rm -f confcache | |
2473 | ||
2474 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
2475 | ||
2476 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2477 | # Let make expand exec_prefix. | |
2478 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2479 | ||
2480 | # Any assignment to VPATH causes Sun make to only execute | |
2481 | # the first set of double-colon rules, so remove it if not needed. | |
2482 | # If there is a colon in the path, we need to keep it. | |
2483 | if test "x$srcdir" = x.; then | |
2484 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
2485 | fi | |
2486 | ||
2487 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
2488 | ||
2489 | DEFS=-DHAVE_CONFIG_H | |
2490 | ||
2491 | # Without the "./", some shells look in PATH for config.status. | |
2492 | : ${CONFIG_STATUS=./config.status} | |
2493 | ||
2494 | echo creating $CONFIG_STATUS | |
2495 | rm -f $CONFIG_STATUS | |
2496 | cat > $CONFIG_STATUS <<EOF | |
2497 | #! /bin/sh | |
2498 | # Generated automatically by configure. | |
2499 | # Run this file to recreate the current configuration. | |
2500 | # This directory was configured as follows, | |
2501 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
2502 | # | |
2503 | # $0 $ac_configure_args | |
2504 | # | |
2505 | # Compiler output produced by configure, useful for debugging | |
2506 | # configure, is in ./config.log if it exists. | |
2507 | ||
2508 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
2509 | for ac_option | |
2510 | do | |
2511 | case "\$ac_option" in | |
2512 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
2513 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
2514 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
2515 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
2516 | echo "$CONFIG_STATUS generated by autoconf version 2.12" | |
2517 | exit 0 ;; | |
2518 | -help | --help | --hel | --he | --h) | |
2519 | echo "\$ac_cs_usage"; exit 0 ;; | |
2520 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
2521 | esac | |
2522 | done | |
2523 | ||
2524 | ac_given_srcdir=$srcdir | |
2525 | ac_given_INSTALL="$INSTALL" | |
2526 | ||
2527 | trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
2528 | EOF | |
2529 | cat >> $CONFIG_STATUS <<EOF | |
2530 | ||
2531 | # Protect against being on the right side of a sed subst in config.status. | |
2532 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
2533 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
2534 | $ac_vpsub | |
2535 | $extrasub | |
2536 | s%@CFLAGS@%$CFLAGS%g | |
2537 | s%@CPPFLAGS@%$CPPFLAGS%g | |
2538 | s%@CXXFLAGS@%$CXXFLAGS%g | |
2539 | s%@DEFS@%$DEFS%g | |
2540 | s%@LDFLAGS@%$LDFLAGS%g | |
2541 | s%@LIBS@%$LIBS%g | |
2542 | s%@exec_prefix@%$exec_prefix%g | |
2543 | s%@prefix@%$prefix%g | |
2544 | s%@program_transform_name@%$program_transform_name%g | |
2545 | s%@bindir@%$bindir%g | |
2546 | s%@sbindir@%$sbindir%g | |
2547 | s%@libexecdir@%$libexecdir%g | |
2548 | s%@datadir@%$datadir%g | |
2549 | s%@sysconfdir@%$sysconfdir%g | |
2550 | s%@sharedstatedir@%$sharedstatedir%g | |
2551 | s%@localstatedir@%$localstatedir%g | |
2552 | s%@libdir@%$libdir%g | |
2553 | s%@includedir@%$includedir%g | |
2554 | s%@oldincludedir@%$oldincludedir%g | |
2555 | s%@infodir@%$infodir%g | |
2556 | s%@mandir@%$mandir%g | |
2557 | s%@subdirs@%$subdirs%g | |
2558 | s%@host@%$host%g | |
2559 | s%@host_alias@%$host_alias%g | |
2560 | s%@host_cpu@%$host_cpu%g | |
2561 | s%@host_vendor@%$host_vendor%g | |
2562 | s%@host_os@%$host_os%g | |
2563 | s%@base_machine@%$base_machine%g | |
2564 | s%@sysnames@%$sysnames%g | |
2565 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
2566 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
2567 | s%@LN_S@%$LN_S%g | |
2568 | s%@MSGFMT@%$MSGFMT%g | |
2569 | s%@CC@%$CC%g | |
2570 | s%@cross_linkable@%$cross_linkable%g | |
2571 | s%@build@%$build%g | |
2572 | s%@build_alias@%$build_alias%g | |
2573 | s%@build_cpu@%$build_cpu%g | |
2574 | s%@build_vendor@%$build_vendor%g | |
2575 | s%@build_os@%$build_os%g | |
2576 | s%@BUILD_CC@%$BUILD_CC%g | |
2577 | s%@cross_compiling@%$cross_compiling%g | |
2578 | s%@CPP@%$CPP%g | |
2579 | s%@AR@%$AR%g | |
2580 | s%@RANLIB@%$RANLIB%g | |
2581 | s%@BASH@%$BASH%g | |
2582 | s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g | |
2583 | s%@KSH@%$KSH%g | |
2584 | s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g | |
a2b08ee5 | 2585 | s%@PERL@%$PERL%g |
cd6ede75 UD |
2586 | s%@VERSIONING@%$VERSIONING%g |
2587 | s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g | |
2588 | s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g | |
2589 | s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g | |
2590 | s%@uname_sysname@%$uname_sysname%g | |
2591 | s%@uname_release@%$uname_release%g | |
2592 | s%@uname_version@%$uname_version%g | |
2593 | s%@stdio@%$stdio%g | |
26b4d766 | 2594 | s%@LDAP@%$LDAP%g |
cd6ede75 UD |
2595 | s%@libc_cv_slibdir@%$libc_cv_slibdir%g |
2596 | s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g | |
2597 | s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g | |
2598 | s%@has_ldconfig@%$has_ldconfig%g | |
2599 | s%@gnu_ld@%$gnu_ld%g | |
2600 | s%@gnu_as@%$gnu_as%g | |
2601 | s%@elf@%$elf%g | |
650425ce | 2602 | s%@static@%$static%g |
cd6ede75 UD |
2603 | s%@shared@%$shared%g |
2604 | s%@profile@%$profile%g | |
2605 | s%@omitfp@%$omitfp%g | |
2606 | s%@bounded@%$bounded%g | |
2607 | s%@static_nss@%$static_nss%g | |
2608 | s%@nopic_initfini@%$nopic_initfini%g | |
2609 | s%@DEFINES@%$DEFINES%g | |
2610 | s%@VERSION@%$VERSION%g | |
2611 | ||
2612 | CEOF | |
2613 | EOF | |
2614 | ||
2615 | cat >> $CONFIG_STATUS <<\EOF | |
2616 | ||
2617 | # Split the substitutions into bite-sized pieces for seds with | |
2618 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
2619 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
2620 | ac_file=1 # Number of current file. | |
2621 | ac_beg=1 # First line for current file. | |
2622 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
2623 | ac_more_lines=: | |
2624 | ac_sed_cmds="" | |
2625 | while $ac_more_lines; do | |
2626 | if test $ac_beg -gt 1; then | |
2627 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
2628 | else | |
2629 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
2630 | fi | |
2631 | if test ! -s conftest.s$ac_file; then | |
2632 | ac_more_lines=false | |
2633 | rm -f conftest.s$ac_file | |
2634 | else | |
2635 | if test -z "$ac_sed_cmds"; then | |
2636 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
2637 | else | |
2638 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
2639 | fi | |
2640 | ac_file=`expr $ac_file + 1` | |
2641 | ac_beg=$ac_end | |
2642 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
2643 | fi | |
2644 | done | |
2645 | if test -z "$ac_sed_cmds"; then | |
2646 | ac_sed_cmds=cat | |
2647 | fi | |
2648 | EOF | |
2649 | ||
2650 | cat >> $CONFIG_STATUS <<EOF | |
2651 | ||
2652 | CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"} | |
2653 | EOF | |
2654 | cat >> $CONFIG_STATUS <<\EOF | |
2655 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
2656 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
2657 | case "$ac_file" in | |
2658 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
2659 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2660 | *) ac_file_in="${ac_file}.in" ;; | |
2661 | esac | |
2662 | ||
2663 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
2664 | ||
2665 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2666 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2667 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2668 | # The file is in a subdirectory. | |
2669 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2670 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
2671 | # A "../" for each directory in $ac_dir_suffix. | |
2672 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
2673 | else | |
2674 | ac_dir_suffix= ac_dots= | |
2675 | fi | |
2676 | ||
2677 | case "$ac_given_srcdir" in | |
2678 | .) srcdir=. | |
2679 | if test -z "$ac_dots"; then top_srcdir=. | |
2680 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
2681 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
2682 | *) # Relative path. | |
2683 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
2684 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
2685 | esac | |
2686 | ||
2687 | case "$ac_given_INSTALL" in | |
2688 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2689 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2690 | esac | |
2691 | ||
2692 | echo creating "$ac_file" | |
2693 | rm -f "$ac_file" | |
2694 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
2695 | case "$ac_file" in | |
2696 | *Makefile*) ac_comsub="1i\\ | |
2697 | # $configure_input" ;; | |
2698 | *) ac_comsub= ;; | |
2699 | esac | |
2700 | ||
2701 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
2702 | sed -e "$ac_comsub | |
2703 | s%@configure_input@%$configure_input%g | |
2704 | s%@srcdir@%$srcdir%g | |
2705 | s%@top_srcdir@%$top_srcdir%g | |
2706 | s%@INSTALL@%$INSTALL%g | |
2707 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
2708 | fi; done | |
2709 | rm -f conftest.s* | |
2710 | ||
2711 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
2712 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
2713 | # | |
2714 | # ac_d sets the value in "#define NAME VALUE" lines. | |
2715 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
2716 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
2717 | ac_dC='\3' | |
2718 | ac_dD='%g' | |
2719 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
2720 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
2721 | ac_uB='\([ ]\)%\1#\2define\3' | |
2722 | ac_uC=' ' | |
2723 | ac_uD='\4%g' | |
2724 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
2725 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
2726 | ac_eB='$%\1#\2define\3' | |
2727 | ac_eC=' ' | |
2728 | ac_eD='%g' | |
2729 | ||
2730 | if test "${CONFIG_HEADERS+set}" != set; then | |
2731 | EOF | |
2732 | cat >> $CONFIG_STATUS <<EOF | |
2733 | CONFIG_HEADERS="config.h" | |
2734 | EOF | |
2735 | cat >> $CONFIG_STATUS <<\EOF | |
2736 | fi | |
2737 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
2738 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
2739 | case "$ac_file" in | |
2740 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
2741 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2742 | *) ac_file_in="${ac_file}.in" ;; | |
2743 | esac | |
2744 | ||
2745 | echo creating $ac_file | |
2746 | ||
2747 | rm -f conftest.frag conftest.in conftest.out | |
2748 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
2749 | cat $ac_file_inputs > conftest.in | |
2750 | ||
2751 | EOF | |
2752 | ||
2753 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
2754 | # the proper values into config.h.in to produce config.h. And first: | |
2755 | # Protect against being on the right side of a sed subst in config.status. | |
2756 | # Protect against being in an unquoted here document in config.status. | |
2757 | rm -f conftest.vals | |
2758 | cat > conftest.hdr <<\EOF | |
2759 | s/[\\&%]/\\&/g | |
2760 | s%[\\$`]%\\&%g | |
2761 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
2762 | s%ac_d%ac_u%gp | |
2763 | s%ac_u%ac_e%gp | |
2764 | EOF | |
2765 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
2766 | rm -f conftest.hdr | |
2767 | ||
2768 | # This sed command replaces #undef with comments. This is necessary, for | |
2769 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
2770 | # on some systems where configure will not decide to define it. | |
2771 | cat >> conftest.vals <<\EOF | |
2772 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
2773 | EOF | |
2774 | ||
2775 | # Break up conftest.vals because some shells have a limit on | |
2776 | # the size of here documents, and old seds have small limits too. | |
2777 | ||
2778 | rm -f conftest.tail | |
2779 | while : | |
2780 | do | |
2781 | ac_lines=`grep -c . conftest.vals` | |
2782 | # grep -c gives empty output for an empty file on some AIX systems. | |
2783 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
2784 | # Write a limited-size here document to conftest.frag. | |
2785 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
2786 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
2787 | echo 'CEOF | |
2788 | sed -f conftest.frag conftest.in > conftest.out | |
2789 | rm -f conftest.in | |
2790 | mv conftest.out conftest.in | |
2791 | ' >> $CONFIG_STATUS | |
2792 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
2793 | rm -f conftest.vals | |
2794 | mv conftest.tail conftest.vals | |
2795 | done | |
2796 | rm -f conftest.vals | |
2797 | ||
2798 | cat >> $CONFIG_STATUS <<\EOF | |
2799 | rm -f conftest.frag conftest.h | |
2800 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
2801 | cat conftest.in >> conftest.h | |
2802 | rm -f conftest.in | |
2803 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
2804 | echo "$ac_file is unchanged" | |
2805 | rm -f conftest.h | |
2806 | else | |
2807 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2808 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2809 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2810 | # The file is in a subdirectory. | |
2811 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2812 | fi | |
2813 | rm -f $ac_file | |
2814 | mv conftest.h $ac_file | |
2815 | fi | |
2816 | fi; done | |
2817 | ||
2818 | EOF | |
2819 | ||
2820 | cat >> $CONFIG_STATUS <<EOF | |
2821 | ac_sources="`echo $libc_link_sources`" | |
2822 | ac_dests="`echo $libc_link_dests`" | |
2823 | EOF | |
2824 | ||
2825 | cat >> $CONFIG_STATUS <<\EOF | |
2826 | srcdir=$ac_given_srcdir | |
2827 | while test -n "$ac_sources"; do | |
2828 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
2829 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
2830 | ||
2831 | echo "linking $srcdir/$ac_source to $ac_dest" | |
2832 | ||
2833 | if test ! -r $srcdir/$ac_source; then | |
2834 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
2835 | fi | |
2836 | rm -f $ac_dest | |
2837 | ||
2838 | # Make relative symlinks. | |
2839 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2840 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
2841 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
2842 | # The dest file is in a subdirectory. | |
2843 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
2844 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
2845 | # A "../" for each directory in $ac_dest_dir_suffix. | |
2846 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
2847 | else | |
2848 | ac_dest_dir_suffix= ac_dots= | |
2849 | fi | |
2850 | ||
2851 | case "$srcdir" in | |
2852 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
2853 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
2854 | esac | |
2855 | ||
2856 | # Make a symlink if possible; otherwise try a hard link. | |
2857 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
2858 | ln $srcdir/$ac_source $ac_dest; then : | |
2859 | else | |
2860 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
2861 | fi | |
2862 | done | |
2863 | EOF | |
2864 | cat >> $CONFIG_STATUS <<EOF | |
2865 | echo '$config_vars' >> config.make; test -d bits || mkdir bits | |
2866 | EOF | |
2867 | cat >> $CONFIG_STATUS <<\EOF | |
2868 | ||
2869 | exit 0 | |
2870 | EOF | |
2871 | chmod +x $CONFIG_STATUS | |
2872 | rm -fr confdefs* $ac_clean_files | |
2873 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
2874 | ||
2875 | if test "$no_recursion" != yes; then | |
2876 | ||
2877 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
2878 | ac_sub_configure_args= | |
2879 | ac_prev= | |
2880 | for ac_arg in $ac_configure_args; do | |
2881 | if test -n "$ac_prev"; then | |
2882 | ac_prev= | |
2883 | continue | |
2884 | fi | |
2885 | case "$ac_arg" in | |
2886 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
2887 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
2888 | ac_prev=cache_file ;; | |
2889 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
2890 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
2891 | ;; | |
2892 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
2893 | ac_prev=srcdir ;; | |
2894 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
2895 | ;; | |
2896 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
2897 | esac | |
2898 | done | |
2899 | ||
2900 | for ac_config_dir in $add_ons; do | |
2901 | ||
2902 | # Do not complain, so a configure script can configure whichever | |
2903 | # parts of a large source tree are present. | |
2904 | if test ! -d $srcdir/$ac_config_dir; then | |
2905 | continue | |
2906 | fi | |
2907 | ||
2908 | echo configuring in $ac_config_dir | |
2909 | ||
2910 | case "$srcdir" in | |
2911 | .) ;; | |
2912 | *) | |
2913 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
2914 | else | |
2915 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
2916 | fi | |
2917 | ;; | |
2918 | esac | |
2919 | ||
2920 | ac_popdir=`pwd` | |
2921 | cd $ac_config_dir | |
2922 | ||
2923 | # A "../" for each directory in /$ac_config_dir. | |
2924 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2925 | ||
2926 | case "$srcdir" in | |
2927 | .) # No --srcdir option. We are building in place. | |
2928 | ac_sub_srcdir=$srcdir ;; | |
2929 | /*) # Absolute path. | |
2930 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2931 | *) # Relative path. | |
2932 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
2933 | esac | |
2934 | ||
2935 | # Check for guested configure; otherwise get Cygnus style configure. | |
2936 | if test -f $ac_sub_srcdir/configure; then | |
2937 | ac_sub_configure=$ac_sub_srcdir/configure | |
2938 | elif test -f $ac_sub_srcdir/configure.in; then | |
2939 | ac_sub_configure=$ac_configure | |
2940 | else | |
2941 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
2942 | ac_sub_configure= | |
2943 | fi | |
2944 | ||
2945 | # The recursion is here. | |
2946 | if test -n "$ac_sub_configure"; then | |
2947 | ||
2948 | # Make the cache file name correct relative to the subdirectory. | |
2949 | case "$cache_file" in | |
2950 | /*) ac_sub_cache_file=$cache_file ;; | |
2951 | *) # Relative path. | |
2952 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
2953 | esac | |
2954 | case "$ac_given_INSTALL" in | |
2955 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2956 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2957 | esac | |
2958 | ||
2959 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
2960 | # The eval makes quoting arguments work. | |
2961 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
2962 | then : | |
2963 | else | |
2964 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
2965 | fi | |
2966 | fi | |
2967 | ||
2968 | cd $ac_popdir | |
2969 | done | |
2970 | fi | |
2971 |