]>
Commit | Line | Data |
---|---|---|
cd6ede75 UD |
1 | #! /bin/sh |
2 | ||
3 | # From configure.in CVSid | |
4 | ||
5 | ||
6 | ||
7 | ||
650425ce UD |
8 | |
9 | ||
10 | ||
11 | ||
63bda0c1 UD |
12 | |
13 | ||
cd6ede75 | 14 | # Guess values for system-dependent variables and create Makefiles. |
a808d541 | 15 | # Generated automatically using autoconf version 2.13 |
cd6ede75 UD |
16 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
17 | # | |
18 | # This configure script is free software; the Free Software Foundation | |
19 | # gives unlimited permission to copy, distribute and modify it. | |
20 | ||
21 | # Defaults: | |
22 | ac_help= | |
23 | ac_default_prefix=/usr/local | |
24 | # Any additions from configure.in: | |
25 | ac_help="$ac_help | |
26 | --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)" | |
c8f3e6db UD |
27 | ac_help="$ac_help |
28 | --with-gd=DIR find libgd include dir and library with prefix DIR" | |
e41db95b UD |
29 | ac_help="$ac_help |
30 | --with-gd-include=DIR find libgd include files in DIR" | |
31 | ac_help="$ac_help | |
32 | --with-gd-lib=DIR find libgd library files in DIR" | |
cd6ede75 UD |
33 | ac_help="$ac_help |
34 | --with-fp if using floating-point hardware [default=yes]" | |
35 | ac_help="$ac_help | |
a5a0310d | 36 | --with-binutils=PATH specify location of binutils (as and ld)" |
cd6ede75 UD |
37 | ac_help="$ac_help |
38 | --with-elf if using the ELF object format" | |
d67281a7 | 39 | ac_help="$ac_help |
4442d7e8 | 40 | --without-cvs if CVS should not be used" |
3c720987 UD |
41 | ac_help="$ac_help |
42 | --with-headers=PATH location of system headers to use | |
43 | [e.g. /usr/src/linux/include] | |
44 | [default=compiler default]" | |
cd6ede75 UD |
45 | ac_help="$ac_help |
46 | --enable-libio build in GNU libio instead of GNU stdio" | |
47 | ac_help="$ac_help | |
48 | --disable-sanity-checks really do not use threads (should not be used | |
49 | except in special situations) [default=yes]" | |
50 | ac_help="$ac_help | |
51 | --enable-shared build shared library [default=yes if GNU ld & ELF]" | |
52 | ac_help="$ac_help | |
53 | --enable-profile build profiled library [default=yes]" | |
54 | ac_help="$ac_help | |
55 | --enable-omitfp build undebuggable optimized library [default=no]" | |
56 | ac_help="$ac_help | |
57 | --enable-bounded build with runtime bounds checking [default=no]" | |
650425ce UD |
58 | ac_help="$ac_help |
59 | --disable-versioning do not include versioning information in the | |
60 | library objects [default=yes if supported]" | |
cd6ede75 | 61 | ac_help="$ac_help |
73237de3 UD |
62 | --enable-add-ons[=DIR1,DIR2]... |
63 | configure and build add-ons in DIR1,DIR2,... | |
64 | search for add-ons if no parameter given" | |
cd6ede75 UD |
65 | ac_help="$ac_help |
66 | --enable-static-nss build static NSS modules [default=no]" | |
73237de3 | 67 | ac_help="$ac_help |
310b3460 | 68 | --disable-force-install don't force installation of files from this package, |
73237de3 | 69 | even if they are older than the installed files" |
958f238f | 70 | ac_help="$ac_help |
4a307a98 | 71 | --enable-kernel=VERSION compile for compatibility with kernel not older |
958f238f | 72 | than VERSION" |
6cc7d725 UD |
73 | ac_help="$ac_help |
74 | --enable-all-warnings enable all useful warnings gcc can issue" | |
cd6ede75 UD |
75 | |
76 | # Initialize some variables set by options. | |
77 | # The variables have the same names as the options, with | |
78 | # dashes changed to underlines. | |
79 | build=NONE | |
80 | cache_file=./config.cache | |
81 | exec_prefix=NONE | |
82 | host=NONE | |
83 | no_create= | |
84 | nonopt=NONE | |
85 | no_recursion= | |
86 | prefix=NONE | |
87 | program_prefix=NONE | |
88 | program_suffix=NONE | |
89 | program_transform_name=s,x,x, | |
90 | silent= | |
91 | site= | |
92 | srcdir= | |
93 | target=NONE | |
94 | verbose= | |
95 | x_includes=NONE | |
96 | x_libraries=NONE | |
97 | bindir='${exec_prefix}/bin' | |
98 | sbindir='${exec_prefix}/sbin' | |
99 | libexecdir='${exec_prefix}/libexec' | |
100 | datadir='${prefix}/share' | |
101 | sysconfdir='${prefix}/etc' | |
102 | sharedstatedir='${prefix}/com' | |
103 | localstatedir='${prefix}/var' | |
104 | libdir='${exec_prefix}/lib' | |
105 | includedir='${prefix}/include' | |
106 | oldincludedir='/usr/include' | |
107 | infodir='${prefix}/info' | |
108 | mandir='${prefix}/man' | |
109 | ||
110 | # Initialize some other variables. | |
111 | subdirs= | |
112 | MFLAGS= MAKEFLAGS= | |
5c2a0669 | 113 | SHELL=${CONFIG_SHELL-/bin/sh} |
cd6ede75 UD |
114 | # Maximum number of lines to put in a shell here document. |
115 | ac_max_here_lines=12 | |
116 | ||
117 | ac_prev= | |
118 | for ac_option | |
119 | do | |
120 | ||
121 | # If the previous option needs an argument, assign it. | |
122 | if test -n "$ac_prev"; then | |
123 | eval "$ac_prev=\$ac_option" | |
124 | ac_prev= | |
125 | continue | |
126 | fi | |
127 | ||
128 | case "$ac_option" in | |
129 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
130 | *) ac_optarg= ;; | |
131 | esac | |
132 | ||
133 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
134 | ||
135 | case "$ac_option" in | |
136 | ||
137 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
138 | ac_prev=bindir ;; | |
139 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
140 | bindir="$ac_optarg" ;; | |
141 | ||
142 | -build | --build | --buil | --bui | --bu) | |
143 | ac_prev=build ;; | |
144 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
145 | build="$ac_optarg" ;; | |
146 | ||
147 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
148 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
149 | ac_prev=cache_file ;; | |
150 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
151 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
152 | cache_file="$ac_optarg" ;; | |
153 | ||
154 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
155 | ac_prev=datadir ;; | |
156 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
157 | | --da=*) | |
158 | datadir="$ac_optarg" ;; | |
159 | ||
160 | -disable-* | --disable-*) | |
161 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
162 | # Reject names that are not valid shell variable names. | |
163 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
164 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
165 | fi | |
166 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
167 | eval "enable_${ac_feature}=no" ;; | |
168 | ||
169 | -enable-* | --enable-*) | |
170 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
171 | # Reject names that are not valid shell variable names. | |
172 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
173 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
174 | fi | |
175 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
176 | case "$ac_option" in | |
177 | *=*) ;; | |
178 | *) ac_optarg=yes ;; | |
179 | esac | |
180 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
181 | ||
182 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
183 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
184 | | --exec | --exe | --ex) | |
185 | ac_prev=exec_prefix ;; | |
186 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
187 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
188 | | --exec=* | --exe=* | --ex=*) | |
189 | exec_prefix="$ac_optarg" ;; | |
190 | ||
191 | -gas | --gas | --ga | --g) | |
192 | # Obsolete; use --with-gas. | |
193 | with_gas=yes ;; | |
194 | ||
195 | -help | --help | --hel | --he) | |
196 | # Omit some internal or obsolete options to make the list less imposing. | |
197 | # This message is too long to be a string in the A/UX 3.1 sh. | |
198 | cat << EOF | |
199 | Usage: configure [options] [host] | |
200 | Options: [defaults in brackets after descriptions] | |
201 | Configuration: | |
202 | --cache-file=FILE cache test results in FILE | |
203 | --help print this message | |
204 | --no-create do not create output files | |
205 | --quiet, --silent do not print \`checking...' messages | |
206 | --version print the version of autoconf that created configure | |
207 | Directory and file names: | |
208 | --prefix=PREFIX install architecture-independent files in PREFIX | |
209 | [$ac_default_prefix] | |
210 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
211 | [same as prefix] | |
212 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
213 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
214 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
215 | --datadir=DIR read-only architecture-independent data in DIR | |
216 | [PREFIX/share] | |
217 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
218 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
219 | [PREFIX/com] | |
220 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
221 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
222 | --includedir=DIR C header files in DIR [PREFIX/include] | |
223 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
224 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
225 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
226 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
227 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
228 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
229 | --program-transform-name=PROGRAM | |
230 | run sed PROGRAM on installed program names | |
231 | EOF | |
232 | cat << EOF | |
233 | Host type: | |
234 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
235 | --host=HOST configure for HOST [guessed] | |
236 | --target=TARGET configure for TARGET [TARGET=HOST] | |
237 | Features and packages: | |
238 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
239 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
240 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
241 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
242 | --x-includes=DIR X include files are in DIR | |
243 | --x-libraries=DIR X library files are in DIR | |
244 | EOF | |
245 | if test -n "$ac_help"; then | |
246 | echo "--enable and --with options recognized:$ac_help" | |
247 | fi | |
248 | exit 0 ;; | |
249 | ||
250 | -host | --host | --hos | --ho) | |
251 | ac_prev=host ;; | |
252 | -host=* | --host=* | --hos=* | --ho=*) | |
253 | host="$ac_optarg" ;; | |
254 | ||
255 | -includedir | --includedir | --includedi | --included | --include \ | |
256 | | --includ | --inclu | --incl | --inc) | |
257 | ac_prev=includedir ;; | |
258 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
259 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
260 | includedir="$ac_optarg" ;; | |
261 | ||
262 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
263 | ac_prev=infodir ;; | |
264 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
265 | infodir="$ac_optarg" ;; | |
266 | ||
267 | -libdir | --libdir | --libdi | --libd) | |
268 | ac_prev=libdir ;; | |
269 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
270 | libdir="$ac_optarg" ;; | |
271 | ||
272 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
273 | | --libexe | --libex | --libe) | |
274 | ac_prev=libexecdir ;; | |
275 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
276 | | --libexe=* | --libex=* | --libe=*) | |
277 | libexecdir="$ac_optarg" ;; | |
278 | ||
279 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
280 | | --localstate | --localstat | --localsta | --localst \ | |
281 | | --locals | --local | --loca | --loc | --lo) | |
282 | ac_prev=localstatedir ;; | |
283 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
284 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
285 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
286 | localstatedir="$ac_optarg" ;; | |
287 | ||
288 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
289 | ac_prev=mandir ;; | |
290 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
291 | mandir="$ac_optarg" ;; | |
292 | ||
293 | -nfp | --nfp | --nf) | |
294 | # Obsolete; use --without-fp. | |
295 | with_fp=no ;; | |
296 | ||
297 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
298 | | --no-cr | --no-c) | |
299 | no_create=yes ;; | |
300 | ||
301 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
302 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
303 | no_recursion=yes ;; | |
304 | ||
305 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
306 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
307 | | --oldin | --oldi | --old | --ol | --o) | |
308 | ac_prev=oldincludedir ;; | |
309 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
310 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
311 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
312 | oldincludedir="$ac_optarg" ;; | |
313 | ||
314 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
315 | ac_prev=prefix ;; | |
316 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
317 | prefix="$ac_optarg" ;; | |
318 | ||
319 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
320 | | --program-pre | --program-pr | --program-p) | |
321 | ac_prev=program_prefix ;; | |
322 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
323 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
324 | program_prefix="$ac_optarg" ;; | |
325 | ||
326 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
327 | | --program-suf | --program-su | --program-s) | |
328 | ac_prev=program_suffix ;; | |
329 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
330 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
331 | program_suffix="$ac_optarg" ;; | |
332 | ||
333 | -program-transform-name | --program-transform-name \ | |
334 | | --program-transform-nam | --program-transform-na \ | |
335 | | --program-transform-n | --program-transform- \ | |
336 | | --program-transform | --program-transfor \ | |
337 | | --program-transfo | --program-transf \ | |
338 | | --program-trans | --program-tran \ | |
339 | | --progr-tra | --program-tr | --program-t) | |
340 | ac_prev=program_transform_name ;; | |
341 | -program-transform-name=* | --program-transform-name=* \ | |
342 | | --program-transform-nam=* | --program-transform-na=* \ | |
343 | | --program-transform-n=* | --program-transform-=* \ | |
344 | | --program-transform=* | --program-transfor=* \ | |
345 | | --program-transfo=* | --program-transf=* \ | |
346 | | --program-trans=* | --program-tran=* \ | |
347 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
348 | program_transform_name="$ac_optarg" ;; | |
349 | ||
350 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
351 | | -silent | --silent | --silen | --sile | --sil) | |
352 | silent=yes ;; | |
353 | ||
354 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
355 | ac_prev=sbindir ;; | |
356 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
357 | | --sbi=* | --sb=*) | |
358 | sbindir="$ac_optarg" ;; | |
359 | ||
360 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
361 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
362 | | --sharedst | --shareds | --shared | --share | --shar \ | |
363 | | --sha | --sh) | |
364 | ac_prev=sharedstatedir ;; | |
365 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
366 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
367 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
368 | | --sha=* | --sh=*) | |
369 | sharedstatedir="$ac_optarg" ;; | |
370 | ||
371 | -site | --site | --sit) | |
372 | ac_prev=site ;; | |
373 | -site=* | --site=* | --sit=*) | |
374 | site="$ac_optarg" ;; | |
375 | ||
376 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
377 | ac_prev=srcdir ;; | |
378 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
379 | srcdir="$ac_optarg" ;; | |
380 | ||
381 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
382 | | --syscon | --sysco | --sysc | --sys | --sy) | |
383 | ac_prev=sysconfdir ;; | |
384 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
385 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
386 | sysconfdir="$ac_optarg" ;; | |
387 | ||
388 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
389 | ac_prev=target ;; | |
390 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
391 | target="$ac_optarg" ;; | |
392 | ||
393 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
394 | verbose=yes ;; | |
395 | ||
396 | -version | --version | --versio | --versi | --vers) | |
a808d541 | 397 | echo "configure generated by autoconf version 2.13" |
cd6ede75 UD |
398 | exit 0 ;; |
399 | ||
400 | -with-* | --with-*) | |
401 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
402 | # Reject names that are not valid shell variable names. | |
403 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
404 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
405 | fi | |
406 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
407 | case "$ac_option" in | |
408 | *=*) ;; | |
409 | *) ac_optarg=yes ;; | |
410 | esac | |
411 | eval "with_${ac_package}='$ac_optarg'" ;; | |
412 | ||
413 | -without-* | --without-*) | |
414 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
415 | # Reject names that are not valid shell variable names. | |
416 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
417 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
418 | fi | |
419 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
420 | eval "with_${ac_package}=no" ;; | |
421 | ||
422 | --x) | |
423 | # Obsolete; use --with-x. | |
424 | with_x=yes ;; | |
425 | ||
426 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
427 | | --x-incl | --x-inc | --x-in | --x-i) | |
428 | ac_prev=x_includes ;; | |
429 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
430 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
431 | x_includes="$ac_optarg" ;; | |
432 | ||
433 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
434 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
435 | ac_prev=x_libraries ;; | |
436 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
437 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
438 | x_libraries="$ac_optarg" ;; | |
439 | ||
440 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
441 | ;; | |
442 | ||
443 | *) | |
444 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
445 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
446 | fi | |
447 | if test "x$nonopt" != xNONE; then | |
448 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
449 | fi | |
450 | nonopt="$ac_option" | |
451 | ;; | |
452 | ||
453 | esac | |
454 | done | |
455 | ||
456 | if test -n "$ac_prev"; then | |
457 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
458 | fi | |
459 | ||
460 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
461 | ||
462 | # File descriptor usage: | |
463 | # 0 standard input | |
464 | # 1 file creation | |
465 | # 2 errors and warnings | |
466 | # 3 some systems may open it to /dev/tty | |
467 | # 4 used on the Kubota Titan | |
468 | # 6 checking for... messages and results | |
469 | # 5 compiler messages saved in config.log | |
470 | if test "$silent" = yes; then | |
471 | exec 6>/dev/null | |
472 | else | |
473 | exec 6>&1 | |
474 | fi | |
475 | exec 5>./config.log | |
476 | ||
477 | echo "\ | |
478 | This file contains any messages produced by compilers while | |
479 | running configure, to aid debugging if configure makes a mistake. | |
480 | " 1>&5 | |
481 | ||
482 | # Strip out --no-create and --no-recursion so they do not pile up. | |
483 | # Also quote any args containing shell metacharacters. | |
484 | ac_configure_args= | |
485 | for ac_arg | |
486 | do | |
487 | case "$ac_arg" in | |
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c) ;; | |
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
492 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
493 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
494 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
495 | esac | |
496 | done | |
497 | ||
498 | # NLS nuisances. | |
499 | # Only set these to C if already set. These must not be set unconditionally | |
500 | # because not all systems understand e.g. LANG=C (notably SCO). | |
501 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
502 | # Non-C LC_CTYPE values break the ctype check. | |
503 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
504 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
505 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
506 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
507 | ||
508 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
509 | rm -rf conftest* confdefs.h | |
510 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
511 | echo > confdefs.h | |
512 | ||
513 | # A filename unique to this package, relative to the directory that | |
514 | # configure is in, which we can look for to find out if srcdir is correct. | |
515 | ac_unique_file=include/features.h | |
516 | ||
517 | # Find the source files, if location was not specified. | |
518 | if test -z "$srcdir"; then | |
519 | ac_srcdir_defaulted=yes | |
520 | # Try the directory containing this script, then its parent. | |
521 | ac_prog=$0 | |
522 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
523 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
524 | srcdir=$ac_confdir | |
525 | if test ! -r $srcdir/$ac_unique_file; then | |
526 | srcdir=.. | |
527 | fi | |
528 | else | |
529 | ac_srcdir_defaulted=no | |
530 | fi | |
531 | if test ! -r $srcdir/$ac_unique_file; then | |
532 | if test "$ac_srcdir_defaulted" = yes; then | |
533 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
534 | else | |
535 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
536 | fi | |
537 | fi | |
538 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
539 | ||
540 | # Prefer explicitly selected file to automatically selected ones. | |
541 | if test -z "$CONFIG_SITE"; then | |
542 | if test "x$prefix" != xNONE; then | |
543 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
544 | else | |
545 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
546 | fi | |
547 | fi | |
548 | for ac_site_file in $CONFIG_SITE; do | |
549 | if test -r "$ac_site_file"; then | |
550 | echo "loading site script $ac_site_file" | |
551 | . "$ac_site_file" | |
552 | fi | |
553 | done | |
554 | ||
555 | if test -r "$cache_file"; then | |
556 | echo "loading cache $cache_file" | |
a808d541 | 557 | . $cache_file |
cd6ede75 UD |
558 | else |
559 | echo "creating cache $cache_file" | |
560 | > $cache_file | |
561 | fi | |
562 | ||
563 | ac_ext=c | |
564 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
565 | ac_cpp='$CPP $CPPFLAGS' | |
566 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5c2a0669 | 567 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
cd6ede75 UD |
568 | cross_compiling=$ac_cv_prog_cc_cross |
569 | ||
5c2a0669 UD |
570 | ac_exeext= |
571 | ac_objext=o | |
cd6ede75 UD |
572 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
573 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
574 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
575 | ac_n= ac_c=' | |
576 | ' ac_t=' ' | |
577 | else | |
578 | ac_n=-n ac_c= ac_t= | |
579 | fi | |
580 | else | |
581 | ac_n= ac_c='\c' ac_t= | |
582 | fi | |
583 | ||
63bda0c1 UD |
584 | if test -r /vmunix; then |
585 | kernel_id=`strings /vmunix | grep UNIX` | |
586 | elif test -r /dynix; then | |
587 | kernel_id=`strings /dynix | grep DYNIX` | |
588 | else | |
589 | kernel_id= | |
590 | fi | |
591 | ||
cd6ede75 UD |
592 | |
593 | ||
444518fe UD |
594 | ac_aux_dir= |
595 | for ac_dir in scripts $srcdir/scripts; do | |
596 | if test -f $ac_dir/install-sh; then | |
597 | ac_aux_dir=$ac_dir | |
598 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
599 | break | |
600 | elif test -f $ac_dir/install.sh; then | |
601 | ac_aux_dir=$ac_dir | |
602 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
603 | break | |
604 | fi | |
605 | done | |
606 | if test -z "$ac_aux_dir"; then | |
607 | { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; } | |
608 | fi | |
a808d541 UD |
609 | ac_config_guess=$ac_aux_dir/config.guess |
610 | ac_config_sub=$ac_aux_dir/config.sub | |
611 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
444518fe | 612 | |
cd6ede75 UD |
613 | |
614 | # This will get text that should go into config.make. | |
615 | config_vars= | |
616 | ||
617 | # Check for a --with-gmp argument and set gmp-srcdir in config.make. | |
618 | # Check whether --with-gmp or --without-gmp was given. | |
619 | if test "${with_gmp+set}" = set; then | |
620 | withval="$with_gmp" | |
621 | case "$with_gmp" in | |
622 | yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;; | |
623 | ''|no) ;; | |
624 | *) config_vars="$config_vars | |
625 | gmp-srcdir = $withval" ;; | |
626 | esac | |
627 | ||
628 | fi | |
629 | ||
c8f3e6db UD |
630 | # Check for a --with-gd argument and set libgd-LDFLAGS in config.make. |
631 | # Check whether --with-gd or --without-gd was given. | |
632 | if test "${with_gd+set}" = set; then | |
633 | withval="$with_gd" | |
634 | case "$with_gd" in | |
e41db95b UD |
635 | yes|''|no) ;; |
636 | *) libgd_include="-I$withval/include" | |
c8f3e6db UD |
637 | libgd_ldflags="-L$withval/lib" ;; |
638 | esac | |
639 | ||
640 | fi | |
641 | ||
e41db95b UD |
642 | # Check whether --with-gd-include or --without-gd-include was given. |
643 | if test "${with_gd_include+set}" = set; then | |
644 | withval="$with_gd_include" | |
645 | case "$with_gd_include" in | |
646 | ''|no) ;; | |
647 | *) libgd_include="-I$withval" ;; | |
648 | esac | |
649 | ||
650 | fi | |
651 | ||
652 | # Check whether --with-gd-lib or --without-gd-lib was given. | |
653 | if test "${with_gd_lib+set}" = set; then | |
654 | withval="$with_gd_lib" | |
655 | case "$with_gd_lib" in | |
656 | ''|no) ;; | |
657 | *) libgd_ldflags="-L$withval" ;; | |
658 | esac | |
659 | ||
660 | fi | |
661 | ||
662 | ||
663 | if test -n "$libgd_include"; then | |
664 | config_vars="$config_vars | |
cf90163d | 665 | CFLAGS-memusagestat.c = $libgd_include" |
e41db95b UD |
666 | fi |
667 | if test -n "$libgd_ldflags"; then | |
668 | config_vars="$config_vars | |
669 | libgd-LDFLAGS = $libgd_ldflags" | |
670 | fi | |
cd6ede75 UD |
671 | |
672 | # Check whether --with-fp or --without-fp was given. | |
673 | if test "${with_fp+set}" = set; then | |
674 | withval="$with_fp" | |
675 | with_fp=$withval | |
676 | else | |
677 | with_fp=yes | |
678 | fi | |
679 | ||
650425ce UD |
680 | # Check whether --with-binutils or --without-binutils was given. |
681 | if test "${with_binutils+set}" = set; then | |
682 | withval="$with_binutils" | |
a5a0310d UD |
683 | path_binutils=$withval |
684 | else | |
650425ce | 685 | path_binutils='' |
cd6ede75 UD |
686 | fi |
687 | ||
cd6ede75 UD |
688 | # Check whether --with-elf or --without-elf was given. |
689 | if test "${with_elf+set}" = set; then | |
690 | withval="$with_elf" | |
691 | elf=$withval | |
692 | else | |
693 | elf=no | |
694 | fi | |
695 | ||
d67281a7 UD |
696 | # Check whether --with-cvs or --without-cvs was given. |
697 | if test "${with_cvs+set}" = set; then | |
698 | withval="$with_cvs" | |
699 | with_cvs=$withval | |
700 | else | |
701 | with_cvs=yes | |
702 | fi | |
703 | ||
6b3f2b3d UD |
704 | if test "$with_cvs" = yes; then |
705 | if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null | |
706 | then | |
707 | with_cvs=no | |
708 | fi | |
4442d7e8 | 709 | fi |
d67281a7 | 710 | |
cd6ede75 | 711 | |
3c720987 UD |
712 | # Check whether --with-headers or --without-headers was given. |
713 | if test "${with_headers+set}" = set; then | |
714 | withval="$with_headers" | |
715 | sysheaders=$withval | |
716 | else | |
717 | sysheaders='' | |
718 | fi | |
719 | ||
720 | ||
cd6ede75 UD |
721 | # Check whether --enable-libio or --disable-libio was given. |
722 | if test "${enable_libio+set}" = set; then | |
723 | enableval="$enable_libio" | |
724 | if test $enableval = yes; then | |
725 | stdio=libio | |
726 | else | |
727 | stdio=stdio | |
728 | fi | |
729 | else | |
730 | stdio=default | |
731 | fi | |
732 | ||
733 | ||
734 | # Check whether --enable-sanity-checks or --disable-sanity-checks was given. | |
735 | if test "${enable_sanity_checks+set}" = set; then | |
736 | enableval="$enable_sanity_checks" | |
737 | enable_sanity=$enableval | |
738 | else | |
739 | enable_sanity=yes | |
740 | fi | |
741 | ||
742 | ||
5c2a0669 | 743 | static=yes |
cd6ede75 UD |
744 | # Check whether --enable-shared or --disable-shared was given. |
745 | if test "${enable_shared+set}" = set; then | |
746 | enableval="$enable_shared" | |
747 | shared=$enableval | |
748 | else | |
749 | shared=default | |
750 | fi | |
751 | ||
752 | # Check whether --enable-profile or --disable-profile was given. | |
753 | if test "${enable_profile+set}" = set; then | |
754 | enableval="$enable_profile" | |
755 | profile=$enableval | |
756 | else | |
757 | profile=yes | |
758 | fi | |
759 | ||
760 | # Check whether --enable-omitfp or --disable-omitfp was given. | |
761 | if test "${enable_omitfp+set}" = set; then | |
762 | enableval="$enable_omitfp" | |
763 | omitfp=$enableval | |
764 | else | |
765 | omitfp=no | |
766 | fi | |
767 | ||
768 | # Check whether --enable-bounded or --disable-bounded was given. | |
769 | if test "${enable_bounded+set}" = set; then | |
770 | enableval="$enable_bounded" | |
771 | bounded=$enableval | |
772 | else | |
773 | bounded=no | |
774 | fi | |
775 | ||
650425ce UD |
776 | # Check whether --enable-versioning or --disable-versioning was given. |
777 | if test "${enable_versioning+set}" = set; then | |
778 | enableval="$enable_versioning" | |
779 | enable_versioning=$enableval | |
780 | else | |
781 | enable_versioning=yes | |
782 | fi | |
783 | ||
cd6ede75 UD |
784 | |
785 | # Check whether --enable-add-ons or --disable-add-ons was given. | |
786 | if test "${enable_add_ons+set}" = set; then | |
787 | enableval="$enable_add_ons" | |
61952351 | 788 | case "$enableval" in |
9c4c0024 UD |
789 | yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'` |
790 | test "$add_ons" = "*" && add_ons= ;; | |
61952351 UD |
791 | *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;; |
792 | esac | |
cd6ede75 UD |
793 | else |
794 | add_ons= | |
795 | fi | |
796 | ||
61952351 | 797 | |
cd6ede75 UD |
798 | subdirs="$add_ons" |
799 | ||
800 | add_ons_pfx= | |
801 | if test x"$add_ons" != x; then | |
802 | for f in $add_ons; do | |
af6f3906 UD |
803 | # Test whether such a subdir really exists. |
804 | if test -d $srcdir/$f; then | |
805 | add_ons_pfx="$add_ons_pfx $f/" | |
806 | else | |
807 | { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; } | |
808 | fi | |
cd6ede75 UD |
809 | done |
810 | fi | |
811 | ||
812 | # Check whether --enable-static-nss or --disable-static-nss was given. | |
813 | if test "${enable_static_nss+set}" = set; then | |
814 | enableval="$enable_static_nss" | |
815 | static_nss=$enableval | |
816 | else | |
817 | static_nss=no | |
818 | fi | |
819 | ||
820 | if test x"$static_nss" = xyes; then | |
821 | cat >> confdefs.h <<\EOF | |
822 | #define DO_STATIC_NSS 1 | |
823 | EOF | |
824 | ||
825 | fi | |
826 | ||
73237de3 UD |
827 | # Check whether --enable-force-install or --disable-force-install was given. |
828 | if test "${enable_force_install+set}" = set; then | |
829 | enableval="$enable_force_install" | |
830 | force_install=$enableval | |
831 | else | |
832 | force_install=yes | |
833 | fi | |
834 | ||
835 | ||
836 | ||
958f238f UD |
837 | # Check whether --enable-kernel or --disable-kernel was given. |
838 | if test "${enable_kernel+set}" = set; then | |
839 | enableval="$enable_kernel" | |
840 | minimum_kernel=$enableval | |
cd6ede75 UD |
841 | fi |
842 | ||
654de60c UD |
843 | if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then |
844 | # Better nothing than this. | |
845 | minimum_kernel="" | |
78bba25c UD |
846 | else |
847 | if test "$minimum_kernel" = current; then | |
848 | minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel= | |
849 | fi | |
654de60c | 850 | fi |
958f238f | 851 | |
6cc7d725 UD |
852 | # Check whether --enable-all-warnings or --disable-all-warnings was given. |
853 | if test "${enable_all_warnings+set}" = set; then | |
854 | enableval="$enable_all_warnings" | |
855 | all_warnings=$enableval | |
856 | fi | |
857 | ||
858 | ||
958f238f | 859 | |
2a068d20 | 860 | |
958f238f | 861 | # Make sure we can run config.sub. |
a808d541 UD |
862 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
863 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
958f238f UD |
864 | fi |
865 | ||
a808d541 | 866 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
6b3f2b3d | 867 | echo "configure:868: checking host system type" >&5 |
958f238f | 868 | |
a808d541 UD |
869 | host_alias=$host |
870 | case "$host_alias" in | |
871 | NONE) | |
872 | case $nonopt in | |
873 | NONE) | |
874 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
875 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
876 | fi ;; | |
877 | *) host_alias=$nonopt ;; | |
878 | esac ;; | |
879 | esac | |
cd6ede75 | 880 | |
a808d541 UD |
881 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
882 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
883 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
884 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
885 | echo "$ac_t""$host" 1>&6 | |
cd6ede75 UD |
886 | |
887 | ||
888 | # The way shlib-versions is used to generate soversions.mk uses a | |
889 | # fairly simplistic model for name recognition that can't distinguish | |
890 | # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os | |
891 | # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can | |
892 | # tell. This doesn't get used much beyond that, so it's fairly safe. | |
893 | case "$host_os" in | |
894 | linux*) | |
895 | ;; | |
896 | gnu*) | |
897 | host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'` | |
898 | ;; | |
899 | esac | |
900 | ||
901 | # We keep the original values in `$config_*' and never modify them, so we | |
902 | # can write them unchanged into config.make. Everything else uses | |
903 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
904 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
905 | ||
0816838f UD |
906 | # Don't allow vendor == "unknown" |
907 | test "$config_vendor" = unknown && config_vendor= | |
908 | config_os="`echo $config_os | sed 's/^unknown-//'`" | |
909 | ||
cd6ede75 UD |
910 | # Some configurations imply other options. |
911 | case "$host_os" in | |
912 | gnu* | linux* | bsd4.4* | netbsd* | freebsd*) | |
913 | # These systems always use GNU tools. | |
914 | gnu_ld=yes gnu_as=yes ;; | |
915 | esac | |
916 | case "$host_os" in | |
917 | # i586-linuxaout is mangled into i586-pc-linux-gnuaout | |
918 | linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*) | |
919 | ;; | |
9a97d1f7 | 920 | gnu* | linux* | sysv4* | solaris2* | irix6*) |
cd6ede75 UD |
921 | # These systems (almost) always use the ELF format. |
922 | elf=yes | |
923 | ;; | |
924 | esac | |
925 | ||
926 | machine=$config_machine | |
927 | vendor=$config_vendor | |
928 | os=$config_os | |
929 | ||
a808d541 UD |
930 | # config.guess on some IBM machines says `rs6000' instead of `powerpc'. |
931 | # Unify this here. | |
932 | if test "$machine" = rs6000; then | |
933 | machine="powerpc" | |
934 | fi | |
935 | ||
7efb9bd1 UD |
936 | ### |
937 | ### I put this here to prevent those annoying emails from people who cannot | |
938 | ### read and try to compile glibc on unsupported platforms. --drepper | |
939 | ### | |
940 | ### By using the undocumented --enable-hacker-mode option for configure | |
941 | ### one can skip this test to make the configuration not fail for unsupported | |
942 | ### platforms. | |
943 | ### | |
944 | if test -z "$enable_hacker_mode"; then | |
945 | case "$machine-$host_os" in | |
f0d8cfd7 | 946 | *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*) |
7efb9bd1 UD |
947 | ;; |
948 | *) | |
949 | echo "*** The GNU C library is currently not available for this platform." | |
950 | echo "*** So far nobody cared to port it and if there is no volunteer it" | |
951 | echo "*** might never happen. So, if you have interest to see glibc on" | |
952 | echo "*** this platform visit" | |
953 | echo "*** http://www.gnu.org/software/libc/porting.html" | |
954 | echo "*** and join the group of porters" | |
955 | exit 1 | |
956 | ;; | |
957 | esac | |
958 | fi | |
959 | ||
cd6ede75 UD |
960 | # Expand the configuration machine name into a subdirectory by architecture |
961 | # type and particular chip. | |
962 | case "$machine" in | |
963 | a29k | am29000) base_machine=a29k machine=a29k ;; | |
964 | alpha*) base_machine=alpha machine=alpha/$machine ;; | |
965 | arm*) base_machine=arm machine=arm/$machine ;; | |
60c96635 UD |
966 | c3[012]) base_machine=cx0 machine=cx0/c30 ;; |
967 | c4[04]) base_machine=cx0 machine=cx0/c40 ;; | |
b15cb495 UD |
968 | hppa*64*) base_machine=hppa machine=hppa/hppa64 ;; |
969 | hppa*) base_machine=hppa machine=hppa/hppa1.1 ;; | |
cd6ede75 | 970 | i[3456]86) base_machine=i386 machine=i386/$machine ;; |
9dfa9a5a | 971 | ia64) base_machine=ia64 machine=ia64 ;; |
cd6ede75 UD |
972 | m680?0) base_machine=m68k machine=m68k/$machine ;; |
973 | m68k) base_machine=m68k machine=m68k/m68020 ;; | |
974 | m88???) base_machine=m88k machine=m88k/$machine ;; | |
975 | m88k) base_machine=m88k machine=m88k/m88100 ;; | |
976 | mips64*) base_machine=mips64 machine=mips/mips64/$machine ;; | |
9a97d1f7 UD |
977 | mips*) base_machine=mips |
978 | case "`uname -m`" in | |
979 | IP22) machine=mips/mips3 ;; | |
e66b6eca | 980 | *) machine=mips/$machine ;; |
9a97d1f7 | 981 | esac ;; |
0da2f50b UD |
982 | sh3*) base_machine=sh machine=sh/sh3 ;; |
983 | sh4*) base_machine=sh machine=sh/sh4 ;; | |
ca34d7a7 UD |
984 | sparc | sparcv[67]) |
985 | base_machine=sparc machine=sparc/sparc32 ;; | |
986 | sparcv8 | supersparc | hypersparc) | |
987 | base_machine=sparc machine=sparc/sparc32/sparcv8 ;; | |
ae6b8730 RH |
988 | sparcv8plus | sparcv8plusa | sparcv9) |
989 | base_machine=sparc machine=sparc/sparc32/sparcv9 ;; | |
ca34d7a7 UD |
990 | sparc64 | ultrasparc) |
991 | base_machine=sparc machine=sparc/sparc64 ;; | |
cd6ede75 UD |
992 | esac |
993 | ||
994 | ||
dfd2257a UD |
995 | if test "$base_machine" = "i386"; then |
996 | cat >> confdefs.h <<\EOF | |
997 | #define USE_REGPARMS 1 | |
998 | EOF | |
999 | ||
1000 | fi | |
1001 | ||
cd6ede75 UD |
1002 | # Compute the list of sysdep directories for this configuration. |
1003 | # This can take a while to compute. | |
1004 | sysdep_dir=$srcdir/sysdeps | |
1005 | echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6 | |
6b3f2b3d | 1006 | echo "configure:1007: checking sysdep dirs" >&5 |
cd6ede75 UD |
1007 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. |
1008 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" | |
1009 | ||
1010 | case "$os" in | |
1011 | gnu*) | |
1012 | base_os=mach/hurd ;; | |
1013 | netbsd* | 386bsd* | freebsd* | bsdi*) | |
1014 | base_os=unix/bsd/bsd4.4 ;; | |
1015 | osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*) | |
1016 | base_os=unix/bsd ;; | |
1017 | sysv* | isc* | esix* | sco* | minix* | irix4* | linux*) | |
1018 | base_os=unix/sysv ;; | |
9a97d1f7 UD |
1019 | irix6*) |
1020 | base_os=unix/sysv/irix6/$os ;; | |
cd6ede75 UD |
1021 | solaris[2-9]*) |
1022 | base_os=unix/sysv/sysv4 ;; | |
908c3d5b UD |
1023 | hpux*) |
1024 | base_os=unix/sysv/hpux/$os ;; | |
f0d8cfd7 UD |
1025 | aix4.3*) |
1026 | base_os=unix/sysv/aix/aix4.3 ;; | |
cd6ede75 UD |
1027 | none) |
1028 | base_os=standalone ;; | |
1029 | *) | |
1030 | base_os='' ;; | |
1031 | esac | |
1032 | ||
1033 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. | |
1034 | tail=$os | |
1035 | ostry=$os | |
1036 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
1037 | ostry="$ostry /$o" | |
1038 | tail=$o | |
1039 | done | |
1040 | o=`echo $tail | sed 's/[0-9]*$//'` | |
1041 | if test $o != $tail; then | |
1042 | ostry="$ostry /$o" | |
1043 | fi | |
1044 | # For linux-gnu, try linux-gnu, then linux. | |
1045 | o=`echo $tail | sed 's/-.*$//'` | |
1046 | if test $o != $tail; then | |
1047 | ostry="$ostry /$o" | |
1048 | fi | |
1049 | ||
1050 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. | |
1051 | base= | |
1052 | tail=$base_os | |
1053 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
1054 | set $b | |
1055 | base="$base /$1" | |
1056 | tail="$2" | |
1057 | done | |
1058 | ||
ae6b8730 | 1059 | # For sparc/sparc32, try sparc/sparc32 and then sparc. |
cd6ede75 UD |
1060 | mach= |
1061 | tail=$machine | |
1062 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
1063 | set $m | |
1064 | # Prepend the machine's FPU directory unless --without-fp. | |
1065 | if test "$with_fp" = yes; then | |
1066 | mach="$mach /$1/fpu" | |
1067 | fi | |
1068 | mach="$mach /$1" | |
1069 | tail="$2" | |
1070 | done | |
1071 | ||
1072 | ||
1073 | # Find what sysdep directories exist. | |
1074 | sysnames= | |
1075 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1076 | for d in $add_ons_pfx ''; do | |
1077 | for b in $base ''; do | |
1078 | for m0 in $mach ''; do | |
1079 | for v in /$vendor ''; do | |
ae828bc6 | 1080 | test "$v" = / && continue |
cd6ede75 | 1081 | for o in /$ostry ''; do |
ae828bc6 | 1082 | test "$o" = / && continue |
cd6ede75 UD |
1083 | for m in $mach ''; do |
1084 | if test "$m0$b$v$o$m"; then | |
1085 | try="${d}sysdeps$m0$b$v$o$m" | |
1086 | test -n "$enable_debug_configure" && | |
1087 | echo "$0 DEBUG: try $try" >&2 | |
9c4c0024 | 1088 | if test -d $srcdir/$try; then |
cd6ede75 UD |
1089 | sysnames="$sysnames $try" |
1090 | { test -n "$o" || test -n "$b"; } && os_used=t | |
1091 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
1092 | fi | |
1093 | fi | |
1094 | done | |
1095 | done | |
1096 | done | |
1097 | done | |
1098 | done | |
1099 | done | |
1100 | IFS="$ac_save_ifs" | |
1101 | ||
1102 | if test -z "$os_used" && test "$os" != none; then | |
1103 | { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; } | |
1104 | fi | |
1105 | if test -z "$machine_used" && test "$machine" != none; then | |
1106 | { echo "configure: error: The $machine is not supported." 1>&2; exit 1; } | |
1107 | fi | |
1108 | ||
1109 | # We have now validated the configuration. | |
1110 | ||
1111 | ||
1112 | # If using ELF, look for an `elf' subdirectory of each machine directory. | |
1113 | # We prepend these rather than inserting them whereever the machine appears | |
1114 | # because things specified by the machine's ELF ABI should override | |
1115 | # OS-specific things, and should always be the same for any OS on the | |
1116 | # machine (otherwise what's the point of an ABI?). | |
1117 | if test "$elf" = yes; then | |
1118 | elf_dirs= | |
1119 | for d in $add_ons_pfx ''; do | |
cd6ede75 | 1120 | for m in $mach; do |
9c4c0024 | 1121 | if test -d $srcdir/${d}sysdeps$m/elf; then |
cd6ede75 UD |
1122 | elf_dirs="$elf_dirs ${d}sysdeps$m/elf" |
1123 | fi | |
1124 | done | |
1125 | done | |
1126 | sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames" | |
1127 | fi | |
1128 | ||
1129 | ||
1130 | # Expand the list of system names into a full list of directories | |
1131 | # from each element's parent name and Implies file (if present). | |
1132 | set $sysnames | |
1133 | names= | |
1134 | while test $# -gt 0; do | |
1135 | name=$1 | |
1136 | shift | |
1137 | ||
1138 | case " $names " in *" $name "*) | |
1139 | # Already in the list. | |
1140 | continue | |
1141 | esac | |
1142 | ||
1143 | # Report each name as we discover it, so there is no long pause in output. | |
1144 | echo $ac_n "$name $ac_c" >&6 | |
1145 | ||
1146 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` | |
1147 | ||
1148 | case $name in | |
1149 | /*) xsrcdir= ;; | |
1150 | *) xsrcdir=$srcdir/ ;; | |
1151 | esac | |
1152 | test -n "$enable_debug_configure" && | |
1153 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
1154 | ||
1155 | if test -f $xsrcdir$name/Implies; then | |
1156 | # Collect more names from the `Implies' file (removing comments). | |
1157 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`" | |
1158 | implied= | |
1159 | for x in $implied_candidate; do | |
1160 | if test -d $xsrcdir$name_base/$x; then | |
1161 | implied="$implied $name_base/$x"; | |
1162 | else | |
1163 | echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2 | |
1164 | fi | |
1165 | done | |
1166 | else | |
1167 | implied= | |
1168 | fi | |
1169 | ||
1170 | # Add NAME to the list of names. | |
1171 | names="$names $name" | |
1172 | ||
1173 | # Find the parent of NAME, using the empty string if it has none. | |
1174 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" | |
1175 | ||
1176 | # Add the names implied by NAME, and NAME's parent (if it has one), to | |
1177 | # the list of names to be processed (the argument list). We prepend the | |
1178 | # implied names to the list and append the parent. We want implied | |
1179 | # directories to come before further directories inferred from the | |
1180 | # configuration components; this ensures that for sysv4, unix/common | |
1181 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
1182 | # after sysv4). | |
1183 | sysnames="`echo $implied $* $parent`" | |
1184 | test -n "$sysnames" && set $sysnames | |
1185 | done | |
1186 | ||
1187 | # Add the default directories. | |
a3a4a74e | 1188 | default_sysnames=sysdeps/generic |
2de7874e | 1189 | if test "$elf" = yes; then |
a3a4a74e | 1190 | default_sysnames="sysdeps/generic/elf $default_sysnames" |
2de7874e | 1191 | fi |
a3a4a74e | 1192 | sysnames="$names $default_sysnames" |
cd6ede75 UD |
1193 | |
1194 | # The other names were emitted during the scan. | |
a3a4a74e | 1195 | echo "$ac_t""$default_sysnames" 1>&6 |
cd6ede75 UD |
1196 | |
1197 | ||
1198 | ### Locate tools. | |
1199 | ||
1200 | # Find a good install program. We prefer a C program (faster), | |
1201 | # so one script is as good as another. But avoid the broken or | |
1202 | # incompatible versions: | |
1203 | # SysV /etc/install, /usr/sbin/install | |
1204 | # SunOS /usr/etc/install | |
1205 | # IRIX /sbin/install | |
1206 | # AIX /bin/install | |
5c2a0669 | 1207 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
cd6ede75 UD |
1208 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1209 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1210 | # ./install, which can be erroneously created by make from ./install.sh. | |
1211 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
6b3f2b3d | 1212 | echo "configure:1213: checking for a BSD compatible install" >&5 |
cd6ede75 | 1213 | if test -z "$INSTALL"; then |
a808d541 | 1214 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
cd6ede75 UD |
1215 | echo $ac_n "(cached) $ac_c" 1>&6 |
1216 | else | |
5c2a0669 | 1217 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
cd6ede75 UD |
1218 | for ac_dir in $PATH; do |
1219 | # Account for people who put trailing slashes in PATH elements. | |
1220 | case "$ac_dir/" in | |
1221 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1222 | *) | |
1223 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5c2a0669 UD |
1224 | # Don't use installbsd from OSF since it installs stuff as root |
1225 | # by default. | |
1226 | for ac_prog in ginstall scoinst install; do | |
cd6ede75 UD |
1227 | if test -f $ac_dir/$ac_prog; then |
1228 | if test $ac_prog = install && | |
1229 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1230 | # AIX install. It has an incompatible calling convention. | |
cd6ede75 UD |
1231 | : |
1232 | else | |
1233 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1234 | break 2 | |
1235 | fi | |
1236 | fi | |
1237 | done | |
1238 | ;; | |
1239 | esac | |
1240 | done | |
1241 | IFS="$ac_save_IFS" | |
1242 | ||
1243 | fi | |
1244 | if test "${ac_cv_path_install+set}" = set; then | |
1245 | INSTALL="$ac_cv_path_install" | |
1246 | else | |
1247 | # As a last resort, use the slow shell script. We don't cache a | |
1248 | # path for INSTALL within a source directory, because that will | |
1249 | # break other packages using the cache if that directory is | |
1250 | # removed, or if the path is relative. | |
1251 | INSTALL="$ac_install_sh" | |
1252 | fi | |
1253 | fi | |
1254 | echo "$ac_t""$INSTALL" 1>&6 | |
1255 | ||
1256 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1257 | # It thinks the first close brace ends the variable substitution. | |
1258 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1259 | ||
a808d541 | 1260 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
5c2a0669 | 1261 | |
cd6ede75 UD |
1262 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1263 | ||
ed9c47d9 | 1264 | if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then |
cd6ede75 | 1265 | # The makefiles need to use a different form to find it in $srcdir. |
ed9c47d9 | 1266 | INSTALL='\$(..)./scripts/install-sh -c' |
cd6ede75 UD |
1267 | fi |
1268 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
6b3f2b3d | 1269 | echo "configure:1270: checking whether ln -s works" >&5 |
a808d541 | 1270 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
cd6ede75 UD |
1271 | echo $ac_n "(cached) $ac_c" 1>&6 |
1272 | else | |
1273 | rm -f conftestdata | |
1274 | if ln -s X conftestdata 2>/dev/null | |
1275 | then | |
1276 | rm -f conftestdata | |
1277 | ac_cv_prog_LN_S="ln -s" | |
1278 | else | |
1279 | ac_cv_prog_LN_S=ln | |
1280 | fi | |
1281 | fi | |
1282 | LN_S="$ac_cv_prog_LN_S" | |
1283 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1284 | echo "$ac_t""yes" 1>&6 | |
1285 | else | |
1286 | echo "$ac_t""no" 1>&6 | |
1287 | fi | |
1288 | ||
63bda0c1 | 1289 | |
c218729d UD |
1290 | # We need the physical current working directory. We cannot use the |
1291 | # "pwd -P" shell builtin since that's not portable. Instead we try to | |
1292 | # find a pwd binary. Note that assigning to the PWD environment | |
1293 | # variable might have some interesting side effects, so we don't do | |
1294 | # that. | |
1295 | # Extract the first word of "pwd", so it can be a program name with args. | |
1296 | set dummy pwd; ac_word=$2 | |
1297 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 1298 | echo "configure:1299: checking for $ac_word" >&5 |
c218729d UD |
1299 | if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then |
1300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1301 | else | |
1302 | case "$PWD_P" in | |
1303 | /*) | |
1304 | ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path. | |
1305 | ;; | |
1306 | ?:/*) | |
1307 | ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a dos path. | |
1308 | ;; | |
1309 | *) | |
1310 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1311 | ac_dummy="$PATH" | |
1312 | for ac_dir in $ac_dummy; do | |
1313 | test -z "$ac_dir" && ac_dir=. | |
1314 | if test -f $ac_dir/$ac_word; then | |
1315 | ac_cv_path_PWD_P="$ac_dir/$ac_word" | |
1316 | break | |
1317 | fi | |
1318 | done | |
1319 | IFS="$ac_save_ifs" | |
1320 | test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no" | |
1321 | ;; | |
1322 | esac | |
1323 | fi | |
1324 | PWD_P="$ac_cv_path_PWD_P" | |
1325 | if test -n "$PWD_P"; then | |
1326 | echo "$ac_t""$PWD_P" 1>&6 | |
1327 | else | |
1328 | echo "$ac_t""no" 1>&6 | |
1329 | fi | |
1330 | ||
1331 | if test "$PWD_P" = no; then | |
1332 | { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; } | |
1333 | fi | |
1334 | ||
63bda0c1 | 1335 | # These programs are version sensitive. |
4bca4c17 | 1336 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
6b3f2b3d | 1337 | echo "configure:1338: checking build system type" >&5 |
a808d541 UD |
1338 | |
1339 | build_alias=$build | |
1340 | case "$build_alias" in | |
1341 | NONE) | |
1342 | case $nonopt in | |
1343 | NONE) build_alias=$host_alias ;; | |
1344 | *) build_alias=$nonopt ;; | |
1345 | esac ;; | |
1346 | esac | |
4bca4c17 | 1347 | |
a808d541 UD |
1348 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
1349 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1350 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1351 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1352 | echo "$ac_t""$build" 1>&6 | |
4bca4c17 UD |
1353 | |
1354 | if test $host != $build; then | |
1355 | ac_tool_prefix=${host_alias}- | |
1356 | else | |
1357 | ac_tool_prefix= | |
1358 | fi | |
1359 | ||
1360 | for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc | |
1361 | do | |
1362 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1363 | set dummy $ac_prog; ac_word=$2 | |
1364 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 1365 | echo "configure:1366: checking for $ac_word" >&5 |
a808d541 | 1366 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
cd6ede75 UD |
1367 | echo $ac_n "(cached) $ac_c" 1>&6 |
1368 | else | |
63bda0c1 UD |
1369 | if test -n "$CC"; then |
1370 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
cd6ede75 | 1371 | else |
5c2a0669 UD |
1372 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1373 | ac_dummy="$PATH" | |
1374 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
1375 | test -z "$ac_dir" && ac_dir=. |
1376 | if test -f $ac_dir/$ac_word; then | |
1377 | ac_cv_prog_CC="$ac_prog" | |
1378 | break | |
1379 | fi | |
cd6ede75 UD |
1380 | done |
1381 | IFS="$ac_save_ifs" | |
1382 | fi | |
1383 | fi | |
4bca4c17 UD |
1384 | CC="$ac_cv_prog_CC" |
1385 | if test -n "$CC"; then | |
1386 | echo "$ac_t""$CC" 1>&6 | |
1387 | else | |
cd6ede75 | 1388 | echo "$ac_t""no" 1>&6 |
4bca4c17 UD |
1389 | fi |
1390 | ||
1391 | test -n "$CC" && break | |
1392 | done | |
1393 | ||
1394 | if test -z "$CC"; then | |
1395 | ac_verc_fail=yes | |
63bda0c1 | 1396 | else |
4bca4c17 UD |
1397 | # Found it, now check the version. |
1398 | echo $ac_n "checking version of $CC""... $ac_c" 1>&6 | |
6b3f2b3d | 1399 | echo "configure:1400: checking version of $CC" >&5 |
9dfa9a5a | 1400 | ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
1401 | case $ac_prog_version in |
1402 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
111bb972 | 1403 | *gcc-2.9[5-9].*|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*) |
4bca4c17 UD |
1404 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1405 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1406 | ||
63bda0c1 | 1407 | esac |
4bca4c17 UD |
1408 | echo "$ac_t""$ac_prog_version" 1>&6 |
1409 | fi | |
1410 | if test $ac_verc_fail = yes; then | |
1411 | critic_missing=t | |
ae828bc6 UD |
1412 | fi |
1413 | ||
22e65f8f | 1414 | for ac_prog in gnumake gmake make |
4bca4c17 UD |
1415 | do |
1416 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1417 | set dummy $ac_prog; ac_word=$2 | |
1418 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 1419 | echo "configure:1420: checking for $ac_word" >&5 |
a808d541 | 1420 | if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then |
04be94a8 UD |
1421 | echo $ac_n "(cached) $ac_c" 1>&6 |
1422 | else | |
63bda0c1 UD |
1423 | if test -n "$MAKE"; then |
1424 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
04be94a8 | 1425 | else |
5c2a0669 UD |
1426 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1427 | ac_dummy="$PATH" | |
1428 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
1429 | test -z "$ac_dir" && ac_dir=. |
1430 | if test -f $ac_dir/$ac_word; then | |
1431 | ac_cv_prog_MAKE="$ac_prog" | |
1432 | break | |
1433 | fi | |
04be94a8 UD |
1434 | done |
1435 | IFS="$ac_save_ifs" | |
1436 | fi | |
1437 | fi | |
4bca4c17 UD |
1438 | MAKE="$ac_cv_prog_MAKE" |
1439 | if test -n "$MAKE"; then | |
1440 | echo "$ac_t""$MAKE" 1>&6 | |
1441 | else | |
04be94a8 | 1442 | echo "$ac_t""no" 1>&6 |
4bca4c17 UD |
1443 | fi |
1444 | ||
1445 | test -n "$MAKE" && break | |
1446 | done | |
1447 | ||
1448 | if test -z "$MAKE"; then | |
1449 | ac_verc_fail=yes | |
63bda0c1 | 1450 | else |
4bca4c17 UD |
1451 | # Found it, now check the version. |
1452 | echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6 | |
6b3f2b3d | 1453 | echo "configure:1454: checking version of $MAKE" >&5 |
8fc1e2ca | 1454 | ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
1455 | case $ac_prog_version in |
1456 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
2bbc70d5 | 1457 | 3.79* | 3.[89]*) |
4bca4c17 UD |
1458 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1459 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1460 | ||
63bda0c1 | 1461 | esac |
4bca4c17 UD |
1462 | echo "$ac_t""$ac_prog_version" 1>&6 |
1463 | fi | |
1464 | if test $ac_verc_fail = yes; then | |
1465 | critic_missing=t | |
04be94a8 | 1466 | fi |
cd6ede75 | 1467 | |
63bda0c1 | 1468 | |
22e65f8f | 1469 | for ac_prog in gnumsgfmt gmsgfmt msgfmt |
4bca4c17 UD |
1470 | do |
1471 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1472 | set dummy $ac_prog; ac_word=$2 | |
1473 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 1474 | echo "configure:1475: checking for $ac_word" >&5 |
a808d541 | 1475 | if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then |
cd6ede75 UD |
1476 | echo $ac_n "(cached) $ac_c" 1>&6 |
1477 | else | |
63bda0c1 UD |
1478 | if test -n "$MSGFMT"; then |
1479 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
cd6ede75 | 1480 | else |
5c2a0669 UD |
1481 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1482 | ac_dummy="$PATH" | |
1483 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
1484 | test -z "$ac_dir" && ac_dir=. |
1485 | if test -f $ac_dir/$ac_word; then | |
1486 | ac_cv_prog_MSGFMT="$ac_prog" | |
1487 | break | |
1488 | fi | |
cd6ede75 UD |
1489 | done |
1490 | IFS="$ac_save_ifs" | |
1491 | fi | |
1492 | fi | |
4bca4c17 UD |
1493 | MSGFMT="$ac_cv_prog_MSGFMT" |
1494 | if test -n "$MSGFMT"; then | |
1495 | echo "$ac_t""$MSGFMT" 1>&6 | |
1496 | else | |
cd6ede75 | 1497 | echo "$ac_t""no" 1>&6 |
4bca4c17 UD |
1498 | fi |
1499 | ||
1500 | test -n "$MSGFMT" && break | |
1501 | done | |
1502 | ||
1503 | if test -z "$MSGFMT"; then | |
1504 | ac_verc_fail=yes | |
63bda0c1 | 1505 | else |
4bca4c17 UD |
1506 | # Found it, now check the version. |
1507 | echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6 | |
6b3f2b3d | 1508 | echo "configure:1509: checking version of $MSGFMT" >&5 |
bdd421cc | 1509 | ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
1510 | case $ac_prog_version in |
1511 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
bdd421cc | 1512 | 0.[1-9][0-9].* | [1-9].*) |
4bca4c17 UD |
1513 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1514 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1515 | ||
63bda0c1 | 1516 | esac |
4bca4c17 UD |
1517 | echo "$ac_t""$ac_prog_version" 1>&6 |
1518 | fi | |
1519 | if test $ac_verc_fail = yes; then | |
1520 | MSGFMT=: aux_missing=t | |
cd6ede75 UD |
1521 | fi |
1522 | ||
4bca4c17 UD |
1523 | for ac_prog in makeinfo |
1524 | do | |
1525 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1526 | set dummy $ac_prog; ac_word=$2 | |
1527 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 1528 | echo "configure:1529: checking for $ac_word" >&5 |
a808d541 | 1529 | if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then |
cd6ede75 UD |
1530 | echo $ac_n "(cached) $ac_c" 1>&6 |
1531 | else | |
63bda0c1 UD |
1532 | if test -n "$MAKEINFO"; then |
1533 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
cd6ede75 | 1534 | else |
5c2a0669 UD |
1535 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1536 | ac_dummy="$PATH" | |
1537 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
1538 | test -z "$ac_dir" && ac_dir=. |
1539 | if test -f $ac_dir/$ac_word; then | |
1540 | ac_cv_prog_MAKEINFO="$ac_prog" | |
1541 | break | |
1542 | fi | |
cd6ede75 UD |
1543 | done |
1544 | IFS="$ac_save_ifs" | |
cd6ede75 UD |
1545 | fi |
1546 | fi | |
4bca4c17 UD |
1547 | MAKEINFO="$ac_cv_prog_MAKEINFO" |
1548 | if test -n "$MAKEINFO"; then | |
1549 | echo "$ac_t""$MAKEINFO" 1>&6 | |
1550 | else | |
cd6ede75 | 1551 | echo "$ac_t""no" 1>&6 |
4bca4c17 UD |
1552 | fi |
1553 | ||
1554 | test -n "$MAKEINFO" && break | |
1555 | done | |
1556 | ||
1557 | if test -z "$MAKEINFO"; then | |
1558 | ac_verc_fail=yes | |
63bda0c1 | 1559 | else |
4bca4c17 UD |
1560 | # Found it, now check the version. |
1561 | echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6 | |
6b3f2b3d | 1562 | echo "configure:1563: checking version of $MAKEINFO" >&5 |
be1d9d95 | 1563 | ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
1564 | case $ac_prog_version in |
1565 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43fc8f18 | 1566 | 3.1[1-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]) |
4bca4c17 UD |
1567 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1568 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1569 | ||
63bda0c1 | 1570 | esac |
4bca4c17 UD |
1571 | echo "$ac_t""$ac_prog_version" 1>&6 |
1572 | fi | |
1573 | if test $ac_verc_fail = yes; then | |
1574 | MAKEINFO=: aux_missing=t | |
cd6ede75 UD |
1575 | fi |
1576 | ||
aec103d3 UD |
1577 | for ac_prog in gsed sed |
1578 | do | |
1579 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1580 | set dummy $ac_prog; ac_word=$2 | |
1581 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 1582 | echo "configure:1583: checking for $ac_word" >&5 |
a808d541 | 1583 | if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then |
aec103d3 UD |
1584 | echo $ac_n "(cached) $ac_c" 1>&6 |
1585 | else | |
1586 | if test -n "$SED"; then | |
1587 | ac_cv_prog_SED="$SED" # Let the user override the test. | |
1588 | else | |
1589 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1590 | ac_dummy="$PATH" | |
1591 | for ac_dir in $ac_dummy; do | |
1592 | test -z "$ac_dir" && ac_dir=. | |
1593 | if test -f $ac_dir/$ac_word; then | |
1594 | ac_cv_prog_SED="$ac_prog" | |
1595 | break | |
1596 | fi | |
1597 | done | |
1598 | IFS="$ac_save_ifs" | |
1599 | fi | |
1600 | fi | |
1601 | SED="$ac_cv_prog_SED" | |
1602 | if test -n "$SED"; then | |
1603 | echo "$ac_t""$SED" 1>&6 | |
1604 | else | |
1605 | echo "$ac_t""no" 1>&6 | |
1606 | fi | |
1607 | ||
1608 | test -n "$SED" && break | |
1609 | done | |
1610 | ||
1611 | if test -z "$SED"; then | |
1612 | ac_verc_fail=yes | |
1613 | else | |
1614 | # Found it, now check the version. | |
1615 | echo $ac_n "checking version of $SED""... $ac_c" 1>&6 | |
6b3f2b3d | 1616 | echo "configure:1617: checking version of $SED" >&5 |
aec103d3 UD |
1617 | ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'` |
1618 | case $ac_prog_version in | |
1619 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
ce19d417 | 1620 | 3.0[2-9]*|3.[1-9]*|[4-9]*) |
aec103d3 UD |
1621 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
1622 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
1623 | ||
1624 | esac | |
1625 | echo "$ac_t""$ac_prog_version" 1>&6 | |
1626 | fi | |
1627 | if test $ac_verc_fail = yes; then | |
1628 | SED=: aux_missing=t | |
1629 | fi | |
1630 | ||
cd6ede75 | 1631 | |
4bca4c17 UD |
1632 | if test -n "$critic_missing"; then |
1633 | { echo "configure: error: | |
63bda0c1 UD |
1634 | *** Some critical program is missing or too old. |
1635 | *** Check the INSTALL file for required versions." 1>&2; exit 1; } | |
4bca4c17 | 1636 | fi |
63bda0c1 | 1637 | |
4bca4c17 | 1638 | test -n "$aux_missing" && echo "configure: warning: |
63bda0c1 UD |
1639 | *** An auxiliary program is missing or too old; |
1640 | *** some features will be disabled. | |
1641 | *** Check the INSTALL file for required versions." 1>&2 | |
cd6ede75 | 1642 | |
beefeafb AS |
1643 | # glibcbug.in wants to know the compiler version. |
1644 | CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'` | |
1645 | ||
1646 | ||
63bda0c1 UD |
1647 | |
1648 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
6b3f2b3d | 1649 | echo "configure:1650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
a808d541 | 1650 | if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then |
63bda0c1 UD |
1651 | echo $ac_n "(cached) $ac_c" 1>&6 |
1652 | else | |
1653 | ||
cd6ede75 UD |
1654 | ac_ext=c |
1655 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1656 | ac_cpp='$CPP $CPPFLAGS' | |
1657 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5c2a0669 | 1658 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
cd6ede75 UD |
1659 | cross_compiling=$ac_cv_prog_cc_cross |
1660 | ||
5c2a0669 UD |
1661 | cat > conftest.$ac_ext << EOF |
1662 | ||
6b3f2b3d | 1663 | #line 1664 "configure" |
cd6ede75 | 1664 | #include "confdefs.h" |
5c2a0669 | 1665 | |
cd6ede75 UD |
1666 | main(){return(0);} |
1667 | EOF | |
6b3f2b3d | 1668 | if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
cd6ede75 UD |
1669 | ac_cv_prog_cc_works=yes |
1670 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1671 | if (./conftest; exit) 2>/dev/null; then | |
1672 | ac_cv_prog_cc_cross=no | |
1673 | else | |
1674 | ac_cv_prog_cc_cross=yes | |
1675 | fi | |
1676 | else | |
1677 | echo "configure: failed program was:" >&5 | |
1678 | cat conftest.$ac_ext >&5 | |
1679 | ac_cv_prog_cc_works=no | |
1680 | fi | |
1681 | rm -fr conftest* | |
5c2a0669 UD |
1682 | ac_ext=c |
1683 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1684 | ac_cpp='$CPP $CPPFLAGS' | |
1685 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1686 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1687 | cross_compiling=$ac_cv_prog_cc_cross | |
cd6ede75 | 1688 | |
63bda0c1 UD |
1689 | fi |
1690 | ||
cd6ede75 UD |
1691 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1692 | if test $ac_cv_prog_cc_works = no; then | |
1693 | cross_linkable=no | |
1694 | ac_cv_prog_cc_cross=yes | |
1695 | else | |
1696 | cross_linkable=yes | |
1697 | fi | |
1698 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
6b3f2b3d | 1699 | echo "configure:1700: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a808d541 | 1700 | if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then |
63bda0c1 UD |
1701 | echo $ac_n "(cached) $ac_c" 1>&6 |
1702 | else | |
1703 | : | |
1704 | fi | |
1705 | ||
cd6ede75 UD |
1706 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1707 | ||
1708 | cross_compiling=$ac_cv_prog_cc_cross | |
1709 | ||
1710 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
6b3f2b3d | 1711 | echo "configure:1712: checking whether we are using GNU C" >&5 |
a808d541 | 1712 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
cd6ede75 UD |
1713 | echo $ac_n "(cached) $ac_c" 1>&6 |
1714 | else | |
1715 | cat > conftest.c <<EOF | |
1716 | #ifdef __GNUC__ | |
1717 | yes; | |
1718 | #endif | |
1719 | EOF | |
6b3f2b3d | 1720 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
cd6ede75 UD |
1721 | ac_cv_prog_gcc=yes |
1722 | else | |
1723 | ac_cv_prog_gcc=no | |
1724 | fi | |
1725 | fi | |
1726 | ||
1727 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
63bda0c1 | 1728 | if test $ac_cv_prog_gcc != yes; then |
cd6ede75 UD |
1729 | { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; } |
1730 | fi | |
1731 | ||
1732 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
6b3f2b3d | 1733 | echo "configure:1734: checking build system type" >&5 |
a808d541 UD |
1734 | |
1735 | build_alias=$build | |
1736 | case "$build_alias" in | |
1737 | NONE) | |
1738 | case $nonopt in | |
1739 | NONE) build_alias=$host_alias ;; | |
1740 | *) build_alias=$nonopt ;; | |
1741 | esac ;; | |
1742 | esac | |
cd6ede75 | 1743 | |
a808d541 UD |
1744 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
1745 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1746 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1747 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1748 | echo "$ac_t""$build" 1>&6 | |
cd6ede75 UD |
1749 | |
1750 | if test $host != $build; then | |
1751 | for ac_prog in gcc cc | |
1752 | do | |
1753 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1754 | set dummy $ac_prog; ac_word=$2 | |
1755 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 1756 | echo "configure:1757: checking for $ac_word" >&5 |
a808d541 | 1757 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
cd6ede75 UD |
1758 | echo $ac_n "(cached) $ac_c" 1>&6 |
1759 | else | |
1760 | if test -n "$BUILD_CC"; then | |
1761 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
1762 | else | |
5c2a0669 UD |
1763 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1764 | ac_dummy="$PATH" | |
1765 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
1766 | test -z "$ac_dir" && ac_dir=. |
1767 | if test -f $ac_dir/$ac_word; then | |
1768 | ac_cv_prog_BUILD_CC="$ac_prog" | |
1769 | break | |
1770 | fi | |
1771 | done | |
1772 | IFS="$ac_save_ifs" | |
1773 | fi | |
1774 | fi | |
1775 | BUILD_CC="$ac_cv_prog_BUILD_CC" | |
1776 | if test -n "$BUILD_CC"; then | |
1777 | echo "$ac_t""$BUILD_CC" 1>&6 | |
1778 | else | |
1779 | echo "$ac_t""no" 1>&6 | |
1780 | fi | |
1781 | ||
1782 | test -n "$BUILD_CC" && break | |
1783 | done | |
1784 | ||
1785 | fi | |
1786 | ||
1787 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
6b3f2b3d | 1788 | echo "configure:1789: checking how to run the C preprocessor" >&5 |
cd6ede75 UD |
1789 | # On Suns, sometimes $CPP names a directory. |
1790 | if test -n "$CPP" && test -d "$CPP"; then | |
1791 | CPP= | |
1792 | fi | |
1793 | if test -z "$CPP"; then | |
a808d541 | 1794 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
cd6ede75 UD |
1795 | echo $ac_n "(cached) $ac_c" 1>&6 |
1796 | else | |
1797 | # This must be in double quotes, not single quotes, because CPP may get | |
1798 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1799 | CPP="${CC-cc} -E" | |
1800 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1801 | # not just through cpp. | |
1802 | cat > conftest.$ac_ext <<EOF | |
6b3f2b3d | 1803 | #line 1804 "configure" |
cd6ede75 UD |
1804 | #include "confdefs.h" |
1805 | #include <assert.h> | |
1806 | Syntax Error | |
1807 | EOF | |
1808 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6b3f2b3d | 1809 | { (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5c2a0669 | 1810 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
cd6ede75 UD |
1811 | if test -z "$ac_err"; then |
1812 | : | |
1813 | else | |
1814 | echo "$ac_err" >&5 | |
1815 | echo "configure: failed program was:" >&5 | |
1816 | cat conftest.$ac_ext >&5 | |
1817 | rm -rf conftest* | |
1818 | CPP="${CC-cc} -E -traditional-cpp" | |
1819 | cat > conftest.$ac_ext <<EOF | |
6b3f2b3d | 1820 | #line 1821 "configure" |
cd6ede75 UD |
1821 | #include "confdefs.h" |
1822 | #include <assert.h> | |
1823 | Syntax Error | |
1824 | EOF | |
1825 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6b3f2b3d | 1826 | { (eval echo configure:1827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5c2a0669 UD |
1827 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1828 | if test -z "$ac_err"; then | |
1829 | : | |
1830 | else | |
1831 | echo "$ac_err" >&5 | |
1832 | echo "configure: failed program was:" >&5 | |
1833 | cat conftest.$ac_ext >&5 | |
1834 | rm -rf conftest* | |
1835 | CPP="${CC-cc} -nologo -E" | |
1836 | cat > conftest.$ac_ext <<EOF | |
6b3f2b3d | 1837 | #line 1838 "configure" |
5c2a0669 UD |
1838 | #include "confdefs.h" |
1839 | #include <assert.h> | |
1840 | Syntax Error | |
1841 | EOF | |
1842 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6b3f2b3d | 1843 | { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5c2a0669 | 1844 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
cd6ede75 UD |
1845 | if test -z "$ac_err"; then |
1846 | : | |
1847 | else | |
1848 | echo "$ac_err" >&5 | |
1849 | echo "configure: failed program was:" >&5 | |
1850 | cat conftest.$ac_ext >&5 | |
1851 | rm -rf conftest* | |
1852 | CPP=/lib/cpp | |
1853 | fi | |
1854 | rm -f conftest* | |
1855 | fi | |
5c2a0669 UD |
1856 | rm -f conftest* |
1857 | fi | |
cd6ede75 UD |
1858 | rm -f conftest* |
1859 | ac_cv_prog_CPP="$CPP" | |
1860 | fi | |
1861 | CPP="$ac_cv_prog_CPP" | |
1862 | else | |
1863 | ac_cv_prog_CPP="$CPP" | |
1864 | fi | |
1865 | echo "$ac_t""$CPP" 1>&6 | |
1866 | ||
650425ce UD |
1867 | # Was a --with-binutils option given? |
1868 | if test -n "$path_binutils"; then | |
1869 | # Make absolute; ensure a single trailing slash. | |
1870 | path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'` | |
63bda0c1 | 1871 | CC="$CC -B$path_binutils" |
650425ce | 1872 | fi |
27a5bb33 UD |
1873 | AS=`$CC -print-prog-name=as` |
1874 | LD=`$CC -print-prog-name=ld` | |
5edb9387 | 1875 | AR=`$CC -print-prog-name=ar` |
cd6ede75 UD |
1876 | |
1877 | ||
5edb9387 UD |
1878 | # ranlib has to be treated a bit differently since it might not exist at all. |
1879 | RANLIB=`$CC -print-prog-name=ranlib` | |
1880 | if test $RANLIB = ranlib; then | |
1881 | # This extra check has to happen since gcc simply echos the parameter in | |
1882 | # case it cannot find the value in its own directories. | |
cd6ede75 UD |
1883 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
1884 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1885 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 1886 | echo "configure:1887: checking for $ac_word" >&5 |
a808d541 | 1887 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
cd6ede75 UD |
1888 | echo $ac_n "(cached) $ac_c" 1>&6 |
1889 | else | |
1890 | if test -n "$RANLIB"; then | |
1891 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1892 | else | |
5c2a0669 UD |
1893 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1894 | ac_dummy="$PATH" | |
1895 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
1896 | test -z "$ac_dir" && ac_dir=. |
1897 | if test -f $ac_dir/$ac_word; then | |
1898 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1899 | break | |
1900 | fi | |
1901 | done | |
1902 | IFS="$ac_save_ifs" | |
1903 | fi | |
1904 | fi | |
1905 | RANLIB="$ac_cv_prog_RANLIB" | |
1906 | if test -n "$RANLIB"; then | |
1907 | echo "$ac_t""$RANLIB" 1>&6 | |
1908 | else | |
1909 | echo "$ac_t""no" 1>&6 | |
1910 | fi | |
1911 | ||
1912 | ||
1913 | if test -z "$ac_cv_prog_RANLIB"; then | |
1914 | if test -n "$ac_tool_prefix"; then | |
1915 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1916 | set dummy ranlib; ac_word=$2 | |
1917 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 1918 | echo "configure:1919: checking for $ac_word" >&5 |
a808d541 | 1919 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
cd6ede75 UD |
1920 | echo $ac_n "(cached) $ac_c" 1>&6 |
1921 | else | |
1922 | if test -n "$RANLIB"; then | |
1923 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1924 | else | |
5c2a0669 UD |
1925 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1926 | ac_dummy="$PATH" | |
1927 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
1928 | test -z "$ac_dir" && ac_dir=. |
1929 | if test -f $ac_dir/$ac_word; then | |
1930 | ac_cv_prog_RANLIB="ranlib" | |
1931 | break | |
1932 | fi | |
1933 | done | |
1934 | IFS="$ac_save_ifs" | |
1935 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1936 | fi | |
1937 | fi | |
1938 | RANLIB="$ac_cv_prog_RANLIB" | |
1939 | if test -n "$RANLIB"; then | |
1940 | echo "$ac_t""$RANLIB" 1>&6 | |
1941 | else | |
1942 | echo "$ac_t""no" 1>&6 | |
1943 | fi | |
1944 | ||
1945 | else | |
1946 | RANLIB=":" | |
1947 | fi | |
1948 | fi | |
1949 | ||
5edb9387 UD |
1950 | fi |
1951 | ||
1952 | ||
1953 | # Determine whether we are using GNU binutils. | |
1954 | echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6 | |
6b3f2b3d | 1955 | echo "configure:1956: checking whether $AS is GNU as" >&5 |
a808d541 | 1956 | if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then |
5edb9387 UD |
1957 | echo $ac_n "(cached) $ac_c" 1>&6 |
1958 | else | |
1959 | # Most GNU programs take a -v and spit out some text including | |
1960 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
1961 | if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
1962 | libc_cv_prog_as_gnu=yes | |
1963 | else | |
1964 | libc_cv_prog_as_gnu=no | |
1965 | fi | |
1966 | rm -fr contest* | |
1967 | fi | |
1968 | ||
1969 | echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6 | |
1970 | rm -f a.out | |
1971 | gnu_as=$libc_cv_prog_as_gnu | |
1972 | ||
1973 | echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6 | |
6b3f2b3d | 1974 | echo "configure:1975: checking whether $LD is GNU ld" >&5 |
a808d541 | 1975 | if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then |
5edb9387 UD |
1976 | echo $ac_n "(cached) $ac_c" 1>&6 |
1977 | else | |
1978 | # Most GNU programs take a -v and spit out some text including | |
1979 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
1980 | if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
1981 | libc_cv_prog_ld_gnu=yes | |
1982 | else | |
1983 | libc_cv_prog_ld_gnu=no | |
1984 | fi | |
1985 | rm -fr contest* | |
1986 | fi | |
1987 | ||
1988 | echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6 | |
1989 | gnu_ld=$libc_cv_prog_ld_gnu | |
1990 | ||
4bca4c17 UD |
1991 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. |
1992 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
1993 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 1994 | echo "configure:1995: checking for $ac_word" >&5 |
a808d541 | 1995 | if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then |
4bca4c17 UD |
1996 | echo $ac_n "(cached) $ac_c" 1>&6 |
1997 | else | |
1998 | if test -n "$MIG"; then | |
1999 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
2000 | else | |
5c2a0669 UD |
2001 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2002 | ac_dummy="$PATH" | |
2003 | for ac_dir in $ac_dummy; do | |
4bca4c17 UD |
2004 | test -z "$ac_dir" && ac_dir=. |
2005 | if test -f $ac_dir/$ac_word; then | |
2006 | ac_cv_prog_MIG="${ac_tool_prefix}mig" | |
2007 | break | |
2008 | fi | |
2009 | done | |
2010 | IFS="$ac_save_ifs" | |
2011 | test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig" | |
2012 | fi | |
2013 | fi | |
2014 | MIG="$ac_cv_prog_MIG" | |
2015 | if test -n "$MIG"; then | |
2016 | echo "$ac_t""$MIG" 1>&6 | |
2017 | else | |
2018 | echo "$ac_t""no" 1>&6 | |
2019 | fi | |
2020 | ||
2021 | ||
2022 | ||
cd6ede75 | 2023 | |
3c720987 UD |
2024 | # if using special system headers, find out the compiler's sekrit |
2025 | # header directory and add that to the list. NOTE: Only does the right | |
2026 | # thing on a system that doesn't need fixincludes. (Not presently a problem.) | |
2027 | if test -n "$sysheaders"; then | |
2028 | ccheaders=`$CC -print-file-name=include` | |
2029 | SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders" | |
2030 | fi | |
2031 | ||
2032 | ||
f89ac85c UD |
2033 | # check if ranlib is necessary |
2034 | echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6 | |
6b3f2b3d | 2035 | echo "configure:2036: checking whether ranlib is necessary" >&5 |
a808d541 | 2036 | if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then |
f38931a9 UD |
2037 | echo $ac_n "(cached) $ac_c" 1>&6 |
2038 | else | |
f89ac85c UD |
2039 | cat > conftest.c <<EOF |
2040 | int a; | |
2041 | char b; | |
2042 | void c(void) {} | |
2043 | EOF | |
2044 | $CC $CFLAGS -c conftest.c | |
2045 | $AR cr conftest.a conftest.c | |
2046 | cp conftest.a conftest2.a | |
2047 | $RANLIB conftest.a | |
2048 | if cmp -s conftest.a conftest2.a; then | |
2049 | libc_cv_ranlib_necessary=no | |
f38931a9 | 2050 | else |
f89ac85c | 2051 | libc_cv_ranlib_necessary=yes |
f38931a9 | 2052 | fi |
f89ac85c | 2053 | rm -rf conftest* |
f38931a9 UD |
2054 | fi |
2055 | ||
f89ac85c UD |
2056 | echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6 |
2057 | if test "$libc_cv_ranlib_necessary" = no; then | |
2058 | RANLIB=: | |
2059 | fi | |
f38931a9 | 2060 | |
3911660e UD |
2061 | # Test if LD_LIBRARY_PATH contains the notation for the current directory |
2062 | # since this would lead to problems installing/building glibc. | |
2063 | # LD_LIBRARY_PATH contains the current directory if one of the following | |
2064 | # is true: | |
2065 | # - one of the terminals (":" and ";") is the first or last sign | |
2066 | # - two terminals occur directly after each other | |
2067 | # - the path contains an element with a dot in it | |
2068 | echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6 | |
6b3f2b3d | 2069 | echo "configure:2070: checking LD_LIBRARY_PATH variable" >&5 |
3911660e UD |
2070 | case ${LD_LIBRARY_PATH} in |
2071 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
b3a86ae1 | 2072 | ld_library_path_setting="contains current directory" |
3911660e UD |
2073 | ;; |
2074 | *) | |
2075 | ld_library_path_setting="ok" | |
2076 | ;; | |
2077 | esac | |
2078 | echo "$ac_t""$ld_library_path_setting" 1>&6 | |
2079 | if test "$ld_library_path_setting" != "ok"; then | |
63bda0c1 UD |
2080 | { echo "configure: error: |
2081 | *** LD_LIBRARY_PATH shouldn't contain the current directory when | |
2082 | *** building glibc. Please change the environment variable | |
2083 | *** and run configure again." 1>&2; exit 1; } | |
3911660e UD |
2084 | fi |
2085 | ||
cd6ede75 UD |
2086 | # Extract the first word of "bash", so it can be a program name with args. |
2087 | set dummy bash; ac_word=$2 | |
2088 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 2089 | echo "configure:2090: checking for $ac_word" >&5 |
a808d541 | 2090 | if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then |
cd6ede75 UD |
2091 | echo $ac_n "(cached) $ac_c" 1>&6 |
2092 | else | |
2093 | case "$BASH" in | |
2094 | /*) | |
2095 | ac_cv_path_BASH="$BASH" # Let the user override the test with a path. | |
2096 | ;; | |
5c2a0669 UD |
2097 | ?:/*) |
2098 | ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path. | |
2099 | ;; | |
cd6ede75 | 2100 | *) |
5c2a0669 UD |
2101 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2102 | ac_dummy="$PATH" | |
2103 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
2104 | test -z "$ac_dir" && ac_dir=. |
2105 | if test -f $ac_dir/$ac_word; then | |
2106 | ac_cv_path_BASH="$ac_dir/$ac_word" | |
2107 | break | |
2108 | fi | |
2109 | done | |
2110 | IFS="$ac_save_ifs" | |
2111 | test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no" | |
2112 | ;; | |
2113 | esac | |
2114 | fi | |
2115 | BASH="$ac_cv_path_BASH" | |
2116 | if test -n "$BASH"; then | |
2117 | echo "$ac_t""$BASH" 1>&6 | |
2118 | else | |
2119 | echo "$ac_t""no" 1>&6 | |
2120 | fi | |
2121 | ||
2122 | if test "$BASH" != no && | |
f43ce637 | 2123 | $BASH -c 'test "$BASH_VERSINFO" \ |
6973fc01 | 2124 | && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then |
cd6ede75 UD |
2125 | libc_cv_have_bash2=yes |
2126 | else | |
2127 | libc_cv_have_bash2=no | |
2128 | fi | |
2129 | ||
2130 | ||
2131 | if test "$BASH" = no; then | |
2132 | # Extract the first word of "ksh", so it can be a program name with args. | |
2133 | set dummy ksh; ac_word=$2 | |
2134 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 2135 | echo "configure:2136: checking for $ac_word" >&5 |
a808d541 | 2136 | if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then |
cd6ede75 UD |
2137 | echo $ac_n "(cached) $ac_c" 1>&6 |
2138 | else | |
2139 | case "$KSH" in | |
2140 | /*) | |
2141 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. | |
2142 | ;; | |
5c2a0669 UD |
2143 | ?:/*) |
2144 | ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path. | |
2145 | ;; | |
cd6ede75 | 2146 | *) |
5c2a0669 UD |
2147 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2148 | ac_dummy="$PATH" | |
2149 | for ac_dir in $ac_dummy; do | |
cd6ede75 UD |
2150 | test -z "$ac_dir" && ac_dir=. |
2151 | if test -f $ac_dir/$ac_word; then | |
2152 | ac_cv_path_KSH="$ac_dir/$ac_word" | |
2153 | break | |
2154 | fi | |
2155 | done | |
2156 | IFS="$ac_save_ifs" | |
2157 | test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no" | |
2158 | ;; | |
2159 | esac | |
2160 | fi | |
2161 | KSH="$ac_cv_path_KSH" | |
2162 | if test -n "$KSH"; then | |
2163 | echo "$ac_t""$KSH" 1>&6 | |
2164 | else | |
2165 | echo "$ac_t""no" 1>&6 | |
2166 | fi | |
2167 | ||
2168 | if test "$KSH" = no; then | |
2169 | libc_cv_have_ksh=no | |
2170 | else | |
2171 | libc_cv_have_ksh=yes | |
2172 | fi | |
2173 | else | |
2174 | KSH="$BASH" | |
2175 | ||
2176 | libc_cv_have_ksh=yes | |
2177 | fi | |
2178 | ||
2179 | ||
559dce19 | 2180 | for ac_prog in mawk gawk nawk awk |
a2b08ee5 UD |
2181 | do |
2182 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2183 | set dummy $ac_prog; ac_word=$2 | |
2184 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 2185 | echo "configure:2186: checking for $ac_word" >&5 |
a808d541 | 2186 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
5aa8ff62 UD |
2187 | echo $ac_n "(cached) $ac_c" 1>&6 |
2188 | else | |
2189 | if test -n "$AWK"; then | |
2190 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2191 | else | |
5c2a0669 UD |
2192 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2193 | ac_dummy="$PATH" | |
2194 | for ac_dir in $ac_dummy; do | |
5aa8ff62 UD |
2195 | test -z "$ac_dir" && ac_dir=. |
2196 | if test -f $ac_dir/$ac_word; then | |
2197 | ac_cv_prog_AWK="$ac_prog" | |
2198 | break | |
2199 | fi | |
2200 | done | |
2201 | IFS="$ac_save_ifs" | |
2202 | fi | |
2203 | fi | |
2204 | AWK="$ac_cv_prog_AWK" | |
2205 | if test -n "$AWK"; then | |
2206 | echo "$ac_t""$AWK" 1>&6 | |
2207 | else | |
2208 | echo "$ac_t""no" 1>&6 | |
2209 | fi | |
2210 | ||
2211 | test -n "$AWK" && break | |
2212 | done | |
2213 | ||
c0016081 UD |
2214 | # Extract the first word of "perl", so it can be a program name with args. |
2215 | set dummy perl; ac_word=$2 | |
5aa8ff62 | 2216 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6b3f2b3d | 2217 | echo "configure:2218: checking for $ac_word" >&5 |
a808d541 | 2218 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
a2b08ee5 UD |
2219 | echo $ac_n "(cached) $ac_c" 1>&6 |
2220 | else | |
2221 | case "$PERL" in | |
2222 | /*) | |
2223 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
2224 | ;; | |
5c2a0669 UD |
2225 | ?:/*) |
2226 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. | |
2227 | ;; | |
a2b08ee5 | 2228 | *) |
5c2a0669 UD |
2229 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2230 | ac_dummy="$PATH" | |
2231 | for ac_dir in $ac_dummy; do | |
a2b08ee5 UD |
2232 | test -z "$ac_dir" && ac_dir=. |
2233 | if test -f $ac_dir/$ac_word; then | |
2234 | ac_cv_path_PERL="$ac_dir/$ac_word" | |
2235 | break | |
2236 | fi | |
2237 | done | |
2238 | IFS="$ac_save_ifs" | |
c0016081 | 2239 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" |
a2b08ee5 UD |
2240 | ;; |
2241 | esac | |
2242 | fi | |
2243 | PERL="$ac_cv_path_PERL" | |
2244 | if test -n "$PERL"; then | |
2245 | echo "$ac_t""$PERL" 1>&6 | |
2246 | else | |
2247 | echo "$ac_t""no" 1>&6 | |
2248 | fi | |
2249 | ||
2fd5d029 RM |
2250 | if test "$PERL" != no && |
2251 | (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then | |
2252 | PERL=no | |
fc304e02 | 2253 | fi |
c0016081 UD |
2254 | # Extract the first word of "install-info", so it can be a program name with args. |
2255 | set dummy install-info; ac_word=$2 | |
2256 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6b3f2b3d | 2257 | echo "configure:2258: checking for $ac_word" >&5 |
a808d541 | 2258 | if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then |
c0016081 UD |
2259 | echo $ac_n "(cached) $ac_c" 1>&6 |
2260 | else | |
2261 | case "$INSTALL_INFO" in | |
2262 | /*) | |
2263 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
2264 | ;; | |
5c2a0669 UD |
2265 | ?:/*) |
2266 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path. | |
2267 | ;; | |
c0016081 | 2268 | *) |
5c2a0669 | 2269 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9f2a9248 | 2270 | ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" |
5c2a0669 | 2271 | for ac_dir in $ac_dummy; do |
c0016081 UD |
2272 | test -z "$ac_dir" && ac_dir=. |
2273 | if test -f $ac_dir/$ac_word; then | |
2274 | ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word" | |
2275 | break | |
2276 | fi | |
2277 | done | |
2278 | IFS="$ac_save_ifs" | |
2279 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" | |
2280 | ;; | |
2281 | esac | |
2282 | fi | |
2283 | INSTALL_INFO="$ac_cv_path_INSTALL_INFO" | |
2284 | if test -n "$INSTALL_INFO"; then | |
2285 | echo "$ac_t""$INSTALL_INFO" 1>&6 | |
2286 | else | |
2287 | echo "$ac_t""no" 1>&6 | |
2288 | fi | |
2289 | ||
c0016081 UD |
2290 | if test "$INSTALL_INFO" != "no"; then |
2291 | echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6 | |
6b3f2b3d | 2292 | echo "configure:2293: checking for old Debian install-info" >&5 |
a808d541 | 2293 | if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then |
c0016081 UD |
2294 | echo $ac_n "(cached) $ac_c" 1>&6 |
2295 | else | |
2296 | mkdir conftest.d | |
2297 | # There is a hard ^_ on the next line. I am open to better ideas. | |
2298 | (echo '\1f' | |
2299 | echo 'File: dir Node: Top This is the top of the INFO tree' | |
2300 | echo '* Menu:') >conftest.d/dir | |
2301 | (echo 'INFO-DIR-SECTION i-d-s works' | |
2302 | echo 'START-INFO-DIR-ENTRY' | |
2303 | echo '* Prog: (prog). Program.' | |
2304 | echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info | |
2305 | if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1 | |
d8cceb4f | 2306 | then |
c0016081 UD |
2307 | if grep -s 'i-d-s works' conftest.d/dir >/dev/null |
2308 | then libc_cv_old_debian_install_info=no | |
2309 | else libc_cv_old_debian_install_info=yes | |
2310 | fi | |
2311 | else libc_cv_old_debian_install_info=no testfailed=t | |
2312 | fi | |
2313 | rm -fr conftest.d | |
2314 | fi | |
2315 | ||
2316 | echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6 | |
2317 | if test -n "$testfailed" | |
2318 | then echo "configure: warning: install-info errored out, check config.log" 1>&2 | |
2319 | fi | |
2320 | OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info | |
2321 | fi | |
a2b08ee5 UD |
2322 | |
2323 | ||
cd6ede75 | 2324 | echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6 |
6b3f2b3d | 2325 | echo "configure:2326: checking for signed size_t type" >&5 |
a808d541 | 2326 | if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then |
cd6ede75 UD |
2327 | echo $ac_n "(cached) $ac_c" 1>&6 |
2328 | else | |
2329 | echo '#include <stddef.h> | |
2330 | FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c | |
2331 | if eval "$ac_cpp conftest.c 2>/dev/null" \ | |
2332 | | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then | |
2333 | libc_cv_signed_size_t=no | |
2334 | else | |
2335 | libc_cv_signed_size_t=yes | |
2336 | fi | |
2337 | rm -f conftest* | |
2338 | fi | |
2339 | ||
2340 | echo "$ac_t""$libc_cv_signed_size_t" 1>&6 | |
2341 | if test $libc_cv_signed_size_t = yes; then | |
2342 | cat >> confdefs.h <<\EOF | |
2343 | #undef __SIZE_TYPE__ | |
2344 | #define __SIZE_TYPE__ unsigned | |
2345 | EOF | |
2346 | fi | |
2347 | ||
2348 | echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6 | |
6b3f2b3d | 2349 | echo "configure:2350: checking for libc-friendly stddef.h" >&5 |
a808d541 | 2350 | if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then |
cd6ede75 UD |
2351 | echo $ac_n "(cached) $ac_c" 1>&6 |
2352 | else | |
2353 | cat > conftest.$ac_ext <<EOF | |
6b3f2b3d | 2354 | #line 2355 "configure" |
cd6ede75 UD |
2355 | #include "confdefs.h" |
2356 | #define __need_size_t | |
2357 | #define __need_wchar_t | |
2358 | #include <stddef.h> | |
2359 | #define __need_NULL | |
2360 | #include <stddef.h> | |
2361 | int main() { | |
2362 | size_t size; wchar_t wchar; | |
2363 | #ifdef offsetof | |
2364 | #error stddef.h ignored __need_* | |
2365 | #endif | |
2366 | if (&size == NULL || &wchar == NULL) abort (); | |
2367 | ; return 0; } | |
2368 | EOF | |
6b3f2b3d | 2369 | if { (eval echo configure:2370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6ede75 UD |
2370 | rm -rf conftest* |
2371 | libc_cv_friendly_stddef=yes | |
2372 | else | |
2373 | echo "configure: failed program was:" >&5 | |
2374 | cat conftest.$ac_ext >&5 | |
2375 | rm -rf conftest* | |
2376 | libc_cv_friendly_stddef=no | |
2377 | fi | |
2378 | rm -f conftest* | |
2379 | fi | |
2380 | ||
2381 | echo "$ac_t""$libc_cv_friendly_stddef" 1>&6 | |
2382 | if test $libc_cv_friendly_stddef = yes; then | |
2383 | config_vars="$config_vars | |
2384 | override stddef.h = # The installed <stddef.h> seems to be libc-friendly." | |
2385 | fi | |
2386 | ||
2387 | echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6 | |
6b3f2b3d | 2388 | echo "configure:2389: checking whether we need to use -P to assemble .S files" >&5 |
a808d541 | 2389 | if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then |
cd6ede75 UD |
2390 | echo $ac_n "(cached) $ac_c" 1>&6 |
2391 | else | |
2392 | cat > conftest.S <<EOF | |
2393 | #include "confdefs.h" | |
2394 | /* Nothing whatsoever. */ | |
2395 | EOF | |
2396 | if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then | |
2397 | libc_cv_need_minus_P=no | |
2398 | else | |
2399 | libc_cv_need_minus_P=yes | |
2400 | fi | |
2401 | rm -f conftest* | |
2402 | fi | |
2403 | ||
2404 | echo "$ac_t""$libc_cv_need_minus_P" 1>&6 | |
2405 | if test $libc_cv_need_minus_P = yes; then | |
2406 | config_vars="$config_vars | |
2407 | asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives." | |
2408 | fi | |
2409 | ||
2293395f | 2410 | echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6 |
6b3f2b3d | 2411 | echo "configure:2412: checking whether .text pseudo-op must be used" >&5 |
a808d541 | 2412 | if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then |
2293395f UD |
2413 | echo $ac_n "(cached) $ac_c" 1>&6 |
2414 | else | |
2415 | cat > conftest.s <<EOF | |
2416 | .text | |
2417 | EOF | |
2418 | libc_cv_dot_text= | |
2419 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
2420 | libc_cv_dot_text=.text | |
2421 | fi | |
2422 | rm -f conftest* | |
2423 | fi | |
2424 | ||
2425 | if test -z "$libc_cv_dot_text"; then | |
2426 | echo "$ac_t""no" 1>&6 | |
2427 | else | |
2428 | echo "$ac_t""yes" 1>&6 | |
2429 | fi | |
2430 | ||
cd6ede75 | 2431 | echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6 |
6b3f2b3d | 2432 | echo "configure:2433: checking for assembler global-symbol directive" >&5 |
a808d541 | 2433 | if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then |
cd6ede75 UD |
2434 | echo $ac_n "(cached) $ac_c" 1>&6 |
2435 | else | |
2436 | libc_cv_asm_global_directive=UNKNOWN | |
908c3d5b | 2437 | for ac_globl in .globl .global .EXPORT; do |
cd6ede75 | 2438 | cat > conftest.s <<EOF |
2293395f | 2439 | ${libc_cv_dot_text} |
908c3d5b | 2440 | ${ac_globl} foo |
cd6ede75 UD |
2441 | foo: |
2442 | EOF | |
2443 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
2444 | libc_cv_asm_global_directive=${ac_globl} | |
2445 | fi | |
2446 | rm -f conftest* | |
2447 | test $libc_cv_asm_global_directive != UNKNOWN && break | |
2448 | done | |
2449 | fi | |
2450 | ||
2451 | echo "$ac_t""$libc_cv_asm_global_directive" 1>&6 | |
2452 | if test $libc_cv_asm_global_directive = UNKNOWN; then | |
2453 | { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; } | |
2454 | else | |
2455 | cat >> confdefs.h <<EOF | |
2456 | #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive} | |
2457 | EOF | |
2458 | ||
2459 | fi | |
2460 | ||
2461 | echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6 | |
6b3f2b3d | 2462 | echo "configure:2463: checking for .set assembler directive" >&5 |
a808d541 | 2463 | if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then |
cd6ede75 UD |
2464 | echo $ac_n "(cached) $ac_c" 1>&6 |
2465 | else | |
2466 | cat > conftest.s <<EOF | |
2293395f | 2467 | ${libc_cv_dot_text} |
cd6ede75 UD |
2468 | foo: |
2469 | .set glibc_conftest_frobozz,foo | |
2470 | $libc_cv_asm_global_directive glibc_conftest_frobozz | |
2471 | EOF | |
2472 | # The alpha-dec-osf1 assembler gives only a warning for `.set' | |
2473 | # (but it doesn't work), so we must do a linking check to be sure. | |
2474 | cat > conftest1.c <<\EOF | |
2475 | extern int glibc_conftest_frobozz; | |
2476 | main () { printf ("%d\n", glibc_conftest_frobozz); } | |
2477 | EOF | |
2478 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
2479 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then | |
2480 | libc_cv_asm_set_directive=yes | |
2481 | else | |
2482 | libc_cv_asm_set_directive=no | |
2483 | fi | |
2484 | rm -f conftest* | |
2485 | fi | |
2486 | ||
2487 | echo "$ac_t""$libc_cv_asm_set_directive" 1>&6 | |
2488 | if test $libc_cv_asm_set_directive = yes; then | |
2489 | cat >> confdefs.h <<\EOF | |
2490 | #define HAVE_ASM_SET_DIRECTIVE 1 | |
2491 | EOF | |
2492 | ||
2493 | fi | |
2494 | ||
2495 | echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6 | |
6b3f2b3d | 2496 | echo "configure:2497: checking for .symver assembler directive" >&5 |
a808d541 | 2497 | if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then |
cd6ede75 UD |
2498 | echo $ac_n "(cached) $ac_c" 1>&6 |
2499 | else | |
2500 | cat > conftest.s <<EOF | |
2293395f | 2501 | ${libc_cv_dot_text} |
cd6ede75 UD |
2502 | _sym: |
2503 | .symver _sym,sym@VERS | |
2504 | EOF | |
2505 | if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then | |
2506 | libc_cv_asm_symver_directive=yes | |
2507 | else | |
2508 | libc_cv_asm_symver_directive=no | |
2509 | fi | |
2510 | rm -f conftest* | |
2511 | fi | |
2512 | ||
2513 | echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6 | |
2514 | echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6 | |
6b3f2b3d | 2515 | echo "configure:2516: checking for ld --version-script" >&5 |
a808d541 | 2516 | if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then |
cd6ede75 UD |
2517 | echo $ac_n "(cached) $ac_c" 1>&6 |
2518 | else | |
2519 | if test $libc_cv_asm_symver_directive = yes; then | |
2520 | cat > conftest.s <<EOF | |
2293395f | 2521 | ${libc_cv_dot_text} |
cd6ede75 UD |
2522 | _sym: |
2523 | .symver _sym,sym@VERS | |
2524 | EOF | |
2525 | cat > conftest.map <<EOF | |
f43ce637 | 2526 | VERS_1 { |
cd6ede75 UD |
2527 | global: sym; |
2528 | }; | |
f43ce637 UD |
2529 | |
2530 | VERS_2 { | |
2531 | global: sym; | |
2532 | } VERS_1; | |
cd6ede75 UD |
2533 | EOF |
2534 | if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then | |
2535 | if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o | |
2536 | -nostartfiles -nostdlib | |
2537 | -Wl,--version-script,conftest.map | |
6b3f2b3d | 2538 | 1>&5'; { (eval echo configure:2539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; |
cd6ede75 UD |
2539 | then |
2540 | libc_cv_ld_version_script_option=yes | |
2541 | else | |
2542 | libc_cv_ld_version_script_option=no | |
2543 | fi | |
2544 | else | |
2545 | libc_cv_ld_version_script_option=no | |
2546 | fi | |
2547 | else | |
2548 | libc_cv_ld_version_script_option=no | |
2549 | fi | |
2550 | rm -f conftest* | |
2551 | fi | |
2552 | ||
2553 | echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6 | |
7499a22a RM |
2554 | if test $shared != no && |
2555 | test $libc_cv_asm_symver_directive = yes && | |
650425ce UD |
2556 | test $libc_cv_ld_version_script_option = yes && |
2557 | test $enable_versioning = yes; then | |
cd6ede75 UD |
2558 | VERSIONING=yes |
2559 | cat >> confdefs.h <<\EOF | |
2560 | #define DO_VERSIONING 1 | |
2561 | EOF | |
2562 | ||
2563 | else | |
2564 | VERSIONING=no | |
2565 | fi | |
2566 | ||
2567 | ||
7499a22a | 2568 | if test $shared != no && test $VERSIONING = no; then |
f43ce637 | 2569 | echo "\ |
f4017d20 | 2570 | *** WARNING: You should not compile GNU libc without versioning. Not using |
f43ce637 UD |
2571 | *** versioning will introduce incompatibilities so that old binaries |
2572 | *** will not run anymore. | |
08a0d60a | 2573 | *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)." |
f43ce637 | 2574 | fi |
cd6ede75 UD |
2575 | if test $elf = yes; then |
2576 | echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6 | |
6b3f2b3d | 2577 | echo "configure:2578: checking for .previous assembler directive" >&5 |
a808d541 | 2578 | if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then |
cd6ede75 UD |
2579 | echo $ac_n "(cached) $ac_c" 1>&6 |
2580 | else | |
2581 | cat > conftest.s <<EOF | |
2582 | .section foo_section | |
2583 | .previous | |
2584 | EOF | |
6b3f2b3d | 2585 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
cd6ede75 UD |
2586 | libc_cv_asm_previous_directive=yes |
2587 | else | |
2588 | libc_cv_asm_previous_directive=no | |
2589 | fi | |
2590 | rm -f conftest* | |
2591 | fi | |
2592 | ||
2593 | echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6 | |
2594 | if test $libc_cv_asm_previous_directive = yes; then | |
2595 | cat >> confdefs.h <<\EOF | |
2596 | #define HAVE_ASM_PREVIOUS_DIRECTIVE 1 | |
2597 | EOF | |
2598 | ||
2599 | else | |
2600 | echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6 | |
6b3f2b3d | 2601 | echo "configure:2602: checking for .popsection assembler directive" >&5 |
a808d541 | 2602 | if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then |
cd6ede75 UD |
2603 | echo $ac_n "(cached) $ac_c" 1>&6 |
2604 | else | |
2605 | cat > conftest.s <<EOF | |
2606 | .pushsection foo_section | |
2607 | .popsection | |
2608 | EOF | |
6b3f2b3d | 2609 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
cd6ede75 UD |
2610 | libc_cv_asm_popsection_directive=yes |
2611 | else | |
2612 | libc_cv_asm_popsection_directive=no | |
2613 | fi | |
2614 | rm -f conftest* | |
2615 | fi | |
2616 | ||
2617 | echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6 | |
2618 | if test $libc_cv_asm_popsection_directive = yes; then | |
2619 | cat >> confdefs.h <<\EOF | |
2620 | #define HAVE_ASM_POPSECTION_DIRECTIVE 1 | |
2621 | EOF | |
2622 | ||
2623 | fi | |
2624 | fi | |
2d499f55 | 2625 | echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6 |
6b3f2b3d | 2626 | echo "configure:2627: checking for .protected and .hidden assembler directive" >&5 |
2d499f55 UD |
2627 | if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then |
2628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2629 | else | |
2630 | cat > conftest.s <<EOF | |
2631 | .protected foo | |
2632 | foo: | |
2633 | .hidden bar | |
2634 | bar: | |
2635 | EOF | |
6b3f2b3d | 2636 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
2d499f55 UD |
2637 | libc_cv_asm_protected_directive=yes |
2638 | else | |
2639 | libc_cv_asm_protected_directive=no | |
2640 | fi | |
2641 | rm -f conftest* | |
2642 | fi | |
2643 | ||
2644 | echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6 | |
2645 | ||
2f54c82d UD |
2646 | |
2647 | echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6 | |
6b3f2b3d | 2648 | echo "configure:2649: checking for -z nodelete option" >&5 |
2f54c82d UD |
2649 | if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then |
2650 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2651 | else | |
2652 | cat > conftest.c <<EOF | |
2653 | int _start (void) { return 42; } | |
2654 | EOF | |
6b3f2b3d | 2655 | if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
2f54c82d UD |
2656 | then |
2657 | libc_cv_z_nodelete=yes | |
2658 | else | |
2659 | libc_cv_z_nodelete=no | |
2660 | fi | |
2661 | rm -f conftest* | |
2662 | fi | |
2663 | ||
2664 | echo "$ac_t""$libc_cv_z_nodelete" 1>&6 | |
2665 | ||
2666 | ||
2667 | echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6 | |
6b3f2b3d | 2668 | echo "configure:2669: checking for -z nodlopen option" >&5 |
2f54c82d UD |
2669 | if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then |
2670 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2671 | else | |
2672 | cat > conftest.c <<EOF | |
2673 | int _start (void) { return 42; } | |
2674 | EOF | |
6b3f2b3d | 2675 | if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
2f54c82d UD |
2676 | then |
2677 | libc_cv_z_nodlopen=yes | |
2678 | else | |
2679 | libc_cv_z_nodlopen=no | |
2680 | fi | |
2681 | rm -f conftest* | |
2682 | fi | |
2683 | ||
2684 | echo "$ac_t""$libc_cv_z_nodlopen" 1>&6 | |
2685 | ||
cd6ede75 UD |
2686 | fi |
2687 | ||
2688 | if test $elf != yes; then | |
2689 | echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6 | |
6b3f2b3d | 2690 | echo "configure:2691: checking for .init and .fini sections" >&5 |
a808d541 | 2691 | if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then |
cd6ede75 UD |
2692 | echo $ac_n "(cached) $ac_c" 1>&6 |
2693 | else | |
2694 | cat > conftest.$ac_ext <<EOF | |
6b3f2b3d | 2695 | #line 2696 "configure" |
cd6ede75 UD |
2696 | #include "confdefs.h" |
2697 | ||
2698 | int main() { | |
2699 | asm (".section .init"); | |
2700 | asm (".section .fini"); | |
2293395f | 2701 | asm ("${libc_cv_dot_text}"); |
cd6ede75 UD |
2702 | ; return 0; } |
2703 | EOF | |
6b3f2b3d | 2704 | if { (eval echo configure:2705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6ede75 UD |
2705 | rm -rf conftest* |
2706 | libc_cv_have_initfini=yes | |
2707 | else | |
2708 | echo "configure: failed program was:" >&5 | |
2709 | cat conftest.$ac_ext >&5 | |
2710 | rm -rf conftest* | |
2711 | libc_cv_have_initfini=no | |
2712 | fi | |
2713 | rm -f conftest* | |
2714 | fi | |
2715 | ||
2716 | echo "$ac_t""$libc_cv_have_initfini" 1>&6 | |
2717 | if test $libc_cv_have_initfini = yes; then | |
2718 | cat >> confdefs.h <<\EOF | |
2719 | #define HAVE_INITFINI 1 | |
2720 | EOF | |
2721 | ||
2722 | fi | |
2723 | fi | |
2724 | ||
e26dd47f UD |
2725 | if test $elf = yes -a $gnu_ld = yes; then |
2726 | echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6 | |
6b3f2b3d | 2727 | echo "configure:2728: checking whether cc puts quotes around section names" >&5 |
e26dd47f UD |
2728 | if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then |
2729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2730 | else | |
2731 | cat > conftest.c <<EOF | |
2732 | static const int foo | |
2733 | __attribute__ ((section ("bar"))) = 1; | |
2734 | EOF | |
2735 | if ${CC-cc} -S conftest.c -o conftest.s; then | |
2736 | if grep '\.section.*"bar"' conftest.s >/dev/null; then | |
2737 | libc_cv_have_section_quotes=yes | |
2738 | else | |
2739 | libc_cv_have_section_quotes=no | |
2740 | fi | |
2741 | else | |
2742 | libc_cv_have_section_quotes=unknown | |
2743 | fi | |
2744 | rm -f conftest.cs | |
2745 | ||
2746 | fi | |
2747 | ||
2748 | echo "$ac_t""$libc_cv_have_section_quotes" 1>&6 | |
2749 | if test $libc_cv_have_section_quotes = yes; then | |
2750 | cat >> confdefs.h <<\EOF | |
2751 | #define HAVE_SECTION_QUOTES 1 | |
2752 | EOF | |
2753 | ||
2754 | fi | |
2755 | fi | |
2756 | ||
9a0a462c UD |
2757 | |
2758 | ||
cd6ede75 UD |
2759 | if test $elf = yes; then |
2760 | libc_cv_asm_underscores=no | |
2761 | else | |
9a0a462c UD |
2762 | if test $ac_cv_prog_cc_works = yes; then |
2763 | echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6 | |
6b3f2b3d | 2764 | echo "configure:2765: checking for _ prefix on C symbol names" >&5 |
a808d541 | 2765 | if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then |
cd6ede75 UD |
2766 | echo $ac_n "(cached) $ac_c" 1>&6 |
2767 | else | |
2768 | cat > conftest.$ac_ext <<EOF | |
6b3f2b3d | 2769 | #line 2770 "configure" |
cd6ede75 UD |
2770 | #include "confdefs.h" |
2771 | asm ("_glibc_foobar:"); | |
2772 | int main() { | |
2773 | glibc_foobar (); | |
2774 | ; return 0; } | |
2775 | EOF | |
6b3f2b3d | 2776 | if { (eval echo configure:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
cd6ede75 UD |
2777 | rm -rf conftest* |
2778 | libc_cv_asm_underscores=yes | |
2779 | else | |
2780 | echo "configure: failed program was:" >&5 | |
2781 | cat conftest.$ac_ext >&5 | |
2782 | rm -rf conftest* | |
2783 | libc_cv_asm_underscores=no | |
2784 | fi | |
2785 | rm -f conftest* | |
2786 | fi | |
2787 | ||
2788 | echo "$ac_t""$libc_cv_asm_underscores" 1>&6 | |
9a0a462c UD |
2789 | else |
2790 | echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6 | |
6b3f2b3d | 2791 | echo "configure:2792: checking for _ prefix on C symbol names" >&5 |
a808d541 | 2792 | if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then |
9a0a462c UD |
2793 | echo $ac_n "(cached) $ac_c" 1>&6 |
2794 | else | |
2795 | cat > conftest.$ac_ext <<EOF | |
6b3f2b3d | 2796 | #line 2797 "configure" |
9a0a462c UD |
2797 | #include "confdefs.h" |
2798 | void underscore_test(void) { | |
2799 | return; } | |
2800 | EOF | |
6b3f2b3d | 2801 | if { (eval echo configure:2802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
9a0a462c UD |
2802 | if grep _underscore_test conftest* >/dev/null; then |
2803 | rm -f conftest* | |
2804 | libc_cv_asm_underscores=yes | |
2805 | else | |
2806 | rm -f conftest* | |
2807 | libc_cv_asm_underscores=no | |
2808 | fi | |
2809 | else | |
2810 | echo "configure: failed program was:" >&5 | |
2811 | cat conftest.$ac_ext >&5 | |
2812 | rm -f conftest* | |
2813 | libc_cv_asm_underscores=no | |
2814 | fi | |
2815 | rm -f conftest* | |
2816 | fi | |
2817 | ||
2818 | echo "$ac_t""$libc_cv_asm_underscores" 1>&6 | |
2819 | fi | |
cd6ede75 UD |
2820 | fi |
2821 | if test $libc_cv_asm_underscores = no; then | |
2822 | cat >> confdefs.h <<\EOF | |
2823 | #define NO_UNDERSCORES 1 | |
2824 | EOF | |
2825 | ||
2826 | fi | |
2827 | ||
2828 | if test $elf = yes; then | |
2829 | libc_cv_weak_symbols=yes | |
9a97d1f7 UD |
2830 | fi |
2831 | ||
2832 | echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6 | |
6b3f2b3d | 2833 | echo "configure:2834: checking for assembler .weak directive" >&5 |
a808d541 | 2834 | if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then |
cd6ede75 UD |
2835 | echo $ac_n "(cached) $ac_c" 1>&6 |
2836 | else | |
2837 | cat > conftest.s <<EOF | |
2293395f | 2838 | ${libc_cv_dot_text} |
cd6ede75 UD |
2839 | ${libc_cv_asm_global_directive} foo |
2840 | foo: | |
2841 | .weak foo | |
2842 | .weak bar; bar = foo | |
2843 | EOF | |
9a97d1f7 UD |
2844 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then |
2845 | libc_cv_asm_weak_directive=yes | |
2846 | else | |
2847 | libc_cv_asm_weak_directive=no | |
2848 | fi | |
2849 | rm -f conftest* | |
cd6ede75 UD |
2850 | fi |
2851 | ||
2852 | echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6 | |
2853 | ||
2854 | if test $libc_cv_asm_weak_directive = no; then | |
2855 | echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6 | |
6b3f2b3d | 2856 | echo "configure:2857: checking for assembler .weakext directive" >&5 |
a808d541 | 2857 | if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then |
cd6ede75 UD |
2858 | echo $ac_n "(cached) $ac_c" 1>&6 |
2859 | else | |
2860 | cat > conftest.s <<EOF | |
2293395f | 2861 | ${libc_cv_dot_text} |
cd6ede75 UD |
2862 | ${libc_cv_asm_global_directive} foo |
2863 | foo: | |
9a97d1f7 UD |
2864 | .weakext bar foo |
2865 | .weakext baz | |
2866 | ${libc_cv_asm_global_directive} baz | |
2867 | baz: | |
cd6ede75 UD |
2868 | EOF |
2869 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
2870 | libc_cv_asm_weakext_directive=yes | |
2871 | else | |
2872 | libc_cv_asm_weakext_directive=no | |
2873 | fi | |
2874 | rm -f conftest* | |
2875 | fi | |
2876 | ||
2877 | echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6 | |
2878 | ||
9a97d1f7 | 2879 | fi # no .weak |
cd6ede75 UD |
2880 | |
2881 | if test $libc_cv_asm_weak_directive = yes; then | |
2882 | cat >> confdefs.h <<\EOF | |
2883 | #define HAVE_ASM_WEAK_DIRECTIVE 1 | |
2884 | EOF | |
2885 | ||
2886 | elif test $libc_cv_asm_weakext_directive = yes; then | |
2887 | cat >> confdefs.h <<\EOF | |
2888 | #define HAVE_ASM_WEAKEXT_DIRECTIVE 1 | |
2889 | EOF | |
2890 | ||
2891 | fi | |
2892 | ||
b15cb495 UD |
2893 | case "${host_cpu}-${host_os}" in |
2894 | hppa*linux*) | |
2895 | echo $ac_n "checking for assembler line separator""... $ac_c" 1>&6 | |
6b3f2b3d | 2896 | echo "configure:2897: checking for assembler line separator" >&5 |
b15cb495 UD |
2897 | if eval "test \"`echo '$''{'libc_cv_asm_line_sep'+set}'`\" = set"; then |
2898 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2899 | else | |
2900 | cat > conftest.s <<EOF | |
2901 | nop ; is_old_puffin | |
2902 | EOF | |
6b3f2b3d | 2903 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
b15cb495 UD |
2904 | libc_cv_asm_line_sep='!' |
2905 | else | |
2906 | if test -z "$enable_hacker_mode"; then | |
2907 | echo "*** You need a newer assembler to compile glibc" | |
2908 | rm -f conftest* | |
2909 | exit 1 | |
2910 | fi | |
2911 | libc_cv_asm_line_sep=';' | |
2912 | fi | |
2913 | rm -f conftest* | |
2914 | fi | |
2915 | ||
2916 | echo "$ac_t""$libc_cv_asm_line_sep" 1>&6 | |
2917 | cat >> confdefs.h <<EOF | |
2918 | #define ASM_LINE_SEP $libc_cv_asm_line_sep | |
2919 | EOF | |
2920 | ||
2921 | ;; | |
2922 | esac | |
2923 | ||
cd6ede75 | 2924 | echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6 |
6b3f2b3d | 2925 | echo "configure:2926: checking for ld --no-whole-archive" >&5 |
a808d541 | 2926 | if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then |
cd6ede75 UD |
2927 | echo $ac_n "(cached) $ac_c" 1>&6 |
2928 | else | |
2929 | cat > conftest.c <<\EOF | |
2930 | _start () {} | |
2931 | int __eh_pc; | |
2932 | __throw () {} | |
2933 | EOF | |
2934 | if { ac_try='${CC-cc} $CFLAGS | |
2935 | -nostdlib -nostartfiles -Wl,--no-whole-archive | |
6b3f2b3d | 2936 | -o conftest conftest.c 1>&5'; { (eval echo configure:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
cd6ede75 UD |
2937 | libc_cv_ld_no_whole_archive=yes |
2938 | else | |
2939 | libc_cv_ld_no_whole_archive=no | |
2940 | fi | |
2941 | rm -f conftest* | |
2942 | fi | |
2943 | ||
2944 | echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6 | |
b17277cf UD |
2945 | if test $libc_cv_ld_no_whole_archive = yes; then |
2946 | no_whole_archive=-Wl,--no-whole-archive | |
2947 | fi | |
cd6ede75 | 2948 | |
dff14448 | 2949 | echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6 |
6b3f2b3d | 2950 | echo "configure:2951: checking for gcc -fexceptions" >&5 |
a808d541 | 2951 | if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then |
cd6ede75 UD |
2952 | echo $ac_n "(cached) $ac_c" 1>&6 |
2953 | else | |
2954 | cat > conftest.c <<\EOF | |
2955 | _start () {} | |
2956 | int __eh_pc; | |
2957 | __throw () {} | |
2958 | EOF | |
2959 | if { ac_try='${CC-cc} $CFLAGS | |
dff14448 | 2960 | -nostdlib -nostartfiles -fexceptions |
6b3f2b3d | 2961 | -o conftest conftest.c 1>&5'; { (eval echo configure:2962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
dff14448 | 2962 | libc_cv_gcc_exceptions=yes |
cd6ede75 | 2963 | else |
dff14448 | 2964 | libc_cv_gcc_exceptions=no |
cd6ede75 UD |
2965 | fi |
2966 | rm -f conftest* | |
2967 | fi | |
2968 | ||
dff14448 UD |
2969 | echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6 |
2970 | if test $libc_cv_gcc_exceptions = yes; then | |
2971 | exceptions=-fexceptions | |
b17277cf | 2972 | fi |
cd6ede75 | 2973 | |
d71b808a UD |
2974 | if test "$base_machine" = alpha ; then |
2975 | echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6 | |
6b3f2b3d | 2976 | echo "configure:2977: checking for function ..ng prefix" >&5 |
a808d541 | 2977 | if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then |
d71b808a UD |
2978 | echo $ac_n "(cached) $ac_c" 1>&6 |
2979 | else | |
2980 | cat > conftest.c <<\EOF | |
2981 | foo () { } | |
2982 | EOF | |
6b3f2b3d | 2983 | if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; |
d71b808a UD |
2984 | then |
2985 | libc_cv_gcc_alpha_ng_prefix=yes | |
2986 | else | |
2987 | libc_cv_gcc_alpha_ng_prefix=no | |
2988 | fi | |
2989 | rm -f conftest* | |
2990 | fi | |
2991 | ||
2992 | echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6 | |
2993 | if test $libc_cv_gcc_alpha_ng_prefix = yes ; then | |
2994 | cat >> confdefs.h <<\EOF | |
2995 | #define ASM_ALPHA_NG_SYMBOL_PREFIX "$" | |
2996 | EOF | |
2997 | ||
2998 | else | |
2999 | cat >> confdefs.h <<\EOF | |
3000 | #define ASM_ALPHA_NG_SYMBOL_PREFIX "" | |
3001 | EOF | |
3002 | ||
3003 | fi | |
3004 | fi | |
3005 | ||
ebcd12d4 UD |
3006 | if test "$host_cpu" = powerpc ; then |
3007 | # Check for a bug present in at least versions 2.8.x of GCC | |
3008 | # and versions 1.0.x of EGCS. | |
3009 | echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6 | |
6b3f2b3d | 3010 | echo "configure:3011: checking whether clobbering cr0 causes problems" >&5 |
a808d541 | 3011 | if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then |
ebcd12d4 UD |
3012 | echo $ac_n "(cached) $ac_c" 1>&6 |
3013 | else | |
3014 | cat > conftest.$ac_ext <<EOF | |
6b3f2b3d | 3015 | #line 3016 "configure" |
ebcd12d4 UD |
3016 | #include "confdefs.h" |
3017 | int tester(int x) { asm ("" : : : "cc"); return x & 123; } | |
3018 | int main() { | |
3019 | ||
3020 | ; return 0; } | |
3021 | EOF | |
6b3f2b3d | 3022 | if { (eval echo configure:3023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ebcd12d4 UD |
3023 | rm -rf conftest* |
3024 | libc_cv_c_asmcr0_bug='no' | |
3025 | else | |
3026 | echo "configure: failed program was:" >&5 | |
3027 | cat conftest.$ac_ext >&5 | |
3028 | rm -rf conftest* | |
3029 | libc_cv_c_asmcr0_bug='yes' | |
3030 | fi | |
3031 | rm -f conftest* | |
3032 | fi | |
3033 | ||
3034 | echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6 | |
3035 | if test "$libc_cv_c_asmcr0_bug" != 'no'; then | |
3036 | cat >> confdefs.h <<\EOF | |
3037 | #define BROKEN_PPC_ASM_CR0 1 | |
3038 | EOF | |
3039 | ||
3040 | fi | |
3041 | fi | |
3042 | ||
650425ce | 3043 | echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6 |
6b3f2b3d | 3044 | echo "configure:3045: checking for DWARF2 unwind info support" >&5 |
a808d541 | 3045 | if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then |
650425ce UD |
3046 | echo $ac_n "(cached) $ac_c" 1>&6 |
3047 | else | |
3048 | cat > conftest.c <<EOF | |
6b3f2b3d | 3049 | #line 3050 "configure" |
650425ce UD |
3050 | static char __EH_FRAME_BEGIN__; |
3051 | _start () | |
3052 | { | |
9756dfe1 | 3053 | #ifdef CHECK__register_frame |
650425ce UD |
3054 | __register_frame (__EH_FRAME_BEGIN__); |
3055 | __deregister_frame (__EH_FRAME_BEGIN__); | |
9756dfe1 UD |
3056 | #endif |
3057 | #ifdef CHECK__register_frame_info | |
3058 | __register_frame_info (__EH_FRAME_BEGIN__); | |
3059 | __deregister_frame_info (__EH_FRAME_BEGIN__); | |
3060 | #endif | |
650425ce UD |
3061 | } |
3062 | int __eh_pc; | |
3063 | __throw () {} | |
3064 | /* FIXME: this is fragile. */ | |
3065 | malloc () {} | |
3066 | strcmp () {} | |
3067 | strlen () {} | |
3068 | memcpy () {} | |
3069 | memset () {} | |
3070 | free () {} | |
3071 | abort () {} | |
dfd2257a | 3072 | __bzero () {} |
650425ce | 3073 | EOF |
9756dfe1 | 3074 | if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info |
650425ce | 3075 | -nostdlib -nostartfiles |
6b3f2b3d | 3076 | -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
9756dfe1 | 3077 | libc_cv_gcc_dwarf2_unwind_info=static |
650425ce UD |
3078 | else |
3079 | libc_cv_gcc_dwarf2_unwind_info=no | |
3080 | fi | |
9756dfe1 UD |
3081 | if test $libc_cv_gcc_dwarf2_unwind_info = no; then |
3082 | if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame | |
3083 | -nostdlib -nostartfiles | |
6b3f2b3d | 3084 | -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
9756dfe1 UD |
3085 | libc_cv_gcc_dwarf2_unwind_info=yes |
3086 | else | |
3087 | libc_cv_gcc_dwarf2_unwind_info=no | |
3088 | fi | |
3089 | fi | |
650425ce UD |
3090 | rm -f conftest* |
3091 | fi | |
3092 | ||
3093 | echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6 | |
9756dfe1 UD |
3094 | case $libc_cv_gcc_dwarf2_unwind_info in |
3095 | yes) | |
650425ce UD |
3096 | cat >> confdefs.h <<\EOF |
3097 | #define HAVE_DWARF2_UNWIND_INFO 1 | |
3098 | EOF | |
3099 | ||
9756dfe1 UD |
3100 | ;; |
3101 | static) | |
3102 | cat >> confdefs.h <<\EOF | |
3103 | #define HAVE_DWARF2_UNWIND_INFO 1 | |
3104 | EOF | |
3105 | ||
3106 | cat >> confdefs.h <<\EOF | |
3107 | #define HAVE_DWARF2_UNWIND_INFO_STATIC 1 | |
3108 | EOF | |
3109 | ||
3110 | ;; | |
3111 | esac | |
650425ce | 3112 | |
a8eab8b1 | 3113 | echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6 |
6b3f2b3d | 3114 | echo "configure:3115: checking for __builtin_expect" >&5 |
a808d541 | 3115 | if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then |
a8eab8b1 UD |
3116 | echo $ac_n "(cached) $ac_c" 1>&6 |
3117 | else | |
3118 | cat > conftest.c <<EOF | |
6b3f2b3d | 3119 | #line 3120 "configure" |
a8eab8b1 UD |
3120 | int foo (int a) |
3121 | { | |
3122 | a = __builtin_expect (a, 10); | |
3123 | return a == 10 ? 0 : 1; | |
3124 | } | |
3125 | EOF | |
3126 | if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles | |
6b3f2b3d | 3127 | -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
a8eab8b1 UD |
3128 | libc_cv_gcc_builtin_expect=yes |
3129 | else | |
3130 | libc_cv_gcc_builtin_expect=no | |
3131 | fi | |
3132 | rm -f conftest* | |
3133 | fi | |
3134 | ||
3135 | echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6 | |
3136 | if test "$libc_cv_gcc_builtin_expect" = yes; then | |
3137 | cat >> confdefs.h <<\EOF | |
3138 | #define HAVE_BUILTIN_EXPECT 1 | |
3139 | EOF | |
3140 | ||
3141 | fi | |
3142 | ||
3d558f4e | 3143 | echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6 |
6b3f2b3d | 3144 | echo "configure:3145: checking for local label subtraction" >&5 |
a808d541 | 3145 | if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then |
3d558f4e UD |
3146 | echo $ac_n "(cached) $ac_c" 1>&6 |
3147 | else | |
3148 | cat > conftest.c <<EOF | |
6b3f2b3d | 3149 | #line 3150 "configure" |
3d558f4e UD |
3150 | int foo (int a) |
3151 | { | |
3152 | static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 }; | |
3153 | void *p = &&l1 + ar[a]; | |
3154 | goto *p; | |
3155 | l1: | |
3156 | return 1; | |
3157 | l2: | |
3158 | return 2; | |
3159 | } | |
3160 | EOF | |
3161 | if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles | |
6b3f2b3d | 3162 | -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
3d558f4e UD |
3163 | libc_cv_gcc_subtract_local_labels=yes |
3164 | else | |
3165 | libc_cv_gcc_subtract_local_labels=no | |
3166 | fi | |
3167 | rm -f conftest* | |
3168 | fi | |
3169 | ||
3170 | echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6 | |
3171 | if test "$libc_cv_gcc_subtract_local_labels" = yes; then | |
3172 | cat >> confdefs.h <<\EOF | |
3173 | #define HAVE_SUBTRACT_LOCAL_LABELS 1 | |
3174 | EOF | |
3175 | ||
3176 | fi | |
3177 | ||
c8f3e6db | 3178 | echo $ac_n "checking for libgd""... $ac_c" 1>&6 |
6b3f2b3d | 3179 | echo "configure:3180: checking for libgd" >&5 |
c8f3e6db UD |
3180 | old_CFLAGS="$CFLAGS" |
3181 | CFLAGS="$CFLAGS $libgd_include" | |
3182 | old_LDFLAGS="$LDFLAGS" | |
3183 | LDFLAGS="$LDFLAGS $libgd_ldflags" | |
3184 | old_LIBS="$LIBS" | |
580ca83f | 3185 | LIBS="$LIBS -lgd -lpng -lz -lm" |
c8f3e6db | 3186 | cat > conftest.$ac_ext <<EOF |
6b3f2b3d | 3187 | #line 3188 "configure" |
c8f3e6db UD |
3188 | #include "confdefs.h" |
3189 | #include <gd.h> | |
3190 | int main() { | |
3191 | gdImagePng (0, 0) | |
3192 | ; return 0; } | |
3193 | EOF | |
6b3f2b3d | 3194 | if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c8f3e6db UD |
3195 | rm -rf conftest* |
3196 | LIBGD=yes | |
3197 | else | |
3198 | echo "configure: failed program was:" >&5 | |
3199 | cat conftest.$ac_ext >&5 | |
3200 | rm -rf conftest* | |
3201 | LIBGD=no | |
3202 | fi | |
3203 | rm -f conftest* | |
3204 | CFLAGS="$old_CFLAGS" | |
3205 | LDFLAGS="$old_LDFLAGS" | |
3206 | LIBS="$old_LIBS" | |
3207 | echo "$ac_t""$LIBGD" 1>&6 | |
3208 | ||
3d558f4e | 3209 | |
8ed1e7d5 | 3210 | echo $ac_n "checking size of long double""... $ac_c" 1>&6 |
6b3f2b3d | 3211 | echo "configure:3212: checking size of long double" >&5 |
8ed1e7d5 GK |
3212 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then |
3213 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3214 | else | |
3215 | if test "$cross_compiling" = yes; then | |
3216 | ac_cv_sizeof_long_double=0 | |
3217 | else | |
3218 | cat > conftest.$ac_ext <<EOF | |
6b3f2b3d | 3219 | #line 3220 "configure" |
8ed1e7d5 GK |
3220 | #include "confdefs.h" |
3221 | #include <stdio.h> | |
3222 | main() | |
3223 | { | |
3224 | FILE *f=fopen("conftestval", "w"); | |
3225 | if (!f) exit(1); | |
3226 | fprintf(f, "%d\n", sizeof(long double)); | |
3227 | exit(0); | |
3228 | } | |
3229 | EOF | |
6b3f2b3d | 3230 | if { (eval echo configure:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8ed1e7d5 GK |
3231 | then |
3232 | ac_cv_sizeof_long_double=`cat conftestval` | |
3233 | else | |
3234 | echo "configure: failed program was:" >&5 | |
3235 | cat conftest.$ac_ext >&5 | |
3236 | rm -fr conftest* | |
3237 | ac_cv_sizeof_long_double=0 | |
3238 | fi | |
3239 | rm -fr conftest* | |
3240 | fi | |
3241 | ||
3242 | fi | |
3243 | echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6 | |
3244 | cat >> confdefs.h <<EOF | |
3245 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | |
3246 | EOF | |
3247 | ||
3248 | ||
3249 | sizeof_long_double=$ac_cv_sizeof_long_double | |
3250 | ||
3251 | ||
cd6ede75 UD |
3252 | ### End of automated tests. |
3253 | ### Now run sysdeps configure fragments. | |
3254 | ||
3255 | # sysdeps configure fragments may set these with files to be linked below. | |
3256 | libc_link_dests= | |
3257 | libc_link_sources= | |
3258 | ||
cb343854 | 3259 | # They also can set these variables. |
b43b13ac | 3260 | use_ldconfig=no |
cb343854 UD |
3261 | ldd_rewrite_script=no |
3262 | ||
cd6ede75 UD |
3263 | # Iterate over all the sysdep directories we will use, running their |
3264 | # configure fragments, and looking for a uname implementation. | |
3265 | uname= | |
3266 | for dir in $sysnames; do | |
3267 | case $dir in | |
3268 | /*) dest=$dir ;; | |
3269 | *) dest=$srcdir/$dir ;; | |
3270 | esac | |
3271 | if test -r $dest/configure; then | |
3272 | echo "$ac_t""running configure fragment for $dest" 1>&6 | |
3273 | . $dest/configure | |
3274 | fi | |
3275 | ||
3276 | if test -z "$uname"; then | |
3277 | if test -r $dest/uname.c || | |
3278 | test -r $dest/uname.S || | |
3279 | { test -r $dest/syscalls.list && | |
3280 | grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then | |
3281 | uname=$dir | |
3282 | fi | |
3283 | fi | |
3284 | done | |
3285 | ||
3286 | ||
3287 | ||
3288 | # If we will use the generic uname implementation, we must figure out what | |
3289 | # it will say by examining the system, and write the results in config-name.h. | |
3290 | if test "$uname" = "sysdeps/generic"; then | |
3291 | ||
3292 | uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'` | |
3293 | if test $uname_sysname != $config_os; then | |
3294 | config_release=`echo $config_os | sed s/$uname_sysname//` | |
3295 | fi | |
3296 | ||
3297 | echo $ac_n "checking OS release for uname""... $ac_c" 1>&6 | |
6b3f2b3d | 3298 | echo "configure:3299: checking OS release for uname" >&5 |
a808d541 | 3299 | if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then |
cd6ede75 UD |
3300 | echo $ac_n "(cached) $ac_c" 1>&6 |
3301 | else | |
3302 | kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'` | |
3303 | if test x`echo "$config_release" | sed "s/^$kernel_release//"` \ | |
3304 | != x$config_release; then | |
3305 | # The configuration release is a substring of the kernel release. | |
3306 | libc_cv_uname_release=$kernel_release | |
3307 | elif test x$config_release != x; then | |
3308 | libc_cv_uname_release=$config_release | |
3309 | elif test x$kernel_release != x; then | |
3310 | libc_cv_uname_release=$kernel_release | |
3311 | else | |
3312 | libc_cv_uname_release=unknown | |
3313 | fi | |
3314 | fi | |
3315 | ||
3316 | echo "$ac_t""$libc_cv_uname_release" 1>&6 | |
3317 | uname_release="$libc_cv_uname_release" | |
3318 | ||
3319 | echo $ac_n "checking OS version for uname""... $ac_c" 1>&6 | |
6b3f2b3d | 3320 | echo "configure:3321: checking OS version for uname" >&5 |
a808d541 | 3321 | if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then |
cd6ede75 UD |
3322 | echo $ac_n "(cached) $ac_c" 1>&6 |
3323 | else | |
3324 | kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'` | |
3325 | if test -n "$kernel_version"; then | |
3326 | libc_cv_uname_version="$kernel_version" | |
3327 | else | |
3328 | libc_cv_uname_version=unknown | |
3329 | fi | |
3330 | fi | |
3331 | ||
3332 | echo "$ac_t""$libc_cv_uname_version" 1>&6 | |
3333 | uname_version="$libc_cv_uname_version" | |
3334 | ||
3335 | config_uname=config-name.h:config-name.in | |
3336 | else | |
3337 | # For non-generic uname, we don't need to create config-name.h at all. | |
3338 | config_uname= | |
3339 | fi | |
3340 | ||
3341 | echo $ac_n "checking stdio selection""... $ac_c" 1>&6 | |
6b3f2b3d | 3342 | echo "configure:3343: checking stdio selection" >&5 |
cd6ede75 UD |
3343 | |
3344 | case $stdio in | |
3345 | libio) cat >> confdefs.h <<\EOF | |
3346 | #define USE_IN_LIBIO 1 | |
3347 | EOF | |
3348 | ;; | |
3349 | default) stdio=stdio ;; | |
3350 | esac | |
3351 | echo "$ac_t""$stdio" 1>&6 | |
3352 | ||
a53bad16 UD |
3353 | # Test for old glibc 2.0.x headers so that they can be removed properly |
3354 | # Search only in includedir. | |
3355 | echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6 | |
6b3f2b3d | 3356 | echo "configure:3357: checking for old glibc 2.0.x headers" >&5 |
011ce8ed | 3357 | if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h" |
a53bad16 UD |
3358 | then |
3359 | old_glibc_headers=yes | |
3360 | else | |
3361 | old_glibc_headers=no | |
3362 | fi | |
3363 | echo "$ac_t""$old_glibc_headers" 1>&6 | |
3364 | if test ${old_glibc_headers} = yes; then | |
3365 | echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2 | |
3366 | echo "configure: warning: *** be removed." 1>&2 | |
3367 | fi | |
26b4d766 | 3368 | |
cd6ede75 UD |
3369 | |
3370 | ||
3371 | ||
3372 | ||
3373 | ||
3374 | ||
cb343854 | 3375 | |
dff14448 | 3376 | |
e5aa91c3 | 3377 | |
cd6ede75 UD |
3378 | |
3379 | if test $gnu_ld = yes; then | |
3380 | cat >> confdefs.h <<\EOF | |
3381 | #define HAVE_GNU_LD 1 | |
3382 | EOF | |
3383 | ||
3384 | fi | |
3385 | if test $gnu_as = yes; then | |
3386 | cat >> confdefs.h <<\EOF | |
3387 | #define HAVE_GNU_AS 1 | |
3388 | EOF | |
3389 | ||
3390 | fi | |
3391 | if test $elf = yes; then | |
3392 | cat >> confdefs.h <<\EOF | |
3393 | #define HAVE_ELF 1 | |
3394 | EOF | |
3395 | ||
3396 | fi | |
3397 | ||
3398 | ||
650425ce | 3399 | |
cd6ede75 UD |
3400 | if test $shared = default; then |
3401 | if test $gnu_ld = yes; then | |
3402 | shared=$elf | |
3403 | else | |
3404 | # For now we do not assume shared libs are available. In future more | |
3405 | # tests might become available. | |
3406 | shared=no | |
3407 | fi | |
3408 | fi | |
3409 | ||
cc3fa755 | 3410 | echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6 |
6b3f2b3d | 3411 | echo "configure:3412: checking whether -fPIC is default" >&5 |
a808d541 | 3412 | if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then |
cc3fa755 UD |
3413 | echo $ac_n "(cached) $ac_c" 1>&6 |
3414 | else | |
3415 | pic_default=yes | |
3416 | cat > conftest.c <<EOF | |
9756dfe1 | 3417 | #if defined __PIC__ || defined __pic__ || defined PIC || defined pic |
cc3fa755 UD |
3418 | # error PIC is default. |
3419 | #endif | |
3420 | EOF | |
3421 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
3422 | pic_default=no | |
3423 | fi | |
3424 | rm -f conftest.* | |
3425 | fi | |
3426 | ||
3427 | echo "$ac_t""$pic_default" 1>&6 | |
3428 | ||
3429 | ||
3430 | ||
cd6ede75 UD |
3431 | |
3432 | ||
3433 | ||
3434 | ||
3435 | ||
3436 | ||
3437 | ||
7cabd57c UD |
3438 | case "$add_ons" in |
3439 | *door*) linux_doors=yes ;; | |
3440 | *) linux_doors=no ;; | |
3441 | esac | |
3442 | ||
3443 | ||
cd6ede75 UD |
3444 | if test "`(cd $srcdir; pwd)`" = "`pwd`"; then |
3445 | config_makefile= | |
3446 | else | |
3447 | config_makefile=Makefile | |
3448 | fi | |
3449 | ||
ee74a442 UD |
3450 | VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h` |
3451 | RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h` | |
3452 | ||
cd6ede75 UD |
3453 | |
3454 | ||
3455 | trap '' 1 2 15 | |
3456 | cat > confcache <<\EOF | |
3457 | # This file is a shell script that caches the results of configure | |
3458 | # tests run on this system so they can be shared between configure | |
3459 | # scripts and configure runs. It is not useful on other systems. | |
3460 | # If it contains results you don't want to keep, you may remove or edit it. | |
3461 | # | |
3462 | # By default, configure uses ./config.cache as the cache file, | |
3463 | # creating it if it does not exist already. You can give configure | |
3464 | # the --cache-file=FILE option to use a different cache file; that is | |
3465 | # what configure does when it calls configure scripts in | |
3466 | # subdirectories, so they share the cache. | |
3467 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
3468 | # config.status only pays attention to the cache file if you give it the | |
3469 | # --recheck option to rerun configure. | |
3470 | # | |
3471 | EOF | |
3472 | # The following way of writing the cache mishandles newlines in values, | |
3473 | # but we know of no workaround that is simple, portable, and efficient. | |
3474 | # So, don't put newlines in cache variables' values. | |
3475 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3476 | # and sets the high bit in the cache file unless we assign to the vars. | |
3477 | (set) 2>&1 | | |
5c2a0669 | 3478 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
cd6ede75 UD |
3479 | *ac_space=\ *) |
3480 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
3481 | # turns \\\\ into \\, and sed turns \\ into \). | |
3482 | sed -n \ | |
3483 | -e "s/'/'\\\\''/g" \ | |
3484 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
3485 | ;; | |
3486 | *) | |
3487 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3488 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
3489 | ;; | |
3490 | esac >> confcache | |
3491 | if cmp -s $cache_file confcache; then | |
3492 | : | |
3493 | else | |
3494 | if test -w $cache_file; then | |
3495 | echo "updating cache $cache_file" | |
3496 | cat confcache > $cache_file | |
3497 | else | |
3498 | echo "not updating unwritable cache $cache_file" | |
3499 | fi | |
3500 | fi | |
3501 | rm -f confcache | |
3502 | ||
3503 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
3504 | ||
3505 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3506 | # Let make expand exec_prefix. | |
3507 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3508 | ||
3509 | # Any assignment to VPATH causes Sun make to only execute | |
3510 | # the first set of double-colon rules, so remove it if not needed. | |
3511 | # If there is a colon in the path, we need to keep it. | |
3512 | if test "x$srcdir" = x.; then | |
3513 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
3514 | fi | |
3515 | ||
3516 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
3517 | ||
3518 | DEFS=-DHAVE_CONFIG_H | |
3519 | ||
3520 | # Without the "./", some shells look in PATH for config.status. | |
3521 | : ${CONFIG_STATUS=./config.status} | |
3522 | ||
3523 | echo creating $CONFIG_STATUS | |
3524 | rm -f $CONFIG_STATUS | |
3525 | cat > $CONFIG_STATUS <<EOF | |
3526 | #! /bin/sh | |
3527 | # Generated automatically by configure. | |
3528 | # Run this file to recreate the current configuration. | |
3529 | # This directory was configured as follows, | |
3530 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
3531 | # | |
3532 | # $0 $ac_configure_args | |
3533 | # | |
3534 | # Compiler output produced by configure, useful for debugging | |
3535 | # configure, is in ./config.log if it exists. | |
3536 | ||
3537 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
3538 | for ac_option | |
3539 | do | |
3540 | case "\$ac_option" in | |
3541 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3542 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
3543 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
3544 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
a808d541 | 3545 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
cd6ede75 UD |
3546 | exit 0 ;; |
3547 | -help | --help | --hel | --he | --h) | |
3548 | echo "\$ac_cs_usage"; exit 0 ;; | |
3549 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
3550 | esac | |
3551 | done | |
3552 | ||
3553 | ac_given_srcdir=$srcdir | |
3554 | ac_given_INSTALL="$INSTALL" | |
3555 | ||
3556 | trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
3557 | EOF | |
3558 | cat >> $CONFIG_STATUS <<EOF | |
3559 | ||
3560 | # Protect against being on the right side of a sed subst in config.status. | |
3561 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
3562 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
3563 | $ac_vpsub | |
3564 | $extrasub | |
5c2a0669 | 3565 | s%@SHELL@%$SHELL%g |
cd6ede75 UD |
3566 | s%@CFLAGS@%$CFLAGS%g |
3567 | s%@CPPFLAGS@%$CPPFLAGS%g | |
3568 | s%@CXXFLAGS@%$CXXFLAGS%g | |
5c2a0669 | 3569 | s%@FFLAGS@%$FFLAGS%g |
cd6ede75 UD |
3570 | s%@DEFS@%$DEFS%g |
3571 | s%@LDFLAGS@%$LDFLAGS%g | |
3572 | s%@LIBS@%$LIBS%g | |
3573 | s%@exec_prefix@%$exec_prefix%g | |
3574 | s%@prefix@%$prefix%g | |
3575 | s%@program_transform_name@%$program_transform_name%g | |
3576 | s%@bindir@%$bindir%g | |
3577 | s%@sbindir@%$sbindir%g | |
3578 | s%@libexecdir@%$libexecdir%g | |
3579 | s%@datadir@%$datadir%g | |
3580 | s%@sysconfdir@%$sysconfdir%g | |
3581 | s%@sharedstatedir@%$sharedstatedir%g | |
3582 | s%@localstatedir@%$localstatedir%g | |
3583 | s%@libdir@%$libdir%g | |
3584 | s%@includedir@%$includedir%g | |
3585 | s%@oldincludedir@%$oldincludedir%g | |
3586 | s%@infodir@%$infodir%g | |
3587 | s%@mandir@%$mandir%g | |
d67281a7 | 3588 | s%@with_cvs@%$with_cvs%g |
cd6ede75 | 3589 | s%@subdirs@%$subdirs%g |
73237de3 | 3590 | s%@force_install@%$force_install%g |
2a068d20 | 3591 | s%@all_warnings@%$all_warnings%g |
cd6ede75 UD |
3592 | s%@host@%$host%g |
3593 | s%@host_alias@%$host_alias%g | |
3594 | s%@host_cpu@%$host_cpu%g | |
3595 | s%@host_vendor@%$host_vendor%g | |
3596 | s%@host_os@%$host_os%g | |
3597 | s%@base_machine@%$base_machine%g | |
3598 | s%@sysnames@%$sysnames%g | |
3599 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
5c2a0669 | 3600 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
cd6ede75 UD |
3601 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
3602 | s%@LN_S@%$LN_S%g | |
c218729d | 3603 | s%@PWD_P@%$PWD_P%g |
cd6ede75 UD |
3604 | s%@build@%$build%g |
3605 | s%@build_alias@%$build_alias%g | |
3606 | s%@build_cpu@%$build_cpu%g | |
3607 | s%@build_vendor@%$build_vendor%g | |
3608 | s%@build_os@%$build_os%g | |
4bca4c17 UD |
3609 | s%@CC@%$CC%g |
3610 | s%@MAKE@%$MAKE%g | |
3611 | s%@MSGFMT@%$MSGFMT%g | |
3612 | s%@MAKEINFO@%$MAKEINFO%g | |
aec103d3 | 3613 | s%@SED@%$SED%g |
beefeafb | 3614 | s%@CCVERSION@%$CCVERSION%g |
4bca4c17 | 3615 | s%@cross_linkable@%$cross_linkable%g |
cd6ede75 UD |
3616 | s%@BUILD_CC@%$BUILD_CC%g |
3617 | s%@cross_compiling@%$cross_compiling%g | |
3618 | s%@CPP@%$CPP%g | |
3619 | s%@AR@%$AR%g | |
3620 | s%@RANLIB@%$RANLIB%g | |
4bca4c17 | 3621 | s%@MIG@%$MIG%g |
3c720987 | 3622 | s%@SYSINCLUDES@%$SYSINCLUDES%g |
cd6ede75 UD |
3623 | s%@BASH@%$BASH%g |
3624 | s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g | |
3625 | s%@KSH@%$KSH%g | |
3626 | s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g | |
5aa8ff62 | 3627 | s%@AWK@%$AWK%g |
a2b08ee5 | 3628 | s%@PERL@%$PERL%g |
c0016081 UD |
3629 | s%@INSTALL_INFO@%$INSTALL_INFO%g |
3630 | s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g | |
cd6ede75 | 3631 | s%@VERSIONING@%$VERSIONING%g |
2d499f55 | 3632 | s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g |
2f54c82d UD |
3633 | s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g |
3634 | s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g | |
cd6ede75 | 3635 | s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g |
b17277cf | 3636 | s%@no_whole_archive@%$no_whole_archive%g |
dff14448 | 3637 | s%@exceptions@%$exceptions%g |
c8f3e6db | 3638 | s%@LIBGD@%$LIBGD%g |
8ed1e7d5 | 3639 | s%@sizeof_long_double@%$sizeof_long_double%g |
cd6ede75 UD |
3640 | s%@uname_sysname@%$uname_sysname%g |
3641 | s%@uname_release@%$uname_release%g | |
3642 | s%@uname_version@%$uname_version%g | |
3643 | s%@stdio@%$stdio%g | |
dff14448 | 3644 | s%@old_glibc_headers@%$old_glibc_headers%g |
cd6ede75 | 3645 | s%@libc_cv_slibdir@%$libc_cv_slibdir%g |
a1d84548 | 3646 | s%@libc_cv_localedir@%$libc_cv_localedir%g |
cd6ede75 UD |
3647 | s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g |
3648 | s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g | |
b43b13ac | 3649 | s%@use_ldconfig@%$use_ldconfig%g |
cb343854 | 3650 | s%@ldd_rewrite_script@%$ldd_rewrite_script%g |
cd6ede75 UD |
3651 | s%@gnu_ld@%$gnu_ld%g |
3652 | s%@gnu_as@%$gnu_as%g | |
3653 | s%@elf@%$elf%g | |
650425ce | 3654 | s%@static@%$static%g |
cd6ede75 | 3655 | s%@shared@%$shared%g |
cc3fa755 | 3656 | s%@pic_default@%$pic_default%g |
cd6ede75 UD |
3657 | s%@profile@%$profile%g |
3658 | s%@omitfp@%$omitfp%g | |
3659 | s%@bounded@%$bounded%g | |
3660 | s%@static_nss@%$static_nss%g | |
3661 | s%@nopic_initfini@%$nopic_initfini%g | |
3662 | s%@DEFINES@%$DEFINES%g | |
7cabd57c | 3663 | s%@linux_doors@%$linux_doors%g |
cd6ede75 | 3664 | s%@VERSION@%$VERSION%g |
ee74a442 | 3665 | s%@RELEASE@%$RELEASE%g |
cd6ede75 UD |
3666 | |
3667 | CEOF | |
3668 | EOF | |
3669 | ||
3670 | cat >> $CONFIG_STATUS <<\EOF | |
3671 | ||
3672 | # Split the substitutions into bite-sized pieces for seds with | |
3673 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
3674 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
3675 | ac_file=1 # Number of current file. | |
3676 | ac_beg=1 # First line for current file. | |
3677 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
3678 | ac_more_lines=: | |
3679 | ac_sed_cmds="" | |
3680 | while $ac_more_lines; do | |
3681 | if test $ac_beg -gt 1; then | |
3682 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
3683 | else | |
3684 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
3685 | fi | |
3686 | if test ! -s conftest.s$ac_file; then | |
3687 | ac_more_lines=false | |
3688 | rm -f conftest.s$ac_file | |
3689 | else | |
3690 | if test -z "$ac_sed_cmds"; then | |
3691 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
3692 | else | |
3693 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
3694 | fi | |
3695 | ac_file=`expr $ac_file + 1` | |
3696 | ac_beg=$ac_end | |
3697 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
3698 | fi | |
3699 | done | |
3700 | if test -z "$ac_sed_cmds"; then | |
3701 | ac_sed_cmds=cat | |
3702 | fi | |
3703 | EOF | |
3704 | ||
3705 | cat >> $CONFIG_STATUS <<EOF | |
3706 | ||
3707 | CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"} | |
3708 | EOF | |
3709 | cat >> $CONFIG_STATUS <<\EOF | |
3710 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
3711 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3712 | case "$ac_file" in | |
3713 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
3714 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
3715 | *) ac_file_in="${ac_file}.in" ;; | |
3716 | esac | |
3717 | ||
3718 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
3719 | ||
3720 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3721 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3722 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3723 | # The file is in a subdirectory. | |
3724 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3725 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
3726 | # A "../" for each directory in $ac_dir_suffix. | |
3727 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
3728 | else | |
3729 | ac_dir_suffix= ac_dots= | |
3730 | fi | |
3731 | ||
3732 | case "$ac_given_srcdir" in | |
3733 | .) srcdir=. | |
3734 | if test -z "$ac_dots"; then top_srcdir=. | |
3735 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
3736 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
3737 | *) # Relative path. | |
3738 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
3739 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
3740 | esac | |
3741 | ||
3742 | case "$ac_given_INSTALL" in | |
3743 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
3744 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
3745 | esac | |
3746 | ||
3747 | echo creating "$ac_file" | |
3748 | rm -f "$ac_file" | |
3749 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
3750 | case "$ac_file" in | |
3751 | *Makefile*) ac_comsub="1i\\ | |
3752 | # $configure_input" ;; | |
3753 | *) ac_comsub= ;; | |
3754 | esac | |
3755 | ||
3756 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
3757 | sed -e "$ac_comsub | |
3758 | s%@configure_input@%$configure_input%g | |
3759 | s%@srcdir@%$srcdir%g | |
3760 | s%@top_srcdir@%$top_srcdir%g | |
3761 | s%@INSTALL@%$INSTALL%g | |
3762 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
3763 | fi; done | |
3764 | rm -f conftest.s* | |
3765 | ||
3766 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
3767 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
3768 | # | |
3769 | # ac_d sets the value in "#define NAME VALUE" lines. | |
3770 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
3771 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
3772 | ac_dC='\3' | |
3773 | ac_dD='%g' | |
3774 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
3775 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3776 | ac_uB='\([ ]\)%\1#\2define\3' | |
3777 | ac_uC=' ' | |
3778 | ac_uD='\4%g' | |
3779 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
3780 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3781 | ac_eB='$%\1#\2define\3' | |
3782 | ac_eC=' ' | |
3783 | ac_eD='%g' | |
3784 | ||
3785 | if test "${CONFIG_HEADERS+set}" != set; then | |
3786 | EOF | |
3787 | cat >> $CONFIG_STATUS <<EOF | |
3788 | CONFIG_HEADERS="config.h" | |
3789 | EOF | |
3790 | cat >> $CONFIG_STATUS <<\EOF | |
3791 | fi | |
3792 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
3793 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3794 | case "$ac_file" in | |
3795 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
3796 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
3797 | *) ac_file_in="${ac_file}.in" ;; | |
3798 | esac | |
3799 | ||
3800 | echo creating $ac_file | |
3801 | ||
3802 | rm -f conftest.frag conftest.in conftest.out | |
3803 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
3804 | cat $ac_file_inputs > conftest.in | |
3805 | ||
3806 | EOF | |
3807 | ||
3808 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
3809 | # the proper values into config.h.in to produce config.h. And first: | |
3810 | # Protect against being on the right side of a sed subst in config.status. | |
3811 | # Protect against being in an unquoted here document in config.status. | |
3812 | rm -f conftest.vals | |
3813 | cat > conftest.hdr <<\EOF | |
3814 | s/[\\&%]/\\&/g | |
3815 | s%[\\$`]%\\&%g | |
3816 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
3817 | s%ac_d%ac_u%gp | |
3818 | s%ac_u%ac_e%gp | |
3819 | EOF | |
3820 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
3821 | rm -f conftest.hdr | |
3822 | ||
3823 | # This sed command replaces #undef with comments. This is necessary, for | |
3824 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
3825 | # on some systems where configure will not decide to define it. | |
3826 | cat >> conftest.vals <<\EOF | |
3827 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
3828 | EOF | |
3829 | ||
3830 | # Break up conftest.vals because some shells have a limit on | |
3831 | # the size of here documents, and old seds have small limits too. | |
3832 | ||
3833 | rm -f conftest.tail | |
3834 | while : | |
3835 | do | |
3836 | ac_lines=`grep -c . conftest.vals` | |
3837 | # grep -c gives empty output for an empty file on some AIX systems. | |
3838 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
3839 | # Write a limited-size here document to conftest.frag. | |
3840 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
3841 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
3842 | echo 'CEOF | |
3843 | sed -f conftest.frag conftest.in > conftest.out | |
3844 | rm -f conftest.in | |
3845 | mv conftest.out conftest.in | |
3846 | ' >> $CONFIG_STATUS | |
3847 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
3848 | rm -f conftest.vals | |
3849 | mv conftest.tail conftest.vals | |
3850 | done | |
3851 | rm -f conftest.vals | |
3852 | ||
3853 | cat >> $CONFIG_STATUS <<\EOF | |
3854 | rm -f conftest.frag conftest.h | |
3855 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
3856 | cat conftest.in >> conftest.h | |
3857 | rm -f conftest.in | |
3858 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
3859 | echo "$ac_file is unchanged" | |
3860 | rm -f conftest.h | |
3861 | else | |
3862 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3863 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3864 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3865 | # The file is in a subdirectory. | |
3866 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3867 | fi | |
3868 | rm -f $ac_file | |
3869 | mv conftest.h $ac_file | |
3870 | fi | |
3871 | fi; done | |
3872 | ||
3873 | EOF | |
3874 | ||
3875 | cat >> $CONFIG_STATUS <<EOF | |
3876 | ac_sources="`echo $libc_link_sources`" | |
3877 | ac_dests="`echo $libc_link_dests`" | |
3878 | EOF | |
3879 | ||
3880 | cat >> $CONFIG_STATUS <<\EOF | |
3881 | srcdir=$ac_given_srcdir | |
3882 | while test -n "$ac_sources"; do | |
3883 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
3884 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
3885 | ||
3886 | echo "linking $srcdir/$ac_source to $ac_dest" | |
3887 | ||
3888 | if test ! -r $srcdir/$ac_source; then | |
3889 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
3890 | fi | |
3891 | rm -f $ac_dest | |
3892 | ||
3893 | # Make relative symlinks. | |
3894 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3895 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
3896 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
3897 | # The dest file is in a subdirectory. | |
3898 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
3899 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
3900 | # A "../" for each directory in $ac_dest_dir_suffix. | |
3901 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
3902 | else | |
3903 | ac_dest_dir_suffix= ac_dots= | |
3904 | fi | |
3905 | ||
3906 | case "$srcdir" in | |
3907 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
3908 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
3909 | esac | |
3910 | ||
3911 | # Make a symlink if possible; otherwise try a hard link. | |
3912 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
3913 | ln $srcdir/$ac_source $ac_dest; then : | |
3914 | else | |
3915 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
3916 | fi | |
3917 | done | |
3918 | EOF | |
3919 | cat >> $CONFIG_STATUS <<EOF | |
c0fb8a56 | 3920 | config_vars='$config_vars' |
cd6ede75 UD |
3921 | EOF |
3922 | cat >> $CONFIG_STATUS <<\EOF | |
3923 | ||
c0fb8a56 UD |
3924 | case $CONFIG_FILES in *config.make*) |
3925 | echo "$config_vars" >> config.make;; | |
3926 | esac | |
3927 | test -d bits || mkdir bits | |
cd6ede75 UD |
3928 | exit 0 |
3929 | EOF | |
3930 | chmod +x $CONFIG_STATUS | |
3931 | rm -fr confdefs* $ac_clean_files | |
a808d541 | 3932 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
cd6ede75 UD |
3933 | |
3934 | if test "$no_recursion" != yes; then | |
3935 | ||
3936 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
3937 | ac_sub_configure_args= | |
3938 | ac_prev= | |
3939 | for ac_arg in $ac_configure_args; do | |
3940 | if test -n "$ac_prev"; then | |
3941 | ac_prev= | |
3942 | continue | |
3943 | fi | |
3944 | case "$ac_arg" in | |
3945 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
3946 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
3947 | ac_prev=cache_file ;; | |
3948 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
3949 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
3950 | ;; | |
3951 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
3952 | ac_prev=srcdir ;; | |
3953 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
3954 | ;; | |
3955 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
3956 | esac | |
3957 | done | |
3958 | ||
3959 | for ac_config_dir in $add_ons; do | |
3960 | ||
3961 | # Do not complain, so a configure script can configure whichever | |
3962 | # parts of a large source tree are present. | |
3963 | if test ! -d $srcdir/$ac_config_dir; then | |
3964 | continue | |
3965 | fi | |
3966 | ||
3967 | echo configuring in $ac_config_dir | |
3968 | ||
3969 | case "$srcdir" in | |
3970 | .) ;; | |
3971 | *) | |
3972 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
3973 | else | |
3974 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
3975 | fi | |
3976 | ;; | |
3977 | esac | |
3978 | ||
3979 | ac_popdir=`pwd` | |
3980 | cd $ac_config_dir | |
3981 | ||
3982 | # A "../" for each directory in /$ac_config_dir. | |
3983 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
3984 | ||
3985 | case "$srcdir" in | |
3986 | .) # No --srcdir option. We are building in place. | |
3987 | ac_sub_srcdir=$srcdir ;; | |
3988 | /*) # Absolute path. | |
3989 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
3990 | *) # Relative path. | |
3991 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
3992 | esac | |
3993 | ||
3994 | # Check for guested configure; otherwise get Cygnus style configure. | |
3995 | if test -f $ac_sub_srcdir/configure; then | |
a808d541 | 3996 | ac_sub_configure=$ac_sub_srcdir/configure |
cd6ede75 UD |
3997 | elif test -f $ac_sub_srcdir/configure.in; then |
3998 | ac_sub_configure=$ac_configure | |
3999 | else | |
4000 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
4001 | ac_sub_configure= | |
4002 | fi | |
4003 | ||
4004 | # The recursion is here. | |
4005 | if test -n "$ac_sub_configure"; then | |
4006 | ||
4007 | # Make the cache file name correct relative to the subdirectory. | |
4008 | case "$cache_file" in | |
4009 | /*) ac_sub_cache_file=$cache_file ;; | |
4010 | *) # Relative path. | |
4011 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
4012 | esac | |
4013 | case "$ac_given_INSTALL" in | |
4014 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
4015 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
4016 | esac | |
4017 | ||
a808d541 | 4018 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
cd6ede75 | 4019 | # The eval makes quoting arguments work. |
a808d541 | 4020 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
cd6ede75 UD |
4021 | then : |
4022 | else | |
4023 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
4024 | fi | |
4025 | fi | |
4026 | ||
4027 | cd $ac_popdir | |
4028 | done | |
4029 | fi | |
4030 |