]>
Commit | Line | Data |
---|---|---|
cd6ede75 | 1 | #! /bin/sh |
3a12e572 UD |
2 | # From configure.in CVSid. |
3 | # Guess values for system-dependent variables and create Makefiles. | |
322e23db | 4 | # Generated by GNU Autoconf 2.63 for GNU C Library (see version.h). |
f4b07664 RM |
5 | # |
6 | # Report bugs to <glibc>. | |
3a12e572 | 7 | # |
26f56c1c | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
322e23db | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
3a12e572 UD |
10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
3a12e572 UD |
12 | ## --------------------- ## |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
cd6ede75 | 15 | |
26f56c1c UD |
16 | # Be more Bourne compatible |
17 | DUALCASE=1; export DUALCASE # for MKS sh | |
3a12e572 UD |
18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19 | emulate sh | |
20 | NULLCMD=: | |
322e23db | 21 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
f4b07664 RM |
22 | # is contrary to our usage. Disable this feature. |
23 | alias -g '${1+"$@"}'='"$@"' | |
26f56c1c UD |
24 | setopt NO_GLOB_SUBST |
25 | else | |
26 | case `(set -o) 2>/dev/null` in | |
27 | *posix*) set -o posix ;; | |
28 | esac | |
29 | ||
30 | fi | |
31 | ||
32 | ||
33 | ||
34 | ||
35 | # PATH needs CR | |
36 | # Avoid depending upon Character Ranges. | |
37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
40 | as_cr_digits='0123456789' | |
41 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
42 | ||
322e23db UD |
43 | as_nl=' |
44 | ' | |
45 | export as_nl | |
46 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
47 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
49 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
50 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
51 | as_echo='printf %s\n' | |
52 | as_echo_n='printf %s' | |
53 | else | |
54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
56 | as_echo_n='/usr/ucb/echo -n' | |
a152f366 | 57 | else |
322e23db UD |
58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
59 | as_echo_n_body='eval | |
60 | arg=$1; | |
61 | case $arg in | |
62 | *"$as_nl"*) | |
63 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
65 | esac; | |
66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
67 | ' | |
68 | export as_echo_n_body | |
69 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
a152f366 | 70 | fi |
322e23db UD |
71 | export as_echo_body |
72 | as_echo='sh -c $as_echo_body as_echo' | |
73 | fi | |
74 | ||
75 | # The user is always right. | |
76 | if test "${PATH_SEPARATOR+set}" != set; then | |
77 | PATH_SEPARATOR=: | |
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
80 | PATH_SEPARATOR=';' | |
81 | } | |
3a12e572 | 82 | fi |
cd6ede75 | 83 | |
3a12e572 | 84 | # Support unset when possible. |
9382fcee | 85 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
3a12e572 UD |
86 | as_unset=unset |
87 | else | |
88 | as_unset=false | |
89 | fi | |
90 | ||
f4b07664 | 91 | |
26f56c1c UD |
92 | # IFS |
93 | # We need space, tab and new line, in precisely that order. Quoting is | |
94 | # there to prevent editors from complaining about space-tab. | |
95 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
96 | # splitting by setting IFS to empty value.) | |
26f56c1c UD |
97 | IFS=" "" $as_nl" |
98 | ||
99 | # Find who we are. Look in the path if we contain no directory separator. | |
100 | case $0 in | |
101 | *[\\/]* ) as_myself=$0 ;; | |
102 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
103 | for as_dir in $PATH | |
104 | do | |
105 | IFS=$as_save_IFS | |
106 | test -z "$as_dir" && as_dir=. | |
107 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
108 | done | |
109 | IFS=$as_save_IFS | |
110 | ||
111 | ;; | |
112 | esac | |
113 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
114 | # in which case we are not to be found in the path. | |
115 | if test "x$as_myself" = x; then | |
116 | as_myself=$0 | |
117 | fi | |
118 | if test ! -f "$as_myself"; then | |
322e23db | 119 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
26f56c1c UD |
120 | { (exit 1); exit 1; } |
121 | fi | |
122 | ||
f4b07664 | 123 | # Work around bugs in pre-3.0 UWIN ksh. |
26f56c1c UD |
124 | for as_var in ENV MAIL MAILPATH |
125 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
126 | done | |
f4b07664 RM |
127 | PS1='$ ' |
128 | PS2='> ' | |
129 | PS4='+ ' | |
130 | ||
131 | # NLS nuisances. | |
322e23db UD |
132 | LC_ALL=C |
133 | export LC_ALL | |
134 | LANGUAGE=C | |
135 | export LANGUAGE | |
f4b07664 RM |
136 | |
137 | # Required to use basename. | |
26f56c1c UD |
138 | if expr a : '\(a\)' >/dev/null 2>&1 && |
139 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f4b07664 RM |
140 | as_expr=expr |
141 | else | |
142 | as_expr=false | |
143 | fi | |
144 | ||
26f56c1c | 145 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
f4b07664 RM |
146 | as_basename=basename |
147 | else | |
148 | as_basename=false | |
149 | fi | |
3a12e572 UD |
150 | |
151 | ||
152 | # Name of the executable. | |
26f56c1c | 153 | as_me=`$as_basename -- "$0" || |
3a12e572 UD |
154 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
155 | X"$0" : 'X\(//\)$' \| \ | |
26f56c1c | 156 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
322e23db | 157 | $as_echo X/"$0" | |
26f56c1c UD |
158 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
159 | s//\1/ | |
160 | q | |
161 | } | |
162 | /^X\/\(\/\/\)$/{ | |
163 | s//\1/ | |
164 | q | |
165 | } | |
166 | /^X\/\(\/\).*/{ | |
167 | s//\1/ | |
168 | q | |
169 | } | |
170 | s/.*/./; q'` | |
3a12e572 | 171 | |
26f56c1c UD |
172 | # CDPATH. |
173 | $as_unset CDPATH | |
f4b07664 | 174 | |
3a12e572 | 175 | |
26f56c1c UD |
176 | if test "x$CONFIG_SHELL" = x; then |
177 | if (eval ":") 2>/dev/null; then | |
178 | as_have_required=yes | |
179 | else | |
180 | as_have_required=no | |
3a12e572 | 181 | fi |
cd6ede75 | 182 | |
322e23db | 183 | if test $as_have_required = yes && (eval ": |
26f56c1c UD |
184 | (as_func_return () { |
185 | (exit \$1) | |
186 | } | |
187 | as_func_success () { | |
188 | as_func_return 0 | |
189 | } | |
190 | as_func_failure () { | |
191 | as_func_return 1 | |
192 | } | |
193 | as_func_ret_success () { | |
194 | return 0 | |
195 | } | |
196 | as_func_ret_failure () { | |
197 | return 1 | |
198 | } | |
cd6ede75 | 199 | |
26f56c1c UD |
200 | exitcode=0 |
201 | if as_func_success; then | |
202 | : | |
203 | else | |
204 | exitcode=1 | |
205 | echo as_func_success failed. | |
206 | fi | |
650425ce | 207 | |
26f56c1c UD |
208 | if as_func_failure; then |
209 | exitcode=1 | |
210 | echo as_func_failure succeeded. | |
211 | fi | |
212 | ||
213 | if as_func_ret_success; then | |
214 | : | |
215 | else | |
216 | exitcode=1 | |
217 | echo as_func_ret_success failed. | |
218 | fi | |
219 | ||
220 | if as_func_ret_failure; then | |
221 | exitcode=1 | |
222 | echo as_func_ret_failure succeeded. | |
223 | fi | |
224 | ||
225 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
226 | : | |
227 | else | |
228 | exitcode=1 | |
229 | echo positional parameters were not saved. | |
230 | fi | |
231 | ||
232 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
233 | ||
234 | ( | |
235 | as_lineno_1=\$LINENO | |
236 | as_lineno_2=\$LINENO | |
237 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
238 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
239 | ") 2> /dev/null; then | |
240 | : | |
241 | else | |
242 | as_candidate_shells= | |
3a12e572 UD |
243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
244 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
245 | do | |
246 | IFS=$as_save_IFS | |
247 | test -z "$as_dir" && as_dir=. | |
26f56c1c | 248 | case $as_dir in |
3a12e572 | 249 | /*) |
26f56c1c UD |
250 | for as_base in sh bash ksh sh5; do |
251 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
252 | done;; | |
253 | esac | |
254 | done | |
255 | IFS=$as_save_IFS | |
256 | ||
257 | ||
258 | for as_shell in $as_candidate_shells $SHELL; do | |
259 | # Try only shells that exist, to save several forks. | |
260 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
261 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
262 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
263 | emulate sh | |
264 | NULLCMD=: | |
322e23db | 265 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
26f56c1c UD |
266 | # is contrary to our usage. Disable this feature. |
267 | alias -g '${1+"$@"}'='"$@"' | |
268 | setopt NO_GLOB_SUBST | |
269 | else | |
270 | case `(set -o) 2>/dev/null` in | |
271 | *posix*) set -o posix ;; | |
272 | esac | |
273 | ||
274 | fi | |
275 | ||
276 | ||
277 | : | |
278 | _ASEOF | |
279 | }; then | |
280 | CONFIG_SHELL=$as_shell | |
281 | as_have_required=yes | |
282 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
283 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
284 | emulate sh | |
285 | NULLCMD=: | |
322e23db | 286 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
26f56c1c UD |
287 | # is contrary to our usage. Disable this feature. |
288 | alias -g '${1+"$@"}'='"$@"' | |
289 | setopt NO_GLOB_SUBST | |
290 | else | |
291 | case `(set -o) 2>/dev/null` in | |
292 | *posix*) set -o posix ;; | |
293 | esac | |
294 | ||
295 | fi | |
296 | ||
297 | ||
298 | : | |
299 | (as_func_return () { | |
300 | (exit $1) | |
301 | } | |
302 | as_func_success () { | |
303 | as_func_return 0 | |
304 | } | |
305 | as_func_failure () { | |
306 | as_func_return 1 | |
307 | } | |
308 | as_func_ret_success () { | |
309 | return 0 | |
310 | } | |
311 | as_func_ret_failure () { | |
312 | return 1 | |
313 | } | |
314 | ||
315 | exitcode=0 | |
316 | if as_func_success; then | |
317 | : | |
318 | else | |
319 | exitcode=1 | |
320 | echo as_func_success failed. | |
321 | fi | |
322 | ||
323 | if as_func_failure; then | |
324 | exitcode=1 | |
325 | echo as_func_failure succeeded. | |
326 | fi | |
327 | ||
328 | if as_func_ret_success; then | |
329 | : | |
330 | else | |
331 | exitcode=1 | |
332 | echo as_func_ret_success failed. | |
333 | fi | |
334 | ||
335 | if as_func_ret_failure; then | |
336 | exitcode=1 | |
337 | echo as_func_ret_failure succeeded. | |
338 | fi | |
339 | ||
340 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
341 | : | |
342 | else | |
343 | exitcode=1 | |
344 | echo positional parameters were not saved. | |
345 | fi | |
346 | ||
347 | test $exitcode = 0) || { (exit 1); exit 1; } | |
348 | ||
349 | ( | |
3a12e572 UD |
350 | as_lineno_1=$LINENO |
351 | as_lineno_2=$LINENO | |
3a12e572 | 352 | test "x$as_lineno_1" != "x$as_lineno_2" && |
26f56c1c UD |
353 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
354 | ||
355 | _ASEOF | |
356 | }; then | |
357 | break | |
358 | fi | |
359 | ||
360 | fi | |
361 | ||
362 | done | |
363 | ||
364 | if test "x$CONFIG_SHELL" != x; then | |
365 | for as_var in BASH_ENV ENV | |
322e23db UD |
366 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
367 | done | |
368 | export CONFIG_SHELL | |
369 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
26f56c1c UD |
370 | fi |
371 | ||
372 | ||
373 | if test $as_have_required = no; then | |
374 | echo This script requires a shell more modern than all the | |
375 | echo shells that I found on your system. Please install a | |
376 | echo modern shell, or manually run the script under such a | |
377 | echo shell if you do have one. | |
378 | { (exit 1); exit 1; } | |
379 | fi | |
380 | ||
381 | ||
382 | fi | |
383 | ||
384 | fi | |
385 | ||
386 | ||
387 | ||
388 | (eval "as_func_return () { | |
389 | (exit \$1) | |
390 | } | |
391 | as_func_success () { | |
392 | as_func_return 0 | |
393 | } | |
394 | as_func_failure () { | |
395 | as_func_return 1 | |
396 | } | |
397 | as_func_ret_success () { | |
398 | return 0 | |
399 | } | |
400 | as_func_ret_failure () { | |
401 | return 1 | |
402 | } | |
403 | ||
404 | exitcode=0 | |
405 | if as_func_success; then | |
406 | : | |
407 | else | |
408 | exitcode=1 | |
409 | echo as_func_success failed. | |
410 | fi | |
411 | ||
412 | if as_func_failure; then | |
413 | exitcode=1 | |
414 | echo as_func_failure succeeded. | |
415 | fi | |
416 | ||
417 | if as_func_ret_success; then | |
418 | : | |
419 | else | |
420 | exitcode=1 | |
421 | echo as_func_ret_success failed. | |
422 | fi | |
423 | ||
424 | if as_func_ret_failure; then | |
425 | exitcode=1 | |
426 | echo as_func_ret_failure succeeded. | |
427 | fi | |
428 | ||
429 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
430 | : | |
431 | else | |
432 | exitcode=1 | |
433 | echo positional parameters were not saved. | |
434 | fi | |
435 | ||
436 | test \$exitcode = 0") || { | |
437 | echo No shell found that supports shell functions. | |
322e23db UD |
438 | echo Please tell bug-autoconf@gnu.org about your system, |
439 | echo including any error possibly output before this message. | |
440 | echo This can help us improve future autoconf versions. | |
441 | echo Configuration will now proceed without shell functions. | |
26f56c1c UD |
442 | } |
443 | ||
444 | ||
445 | ||
446 | as_lineno_1=$LINENO | |
447 | as_lineno_2=$LINENO | |
448 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
449 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
650425ce | 450 | |
3a12e572 UD |
451 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
452 | # uniformly replaced by the line number. The first 'sed' inserts a | |
26f56c1c UD |
453 | # line-number line after each line using $LINENO; the second 'sed' |
454 | # does the real work. The second script uses 'N' to pair each | |
455 | # line-number line with the line containing $LINENO, and appends | |
456 | # trailing '-' during substitution so that $LINENO is not a special | |
457 | # case at line end. | |
3a12e572 | 458 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
26f56c1c UD |
459 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
460 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
461 | sed -n ' | |
462 | p | |
463 | /[$]LINENO/= | |
464 | ' <$as_myself | | |
3a12e572 | 465 | sed ' |
26f56c1c UD |
466 | s/[$]LINENO.*/&-/ |
467 | t lineno | |
468 | b | |
469 | :lineno | |
3a12e572 | 470 | N |
26f56c1c UD |
471 | :loop |
472 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
3a12e572 | 473 | t loop |
26f56c1c | 474 | s/-\n.*// |
3a12e572 | 475 | ' >$as_me.lineno && |
26f56c1c | 476 | chmod +x "$as_me.lineno" || |
322e23db | 477 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
3a12e572 UD |
478 | { (exit 1); exit 1; }; } |
479 | ||
480 | # Don't try to exec as it changes $[0], causing all sort of problems | |
481 | # (the dirname of $[0] is not the place where we might find the | |
26f56c1c UD |
482 | # original and so on. Autoconf is especially sensitive to this). |
483 | . "./$as_me.lineno" | |
3a12e572 UD |
484 | # Exit status is that of the last command. |
485 | exit | |
486 | } | |
650425ce UD |
487 | |
488 | ||
26f56c1c UD |
489 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
490 | as_dirname=dirname | |
491 | else | |
492 | as_dirname=false | |
493 | fi | |
494 | ||
495 | ECHO_C= ECHO_N= ECHO_T= | |
496 | case `echo -n x` in | |
497 | -n*) | |
498 | case `echo 'x\c'` in | |
499 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
500 | *) ECHO_C='\c';; | |
501 | esac;; | |
502 | *) | |
503 | ECHO_N='-n';; | |
3a12e572 | 504 | esac |
26f56c1c UD |
505 | if expr a : '\(a\)' >/dev/null 2>&1 && |
506 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
3a12e572 UD |
507 | as_expr=expr |
508 | else | |
509 | as_expr=false | |
510 | fi | |
511 | ||
512 | rm -f conf$$ conf$$.exe conf$$.file | |
26f56c1c UD |
513 | if test -d conf$$.dir; then |
514 | rm -f conf$$.dir/conf$$.file | |
515 | else | |
516 | rm -f conf$$.dir | |
322e23db UD |
517 | mkdir conf$$.dir 2>/dev/null |
518 | fi | |
519 | if (echo >conf$$.file) 2>/dev/null; then | |
520 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
521 | as_ln_s='ln -s' | |
522 | # ... but there are two gotchas: | |
523 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
524 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
525 | # In both cases, we have to default to `cp -p'. | |
526 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
527 | as_ln_s='cp -p' | |
528 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
529 | as_ln_s=ln | |
530 | else | |
3a12e572 | 531 | as_ln_s='cp -p' |
322e23db | 532 | fi |
3a12e572 UD |
533 | else |
534 | as_ln_s='cp -p' | |
535 | fi | |
26f56c1c UD |
536 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
537 | rmdir conf$$.dir 2>/dev/null | |
3a12e572 | 538 | |
f4b07664 RM |
539 | if mkdir -p . 2>/dev/null; then |
540 | as_mkdir_p=: | |
541 | else | |
9382fcee | 542 | test -d ./-p && rmdir ./-p |
f4b07664 RM |
543 | as_mkdir_p=false |
544 | fi | |
545 | ||
26f56c1c UD |
546 | if test -x / >/dev/null 2>&1; then |
547 | as_test_x='test -x' | |
548 | else | |
549 | if ls -dL / >/dev/null 2>&1; then | |
550 | as_ls_L_option=L | |
551 | else | |
552 | as_ls_L_option= | |
553 | fi | |
554 | as_test_x=' | |
555 | eval sh -c '\'' | |
556 | if test -d "$1"; then | |
322e23db | 557 | test -d "$1/."; |
26f56c1c UD |
558 | else |
559 | case $1 in | |
322e23db | 560 | -*)set "./$1";; |
26f56c1c UD |
561 | esac; |
562 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
563 | ???[sx]*):;;*)false;;esac;fi | |
564 | '\'' sh | |
565 | ' | |
566 | fi | |
567 | as_executable_p=$as_test_x | |
3a12e572 UD |
568 | |
569 | # Sed expression to map a string onto a valid CPP name. | |
9382fcee | 570 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
3a12e572 UD |
571 | |
572 | # Sed expression to map a string onto a valid variable name. | |
9382fcee | 573 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
3a12e572 UD |
574 | |
575 | ||
63bda0c1 | 576 | |
26f56c1c | 577 | exec 7<&0 </dev/null 6>&1 |
cd6ede75 | 578 | |
3a12e572 UD |
579 | # Name of the host. |
580 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
581 | # so uname gets run too. | |
582 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
583 | ||
3a12e572 UD |
584 | # |
585 | # Initializations. | |
586 | # | |
cd6ede75 | 587 | ac_default_prefix=/usr/local |
26f56c1c | 588 | ac_clean_files= |
f4b07664 | 589 | ac_config_libobj_dir=. |
26f56c1c | 590 | LIBOBJS= |
3a12e572 UD |
591 | cross_compiling=no |
592 | subdirs= | |
593 | MFLAGS= | |
594 | MAKEFLAGS= | |
595 | SHELL=${CONFIG_SHELL-/bin/sh} | |
596 | ||
3a12e572 | 597 | # Identity of this package. |
f4b07664 RM |
598 | PACKAGE_NAME='GNU C Library' |
599 | PACKAGE_TARNAME='c-library' | |
600 | PACKAGE_VERSION='(see version.h)' | |
601 | PACKAGE_STRING='GNU C Library (see version.h)' | |
602 | PACKAGE_BUGREPORT='glibc' | |
3a12e572 UD |
603 | |
604 | ac_unique_file="include/features.h" | |
322e23db | 605 | enable_option_checking=no |
3a12e572 UD |
606 | # Factoring default headers for most tests. |
607 | ac_includes_default="\ | |
608 | #include <stdio.h> | |
26f56c1c | 609 | #ifdef HAVE_SYS_TYPES_H |
3a12e572 UD |
610 | # include <sys/types.h> |
611 | #endif | |
26f56c1c | 612 | #ifdef HAVE_SYS_STAT_H |
3a12e572 UD |
613 | # include <sys/stat.h> |
614 | #endif | |
26f56c1c | 615 | #ifdef STDC_HEADERS |
3a12e572 UD |
616 | # include <stdlib.h> |
617 | # include <stddef.h> | |
618 | #else | |
26f56c1c | 619 | # ifdef HAVE_STDLIB_H |
3a12e572 UD |
620 | # include <stdlib.h> |
621 | # endif | |
622 | #endif | |
26f56c1c UD |
623 | #ifdef HAVE_STRING_H |
624 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
3a12e572 UD |
625 | # include <memory.h> |
626 | # endif | |
627 | # include <string.h> | |
628 | #endif | |
26f56c1c | 629 | #ifdef HAVE_STRINGS_H |
3a12e572 UD |
630 | # include <strings.h> |
631 | #endif | |
26f56c1c | 632 | #ifdef HAVE_INTTYPES_H |
3a12e572 | 633 | # include <inttypes.h> |
3a12e572 | 634 | #endif |
26f56c1c UD |
635 | #ifdef HAVE_STDINT_H |
636 | # include <stdint.h> | |
637 | #endif | |
638 | #ifdef HAVE_UNISTD_H | |
3a12e572 UD |
639 | # include <unistd.h> |
640 | #endif" | |
641 | ||
322e23db | 642 | ac_subst_vars='LTLIBOBJS |
a152f366 | 643 | LIBOBJS |
322e23db UD |
644 | RELEASE |
645 | VERSION | |
646 | mach_interface_list | |
647 | DEFINES | |
648 | nopic_initfini | |
649 | static_nss | |
650 | bounded | |
651 | omitfp | |
652 | profile | |
653 | libc_cv_pic_default | |
654 | shared | |
655 | static | |
656 | xcoff | |
657 | elf | |
658 | ldd_rewrite_script | |
659 | use_ldconfig | |
01f1f5ee | 660 | libc_cv_as_i686 |
b0ecde3a | 661 | libc_cv_cc_avx |
06e51c8f | 662 | libc_cv_cc_sse4 |
322e23db UD |
663 | libc_cv_cpp_asm_debuginfo |
664 | libc_cv_forced_unwind | |
665 | libc_cv_rootsbindir | |
666 | libc_cv_sysconfdir | |
667 | libc_cv_localedir | |
668 | libc_cv_slibdir | |
669 | old_glibc_headers | |
670 | uname_version | |
671 | uname_release | |
672 | uname_sysname | |
673 | libc_cv_gcc_unwind_find_fde | |
674 | sizeof_long_double | |
675 | EGREP | |
676 | GREP | |
677 | have_selinux | |
678 | have_libcap | |
679 | have_libaudit | |
680 | LIBGD | |
681 | libc_cv_cc_submachine | |
682 | exceptions | |
683 | no_whole_archive | |
684 | libc_cv_have_initfini | |
685 | libc_cv_gnu89_inline | |
686 | libc_cv_ssp | |
687 | fno_unit_at_a_time | |
688 | libc_cv_hashstyle | |
689 | libc_cv_fpie | |
690 | libc_cv_z_execstack | |
691 | libc_cv_z_combreloc | |
692 | ASFLAGS_config | |
693 | libc_cv_as_needed | |
694 | libc_cv_libgcc_s_suffix | |
695 | libc_cv_Bgroup | |
696 | libc_cv_cc_with_libunwind | |
697 | VERSIONING | |
698 | BISON | |
699 | INSTALL_INFO | |
700 | PERL | |
701 | AWK | |
702 | libc_cv_have_ksh | |
703 | KSH | |
704 | libc_cv_have_bash2 | |
705 | BASH_SHELL | |
706 | libc_cv_gcc_static_libgcc | |
707 | CXX_SYSINCLUDES | |
708 | SYSINCLUDES | |
709 | AUTOCONF | |
710 | SED | |
711 | MAKEINFO | |
712 | MSGFMT | |
713 | MAKE | |
714 | PWD_P | |
715 | LD | |
716 | AS | |
717 | MIG | |
718 | RANLIB | |
719 | OBJDUMP | |
720 | AR | |
721 | LN_S | |
722 | INSTALL_DATA | |
723 | INSTALL_SCRIPT | |
724 | INSTALL_PROGRAM | |
725 | sysdeps_add_ons | |
726 | sysnames | |
727 | submachine | |
6f89d2f3 | 728 | multi_arch |
322e23db UD |
729 | base_machine |
730 | add_on_subdirs | |
731 | add_ons | |
322e23db UD |
732 | libc_cv_nss_crypt |
733 | experimental_malloc | |
322e23db UD |
734 | all_warnings |
735 | force_install | |
736 | bindnow | |
737 | oldest_abi | |
738 | enable_check_abi | |
739 | with_cvs | |
740 | with_fp | |
741 | ac_ct_CXX | |
742 | CXXFLAGS | |
743 | CXX | |
744 | CPP | |
745 | cross_compiling | |
746 | BUILD_CC | |
747 | OBJEXT | |
748 | ac_ct_CC | |
749 | CPPFLAGS | |
750 | LDFLAGS | |
751 | CFLAGS | |
752 | CC | |
c16a054d AS |
753 | host_os |
754 | host_vendor | |
755 | host_cpu | |
756 | host | |
757 | build_os | |
758 | build_vendor | |
759 | build_cpu | |
760 | build | |
7967983f | 761 | subdirs |
322e23db UD |
762 | target_alias |
763 | host_alias | |
764 | build_alias | |
765 | LIBS | |
766 | ECHO_T | |
767 | ECHO_N | |
768 | ECHO_C | |
769 | DEFS | |
770 | mandir | |
771 | localedir | |
772 | libdir | |
773 | psdir | |
774 | pdfdir | |
775 | dvidir | |
776 | htmldir | |
777 | infodir | |
778 | docdir | |
779 | oldincludedir | |
780 | includedir | |
781 | localstatedir | |
782 | sharedstatedir | |
783 | sysconfdir | |
784 | datadir | |
785 | datarootdir | |
786 | libexecdir | |
787 | sbindir | |
788 | bindir | |
789 | program_transform_name | |
790 | prefix | |
791 | exec_prefix | |
792 | PACKAGE_BUGREPORT | |
793 | PACKAGE_STRING | |
794 | PACKAGE_VERSION | |
795 | PACKAGE_TARNAME | |
796 | PACKAGE_NAME | |
797 | PATH_SEPARATOR | |
798 | SHELL' | |
a152f366 | 799 | ac_subst_files='' |
322e23db UD |
800 | ac_user_opts=' |
801 | enable_option_checking | |
802 | with_gd | |
803 | with_gd_include | |
804 | with_gd_lib | |
805 | with_fp | |
806 | with_binutils | |
807 | with_elf | |
808 | with_selinux | |
809 | with_xcoff | |
810 | with_cvs | |
811 | with_headers | |
812 | enable_sanity_checks | |
813 | enable_check_abi | |
814 | enable_shared | |
815 | enable_profile | |
816 | enable_omitfp | |
817 | enable_bounded | |
818 | enable_versioning | |
819 | enable_oldest_abi | |
820 | enable_stackguard_randomization | |
821 | enable_add_ons | |
822 | with_tls | |
823 | with___thread | |
824 | enable_hidden_plt | |
825 | enable_bind_now | |
826 | enable_static_nss | |
827 | enable_force_install | |
828 | enable_kernel | |
829 | enable_all_warnings | |
830 | enable_multi_arch | |
831 | enable_experimental_malloc | |
832 | enable_nss_crypt | |
833 | with_cpu | |
834 | ' | |
a152f366 UD |
835 | ac_precious_vars='build_alias |
836 | host_alias | |
837 | target_alias | |
838 | CC | |
839 | CFLAGS | |
840 | LDFLAGS | |
841 | LIBS | |
842 | CPPFLAGS | |
843 | CPP | |
844 | CXX | |
845 | CXXFLAGS | |
846 | CCC' | |
7967983f RM |
847 | ac_subdirs_all=' |
848 | ' | |
a152f366 UD |
849 | |
850 | # Initialize some variables set by options. | |
851 | ac_init_help= | |
852 | ac_init_version=false | |
322e23db UD |
853 | ac_unrecognized_opts= |
854 | ac_unrecognized_sep= | |
a152f366 UD |
855 | # The variables have the same names as the options, with |
856 | # dashes changed to underlines. | |
857 | cache_file=/dev/null | |
858 | exec_prefix=NONE | |
859 | no_create= | |
860 | no_recursion= | |
861 | prefix=NONE | |
862 | program_prefix=NONE | |
863 | program_suffix=NONE | |
864 | program_transform_name=s,x,x, | |
865 | silent= | |
866 | site= | |
867 | srcdir= | |
868 | verbose= | |
869 | x_includes=NONE | |
870 | x_libraries=NONE | |
871 | ||
872 | # Installation directory options. | |
873 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
874 | # and all the variables that are supposed to be based on exec_prefix | |
875 | # by default will actually change. | |
876 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
877 | # (The list follows the same order as the GNU Coding Standards.) | |
878 | bindir='${exec_prefix}/bin' | |
879 | sbindir='${exec_prefix}/sbin' | |
880 | libexecdir='${exec_prefix}/libexec' | |
881 | datarootdir='${prefix}/share' | |
882 | datadir='${datarootdir}' | |
883 | sysconfdir='${prefix}/etc' | |
884 | sharedstatedir='${prefix}/com' | |
885 | localstatedir='${prefix}/var' | |
886 | includedir='${prefix}/include' | |
887 | oldincludedir='/usr/include' | |
888 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
889 | infodir='${datarootdir}/info' | |
890 | htmldir='${docdir}' | |
26f56c1c UD |
891 | dvidir='${docdir}' |
892 | pdfdir='${docdir}' | |
893 | psdir='${docdir}' | |
894 | libdir='${exec_prefix}/lib' | |
895 | localedir='${datarootdir}/locale' | |
896 | mandir='${datarootdir}/man' | |
cd6ede75 | 897 | |
cd6ede75 | 898 | ac_prev= |
26f56c1c | 899 | ac_dashdash= |
cd6ede75 UD |
900 | for ac_option |
901 | do | |
cd6ede75 UD |
902 | # If the previous option needs an argument, assign it. |
903 | if test -n "$ac_prev"; then | |
26f56c1c | 904 | eval $ac_prev=\$ac_option |
cd6ede75 UD |
905 | ac_prev= |
906 | continue | |
907 | fi | |
908 | ||
26f56c1c UD |
909 | case $ac_option in |
910 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
911 | *) ac_optarg=yes ;; | |
912 | esac | |
cd6ede75 UD |
913 | |
914 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
915 | ||
26f56c1c UD |
916 | case $ac_dashdash$ac_option in |
917 | --) | |
918 | ac_dashdash=yes ;; | |
cd6ede75 UD |
919 | |
920 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
921 | ac_prev=bindir ;; | |
922 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
3a12e572 | 923 | bindir=$ac_optarg ;; |
cd6ede75 UD |
924 | |
925 | -build | --build | --buil | --bui | --bu) | |
3a12e572 | 926 | ac_prev=build_alias ;; |
cd6ede75 | 927 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
3a12e572 | 928 | build_alias=$ac_optarg ;; |
cd6ede75 UD |
929 | |
930 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
931 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
932 | ac_prev=cache_file ;; | |
933 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
934 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
3a12e572 UD |
935 | cache_file=$ac_optarg ;; |
936 | ||
937 | --config-cache | -C) | |
938 | cache_file=config.cache ;; | |
cd6ede75 | 939 | |
26f56c1c | 940 | -datadir | --datadir | --datadi | --datad) |
cd6ede75 | 941 | ac_prev=datadir ;; |
26f56c1c | 942 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
3a12e572 | 943 | datadir=$ac_optarg ;; |
cd6ede75 | 944 | |
26f56c1c UD |
945 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
946 | | --dataroo | --dataro | --datar) | |
947 | ac_prev=datarootdir ;; | |
948 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
949 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
950 | datarootdir=$ac_optarg ;; | |
951 | ||
cd6ede75 | 952 | -disable-* | --disable-*) |
322e23db | 953 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
cd6ede75 | 954 | # Reject names that are not valid shell variable names. |
322e23db UD |
955 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
956 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
3a12e572 | 957 | { (exit 1); exit 1; }; } |
322e23db UD |
958 | ac_useropt_orig=$ac_useropt |
959 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
960 | case $ac_user_opts in | |
961 | *" | |
962 | "enable_$ac_useropt" | |
963 | "*) ;; | |
964 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
965 | ac_unrecognized_sep=', ';; | |
966 | esac | |
967 | eval enable_$ac_useropt=no ;; | |
26f56c1c UD |
968 | |
969 | -docdir | --docdir | --docdi | --doc | --do) | |
970 | ac_prev=docdir ;; | |
971 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
972 | docdir=$ac_optarg ;; | |
973 | ||
974 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
975 | ac_prev=dvidir ;; | |
976 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
977 | dvidir=$ac_optarg ;; | |
cd6ede75 UD |
978 | |
979 | -enable-* | --enable-*) | |
322e23db | 980 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
cd6ede75 | 981 | # Reject names that are not valid shell variable names. |
322e23db UD |
982 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
983 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
3a12e572 | 984 | { (exit 1); exit 1; }; } |
322e23db UD |
985 | ac_useropt_orig=$ac_useropt |
986 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
987 | case $ac_user_opts in | |
988 | *" | |
989 | "enable_$ac_useropt" | |
990 | "*) ;; | |
991 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
992 | ac_unrecognized_sep=', ';; | |
993 | esac | |
994 | eval enable_$ac_useropt=\$ac_optarg ;; | |
cd6ede75 UD |
995 | |
996 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
997 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
998 | | --exec | --exe | --ex) | |
999 | ac_prev=exec_prefix ;; | |
1000 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1001 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1002 | | --exec=* | --exe=* | --ex=*) | |
3a12e572 | 1003 | exec_prefix=$ac_optarg ;; |
cd6ede75 UD |
1004 | |
1005 | -gas | --gas | --ga | --g) | |
1006 | # Obsolete; use --with-gas. | |
1007 | with_gas=yes ;; | |
1008 | ||
3a12e572 UD |
1009 | -help | --help | --hel | --he | -h) |
1010 | ac_init_help=long ;; | |
1011 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1012 | ac_init_help=recursive ;; | |
1013 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1014 | ac_init_help=short ;; | |
cd6ede75 UD |
1015 | |
1016 | -host | --host | --hos | --ho) | |
3a12e572 | 1017 | ac_prev=host_alias ;; |
cd6ede75 | 1018 | -host=* | --host=* | --hos=* | --ho=*) |
3a12e572 | 1019 | host_alias=$ac_optarg ;; |
cd6ede75 | 1020 | |
26f56c1c UD |
1021 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1022 | ac_prev=htmldir ;; | |
1023 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1024 | | --ht=*) | |
1025 | htmldir=$ac_optarg ;; | |
1026 | ||
cd6ede75 UD |
1027 | -includedir | --includedir | --includedi | --included | --include \ |
1028 | | --includ | --inclu | --incl | --inc) | |
1029 | ac_prev=includedir ;; | |
1030 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1031 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
3a12e572 | 1032 | includedir=$ac_optarg ;; |
cd6ede75 UD |
1033 | |
1034 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1035 | ac_prev=infodir ;; | |
1036 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
3a12e572 | 1037 | infodir=$ac_optarg ;; |
cd6ede75 UD |
1038 | |
1039 | -libdir | --libdir | --libdi | --libd) | |
1040 | ac_prev=libdir ;; | |
1041 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
3a12e572 | 1042 | libdir=$ac_optarg ;; |
cd6ede75 UD |
1043 | |
1044 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1045 | | --libexe | --libex | --libe) | |
1046 | ac_prev=libexecdir ;; | |
1047 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1048 | | --libexe=* | --libex=* | --libe=*) | |
3a12e572 | 1049 | libexecdir=$ac_optarg ;; |
cd6ede75 | 1050 | |
26f56c1c UD |
1051 | -localedir | --localedir | --localedi | --localed | --locale) |
1052 | ac_prev=localedir ;; | |
1053 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1054 | localedir=$ac_optarg ;; | |
1055 | ||
cd6ede75 | 1056 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
26f56c1c | 1057 | | --localstate | --localstat | --localsta | --localst | --locals) |
cd6ede75 UD |
1058 | ac_prev=localstatedir ;; |
1059 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
26f56c1c | 1060 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
3a12e572 | 1061 | localstatedir=$ac_optarg ;; |
cd6ede75 UD |
1062 | |
1063 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1064 | ac_prev=mandir ;; | |
1065 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
3a12e572 | 1066 | mandir=$ac_optarg ;; |
cd6ede75 UD |
1067 | |
1068 | -nfp | --nfp | --nf) | |
1069 | # Obsolete; use --without-fp. | |
1070 | with_fp=no ;; | |
1071 | ||
1072 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
3a12e572 | 1073 | | --no-cr | --no-c | -n) |
cd6ede75 UD |
1074 | no_create=yes ;; |
1075 | ||
1076 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1077 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1078 | no_recursion=yes ;; | |
1079 | ||
1080 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1081 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1082 | | --oldin | --oldi | --old | --ol | --o) | |
1083 | ac_prev=oldincludedir ;; | |
1084 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1085 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1086 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
3a12e572 | 1087 | oldincludedir=$ac_optarg ;; |
cd6ede75 UD |
1088 | |
1089 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1090 | ac_prev=prefix ;; | |
1091 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
3a12e572 | 1092 | prefix=$ac_optarg ;; |
cd6ede75 UD |
1093 | |
1094 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1095 | | --program-pre | --program-pr | --program-p) | |
1096 | ac_prev=program_prefix ;; | |
1097 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1098 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
3a12e572 | 1099 | program_prefix=$ac_optarg ;; |
cd6ede75 UD |
1100 | |
1101 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1102 | | --program-suf | --program-su | --program-s) | |
1103 | ac_prev=program_suffix ;; | |
1104 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1105 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
3a12e572 | 1106 | program_suffix=$ac_optarg ;; |
cd6ede75 UD |
1107 | |
1108 | -program-transform-name | --program-transform-name \ | |
1109 | | --program-transform-nam | --program-transform-na \ | |
1110 | | --program-transform-n | --program-transform- \ | |
1111 | | --program-transform | --program-transfor \ | |
1112 | | --program-transfo | --program-transf \ | |
1113 | | --program-trans | --program-tran \ | |
1114 | | --progr-tra | --program-tr | --program-t) | |
1115 | ac_prev=program_transform_name ;; | |
1116 | -program-transform-name=* | --program-transform-name=* \ | |
1117 | | --program-transform-nam=* | --program-transform-na=* \ | |
1118 | | --program-transform-n=* | --program-transform-=* \ | |
1119 | | --program-transform=* | --program-transfor=* \ | |
1120 | | --program-transfo=* | --program-transf=* \ | |
1121 | | --program-trans=* | --program-tran=* \ | |
1122 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
3a12e572 | 1123 | program_transform_name=$ac_optarg ;; |
cd6ede75 | 1124 | |
26f56c1c UD |
1125 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1126 | ac_prev=pdfdir ;; | |
1127 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1128 | pdfdir=$ac_optarg ;; | |
1129 | ||
1130 | -psdir | --psdir | --psdi | --psd | --ps) | |
1131 | ac_prev=psdir ;; | |
1132 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1133 | psdir=$ac_optarg ;; | |
1134 | ||
cd6ede75 UD |
1135 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1136 | | -silent | --silent | --silen | --sile | --sil) | |
1137 | silent=yes ;; | |
1138 | ||
1139 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1140 | ac_prev=sbindir ;; | |
1141 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1142 | | --sbi=* | --sb=*) | |
3a12e572 | 1143 | sbindir=$ac_optarg ;; |
cd6ede75 UD |
1144 | |
1145 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1146 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1147 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1148 | | --sha | --sh) | |
1149 | ac_prev=sharedstatedir ;; | |
1150 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1151 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1152 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1153 | | --sha=* | --sh=*) | |
3a12e572 | 1154 | sharedstatedir=$ac_optarg ;; |
cd6ede75 UD |
1155 | |
1156 | -site | --site | --sit) | |
1157 | ac_prev=site ;; | |
1158 | -site=* | --site=* | --sit=*) | |
3a12e572 | 1159 | site=$ac_optarg ;; |
cd6ede75 UD |
1160 | |
1161 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1162 | ac_prev=srcdir ;; | |
1163 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
3a12e572 | 1164 | srcdir=$ac_optarg ;; |
cd6ede75 UD |
1165 | |
1166 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1167 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1168 | ac_prev=sysconfdir ;; | |
1169 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1170 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
3a12e572 | 1171 | sysconfdir=$ac_optarg ;; |
cd6ede75 UD |
1172 | |
1173 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
3a12e572 | 1174 | ac_prev=target_alias ;; |
cd6ede75 | 1175 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
3a12e572 | 1176 | target_alias=$ac_optarg ;; |
cd6ede75 UD |
1177 | |
1178 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1179 | verbose=yes ;; | |
1180 | ||
3a12e572 UD |
1181 | -version | --version | --versio | --versi | --vers | -V) |
1182 | ac_init_version=: ;; | |
cd6ede75 UD |
1183 | |
1184 | -with-* | --with-*) | |
322e23db | 1185 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
cd6ede75 | 1186 | # Reject names that are not valid shell variable names. |
322e23db UD |
1187 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1188 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
3a12e572 | 1189 | { (exit 1); exit 1; }; } |
322e23db UD |
1190 | ac_useropt_orig=$ac_useropt |
1191 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1192 | case $ac_user_opts in | |
1193 | *" | |
1194 | "with_$ac_useropt" | |
1195 | "*) ;; | |
1196 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1197 | ac_unrecognized_sep=', ';; | |
1198 | esac | |
1199 | eval with_$ac_useropt=\$ac_optarg ;; | |
cd6ede75 UD |
1200 | |
1201 | -without-* | --without-*) | |
322e23db | 1202 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
cd6ede75 | 1203 | # Reject names that are not valid shell variable names. |
322e23db UD |
1204 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1205 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
3a12e572 | 1206 | { (exit 1); exit 1; }; } |
322e23db UD |
1207 | ac_useropt_orig=$ac_useropt |
1208 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1209 | case $ac_user_opts in | |
1210 | *" | |
1211 | "with_$ac_useropt" | |
1212 | "*) ;; | |
1213 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1214 | ac_unrecognized_sep=', ';; | |
1215 | esac | |
1216 | eval with_$ac_useropt=no ;; | |
cd6ede75 UD |
1217 | |
1218 | --x) | |
1219 | # Obsolete; use --with-x. | |
1220 | with_x=yes ;; | |
1221 | ||
1222 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1223 | | --x-incl | --x-inc | --x-in | --x-i) | |
1224 | ac_prev=x_includes ;; | |
1225 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1226 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
3a12e572 | 1227 | x_includes=$ac_optarg ;; |
cd6ede75 UD |
1228 | |
1229 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1230 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1231 | ac_prev=x_libraries ;; | |
1232 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1233 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
3a12e572 | 1234 | x_libraries=$ac_optarg ;; |
cd6ede75 | 1235 | |
322e23db | 1236 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
3a12e572 UD |
1237 | Try \`$0 --help' for more information." >&2 |
1238 | { (exit 1); exit 1; }; } | |
cd6ede75 UD |
1239 | ;; |
1240 | ||
3a12e572 UD |
1241 | *=*) |
1242 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1243 | # Reject names that are not valid shell variable names. | |
1244 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
322e23db | 1245 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
3a12e572 | 1246 | { (exit 1); exit 1; }; } |
26f56c1c | 1247 | eval $ac_envvar=\$ac_optarg |
3a12e572 UD |
1248 | export $ac_envvar ;; |
1249 | ||
cd6ede75 | 1250 | *) |
3a12e572 | 1251 | # FIXME: should be removed in autoconf 3.0. |
322e23db | 1252 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
3a12e572 | 1253 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
322e23db | 1254 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
3a12e572 | 1255 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
cd6ede75 UD |
1256 | ;; |
1257 | ||
1258 | esac | |
1259 | done | |
1260 | ||
1261 | if test -n "$ac_prev"; then | |
3a12e572 | 1262 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
322e23db | 1263 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
3a12e572 | 1264 | { (exit 1); exit 1; }; } |
cd6ede75 | 1265 | fi |
cd6ede75 | 1266 | |
322e23db UD |
1267 | if test -n "$ac_unrecognized_opts"; then |
1268 | case $enable_option_checking in | |
1269 | no) ;; | |
1270 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1271 | { (exit 1); exit 1; }; } ;; | |
1272 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1273 | esac | |
1274 | fi | |
1275 | ||
1276 | # Check all directory arguments for consistency. | |
26f56c1c UD |
1277 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1278 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1279 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1280 | libdir localedir mandir | |
cd6ede75 | 1281 | do |
26f56c1c | 1282 | eval ac_val=\$$ac_var |
322e23db UD |
1283 | # Remove trailing slashes. |
1284 | case $ac_val in | |
1285 | */ ) | |
1286 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1287 | eval $ac_var=\$ac_val;; | |
1288 | esac | |
1289 | # Be sure to have absolute directory names. | |
3a12e572 | 1290 | case $ac_val in |
26f56c1c UD |
1291 | [\\/$]* | ?:[\\/]* ) continue;; |
1292 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
cd6ede75 | 1293 | esac |
322e23db | 1294 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
26f56c1c | 1295 | { (exit 1); exit 1; }; } |
cd6ede75 UD |
1296 | done |
1297 | ||
3a12e572 UD |
1298 | # There might be people who depend on the old broken behavior: `$host' |
1299 | # used to hold the argument of --host etc. | |
1300 | # FIXME: To remove some day. | |
1301 | build=$build_alias | |
1302 | host=$host_alias | |
1303 | target=$target_alias | |
1304 | ||
1305 | # FIXME: To remove some day. | |
1306 | if test "x$host_alias" != x; then | |
1307 | if test "x$build_alias" = x; then | |
1308 | cross_compiling=maybe | |
322e23db | 1309 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
3a12e572 UD |
1310 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1311 | elif test "x$build_alias" != "x$host_alias"; then | |
1312 | cross_compiling=yes | |
1313 | fi | |
1314 | fi | |
cd6ede75 | 1315 | |
3a12e572 UD |
1316 | ac_tool_prefix= |
1317 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1318 | ||
1319 | test "$silent" = yes && exec 6>/dev/null | |
cd6ede75 | 1320 | |
cd6ede75 | 1321 | |
26f56c1c UD |
1322 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1323 | ac_ls_di=`ls -di .` && | |
1324 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
322e23db | 1325 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
26f56c1c UD |
1326 | { (exit 1); exit 1; }; } |
1327 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
322e23db | 1328 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
26f56c1c UD |
1329 | { (exit 1); exit 1; }; } |
1330 | ||
1331 | ||
cd6ede75 UD |
1332 | # Find the source files, if location was not specified. |
1333 | if test -z "$srcdir"; then | |
1334 | ac_srcdir_defaulted=yes | |
26f56c1c | 1335 | # Try the directory containing this script, then the parent directory. |
322e23db UD |
1336 | ac_confdir=`$as_dirname -- "$as_myself" || |
1337 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1338 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1339 | X"$as_myself" : 'X\(//\)$' \| \ | |
1340 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1341 | $as_echo X"$as_myself" | | |
26f56c1c UD |
1342 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1343 | s//\1/ | |
1344 | q | |
1345 | } | |
1346 | /^X\(\/\/\)[^/].*/{ | |
1347 | s//\1/ | |
1348 | q | |
1349 | } | |
1350 | /^X\(\/\/\)$/{ | |
1351 | s//\1/ | |
1352 | q | |
1353 | } | |
1354 | /^X\(\/\).*/{ | |
1355 | s//\1/ | |
1356 | q | |
1357 | } | |
1358 | s/.*/./; q'` | |
cd6ede75 | 1359 | srcdir=$ac_confdir |
26f56c1c | 1360 | if test ! -r "$srcdir/$ac_unique_file"; then |
cd6ede75 UD |
1361 | srcdir=.. |
1362 | fi | |
1363 | else | |
1364 | ac_srcdir_defaulted=no | |
1365 | fi | |
26f56c1c UD |
1366 | if test ! -r "$srcdir/$ac_unique_file"; then |
1367 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
322e23db | 1368 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
3a12e572 | 1369 | { (exit 1); exit 1; }; } |
cd6ede75 | 1370 | fi |
26f56c1c UD |
1371 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1372 | ac_abs_confdir=`( | |
322e23db | 1373 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
f4b07664 | 1374 | { (exit 1); exit 1; }; } |
26f56c1c UD |
1375 | pwd)` |
1376 | # When building in place, set srcdir=. | |
1377 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1378 | srcdir=. | |
1379 | fi | |
1380 | # Remove unnecessary trailing slashes from srcdir. | |
1381 | # Double slashes in file names in object file debugging info | |
1382 | # mess up M-x gdb in Emacs. | |
1383 | case $srcdir in | |
1384 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1385 | esac | |
1386 | for ac_var in $ac_precious_vars; do | |
1387 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1388 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1389 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1390 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1391 | done | |
3a12e572 UD |
1392 | |
1393 | # | |
1394 | # Report the --help message. | |
1395 | # | |
1396 | if test "$ac_init_help" = "long"; then | |
1397 | # Omit some internal or obsolete options to make the list less imposing. | |
1398 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1399 | cat <<_ACEOF | |
f4b07664 | 1400 | \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems. |
3a12e572 UD |
1401 | |
1402 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1403 | ||
1404 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1405 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1406 | ||
1407 | Defaults for the options are specified in brackets. | |
1408 | ||
1409 | Configuration: | |
1410 | -h, --help display this help and exit | |
1411 | --help=short display options specific to this package | |
1412 | --help=recursive display the short help of all the included packages | |
1413 | -V, --version display version information and exit | |
1414 | -q, --quiet, --silent do not print \`checking...' messages | |
1415 | --cache-file=FILE cache test results in FILE [disabled] | |
1416 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1417 | -n, --no-create do not create output files | |
1418 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1419 | ||
3a12e572 UD |
1420 | Installation directories: |
1421 | --prefix=PREFIX install architecture-independent files in PREFIX | |
322e23db | 1422 | [$ac_default_prefix] |
3a12e572 | 1423 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
322e23db | 1424 | [PREFIX] |
3a12e572 UD |
1425 | |
1426 | By default, \`make install' will install all the files in | |
1427 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1428 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1429 | for instance \`--prefix=\$HOME'. | |
1430 | ||
1431 | For better control, use the options below. | |
1432 | ||
1433 | Fine tuning of the installation directories: | |
322e23db UD |
1434 | --bindir=DIR user executables [EPREFIX/bin] |
1435 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1436 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1437 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1438 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1439 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1440 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1441 | --includedir=DIR C header files [PREFIX/include] | |
1442 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1443 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1444 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1445 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1446 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1447 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1448 | --docdir=DIR documentation root [DATAROOTDIR/doc/c-library] | |
1449 | --htmldir=DIR html documentation [DOCDIR] | |
1450 | --dvidir=DIR dvi documentation [DOCDIR] | |
1451 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1452 | --psdir=DIR ps documentation [DOCDIR] | |
3a12e572 UD |
1453 | _ACEOF |
1454 | ||
1455 | cat <<\_ACEOF | |
1456 | ||
1457 | System types: | |
1458 | --build=BUILD configure for building on BUILD [guessed] | |
1459 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1460 | _ACEOF | |
1461 | fi | |
cd6ede75 | 1462 | |
3a12e572 | 1463 | if test -n "$ac_init_help"; then |
f4b07664 RM |
1464 | case $ac_init_help in |
1465 | short | recursive ) echo "Configuration of GNU C Library (see version.h):";; | |
1466 | esac | |
3a12e572 UD |
1467 | cat <<\_ACEOF |
1468 | ||
1469 | Optional Features: | |
322e23db | 1470 | --disable-option-checking ignore unrecognized --enable/--with options |
3a12e572 UD |
1471 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1472 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6b7f6183 RM |
1473 | --disable-sanity-checks really do not use threads (should not be used except |
1474 | in special situations) [default=yes] | |
fd54683c RM |
1475 | --enable-check-abi do "make check-abi" in "make check" (no/warn/yes) |
1476 | [default=no] | |
26f56c1c | 1477 | --enable-shared build shared library [default=yes if GNU ld & ELF] |
11bf311e | 1478 | --enable-profile build profiled library [default=no] |
26f56c1c UD |
1479 | --enable-omitfp build undebuggable optimized library [default=no] |
1480 | --enable-bounded build with runtime bounds checking [default=no] | |
6b7f6183 RM |
1481 | --disable-versioning do not include versioning information in the library |
1482 | objects [default=yes if supported] | |
1483 | --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2] | |
1484 | [default=glibc default] | |
35f1e827 UD |
1485 | --enable-stackguard-randomization |
1486 | initialize __stack_chk_guard canary with a random | |
1487 | number at program start | |
6b7f6183 RM |
1488 | --enable-add-ons[=DIRS...] |
1489 | configure and build add-ons in DIR1,DIR2,... search | |
1490 | for add-ons if no parameter given | |
3a12e572 | 1491 | --disable-hidden-plt do not hide internal function calls to avoid PLT |
4df8c11d | 1492 | --enable-bind-now disable lazy relocations in DSOs |
6b7f6183 | 1493 | --enable-static-nss build static NSS modules [default=no] |
3a12e572 | 1494 | --disable-force-install don't force installation of files from this package, |
6b7f6183 RM |
1495 | even if they are older than the installed files |
1496 | --enable-kernel=VERSION compile for compatibility with kernel not older than | |
1497 | VERSION | |
3a12e572 | 1498 | --enable-all-warnings enable all useful warnings gcc can issue |
425ce2ed UD |
1499 | --enable-multi-arch enable single DSO with optimizations for multiple |
1500 | architectures | |
1501 | --enable-experimental-malloc | |
1502 | enable experimental malloc features | |
ff886b82 | 1503 | --enable-nss-crypt enable libcrypt to use nss |
3a12e572 UD |
1504 | |
1505 | Optional Packages: | |
1506 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1507 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3a12e572 UD |
1508 | --with-gd=DIR find libgd include dir and library with prefix DIR |
1509 | --with-gd-include=DIR find libgd include files in DIR | |
1510 | --with-gd-lib=DIR find libgd library files in DIR | |
6b7f6183 RM |
1511 | --with-fp if using floating-point hardware [default=yes] |
1512 | --with-binutils=PATH specify location of binutils (as and ld) | |
1513 | --with-elf if using the ELF object format | |
74a30a58 | 1514 | --with-selinux if building with SELinux support |
6b7f6183 | 1515 | --with-xcoff if using the XCOFF object format |
3a12e572 | 1516 | --without-cvs if CVS should not be used |
6b7f6183 | 1517 | --with-headers=PATH location of system headers to use (for example |
26f56c1c | 1518 | /usr/src/linux/include) [default=compiler default] |
3a12e572 UD |
1519 | --with-tls enable support for TLS |
1520 | --without-__thread do not use TLS features even when supporting them | |
2ceaa76a | 1521 | --with-cpu=CPU select code for CPU variant |
3a12e572 UD |
1522 | |
1523 | Some influential environment variables: | |
1524 | CC C compiler command | |
1525 | CFLAGS C compiler flags | |
1526 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1527 | nonstandard directory <lib dir> | |
26f56c1c UD |
1528 | LIBS libraries to pass to the linker, e.g. -l<library> |
1529 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1530 | you have headers in a nonstandard directory <include dir> | |
3a12e572 | 1531 | CPP C preprocessor |
925c3c5c UD |
1532 | CXX C++ compiler command |
1533 | CXXFLAGS C++ compiler flags | |
3a12e572 UD |
1534 | |
1535 | Use these variables to override the choices made by `configure' or to help | |
1536 | it to find libraries and programs with nonstandard names/locations. | |
1537 | ||
f4b07664 | 1538 | Report bugs to <glibc>. |
3a12e572 | 1539 | _ACEOF |
26f56c1c | 1540 | ac_status=$? |
3a12e572 UD |
1541 | fi |
1542 | ||
1543 | if test "$ac_init_help" = "recursive"; then | |
1544 | # If there are subdirs, report their specific --help. | |
3a12e572 | 1545 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
322e23db UD |
1546 | test -d "$ac_dir" || |
1547 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1548 | continue | |
3a12e572 UD |
1549 | ac_builddir=. |
1550 | ||
26f56c1c UD |
1551 | case "$ac_dir" in |
1552 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1553 | *) | |
322e23db | 1554 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 1555 | # A ".." for each directory in $ac_dir_suffix. |
322e23db | 1556 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
1557 | case $ac_top_builddir_sub in |
1558 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1559 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1560 | esac ;; | |
1561 | esac | |
1562 | ac_abs_top_builddir=$ac_pwd | |
1563 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1564 | # for backward compatibility: | |
1565 | ac_top_builddir=$ac_top_build_prefix | |
3a12e572 UD |
1566 | |
1567 | case $srcdir in | |
26f56c1c | 1568 | .) # We are building in place. |
3a12e572 | 1569 | ac_srcdir=. |
26f56c1c UD |
1570 | ac_top_srcdir=$ac_top_builddir_sub |
1571 | ac_abs_top_srcdir=$ac_pwd ;; | |
1572 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 1573 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
1574 | ac_top_srcdir=$srcdir |
1575 | ac_abs_top_srcdir=$srcdir ;; | |
1576 | *) # Relative name. | |
1577 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1578 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1579 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3a12e572 | 1580 | esac |
26f56c1c UD |
1581 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1582 | ||
1583 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1584 | # Check for guested configure. | |
1585 | if test -f "$ac_srcdir/configure.gnu"; then | |
1586 | echo && | |
1587 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1588 | elif test -f "$ac_srcdir/configure"; then | |
1589 | echo && | |
1590 | $SHELL "$ac_srcdir/configure" --help=recursive | |
3a12e572 | 1591 | else |
322e23db | 1592 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
26f56c1c UD |
1593 | fi || ac_status=$? |
1594 | cd "$ac_pwd" || { ac_status=$?; break; } | |
3a12e572 UD |
1595 | done |
1596 | fi | |
1597 | ||
26f56c1c | 1598 | test -n "$ac_init_help" && exit $ac_status |
3a12e572 UD |
1599 | if $ac_init_version; then |
1600 | cat <<\_ACEOF | |
f4b07664 | 1601 | GNU C Library configure (see version.h) |
322e23db | 1602 | generated by GNU Autoconf 2.63 |
3a12e572 | 1603 | |
26f56c1c | 1604 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
322e23db | 1605 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
3a12e572 UD |
1606 | This configure script is free software; the Free Software Foundation |
1607 | gives unlimited permission to copy, distribute and modify it. | |
1608 | _ACEOF | |
26f56c1c | 1609 | exit |
3a12e572 | 1610 | fi |
26f56c1c | 1611 | cat >config.log <<_ACEOF |
3a12e572 UD |
1612 | This file contains any messages produced by compilers while |
1613 | running configure, to aid debugging if configure makes a mistake. | |
1614 | ||
f4b07664 | 1615 | It was created by GNU C Library $as_me (see version.h), which was |
322e23db | 1616 | generated by GNU Autoconf 2.63. Invocation command line was |
3a12e572 UD |
1617 | |
1618 | $ $0 $@ | |
1619 | ||
1620 | _ACEOF | |
26f56c1c | 1621 | exec 5>>config.log |
3a12e572 UD |
1622 | { |
1623 | cat <<_ASUNAME | |
1624 | ## --------- ## | |
1625 | ## Platform. ## | |
1626 | ## --------- ## | |
1627 | ||
1628 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1629 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1630 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1631 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1632 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1633 | ||
1634 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1635 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1636 | ||
1637 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1638 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1639 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
26f56c1c | 1640 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
3a12e572 UD |
1641 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1642 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1643 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1644 | ||
1645 | _ASUNAME | |
1646 | ||
1647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1648 | for as_dir in $PATH | |
1649 | do | |
1650 | IFS=$as_save_IFS | |
1651 | test -z "$as_dir" && as_dir=. | |
322e23db | 1652 | $as_echo "PATH: $as_dir" |
3a12e572 | 1653 | done |
26f56c1c | 1654 | IFS=$as_save_IFS |
3a12e572 UD |
1655 | |
1656 | } >&5 | |
1657 | ||
1658 | cat >&5 <<_ACEOF | |
1659 | ||
1660 | ||
1661 | ## ----------- ## | |
1662 | ## Core tests. ## | |
1663 | ## ----------- ## | |
1664 | ||
1665 | _ACEOF | |
1666 | ||
1667 | ||
1668 | # Keep a trace of the command line. | |
1669 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2abf9ff1 | 1670 | # Strip out --silent because we don't want to record it for future runs. |
3a12e572 | 1671 | # Also quote any args containing shell meta-characters. |
2abf9ff1 | 1672 | # Make two passes to allow for proper duplicate-argument suppression. |
3a12e572 | 1673 | ac_configure_args= |
2abf9ff1 RM |
1674 | ac_configure_args0= |
1675 | ac_configure_args1= | |
2abf9ff1 RM |
1676 | ac_must_keep_next=false |
1677 | for ac_pass in 1 2 | |
3a12e572 | 1678 | do |
2abf9ff1 RM |
1679 | for ac_arg |
1680 | do | |
1681 | case $ac_arg in | |
1682 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1683 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1684 | | -silent | --silent | --silen | --sile | --sil) | |
1685 | continue ;; | |
26f56c1c | 1686 | *\'*) |
322e23db | 1687 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2abf9ff1 RM |
1688 | esac |
1689 | case $ac_pass in | |
1690 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1691 | 2) | |
1692 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1693 | if test $ac_must_keep_next = true; then | |
9382fcee | 1694 | ac_must_keep_next=false # Got value, back to normal. |
2abf9ff1 | 1695 | else |
9382fcee RM |
1696 | case $ac_arg in |
1697 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1698 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1699 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1700 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1701 | case "$ac_configure_args0 " in | |
1702 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1703 | esac | |
1704 | ;; | |
1705 | -* ) ac_must_keep_next=true ;; | |
1706 | esac | |
2abf9ff1 | 1707 | fi |
26f56c1c | 1708 | ac_configure_args="$ac_configure_args '$ac_arg'" |
2abf9ff1 RM |
1709 | ;; |
1710 | esac | |
1711 | done | |
3a12e572 | 1712 | done |
2abf9ff1 RM |
1713 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1714 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
3a12e572 UD |
1715 | |
1716 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1717 | # config.log. We remove comments because anyway the quotes in there | |
1718 | # would cause problems or look ugly. | |
26f56c1c UD |
1719 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1720 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
3a12e572 UD |
1721 | trap 'exit_status=$? |
1722 | # Save into config.log some information that might help in debugging. | |
1723 | { | |
1724 | echo | |
f4b07664 | 1725 | |
3a12e572 UD |
1726 | cat <<\_ASBOX |
1727 | ## ---------------- ## | |
1728 | ## Cache variables. ## | |
1729 | ## ---------------- ## | |
1730 | _ASBOX | |
1731 | echo | |
1732 | # The following way of writing the cache mishandles newlines in values, | |
26f56c1c UD |
1733 | ( |
1734 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1735 | eval ac_val=\$$ac_var | |
1736 | case $ac_val in #( | |
1737 | *${as_nl}*) | |
1738 | case $ac_var in #( | |
322e23db UD |
1739 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1740 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26f56c1c UD |
1741 | esac |
1742 | case $ac_var in #( | |
1743 | _ | IFS | as_nl) ;; #( | |
322e23db | 1744 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
26f56c1c UD |
1745 | *) $as_unset $ac_var ;; |
1746 | esac ;; | |
1747 | esac | |
1748 | done | |
3a12e572 | 1749 | (set) 2>&1 | |
26f56c1c UD |
1750 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1751 | *${as_nl}ac_space=\ *) | |
3a12e572 | 1752 | sed -n \ |
26f56c1c UD |
1753 | "s/'\''/'\''\\\\'\'''\''/g; |
1754 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1755 | ;; #( | |
3a12e572 | 1756 | *) |
26f56c1c | 1757 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
3a12e572 | 1758 | ;; |
26f56c1c UD |
1759 | esac | |
1760 | sort | |
1761 | ) | |
3a12e572 | 1762 | echo |
f4b07664 RM |
1763 | |
1764 | cat <<\_ASBOX | |
1765 | ## ----------------- ## | |
1766 | ## Output variables. ## | |
1767 | ## ----------------- ## | |
1768 | _ASBOX | |
1769 | echo | |
1770 | for ac_var in $ac_subst_vars | |
1771 | do | |
26f56c1c UD |
1772 | eval ac_val=\$$ac_var |
1773 | case $ac_val in | |
322e23db | 1774 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
26f56c1c | 1775 | esac |
322e23db | 1776 | $as_echo "$ac_var='\''$ac_val'\''" |
f4b07664 RM |
1777 | done | sort |
1778 | echo | |
1779 | ||
1780 | if test -n "$ac_subst_files"; then | |
1781 | cat <<\_ASBOX | |
26f56c1c UD |
1782 | ## ------------------- ## |
1783 | ## File substitutions. ## | |
1784 | ## ------------------- ## | |
f4b07664 RM |
1785 | _ASBOX |
1786 | echo | |
1787 | for ac_var in $ac_subst_files | |
1788 | do | |
26f56c1c UD |
1789 | eval ac_val=\$$ac_var |
1790 | case $ac_val in | |
322e23db | 1791 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
26f56c1c | 1792 | esac |
322e23db | 1793 | $as_echo "$ac_var='\''$ac_val'\''" |
f4b07664 RM |
1794 | done | sort |
1795 | echo | |
1796 | fi | |
1797 | ||
3a12e572 UD |
1798 | if test -s confdefs.h; then |
1799 | cat <<\_ASBOX | |
1800 | ## ----------- ## | |
1801 | ## confdefs.h. ## | |
1802 | ## ----------- ## | |
1803 | _ASBOX | |
1804 | echo | |
26f56c1c | 1805 | cat confdefs.h |
3a12e572 UD |
1806 | echo |
1807 | fi | |
1808 | test "$ac_signal" != 0 && | |
322e23db UD |
1809 | $as_echo "$as_me: caught signal $ac_signal" |
1810 | $as_echo "$as_me: exit $exit_status" | |
3a12e572 | 1811 | } >&5 |
26f56c1c UD |
1812 | rm -f core *.core core.conftest.* && |
1813 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
3a12e572 | 1814 | exit $exit_status |
26f56c1c | 1815 | ' 0 |
3a12e572 UD |
1816 | for ac_signal in 1 2 13 15; do |
1817 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1818 | done | |
1819 | ac_signal=0 | |
1820 | ||
1821 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
26f56c1c | 1822 | rm -f -r conftest* confdefs.h |
3a12e572 UD |
1823 | |
1824 | # Predefined preprocessor variables. | |
1825 | ||
1826 | cat >>confdefs.h <<_ACEOF | |
1827 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1828 | _ACEOF | |
1829 | ||
1830 | ||
1831 | cat >>confdefs.h <<_ACEOF | |
1832 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1833 | _ACEOF | |
1834 | ||
1835 | ||
1836 | cat >>confdefs.h <<_ACEOF | |
1837 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1838 | _ACEOF | |
1839 | ||
1840 | ||
1841 | cat >>confdefs.h <<_ACEOF | |
1842 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1843 | _ACEOF | |
1844 | ||
1845 | ||
1846 | cat >>confdefs.h <<_ACEOF | |
1847 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1848 | _ACEOF | |
1849 | ||
1850 | ||
1851 | # Let the site file select an alternate cache file if it wants to. | |
322e23db UD |
1852 | # Prefer an explicitly selected file to automatically selected ones. |
1853 | ac_site_file1=NONE | |
1854 | ac_site_file2=NONE | |
26f56c1c | 1855 | if test -n "$CONFIG_SITE"; then |
322e23db | 1856 | ac_site_file1=$CONFIG_SITE |
26f56c1c | 1857 | elif test "x$prefix" != xNONE; then |
322e23db UD |
1858 | ac_site_file1=$prefix/share/config.site |
1859 | ac_site_file2=$prefix/etc/config.site | |
26f56c1c | 1860 | else |
322e23db UD |
1861 | ac_site_file1=$ac_default_prefix/share/config.site |
1862 | ac_site_file2=$ac_default_prefix/etc/config.site | |
cd6ede75 | 1863 | fi |
322e23db | 1864 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
26f56c1c | 1865 | do |
322e23db | 1866 | test "x$ac_site_file" = xNONE && continue |
cd6ede75 | 1867 | if test -r "$ac_site_file"; then |
322e23db UD |
1868 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1869 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
3a12e572 | 1870 | sed 's/^/| /' "$ac_site_file" >&5 |
cd6ede75 UD |
1871 | . "$ac_site_file" |
1872 | fi | |
1873 | done | |
1874 | ||
1875 | if test -r "$cache_file"; then | |
3a12e572 UD |
1876 | # Some versions of bash will fail to source /dev/null (special |
1877 | # files actually), so we avoid doing that. | |
1878 | if test -f "$cache_file"; then | |
322e23db UD |
1879 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1880 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
3a12e572 | 1881 | case $cache_file in |
26f56c1c UD |
1882 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1883 | *) . "./$cache_file";; | |
3a12e572 UD |
1884 | esac |
1885 | fi | |
cd6ede75 | 1886 | else |
322e23db UD |
1887 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1888 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
3a12e572 UD |
1889 | >$cache_file |
1890 | fi | |
1891 | ||
1892 | # Check that the precious variables saved in the cache have kept the same | |
1893 | # value. | |
1894 | ac_cache_corrupted=false | |
26f56c1c | 1895 | for ac_var in $ac_precious_vars; do |
3a12e572 UD |
1896 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1897 | eval ac_new_set=\$ac_env_${ac_var}_set | |
26f56c1c UD |
1898 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1899 | eval ac_new_val=\$ac_env_${ac_var}_value | |
3a12e572 UD |
1900 | case $ac_old_set,$ac_new_set in |
1901 | set,) | |
322e23db UD |
1902 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1903 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
3a12e572 UD |
1904 | ac_cache_corrupted=: ;; |
1905 | ,set) | |
322e23db UD |
1906 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1907 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
3a12e572 UD |
1908 | ac_cache_corrupted=: ;; |
1909 | ,);; | |
1910 | *) | |
1911 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
322e23db UD |
1912 | # differences in whitespace do not lead to failure. |
1913 | ac_old_val_w=`echo x $ac_old_val` | |
1914 | ac_new_val_w=`echo x $ac_new_val` | |
1915 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1916 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1917 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1918 | ac_cache_corrupted=: | |
1919 | else | |
1920 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1921 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1922 | eval $ac_var=\$ac_old_val | |
1923 | fi | |
1924 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1925 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1926 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1927 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
3a12e572 UD |
1928 | fi;; |
1929 | esac | |
1930 | # Pass precious variables to config.status. | |
1931 | if test "$ac_new_set" = set; then | |
1932 | case $ac_new_val in | |
322e23db | 1933 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
3a12e572 UD |
1934 | *) ac_arg=$ac_var=$ac_new_val ;; |
1935 | esac | |
1936 | case " $ac_configure_args " in | |
1937 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1938 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1939 | esac | |
1940 | fi | |
1941 | done | |
1942 | if $ac_cache_corrupted; then | |
322e23db UD |
1943 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1944 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1945 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1946 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1947 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1948 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
3a12e572 | 1949 | { (exit 1); exit 1; }; } |
cd6ede75 UD |
1950 | fi |
1951 | ||
3a12e572 UD |
1952 | |
1953 | ||
cd6ede75 | 1954 | |
63bda0c1 | 1955 | |
cd6ede75 UD |
1956 | |
1957 | ||
3a12e572 UD |
1958 | |
1959 | ||
1960 | ||
1961 | ||
1962 | ||
1963 | ||
1964 | ||
1965 | ||
1966 | ||
1967 | ||
1968 | ||
f4b07664 RM |
1969 | |
1970 | ||
1971 | ||
1972 | ||
1973 | ||
1974 | ||
1975 | ||
26f56c1c UD |
1976 | ac_ext=c |
1977 | ac_cpp='$CPP $CPPFLAGS' | |
1978 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1979 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1980 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f4b07664 RM |
1981 | |
1982 | ||
1983 | ||
26f56c1c | 1984 | ac_config_headers="$ac_config_headers config.h" |
3a12e572 | 1985 | |
444518fe | 1986 | ac_aux_dir= |
26f56c1c UD |
1987 | for ac_dir in scripts "$srcdir"/scripts; do |
1988 | if test -f "$ac_dir/install-sh"; then | |
444518fe UD |
1989 | ac_aux_dir=$ac_dir |
1990 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1991 | break | |
26f56c1c | 1992 | elif test -f "$ac_dir/install.sh"; then |
444518fe UD |
1993 | ac_aux_dir=$ac_dir |
1994 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1995 | break | |
26f56c1c | 1996 | elif test -f "$ac_dir/shtool"; then |
3a12e572 UD |
1997 | ac_aux_dir=$ac_dir |
1998 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1999 | break | |
444518fe UD |
2000 | fi |
2001 | done | |
2002 | if test -z "$ac_aux_dir"; then | |
322e23db UD |
2003 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5 |
2004 | $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;} | |
3a12e572 | 2005 | { (exit 1); exit 1; }; } |
444518fe | 2006 | fi |
26f56c1c UD |
2007 | |
2008 | # These three variables are undocumented and unsupported, | |
2009 | # and are intended to be withdrawn in a future Autoconf release. | |
2010 | # They can cause serious problems if a builder's source tree is in a directory | |
2011 | # whose full name contains unusual characters. | |
2012 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2013 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2014 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2015 | ||
444518fe | 2016 | |
cd6ede75 | 2017 | |
7967983f RM |
2018 | |
2019 | ||
2020 | subdirs="$subdirs " | |
2021 | ||
2022 | ||
c16a054d AS |
2023 | # Make sure we can run config.sub. |
2024 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2025 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2026 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
2027 | { (exit 1); exit 1; }; } | |
2028 | ||
2029 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 | |
2030 | $as_echo_n "checking build system type... " >&6; } | |
2031 | if test "${ac_cv_build+set}" = set; then | |
2032 | $as_echo_n "(cached) " >&6 | |
2033 | else | |
2034 | ac_build_alias=$build_alias | |
2035 | test "x$ac_build_alias" = x && | |
2036 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2037 | test "x$ac_build_alias" = x && | |
2038 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2039 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2040 | { (exit 1); exit 1; }; } | |
2041 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2042 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2043 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
2044 | { (exit 1); exit 1; }; } | |
2045 | ||
2046 | fi | |
2047 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
2048 | $as_echo "$ac_cv_build" >&6; } | |
2049 | case $ac_cv_build in | |
2050 | *-*-*) ;; | |
2051 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2052 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
2053 | { (exit 1); exit 1; }; };; | |
2054 | esac | |
2055 | build=$ac_cv_build | |
2056 | ac_save_IFS=$IFS; IFS='-' | |
2057 | set x $ac_cv_build | |
2058 | shift | |
2059 | build_cpu=$1 | |
2060 | build_vendor=$2 | |
2061 | shift; shift | |
2062 | # Remember, the first character of IFS is used to create $*, | |
2063 | # except with old shells: | |
2064 | build_os=$* | |
2065 | IFS=$ac_save_IFS | |
2066 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2067 | ||
2068 | ||
2069 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 | |
2070 | $as_echo_n "checking host system type... " >&6; } | |
2071 | if test "${ac_cv_host+set}" = set; then | |
2072 | $as_echo_n "(cached) " >&6 | |
2073 | else | |
2074 | if test "x$host_alias" = x; then | |
2075 | ac_cv_host=$ac_cv_build | |
2076 | else | |
2077 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2078 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2079 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
2080 | { (exit 1); exit 1; }; } | |
2081 | fi | |
2082 | ||
2083 | fi | |
2084 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2085 | $as_echo "$ac_cv_host" >&6; } | |
2086 | case $ac_cv_host in | |
2087 | *-*-*) ;; | |
2088 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2089 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
2090 | { (exit 1); exit 1; }; };; | |
2091 | esac | |
2092 | host=$ac_cv_host | |
2093 | ac_save_IFS=$IFS; IFS='-' | |
2094 | set x $ac_cv_host | |
2095 | shift | |
2096 | host_cpu=$1 | |
2097 | host_vendor=$2 | |
2098 | shift; shift | |
2099 | # Remember, the first character of IFS is used to create $*, | |
2100 | # except with old shells: | |
2101 | host_os=$* | |
2102 | IFS=$ac_save_IFS | |
2103 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2104 | ||
2105 | ||
2106 | ||
a152f366 UD |
2107 | ac_ext=c |
2108 | ac_cpp='$CPP $CPPFLAGS' | |
2109 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2110 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2111 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2112 | if test -n "$ac_tool_prefix"; then | |
2113 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2114 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
322e23db UD |
2115 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2116 | $as_echo_n "checking for $ac_word... " >&6; } | |
a152f366 | 2117 | if test "${ac_cv_prog_CC+set}" = set; then |
322e23db | 2118 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2119 | else |
2120 | if test -n "$CC"; then | |
2121 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2122 | else | |
2123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2124 | for as_dir in $PATH | |
2125 | do | |
2126 | IFS=$as_save_IFS | |
2127 | test -z "$as_dir" && as_dir=. | |
2128 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2129 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2130 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
322e23db | 2131 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2132 | break 2 |
2133 | fi | |
2134 | done | |
2135 | done | |
2136 | IFS=$as_save_IFS | |
c8f3e6db | 2137 | |
26f56c1c | 2138 | fi |
26f56c1c | 2139 | fi |
a152f366 UD |
2140 | CC=$ac_cv_prog_CC |
2141 | if test -n "$CC"; then | |
322e23db UD |
2142 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2143 | $as_echo "$CC" >&6; } | |
a152f366 | 2144 | else |
322e23db UD |
2145 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2146 | $as_echo "no" >&6; } | |
26f56c1c UD |
2147 | fi |
2148 | ||
e41db95b | 2149 | |
e41db95b | 2150 | fi |
a152f366 UD |
2151 | if test -z "$ac_cv_prog_CC"; then |
2152 | ac_ct_CC=$CC | |
2153 | # Extract the first word of "gcc", so it can be a program name with args. | |
2154 | set dummy gcc; ac_word=$2 | |
322e23db UD |
2155 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2156 | $as_echo_n "checking for $ac_word... " >&6; } | |
a152f366 | 2157 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
322e23db | 2158 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 2159 | else |
a152f366 UD |
2160 | if test -n "$ac_ct_CC"; then |
2161 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
a5a0310d | 2162 | else |
a152f366 UD |
2163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2164 | for as_dir in $PATH | |
2165 | do | |
2166 | IFS=$as_save_IFS | |
2167 | test -z "$as_dir" && as_dir=. | |
2168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2170 | ac_cv_prog_ac_ct_CC="gcc" | |
322e23db | 2171 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2172 | break 2 |
2173 | fi | |
2174 | done | |
2175 | done | |
2176 | IFS=$as_save_IFS | |
cd6ede75 | 2177 | |
a152f366 UD |
2178 | fi |
2179 | fi | |
2180 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2181 | if test -n "$ac_ct_CC"; then | |
322e23db UD |
2182 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2183 | $as_echo "$ac_ct_CC" >&6; } | |
cd6ede75 | 2184 | else |
322e23db UD |
2185 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2186 | $as_echo "no" >&6; } | |
26f56c1c UD |
2187 | fi |
2188 | ||
a152f366 UD |
2189 | if test "x$ac_ct_CC" = x; then |
2190 | CC="" | |
2191 | else | |
2192 | case $cross_compiling:$ac_tool_warned in | |
2193 | yes:) | |
322e23db UD |
2194 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2195 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a152f366 UD |
2196 | ac_tool_warned=yes ;; |
2197 | esac | |
2198 | CC=$ac_ct_CC | |
2199 | fi | |
74a30a58 | 2200 | else |
a152f366 | 2201 | CC="$ac_cv_prog_CC" |
26f56c1c UD |
2202 | fi |
2203 | ||
a152f366 UD |
2204 | if test -z "$CC"; then |
2205 | if test -n "$ac_tool_prefix"; then | |
2206 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2207 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
322e23db UD |
2208 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2209 | $as_echo_n "checking for $ac_word... " >&6; } | |
a152f366 | 2210 | if test "${ac_cv_prog_CC+set}" = set; then |
322e23db | 2211 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2212 | else |
2213 | if test -n "$CC"; then | |
2214 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2215 | else | |
2216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2217 | for as_dir in $PATH | |
2218 | do | |
2219 | IFS=$as_save_IFS | |
2220 | test -z "$as_dir" && as_dir=. | |
2221 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2223 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
322e23db | 2224 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2225 | break 2 |
2226 | fi | |
2227 | done | |
2228 | done | |
2229 | IFS=$as_save_IFS | |
74a30a58 | 2230 | |
a152f366 UD |
2231 | fi |
2232 | fi | |
2233 | CC=$ac_cv_prog_CC | |
2234 | if test -n "$CC"; then | |
322e23db UD |
2235 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2236 | $as_echo "$CC" >&6; } | |
5af3245a | 2237 | else |
322e23db UD |
2238 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2239 | $as_echo "no" >&6; } | |
26f56c1c UD |
2240 | fi |
2241 | ||
5af3245a | 2242 | |
a152f366 | 2243 | fi |
26f56c1c | 2244 | fi |
a152f366 UD |
2245 | if test -z "$CC"; then |
2246 | # Extract the first word of "cc", so it can be a program name with args. | |
2247 | set dummy cc; ac_word=$2 | |
322e23db UD |
2248 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2249 | $as_echo_n "checking for $ac_word... " >&6; } | |
a152f366 | 2250 | if test "${ac_cv_prog_CC+set}" = set; then |
322e23db | 2251 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2252 | else |
2253 | if test -n "$CC"; then | |
2254 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2255 | else | |
2256 | ac_prog_rejected=no | |
2257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2258 | for as_dir in $PATH | |
2259 | do | |
2260 | IFS=$as_save_IFS | |
2261 | test -z "$as_dir" && as_dir=. | |
2262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2263 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2264 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2265 | ac_prog_rejected=yes | |
2266 | continue | |
2267 | fi | |
2268 | ac_cv_prog_CC="cc" | |
322e23db | 2269 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2270 | break 2 |
2271 | fi | |
2272 | done | |
2273 | done | |
2274 | IFS=$as_save_IFS | |
26f56c1c | 2275 | |
a152f366 UD |
2276 | if test $ac_prog_rejected = yes; then |
2277 | # We found a bogon in the path, so make sure we never use it. | |
2278 | set dummy $ac_cv_prog_CC | |
2279 | shift | |
2280 | if test $# != 0; then | |
2281 | # We chose a different compiler from the bogus one. | |
2282 | # However, it has the same basename, so the bogon will be chosen | |
2283 | # first if we set CC to just the basename; use the full file name. | |
2284 | shift | |
2285 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
6b3f2b3d | 2286 | fi |
4442d7e8 | 2287 | fi |
26f56c1c | 2288 | fi |
26f56c1c | 2289 | fi |
a152f366 UD |
2290 | CC=$ac_cv_prog_CC |
2291 | if test -n "$CC"; then | |
322e23db UD |
2292 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2293 | $as_echo "$CC" >&6; } | |
7dbde9db | 2294 | else |
322e23db UD |
2295 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2296 | $as_echo "no" >&6; } | |
26f56c1c UD |
2297 | fi |
2298 | ||
7dbde9db | 2299 | |
26f56c1c | 2300 | fi |
a152f366 UD |
2301 | if test -z "$CC"; then |
2302 | if test -n "$ac_tool_prefix"; then | |
2303 | for ac_prog in cl.exe | |
2304 | do | |
2305 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2306 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
322e23db UD |
2307 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2308 | $as_echo_n "checking for $ac_word... " >&6; } | |
a152f366 | 2309 | if test "${ac_cv_prog_CC+set}" = set; then |
322e23db | 2310 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 2311 | else |
a152f366 UD |
2312 | if test -n "$CC"; then |
2313 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
cd6ede75 | 2314 | else |
a152f366 UD |
2315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2316 | for as_dir in $PATH | |
2317 | do | |
2318 | IFS=$as_save_IFS | |
2319 | test -z "$as_dir" && as_dir=. | |
2320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2322 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
322e23db | 2323 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2324 | break 2 |
2325 | fi | |
2326 | done | |
2327 | done | |
2328 | IFS=$as_save_IFS | |
26f56c1c | 2329 | |
26f56c1c | 2330 | fi |
a152f366 UD |
2331 | fi |
2332 | CC=$ac_cv_prog_CC | |
2333 | if test -n "$CC"; then | |
322e23db UD |
2334 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2335 | $as_echo "$CC" >&6; } | |
650425ce | 2336 | else |
322e23db UD |
2337 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2338 | $as_echo "no" >&6; } | |
26f56c1c UD |
2339 | fi |
2340 | ||
cd6ede75 | 2341 | |
a152f366 UD |
2342 | test -n "$CC" && break |
2343 | done | |
26f56c1c | 2344 | fi |
a152f366 UD |
2345 | if test -z "$CC"; then |
2346 | ac_ct_CC=$CC | |
2347 | for ac_prog in cl.exe | |
2348 | do | |
2349 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2350 | set dummy $ac_prog; ac_word=$2 | |
322e23db UD |
2351 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2352 | $as_echo_n "checking for $ac_word... " >&6; } | |
a152f366 | 2353 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
322e23db | 2354 | $as_echo_n "(cached) " >&6 |
62ab42d6 | 2355 | else |
a152f366 UD |
2356 | if test -n "$ac_ct_CC"; then |
2357 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2358 | else | |
2359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2360 | for as_dir in $PATH | |
2361 | do | |
2362 | IFS=$as_save_IFS | |
2363 | test -z "$as_dir" && as_dir=. | |
2364 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2365 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2366 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
322e23db | 2367 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2368 | break 2 |
2369 | fi | |
2370 | done | |
2371 | done | |
2372 | IFS=$as_save_IFS | |
62ab42d6 UD |
2373 | |
2374 | fi | |
a152f366 UD |
2375 | fi |
2376 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2377 | if test -n "$ac_ct_CC"; then | |
322e23db UD |
2378 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2379 | $as_echo "$ac_ct_CC" >&6; } | |
35f1e827 | 2380 | else |
322e23db UD |
2381 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2382 | $as_echo "no" >&6; } | |
26f56c1c UD |
2383 | fi |
2384 | ||
35f1e827 | 2385 | |
a152f366 UD |
2386 | test -n "$ac_ct_CC" && break |
2387 | done | |
35f1e827 | 2388 | |
a152f366 UD |
2389 | if test "x$ac_ct_CC" = x; then |
2390 | CC="" | |
2391 | else | |
2392 | case $cross_compiling:$ac_tool_warned in | |
2393 | yes:) | |
322e23db UD |
2394 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2395 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a152f366 UD |
2396 | ac_tool_warned=yes ;; |
2397 | esac | |
2398 | CC=$ac_ct_CC | |
2399 | fi | |
26f56c1c | 2400 | fi |
cd6ede75 | 2401 | |
26f56c1c | 2402 | fi |
8d4b5a8a UD |
2403 | |
2404 | ||
322e23db UD |
2405 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2406 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2407 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
a152f366 | 2408 | See \`config.log' for more details." >&5 |
322e23db | 2409 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
a152f366 | 2410 | See \`config.log' for more details." >&2;} |
322e23db | 2411 | { (exit 1); exit 1; }; }; } |
26f56c1c | 2412 | |
a152f366 | 2413 | # Provide some information about the compiler. |
322e23db UD |
2414 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2415 | set X $ac_compile | |
2416 | ac_compiler=$2 | |
a152f366 UD |
2417 | { (ac_try="$ac_compiler --version >&5" |
2418 | case "(($ac_try" in | |
2419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2420 | *) ac_try_echo=$ac_try;; | |
2421 | esac | |
322e23db UD |
2422 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2423 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
2424 | (eval "$ac_compiler --version >&5") 2>&5 |
2425 | ac_status=$? | |
322e23db | 2426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
2427 | (exit $ac_status); } |
2428 | { (ac_try="$ac_compiler -v >&5" | |
2429 | case "(($ac_try" in | |
2430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2431 | *) ac_try_echo=$ac_try;; | |
2432 | esac | |
322e23db UD |
2433 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2434 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
2435 | (eval "$ac_compiler -v >&5") 2>&5 |
2436 | ac_status=$? | |
322e23db | 2437 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
2438 | (exit $ac_status); } |
2439 | { (ac_try="$ac_compiler -V >&5" | |
2440 | case "(($ac_try" in | |
2441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2442 | *) ac_try_echo=$ac_try;; | |
2443 | esac | |
322e23db UD |
2444 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2445 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
2446 | (eval "$ac_compiler -V >&5") 2>&5 |
2447 | ac_status=$? | |
322e23db | 2448 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 | 2449 | (exit $ac_status); } |
26f56c1c | 2450 | |
a152f366 | 2451 | EXEEXT= |
322e23db UD |
2452 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2453 | $as_echo_n "checking for suffix of object files... " >&6; } | |
a152f366 | 2454 | if test "${ac_cv_objext+set}" = set; then |
322e23db | 2455 | $as_echo_n "(cached) " >&6 |
749a9a4f | 2456 | else |
a152f366 UD |
2457 | cat >conftest.$ac_ext <<_ACEOF |
2458 | /* confdefs.h. */ | |
3a12e572 | 2459 | _ACEOF |
a152f366 UD |
2460 | cat confdefs.h >>conftest.$ac_ext |
2461 | cat >>conftest.$ac_ext <<_ACEOF | |
2462 | /* end confdefs.h. */ | |
749a9a4f | 2463 | |
a152f366 UD |
2464 | int |
2465 | main () | |
2466 | { | |
749a9a4f | 2467 | |
a152f366 UD |
2468 | ; |
2469 | return 0; | |
2470 | } | |
2471 | _ACEOF | |
2472 | rm -f conftest.o conftest.obj | |
2473 | if { (ac_try="$ac_compile" | |
2474 | case "(($ac_try" in | |
2475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2476 | *) ac_try_echo=$ac_try;; | |
2477 | esac | |
322e23db UD |
2478 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2479 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
2480 | (eval "$ac_compile") 2>&5 |
2481 | ac_status=$? | |
322e23db | 2482 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
2483 | (exit $ac_status); }; then |
2484 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2485 | test -f "$ac_file" || continue; | |
2486 | case $ac_file in | |
322e23db | 2487 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
a152f366 UD |
2488 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2489 | break;; | |
2490 | esac | |
2491 | done | |
4df8c11d | 2492 | else |
322e23db | 2493 | $as_echo "$as_me: failed program was:" >&5 |
a152f366 | 2494 | sed 's/^/| /' conftest.$ac_ext >&5 |
26f56c1c | 2495 | |
322e23db UD |
2496 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2497 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2498 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
a152f366 | 2499 | See \`config.log' for more details." >&5 |
322e23db | 2500 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
a152f366 | 2501 | See \`config.log' for more details." >&2;} |
322e23db | 2502 | { (exit 1); exit 1; }; }; } |
26f56c1c UD |
2503 | fi |
2504 | ||
a152f366 | 2505 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
cd6ede75 | 2506 | fi |
322e23db UD |
2507 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2508 | $as_echo "$ac_cv_objext" >&6; } | |
a152f366 UD |
2509 | OBJEXT=$ac_cv_objext |
2510 | ac_objext=$OBJEXT | |
322e23db UD |
2511 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2512 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
a152f366 | 2513 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
322e23db | 2514 | $as_echo_n "(cached) " >&6 |
73237de3 | 2515 | else |
a152f366 UD |
2516 | cat >conftest.$ac_ext <<_ACEOF |
2517 | /* confdefs.h. */ | |
2518 | _ACEOF | |
2519 | cat confdefs.h >>conftest.$ac_ext | |
2520 | cat >>conftest.$ac_ext <<_ACEOF | |
2521 | /* end confdefs.h. */ | |
73237de3 | 2522 | |
a152f366 UD |
2523 | int |
2524 | main () | |
2525 | { | |
2526 | #ifndef __GNUC__ | |
2527 | choke me | |
2528 | #endif | |
73237de3 | 2529 | |
a152f366 UD |
2530 | ; |
2531 | return 0; | |
2532 | } | |
2533 | _ACEOF | |
2534 | rm -f conftest.$ac_objext | |
2535 | if { (ac_try="$ac_compile" | |
2536 | case "(($ac_try" in | |
2537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2538 | *) ac_try_echo=$ac_try;; | |
2539 | esac | |
322e23db UD |
2540 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2541 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
2542 | (eval "$ac_compile") 2>conftest.er1 |
2543 | ac_status=$? | |
2544 | grep -v '^ *+' conftest.er1 >conftest.err | |
2545 | rm -f conftest.er1 | |
2546 | cat conftest.err >&5 | |
322e23db | 2547 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
2548 | (exit $ac_status); } && { |
2549 | test -z "$ac_c_werror_flag" || | |
2550 | test ! -s conftest.err | |
2551 | } && test -s conftest.$ac_objext; then | |
2552 | ac_compiler_gnu=yes | |
2553 | else | |
322e23db | 2554 | $as_echo "$as_me: failed program was:" >&5 |
a152f366 | 2555 | sed 's/^/| /' conftest.$ac_ext >&5 |
26f56c1c | 2556 | |
a152f366 | 2557 | ac_compiler_gnu=no |
26f56c1c UD |
2558 | fi |
2559 | ||
a152f366 UD |
2560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2561 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
958f238f | 2562 | |
26f56c1c | 2563 | fi |
322e23db UD |
2564 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2565 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2566 | if test $ac_compiler_gnu = yes; then | |
2567 | GCC=yes | |
2568 | else | |
2569 | GCC= | |
2570 | fi | |
a152f366 UD |
2571 | ac_test_CFLAGS=${CFLAGS+set} |
2572 | ac_save_CFLAGS=$CFLAGS | |
322e23db UD |
2573 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2574 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
a152f366 | 2575 | if test "${ac_cv_prog_cc_g+set}" = set; then |
322e23db | 2576 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2577 | else |
2578 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2579 | ac_c_werror_flag=yes | |
2580 | ac_cv_prog_cc_g=no | |
2581 | CFLAGS="-g" | |
2582 | cat >conftest.$ac_ext <<_ACEOF | |
2583 | /* confdefs.h. */ | |
2584 | _ACEOF | |
2585 | cat confdefs.h >>conftest.$ac_ext | |
2586 | cat >>conftest.$ac_ext <<_ACEOF | |
2587 | /* end confdefs.h. */ | |
26f56c1c | 2588 | |
a152f366 UD |
2589 | int |
2590 | main () | |
2591 | { | |
958f238f | 2592 | |
a152f366 UD |
2593 | ; |
2594 | return 0; | |
2595 | } | |
2596 | _ACEOF | |
2597 | rm -f conftest.$ac_objext | |
2598 | if { (ac_try="$ac_compile" | |
2599 | case "(($ac_try" in | |
2600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2601 | *) ac_try_echo=$ac_try;; | |
2602 | esac | |
322e23db UD |
2603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2604 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
2605 | (eval "$ac_compile") 2>conftest.er1 |
2606 | ac_status=$? | |
2607 | grep -v '^ *+' conftest.er1 >conftest.err | |
2608 | rm -f conftest.er1 | |
2609 | cat conftest.err >&5 | |
322e23db | 2610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
2611 | (exit $ac_status); } && { |
2612 | test -z "$ac_c_werror_flag" || | |
2613 | test ! -s conftest.err | |
2614 | } && test -s conftest.$ac_objext; then | |
2615 | ac_cv_prog_cc_g=yes | |
425ce2ed | 2616 | else |
322e23db | 2617 | $as_echo "$as_me: failed program was:" >&5 |
a152f366 | 2618 | sed 's/^/| /' conftest.$ac_ext >&5 |
425ce2ed | 2619 | |
a152f366 UD |
2620 | CFLAGS="" |
2621 | cat >conftest.$ac_ext <<_ACEOF | |
2622 | /* confdefs.h. */ | |
425ce2ed | 2623 | _ACEOF |
a152f366 UD |
2624 | cat confdefs.h >>conftest.$ac_ext |
2625 | cat >>conftest.$ac_ext <<_ACEOF | |
2626 | /* end confdefs.h. */ | |
425ce2ed | 2627 | |
a152f366 UD |
2628 | int |
2629 | main () | |
2630 | { | |
425ce2ed | 2631 | |
a152f366 UD |
2632 | ; |
2633 | return 0; | |
2634 | } | |
2635 | _ACEOF | |
2636 | rm -f conftest.$ac_objext | |
2637 | if { (ac_try="$ac_compile" | |
2638 | case "(($ac_try" in | |
2639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2640 | *) ac_try_echo=$ac_try;; | |
2641 | esac | |
322e23db UD |
2642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2643 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
2644 | (eval "$ac_compile") 2>conftest.er1 |
2645 | ac_status=$? | |
2646 | grep -v '^ *+' conftest.er1 >conftest.err | |
2647 | rm -f conftest.er1 | |
2648 | cat conftest.err >&5 | |
322e23db | 2649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
2650 | (exit $ac_status); } && { |
2651 | test -z "$ac_c_werror_flag" || | |
2652 | test ! -s conftest.err | |
2653 | } && test -s conftest.$ac_objext; then | |
2654 | : | |
2655 | else | |
322e23db | 2656 | $as_echo "$as_me: failed program was:" >&5 |
a152f366 | 2657 | sed 's/^/| /' conftest.$ac_ext >&5 |
425ce2ed | 2658 | |
a152f366 UD |
2659 | ac_c_werror_flag=$ac_save_c_werror_flag |
2660 | CFLAGS="-g" | |
2661 | cat >conftest.$ac_ext <<_ACEOF | |
2662 | /* confdefs.h. */ | |
2663 | _ACEOF | |
2664 | cat confdefs.h >>conftest.$ac_ext | |
2665 | cat >>conftest.$ac_ext <<_ACEOF | |
2666 | /* end confdefs.h. */ | |
425ce2ed | 2667 | |
a152f366 UD |
2668 | int |
2669 | main () | |
2670 | { | |
425ce2ed | 2671 | |
a152f366 UD |
2672 | ; |
2673 | return 0; | |
2674 | } | |
2675 | _ACEOF | |
2676 | rm -f conftest.$ac_objext | |
2677 | if { (ac_try="$ac_compile" | |
2678 | case "(($ac_try" in | |
2679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2680 | *) ac_try_echo=$ac_try;; | |
2681 | esac | |
322e23db UD |
2682 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2683 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
2684 | (eval "$ac_compile") 2>conftest.er1 |
2685 | ac_status=$? | |
2686 | grep -v '^ *+' conftest.er1 >conftest.err | |
2687 | rm -f conftest.er1 | |
2688 | cat conftest.err >&5 | |
322e23db | 2689 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
2690 | (exit $ac_status); } && { |
2691 | test -z "$ac_c_werror_flag" || | |
2692 | test ! -s conftest.err | |
2693 | } && test -s conftest.$ac_objext; then | |
2694 | ac_cv_prog_cc_g=yes | |
ff886b82 | 2695 | else |
322e23db | 2696 | $as_echo "$as_me: failed program was:" >&5 |
a152f366 | 2697 | sed 's/^/| /' conftest.$ac_ext >&5 |
ff886b82 | 2698 | |
ff886b82 UD |
2699 | |
2700 | fi | |
a152f366 UD |
2701 | |
2702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ff886b82 UD |
2703 | fi |
2704 | ||
a152f366 UD |
2705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2706 | fi | |
ff886b82 | 2707 | |
a152f366 UD |
2708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2709 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ff886b82 | 2710 | fi |
322e23db UD |
2711 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2712 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
a152f366 UD |
2713 | if test "$ac_test_CFLAGS" = set; then |
2714 | CFLAGS=$ac_save_CFLAGS | |
2715 | elif test $ac_cv_prog_cc_g = yes; then | |
2716 | if test "$GCC" = yes; then | |
2717 | CFLAGS="-g -O2" | |
2718 | else | |
2719 | CFLAGS="-g" | |
2720 | fi | |
ff886b82 | 2721 | else |
a152f366 UD |
2722 | if test "$GCC" = yes; then |
2723 | CFLAGS="-O2" | |
2724 | else | |
2725 | CFLAGS= | |
ff886b82 | 2726 | fi |
ff886b82 | 2727 | fi |
322e23db UD |
2728 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2729 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
a152f366 | 2730 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
322e23db | 2731 | $as_echo_n "(cached) " >&6 |
ff886b82 | 2732 | else |
a152f366 UD |
2733 | ac_cv_prog_cc_c89=no |
2734 | ac_save_CC=$CC | |
2735 | cat >conftest.$ac_ext <<_ACEOF | |
2736 | /* confdefs.h. */ | |
2737 | _ACEOF | |
2738 | cat confdefs.h >>conftest.$ac_ext | |
2739 | cat >>conftest.$ac_ext <<_ACEOF | |
2740 | /* end confdefs.h. */ | |
2741 | #include <stdarg.h> | |
2742 | #include <stdio.h> | |
2743 | #include <sys/types.h> | |
2744 | #include <sys/stat.h> | |
2745 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2746 | struct buf { int x; }; | |
2747 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2748 | static char *e (p, i) | |
2749 | char **p; | |
2750 | int i; | |
2751 | { | |
2752 | return p[i]; | |
2753 | } | |
2754 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2755 | { | |
2756 | char *s; | |
2757 | va_list v; | |
2758 | va_start (v,p); | |
2759 | s = g (p, va_arg (v,int)); | |
2760 | va_end (v); | |
2761 | return s; | |
2762 | } | |
ff886b82 | 2763 | |
a152f366 UD |
2764 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2765 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2766 | These don't provoke an error unfortunately, instead are silently treated | |
2767 | as 'x'. The following induces an error, until -std is added to get | |
2768 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2769 | array size at least. It's necessary to write '\x00'==0 to get something | |
2770 | that's true only with -std. */ | |
2771 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2772 | ||
2773 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2774 | inside strings and character constants. */ | |
2775 | #define FOO(x) 'x' | |
2776 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2777 | ||
2778 | int test (int i, double x); | |
2779 | struct s1 {int (*f) (int a);}; | |
2780 | struct s2 {int (*f) (double a);}; | |
2781 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2782 | int argc; | |
2783 | char **argv; | |
2784 | int | |
2785 | main () | |
2786 | { | |
2787 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2788 | ; | |
2789 | return 0; | |
2790 | } | |
2791 | _ACEOF | |
2792 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
2793 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2794 | do | |
2795 | CC="$ac_save_CC $ac_arg" | |
2796 | rm -f conftest.$ac_objext | |
2797 | if { (ac_try="$ac_compile" | |
2798 | case "(($ac_try" in | |
2799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2800 | *) ac_try_echo=$ac_try;; | |
ff886b82 | 2801 | esac |
322e23db UD |
2802 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2803 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
2804 | (eval "$ac_compile") 2>conftest.er1 |
2805 | ac_status=$? | |
2806 | grep -v '^ *+' conftest.er1 >conftest.err | |
2807 | rm -f conftest.er1 | |
2808 | cat conftest.err >&5 | |
322e23db | 2809 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
2810 | (exit $ac_status); } && { |
2811 | test -z "$ac_c_werror_flag" || | |
2812 | test ! -s conftest.err | |
2813 | } && test -s conftest.$ac_objext; then | |
2814 | ac_cv_prog_cc_c89=$ac_arg | |
ff886b82 | 2815 | else |
322e23db | 2816 | $as_echo "$as_me: failed program was:" >&5 |
a152f366 UD |
2817 | sed 's/^/| /' conftest.$ac_ext >&5 |
2818 | ||
2819 | ||
ff886b82 UD |
2820 | fi |
2821 | ||
a152f366 UD |
2822 | rm -f core conftest.err conftest.$ac_objext |
2823 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2824 | done | |
2825 | rm -f conftest.$ac_ext | |
2826 | CC=$ac_save_CC | |
2827 | ||
2828 | fi | |
2829 | # AC_CACHE_VAL | |
2830 | case "x$ac_cv_prog_cc_c89" in | |
2831 | x) | |
322e23db UD |
2832 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
2833 | $as_echo "none needed" >&6; } ;; | |
a152f366 | 2834 | xno) |
322e23db UD |
2835 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
2836 | $as_echo "unsupported" >&6; } ;; | |
a152f366 UD |
2837 | *) |
2838 | CC="$CC $ac_cv_prog_cc_c89" | |
322e23db UD |
2839 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
2840 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
a152f366 UD |
2841 | esac |
2842 | ||
2843 | ||
2844 | ac_ext=c | |
2845 | ac_cpp='$CPP $CPPFLAGS' | |
2846 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2847 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2848 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2849 | ||
2850 | if test $host != $build; then | |
2851 | for ac_prog in gcc cc | |
2852 | do | |
2853 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2854 | set dummy $ac_prog; ac_word=$2 | |
322e23db UD |
2855 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2856 | $as_echo_n "checking for $ac_word... " >&6; } | |
a152f366 | 2857 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
322e23db | 2858 | $as_echo_n "(cached) " >&6 |
ff886b82 | 2859 | else |
a152f366 UD |
2860 | if test -n "$BUILD_CC"; then |
2861 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
ff886b82 UD |
2862 | else |
2863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2864 | for as_dir in $PATH | |
2865 | do | |
2866 | IFS=$as_save_IFS | |
2867 | test -z "$as_dir" && as_dir=. | |
2868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
a152f366 | 2870 | ac_cv_prog_BUILD_CC="$ac_prog" |
322e23db | 2871 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ff886b82 UD |
2872 | break 2 |
2873 | fi | |
2874 | done | |
2875 | done | |
2876 | IFS=$as_save_IFS | |
2877 | ||
2878 | fi | |
2879 | fi | |
a152f366 UD |
2880 | BUILD_CC=$ac_cv_prog_BUILD_CC |
2881 | if test -n "$BUILD_CC"; then | |
322e23db UD |
2882 | { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
2883 | $as_echo "$BUILD_CC" >&6; } | |
ff886b82 | 2884 | else |
322e23db UD |
2885 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2886 | $as_echo "no" >&6; } | |
ff886b82 UD |
2887 | fi |
2888 | ||
2889 | ||
a152f366 | 2890 | test -n "$BUILD_CC" && break |
ff886b82 | 2891 | done |
ff886b82 UD |
2892 | |
2893 | fi | |
ff886b82 | 2894 | |
a152f366 UD |
2895 | ac_ext=c |
2896 | ac_cpp='$CPP $CPPFLAGS' | |
2897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
322e23db UD |
2900 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2901 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
a152f366 UD |
2902 | # On Suns, sometimes $CPP names a directory. |
2903 | if test -n "$CPP" && test -d "$CPP"; then | |
2904 | CPP= | |
ff886b82 | 2905 | fi |
a152f366 UD |
2906 | if test -z "$CPP"; then |
2907 | if test "${ac_cv_prog_CPP+set}" = set; then | |
322e23db | 2908 | $as_echo_n "(cached) " >&6 |
ff886b82 | 2909 | else |
a152f366 UD |
2910 | # Double quotes because CPP needs to be expanded |
2911 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2912 | do | |
2913 | ac_preproc_ok=false | |
2914 | for ac_c_preproc_warn_flag in '' yes | |
ff886b82 | 2915 | do |
a152f366 UD |
2916 | # Use a header file that comes with gcc, so configuring glibc |
2917 | # with a fresh cross-compiler works. | |
2918 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2919 | # <limits.h> exists even on freestanding compilers. | |
2920 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2921 | # not just through cpp. "Syntax error" is here to catch this case. | |
ff886b82 UD |
2922 | cat >conftest.$ac_ext <<_ACEOF |
2923 | /* confdefs.h. */ | |
2924 | _ACEOF | |
2925 | cat confdefs.h >>conftest.$ac_ext | |
2926 | cat >>conftest.$ac_ext <<_ACEOF | |
2927 | /* end confdefs.h. */ | |
a152f366 UD |
2928 | #ifdef __STDC__ |
2929 | # include <limits.h> | |
2930 | #else | |
2931 | # include <assert.h> | |
2932 | #endif | |
2933 | Syntax error | |
ff886b82 | 2934 | _ACEOF |
a152f366 | 2935 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
ff886b82 UD |
2936 | case "(($ac_try" in |
2937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2938 | *) ac_try_echo=$ac_try;; | |
2939 | esac | |
322e23db UD |
2940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2941 | $as_echo "$ac_try_echo") >&5 | |
a152f366 | 2942 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ff886b82 | 2943 | ac_status=$? |
a152f366 UD |
2944 | grep -v '^ *+' conftest.er1 >conftest.err |
2945 | rm -f conftest.er1 | |
2946 | cat conftest.err >&5 | |
322e23db | 2947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
2948 | (exit $ac_status); } >/dev/null && { |
2949 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2950 | test ! -s conftest.err | |
2951 | }; then | |
2952 | : | |
ff886b82 | 2953 | else |
322e23db | 2954 | $as_echo "$as_me: failed program was:" >&5 |
ff886b82 UD |
2955 | sed 's/^/| /' conftest.$ac_ext >&5 |
2956 | ||
a152f366 UD |
2957 | # Broken: fails on valid input. |
2958 | continue | |
ff886b82 UD |
2959 | fi |
2960 | ||
a152f366 UD |
2961 | rm -f conftest.err conftest.$ac_ext |
2962 | ||
2963 | # OK, works on sane cases. Now check whether nonexistent headers | |
2964 | # can be detected and how. | |
ff886b82 UD |
2965 | cat >conftest.$ac_ext <<_ACEOF |
2966 | /* confdefs.h. */ | |
2967 | _ACEOF | |
2968 | cat confdefs.h >>conftest.$ac_ext | |
2969 | cat >>conftest.$ac_ext <<_ACEOF | |
2970 | /* end confdefs.h. */ | |
a152f366 | 2971 | #include <ac_nonexistent.h> |
ff886b82 | 2972 | _ACEOF |
a152f366 | 2973 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
ff886b82 UD |
2974 | case "(($ac_try" in |
2975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2976 | *) ac_try_echo=$ac_try;; | |
2977 | esac | |
322e23db UD |
2978 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2979 | $as_echo "$ac_try_echo") >&5 | |
a152f366 | 2980 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ff886b82 UD |
2981 | ac_status=$? |
2982 | grep -v '^ *+' conftest.er1 >conftest.err | |
2983 | rm -f conftest.er1 | |
2984 | cat conftest.err >&5 | |
322e23db | 2985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
2986 | (exit $ac_status); } >/dev/null && { |
2987 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
ff886b82 | 2988 | test ! -s conftest.err |
a152f366 UD |
2989 | }; then |
2990 | # Broken: success on invalid input. | |
2991 | continue | |
2992 | else | |
322e23db | 2993 | $as_echo "$as_me: failed program was:" >&5 |
ff886b82 UD |
2994 | sed 's/^/| /' conftest.$ac_ext >&5 |
2995 | ||
a152f366 UD |
2996 | # Passes both tests. |
2997 | ac_preproc_ok=: | |
2998 | break | |
ff886b82 UD |
2999 | fi |
3000 | ||
a152f366 UD |
3001 | rm -f conftest.err conftest.$ac_ext |
3002 | ||
3003 | done | |
3004 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3005 | rm -f conftest.err conftest.$ac_ext | |
3006 | if $ac_preproc_ok; then | |
3007 | break | |
3008 | fi | |
3009 | ||
3010 | done | |
3011 | ac_cv_prog_CPP=$CPP | |
ff886b82 UD |
3012 | |
3013 | fi | |
a152f366 | 3014 | CPP=$ac_cv_prog_CPP |
ff886b82 | 3015 | else |
a152f366 | 3016 | ac_cv_prog_CPP=$CPP |
ff886b82 | 3017 | fi |
322e23db UD |
3018 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3019 | $as_echo "$CPP" >&6; } | |
a152f366 UD |
3020 | ac_preproc_ok=false |
3021 | for ac_c_preproc_warn_flag in '' yes | |
3022 | do | |
3023 | # Use a header file that comes with gcc, so configuring glibc | |
3024 | # with a fresh cross-compiler works. | |
3025 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3026 | # <limits.h> exists even on freestanding compilers. | |
3027 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3028 | # not just through cpp. "Syntax error" is here to catch this case. | |
3029 | cat >conftest.$ac_ext <<_ACEOF | |
ff886b82 UD |
3030 | /* confdefs.h. */ |
3031 | _ACEOF | |
3032 | cat confdefs.h >>conftest.$ac_ext | |
3033 | cat >>conftest.$ac_ext <<_ACEOF | |
3034 | /* end confdefs.h. */ | |
a152f366 UD |
3035 | #ifdef __STDC__ |
3036 | # include <limits.h> | |
3037 | #else | |
3038 | # include <assert.h> | |
3039 | #endif | |
3040 | Syntax error | |
ff886b82 | 3041 | _ACEOF |
a152f366 | 3042 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
ff886b82 UD |
3043 | case "(($ac_try" in |
3044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3045 | *) ac_try_echo=$ac_try;; | |
3046 | esac | |
322e23db UD |
3047 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3048 | $as_echo "$ac_try_echo") >&5 | |
a152f366 | 3049 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ff886b82 UD |
3050 | ac_status=$? |
3051 | grep -v '^ *+' conftest.er1 >conftest.err | |
3052 | rm -f conftest.er1 | |
3053 | cat conftest.err >&5 | |
322e23db | 3054 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
3055 | (exit $ac_status); } >/dev/null && { |
3056 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
ff886b82 | 3057 | test ! -s conftest.err |
a152f366 UD |
3058 | }; then |
3059 | : | |
ff886b82 | 3060 | else |
322e23db | 3061 | $as_echo "$as_me: failed program was:" >&5 |
ff886b82 UD |
3062 | sed 's/^/| /' conftest.$ac_ext >&5 |
3063 | ||
a152f366 UD |
3064 | # Broken: fails on valid input. |
3065 | continue | |
3066 | fi | |
3067 | ||
3068 | rm -f conftest.err conftest.$ac_ext | |
3069 | ||
3070 | # OK, works on sane cases. Now check whether nonexistent headers | |
3071 | # can be detected and how. | |
3072 | cat >conftest.$ac_ext <<_ACEOF | |
ff886b82 UD |
3073 | /* confdefs.h. */ |
3074 | _ACEOF | |
3075 | cat confdefs.h >>conftest.$ac_ext | |
3076 | cat >>conftest.$ac_ext <<_ACEOF | |
3077 | /* end confdefs.h. */ | |
a152f366 | 3078 | #include <ac_nonexistent.h> |
ff886b82 | 3079 | _ACEOF |
a152f366 | 3080 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
ff886b82 UD |
3081 | case "(($ac_try" in |
3082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3083 | *) ac_try_echo=$ac_try;; | |
3084 | esac | |
322e23db UD |
3085 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3086 | $as_echo "$ac_try_echo") >&5 | |
a152f366 | 3087 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ff886b82 UD |
3088 | ac_status=$? |
3089 | grep -v '^ *+' conftest.er1 >conftest.err | |
3090 | rm -f conftest.er1 | |
3091 | cat conftest.err >&5 | |
322e23db | 3092 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
3093 | (exit $ac_status); } >/dev/null && { |
3094 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
ff886b82 | 3095 | test ! -s conftest.err |
a152f366 UD |
3096 | }; then |
3097 | # Broken: success on invalid input. | |
3098 | continue | |
ff886b82 | 3099 | else |
322e23db | 3100 | $as_echo "$as_me: failed program was:" >&5 |
ff886b82 UD |
3101 | sed 's/^/| /' conftest.$ac_ext >&5 |
3102 | ||
a152f366 UD |
3103 | # Passes both tests. |
3104 | ac_preproc_ok=: | |
3105 | break | |
3106 | fi | |
3107 | ||
3108 | rm -f conftest.err conftest.$ac_ext | |
3109 | ||
3110 | done | |
3111 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3112 | rm -f conftest.err conftest.$ac_ext | |
3113 | if $ac_preproc_ok; then | |
3114 | : | |
3115 | else | |
322e23db UD |
3116 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3117 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3118 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
a152f366 | 3119 | See \`config.log' for more details." >&5 |
322e23db | 3120 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
a152f366 | 3121 | See \`config.log' for more details." >&2;} |
322e23db | 3122 | { (exit 1); exit 1; }; }; } |
a152f366 UD |
3123 | fi |
3124 | ||
3125 | ac_ext=c | |
3126 | ac_cpp='$CPP $CPPFLAGS' | |
3127 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3128 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3129 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3130 | ||
3131 | # We need the C++ compiler only for testing. | |
3132 | ac_ext=cpp | |
3133 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3134 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3135 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3136 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3137 | if test -z "$CXX"; then | |
3138 | if test -n "$CCC"; then | |
3139 | CXX=$CCC | |
3140 | else | |
3141 | if test -n "$ac_tool_prefix"; then | |
3142 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3143 | do | |
3144 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3145 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
322e23db UD |
3146 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3147 | $as_echo_n "checking for $ac_word... " >&6; } | |
a152f366 | 3148 | if test "${ac_cv_prog_CXX+set}" = set; then |
322e23db | 3149 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
3150 | else |
3151 | if test -n "$CXX"; then | |
3152 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3153 | else | |
3154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3155 | for as_dir in $PATH | |
3156 | do | |
3157 | IFS=$as_save_IFS | |
3158 | test -z "$as_dir" && as_dir=. | |
3159 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3160 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3161 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
322e23db | 3162 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3163 | break 2 |
3164 | fi | |
3165 | done | |
3166 | done | |
3167 | IFS=$as_save_IFS | |
3168 | ||
3169 | fi | |
3170 | fi | |
3171 | CXX=$ac_cv_prog_CXX | |
3172 | if test -n "$CXX"; then | |
322e23db UD |
3173 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
3174 | $as_echo "$CXX" >&6; } | |
a152f366 | 3175 | else |
322e23db UD |
3176 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3177 | $as_echo "no" >&6; } | |
a152f366 UD |
3178 | fi |
3179 | ||
3180 | ||
3181 | test -n "$CXX" && break | |
3182 | done | |
3183 | fi | |
3184 | if test -z "$CXX"; then | |
3185 | ac_ct_CXX=$CXX | |
3186 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3187 | do | |
3188 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3189 | set dummy $ac_prog; ac_word=$2 | |
322e23db UD |
3190 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3191 | $as_echo_n "checking for $ac_word... " >&6; } | |
a152f366 | 3192 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
322e23db | 3193 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
3194 | else |
3195 | if test -n "$ac_ct_CXX"; then | |
3196 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3197 | else | |
3198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3199 | for as_dir in $PATH | |
3200 | do | |
3201 | IFS=$as_save_IFS | |
3202 | test -z "$as_dir" && as_dir=. | |
3203 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3204 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3205 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
322e23db | 3206 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3207 | break 2 |
3208 | fi | |
3209 | done | |
3210 | done | |
3211 | IFS=$as_save_IFS | |
3212 | ||
3213 | fi | |
3214 | fi | |
3215 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3216 | if test -n "$ac_ct_CXX"; then | |
322e23db UD |
3217 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
3218 | $as_echo "$ac_ct_CXX" >&6; } | |
a152f366 | 3219 | else |
322e23db UD |
3220 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3221 | $as_echo "no" >&6; } | |
a152f366 UD |
3222 | fi |
3223 | ||
3224 | ||
3225 | test -n "$ac_ct_CXX" && break | |
3226 | done | |
3227 | ||
3228 | if test "x$ac_ct_CXX" = x; then | |
3229 | CXX="g++" | |
3230 | else | |
3231 | case $cross_compiling:$ac_tool_warned in | |
3232 | yes:) | |
322e23db UD |
3233 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3234 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a152f366 UD |
3235 | ac_tool_warned=yes ;; |
3236 | esac | |
3237 | CXX=$ac_ct_CXX | |
3238 | fi | |
3239 | fi | |
3240 | ||
3241 | fi | |
3242 | fi | |
3243 | # Provide some information about the compiler. | |
322e23db UD |
3244 | $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
3245 | set X $ac_compile | |
3246 | ac_compiler=$2 | |
a152f366 UD |
3247 | { (ac_try="$ac_compiler --version >&5" |
3248 | case "(($ac_try" in | |
3249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3250 | *) ac_try_echo=$ac_try;; | |
3251 | esac | |
322e23db UD |
3252 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3253 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
3254 | (eval "$ac_compiler --version >&5") 2>&5 |
3255 | ac_status=$? | |
322e23db | 3256 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
3257 | (exit $ac_status); } |
3258 | { (ac_try="$ac_compiler -v >&5" | |
3259 | case "(($ac_try" in | |
3260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3261 | *) ac_try_echo=$ac_try;; | |
3262 | esac | |
322e23db UD |
3263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3264 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
3265 | (eval "$ac_compiler -v >&5") 2>&5 |
3266 | ac_status=$? | |
322e23db | 3267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
3268 | (exit $ac_status); } |
3269 | { (ac_try="$ac_compiler -V >&5" | |
3270 | case "(($ac_try" in | |
3271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3272 | *) ac_try_echo=$ac_try;; | |
3273 | esac | |
322e23db UD |
3274 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3275 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
3276 | (eval "$ac_compiler -V >&5") 2>&5 |
3277 | ac_status=$? | |
322e23db | 3278 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
3279 | (exit $ac_status); } |
3280 | ||
322e23db UD |
3281 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
3282 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
a152f366 | 3283 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
322e23db | 3284 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
3285 | else |
3286 | cat >conftest.$ac_ext <<_ACEOF | |
ff886b82 UD |
3287 | /* confdefs.h. */ |
3288 | _ACEOF | |
3289 | cat confdefs.h >>conftest.$ac_ext | |
3290 | cat >>conftest.$ac_ext <<_ACEOF | |
3291 | /* end confdefs.h. */ | |
3292 | ||
3293 | int | |
3294 | main () | |
3295 | { | |
a152f366 UD |
3296 | #ifndef __GNUC__ |
3297 | choke me | |
3298 | #endif | |
ff886b82 UD |
3299 | |
3300 | ; | |
3301 | return 0; | |
3302 | } | |
3303 | _ACEOF | |
3304 | rm -f conftest.$ac_objext | |
3305 | if { (ac_try="$ac_compile" | |
3306 | case "(($ac_try" in | |
3307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3308 | *) ac_try_echo=$ac_try;; | |
3309 | esac | |
322e23db UD |
3310 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3311 | $as_echo "$ac_try_echo") >&5 | |
ff886b82 UD |
3312 | (eval "$ac_compile") 2>conftest.er1 |
3313 | ac_status=$? | |
3314 | grep -v '^ *+' conftest.er1 >conftest.err | |
3315 | rm -f conftest.er1 | |
3316 | cat conftest.err >&5 | |
322e23db | 3317 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ff886b82 | 3318 | (exit $ac_status); } && { |
a152f366 | 3319 | test -z "$ac_cxx_werror_flag" || |
ff886b82 UD |
3320 | test ! -s conftest.err |
3321 | } && test -s conftest.$ac_objext; then | |
a152f366 | 3322 | ac_compiler_gnu=yes |
ff886b82 | 3323 | else |
322e23db | 3324 | $as_echo "$as_me: failed program was:" >&5 |
ff886b82 UD |
3325 | sed 's/^/| /' conftest.$ac_ext >&5 |
3326 | ||
a152f366 | 3327 | ac_compiler_gnu=no |
ff886b82 UD |
3328 | fi |
3329 | ||
3330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a152f366 | 3331 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
ff886b82 | 3332 | |
ff886b82 | 3333 | fi |
322e23db UD |
3334 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3335 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3336 | if test $ac_compiler_gnu = yes; then | |
3337 | GXX=yes | |
3338 | else | |
3339 | GXX= | |
3340 | fi | |
a152f366 UD |
3341 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3342 | ac_save_CXXFLAGS=$CXXFLAGS | |
322e23db UD |
3343 | { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3344 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
a152f366 | 3345 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
322e23db | 3346 | $as_echo_n "(cached) " >&6 |
ff886b82 | 3347 | else |
a152f366 UD |
3348 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3349 | ac_cxx_werror_flag=yes | |
3350 | ac_cv_prog_cxx_g=no | |
3351 | CXXFLAGS="-g" | |
3352 | cat >conftest.$ac_ext <<_ACEOF | |
ff886b82 UD |
3353 | /* confdefs.h. */ |
3354 | _ACEOF | |
3355 | cat confdefs.h >>conftest.$ac_ext | |
3356 | cat >>conftest.$ac_ext <<_ACEOF | |
3357 | /* end confdefs.h. */ | |
ff886b82 | 3358 | |
ff886b82 UD |
3359 | int |
3360 | main () | |
3361 | { | |
a152f366 | 3362 | |
ff886b82 UD |
3363 | ; |
3364 | return 0; | |
3365 | } | |
3366 | _ACEOF | |
a152f366 | 3367 | rm -f conftest.$ac_objext |
ff886b82 UD |
3368 | if { (ac_try="$ac_compile" |
3369 | case "(($ac_try" in | |
3370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3371 | *) ac_try_echo=$ac_try;; | |
3372 | esac | |
322e23db UD |
3373 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3374 | $as_echo "$ac_try_echo") >&5 | |
ff886b82 UD |
3375 | (eval "$ac_compile") 2>conftest.er1 |
3376 | ac_status=$? | |
3377 | grep -v '^ *+' conftest.er1 >conftest.err | |
3378 | rm -f conftest.er1 | |
3379 | cat conftest.err >&5 | |
322e23db | 3380 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ff886b82 | 3381 | (exit $ac_status); } && { |
a152f366 | 3382 | test -z "$ac_cxx_werror_flag" || |
ff886b82 UD |
3383 | test ! -s conftest.err |
3384 | } && test -s conftest.$ac_objext; then | |
a152f366 | 3385 | ac_cv_prog_cxx_g=yes |
ff886b82 | 3386 | else |
322e23db | 3387 | $as_echo "$as_me: failed program was:" >&5 |
ff886b82 UD |
3388 | sed 's/^/| /' conftest.$ac_ext >&5 |
3389 | ||
a152f366 UD |
3390 | CXXFLAGS="" |
3391 | cat >conftest.$ac_ext <<_ACEOF | |
3392 | /* confdefs.h. */ | |
3393 | _ACEOF | |
3394 | cat confdefs.h >>conftest.$ac_ext | |
3395 | cat >>conftest.$ac_ext <<_ACEOF | |
3396 | /* end confdefs.h. */ | |
ff886b82 | 3397 | |
a152f366 UD |
3398 | int |
3399 | main () | |
3400 | { | |
ff886b82 | 3401 | |
a152f366 UD |
3402 | ; |
3403 | return 0; | |
3404 | } | |
ff886b82 UD |
3405 | _ACEOF |
3406 | rm -f conftest.$ac_objext | |
3407 | if { (ac_try="$ac_compile" | |
3408 | case "(($ac_try" in | |
3409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3410 | *) ac_try_echo=$ac_try;; | |
3411 | esac | |
322e23db UD |
3412 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3413 | $as_echo "$ac_try_echo") >&5 | |
ff886b82 UD |
3414 | (eval "$ac_compile") 2>conftest.er1 |
3415 | ac_status=$? | |
3416 | grep -v '^ *+' conftest.er1 >conftest.err | |
3417 | rm -f conftest.er1 | |
3418 | cat conftest.err >&5 | |
322e23db | 3419 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ff886b82 | 3420 | (exit $ac_status); } && { |
a152f366 | 3421 | test -z "$ac_cxx_werror_flag" || |
ff886b82 UD |
3422 | test ! -s conftest.err |
3423 | } && test -s conftest.$ac_objext; then | |
a152f366 | 3424 | : |
ff886b82 | 3425 | else |
322e23db | 3426 | $as_echo "$as_me: failed program was:" >&5 |
ff886b82 UD |
3427 | sed 's/^/| /' conftest.$ac_ext >&5 |
3428 | ||
a152f366 UD |
3429 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3430 | CXXFLAGS="-g" | |
3431 | cat >conftest.$ac_ext <<_ACEOF | |
ff886b82 UD |
3432 | /* confdefs.h. */ |
3433 | _ACEOF | |
3434 | cat confdefs.h >>conftest.$ac_ext | |
3435 | cat >>conftest.$ac_ext <<_ACEOF | |
3436 | /* end confdefs.h. */ | |
a152f366 | 3437 | |
ff886b82 UD |
3438 | int |
3439 | main () | |
3440 | { | |
a152f366 | 3441 | |
ff886b82 UD |
3442 | ; |
3443 | return 0; | |
3444 | } | |
3445 | _ACEOF | |
a152f366 UD |
3446 | rm -f conftest.$ac_objext |
3447 | if { (ac_try="$ac_compile" | |
ff886b82 UD |
3448 | case "(($ac_try" in |
3449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3450 | *) ac_try_echo=$ac_try;; | |
3451 | esac | |
322e23db UD |
3452 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3453 | $as_echo "$ac_try_echo") >&5 | |
a152f366 | 3454 | (eval "$ac_compile") 2>conftest.er1 |
ff886b82 UD |
3455 | ac_status=$? |
3456 | grep -v '^ *+' conftest.er1 >conftest.err | |
3457 | rm -f conftest.er1 | |
3458 | cat conftest.err >&5 | |
322e23db | 3459 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ff886b82 | 3460 | (exit $ac_status); } && { |
a152f366 | 3461 | test -z "$ac_cxx_werror_flag" || |
ff886b82 | 3462 | test ! -s conftest.err |
a152f366 UD |
3463 | } && test -s conftest.$ac_objext; then |
3464 | ac_cv_prog_cxx_g=yes | |
ff886b82 | 3465 | else |
322e23db | 3466 | $as_echo "$as_me: failed program was:" >&5 |
ff886b82 UD |
3467 | sed 's/^/| /' conftest.$ac_ext >&5 |
3468 | ||
ff886b82 | 3469 | |
ff886b82 UD |
3470 | fi |
3471 | ||
a152f366 UD |
3472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3473 | fi | |
ff886b82 | 3474 | |
a152f366 UD |
3475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3476 | fi | |
3a12e572 | 3477 | |
a152f366 UD |
3478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3479 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3480 | fi | |
322e23db UD |
3481 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3482 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
a152f366 UD |
3483 | if test "$ac_test_CXXFLAGS" = set; then |
3484 | CXXFLAGS=$ac_save_CXXFLAGS | |
3485 | elif test $ac_cv_prog_cxx_g = yes; then | |
3486 | if test "$GXX" = yes; then | |
3487 | CXXFLAGS="-g -O2" | |
3488 | else | |
3489 | CXXFLAGS="-g" | |
3490 | fi | |
3a12e572 | 3491 | else |
a152f366 UD |
3492 | if test "$GXX" = yes; then |
3493 | CXXFLAGS="-O2" | |
3494 | else | |
3495 | CXXFLAGS= | |
3496 | fi | |
3a12e572 | 3497 | fi |
a152f366 UD |
3498 | ac_ext=c |
3499 | ac_cpp='$CPP $CPPFLAGS' | |
3500 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3501 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3502 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26f56c1c UD |
3503 | |
3504 | ||
a152f366 | 3505 | if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then |
322e23db UD |
3506 | { { $as_echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5 |
3507 | $as_echo "$as_me: error: you must configure in a separate build directory" >&2;} | |
3a12e572 | 3508 | { (exit 1); exit 1; }; } |
26f56c1c | 3509 | fi |
3a12e572 | 3510 | |
a152f366 UD |
3511 | # This will get text that should go into config.make. |
3512 | config_vars= | |
3513 | ||
3514 | # Check for a --with-gd argument and set libgd-LDFLAGS in config.make. | |
3515 | ||
3516 | # Check whether --with-gd was given. | |
3517 | if test "${with_gd+set}" = set; then | |
3518 | withval=$with_gd; case "$with_gd" in | |
3519 | yes|''|no) ;; | |
3520 | *) libgd_include="-I$withval/include" | |
3521 | libgd_ldflags="-L$withval/lib" ;; | |
26f56c1c | 3522 | esac |
cd6ede75 | 3523 | |
a152f366 | 3524 | fi |
cd6ede75 UD |
3525 | |
3526 | ||
a152f366 UD |
3527 | # Check whether --with-gd-include was given. |
3528 | if test "${with_gd_include+set}" = set; then | |
3529 | withval=$with_gd_include; case "$with_gd_include" in | |
3530 | ''|no) ;; | |
3531 | *) libgd_include="-I$withval" ;; | |
cd6ede75 UD |
3532 | esac |
3533 | ||
a152f366 | 3534 | fi |
cd6ede75 | 3535 | |
0816838f | 3536 | |
a152f366 UD |
3537 | # Check whether --with-gd-lib was given. |
3538 | if test "${with_gd_lib+set}" = set; then | |
3539 | withval=$with_gd_lib; case "$with_gd_lib" in | |
3540 | ''|no) ;; | |
3541 | *) libgd_ldflags="-L$withval" ;; | |
cd6ede75 UD |
3542 | esac |
3543 | ||
a808d541 UD |
3544 | fi |
3545 | ||
f4b07664 | 3546 | |
a152f366 UD |
3547 | if test -n "$libgd_include"; then |
3548 | config_vars="$config_vars | |
3549 | CFLAGS-memusagestat.c = $libgd_include" | |
3550 | fi | |
3551 | if test -n "$libgd_ldflags"; then | |
3552 | config_vars="$config_vars | |
3553 | libgd-LDFLAGS = $libgd_ldflags" | |
3554 | fi | |
2ceaa76a | 3555 | |
2ceaa76a | 3556 | |
a152f366 UD |
3557 | # Check whether --with-fp was given. |
3558 | if test "${with_fp+set}" = set; then | |
3559 | withval=$with_fp; with_fp=$withval | |
3560 | else | |
3561 | with_fp=yes | |
26f56c1c UD |
3562 | fi |
3563 | ||
2ceaa76a | 3564 | |
8f73811b | 3565 | |
a152f366 UD |
3566 | # Check whether --with-binutils was given. |
3567 | if test "${with_binutils+set}" = set; then | |
3568 | withval=$with_binutils; path_binutils=$withval | |
3569 | else | |
3570 | path_binutils='' | |
3571 | fi | |
ff886b82 UD |
3572 | |
3573 | ||
a152f366 UD |
3574 | # Check whether --with-elf was given. |
3575 | if test "${with_elf+set}" = set; then | |
3576 | withval=$with_elf; elf=$withval | |
3577 | else | |
3578 | elf=no | |
3579 | fi | |
8f73811b RM |
3580 | |
3581 | ||
a152f366 UD |
3582 | # Check whether --with-selinux was given. |
3583 | if test "${with_selinux+set}" = set; then | |
3584 | withval=$with_selinux; with_selinux=$withval | |
3585 | else | |
3586 | with_selinux=auto | |
3587 | fi | |
e0a3ed4f | 3588 | |
8f73811b | 3589 | |
a152f366 UD |
3590 | # Check whether --with-xcoff was given. |
3591 | if test "${with_xcoff+set}" = set; then | |
3592 | withval=$with_xcoff; xcoff=$withval | |
3593 | else | |
3594 | xcoff=no | |
3595 | fi | |
e0a3ed4f | 3596 | |
a152f366 UD |
3597 | |
3598 | # Check whether --with-cvs was given. | |
3599 | if test "${with_cvs+set}" = set; then | |
3600 | withval=$with_cvs; with_cvs=$withval | |
3601 | else | |
3602 | with_cvs=yes | |
8f73811b RM |
3603 | fi |
3604 | ||
a152f366 UD |
3605 | if test "$with_cvs" = yes; then |
3606 | if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null | |
3607 | then | |
3608 | with_cvs=no | |
3609 | fi | |
3610 | fi | |
8f73811b RM |
3611 | |
3612 | ||
e0a3ed4f | 3613 | |
a152f366 UD |
3614 | # Check whether --with-headers was given. |
3615 | if test "${with_headers+set}" = set; then | |
3616 | withval=$with_headers; sysheaders=$withval | |
3617 | else | |
3618 | sysheaders='' | |
7efb9bd1 UD |
3619 | fi |
3620 | ||
dfd2257a | 3621 | |
a152f366 UD |
3622 | # Check whether --enable-sanity-checks was given. |
3623 | if test "${enable_sanity_checks+set}" = set; then | |
3624 | enableval=$enable_sanity_checks; enable_sanity=$enableval | |
3625 | else | |
3626 | enable_sanity=yes | |
dfd2257a UD |
3627 | fi |
3628 | ||
cd6ede75 | 3629 | |
cd6ede75 | 3630 | |
a152f366 UD |
3631 | # Check whether --enable-check-abi was given. |
3632 | if test "${enable_check_abi+set}" = set; then | |
3633 | enableval=$enable_check_abi; enable_check_abi=$enableval | |
3634 | else | |
3635 | enable_check_abi=no | |
cd6ede75 UD |
3636 | fi |
3637 | ||
cd6ede75 | 3638 | |
a152f366 UD |
3639 | static=yes |
3640 | # Check whether --enable-shared was given. | |
3641 | if test "${enable_shared+set}" = set; then | |
3642 | enableval=$enable_shared; shared=$enableval | |
3643 | else | |
3644 | shared=default | |
3645 | fi | |
cd6ede75 | 3646 | |
a152f366 UD |
3647 | # Check whether --enable-profile was given. |
3648 | if test "${enable_profile+set}" = set; then | |
3649 | enableval=$enable_profile; profile=$enableval | |
3650 | else | |
3651 | profile=no | |
3652 | fi | |
cd6ede75 | 3653 | |
a152f366 UD |
3654 | # Check whether --enable-omitfp was given. |
3655 | if test "${enable_omitfp+set}" = set; then | |
3656 | enableval=$enable_omitfp; omitfp=$enableval | |
3657 | else | |
3658 | omitfp=no | |
3659 | fi | |
cd6ede75 | 3660 | |
a152f366 UD |
3661 | # Check whether --enable-bounded was given. |
3662 | if test "${enable_bounded+set}" = set; then | |
3663 | enableval=$enable_bounded; bounded=$enableval | |
3664 | else | |
3665 | bounded=no | |
cd6ede75 | 3666 | fi |
a152f366 UD |
3667 | |
3668 | # Check whether --enable-versioning was given. | |
3669 | if test "${enable_versioning+set}" = set; then | |
3670 | enableval=$enable_versioning; enable_versioning=$enableval | |
3671 | else | |
3672 | enable_versioning=yes | |
cd6ede75 | 3673 | fi |
a152f366 UD |
3674 | |
3675 | ||
3676 | # Check whether --enable-oldest-abi was given. | |
3677 | if test "${enable_oldest_abi+set}" = set; then | |
3678 | enableval=$enable_oldest_abi; oldest_abi=$enableval | |
3679 | else | |
3680 | oldest_abi=no | |
2ceaa76a RM |
3681 | fi |
3682 | ||
a152f366 UD |
3683 | if test "$oldest_abi" = yes || test "$oldest_abi" = no; then |
3684 | oldest_abi=default | |
3685 | else | |
3686 | cat >>confdefs.h <<_ACEOF | |
3687 | #define GLIBC_OLDEST_ABI "$oldest_abi" | |
3688 | _ACEOF | |
cd6ede75 | 3689 | |
a152f366 | 3690 | fi |
cd6ede75 UD |
3691 | |
3692 | ||
a152f366 UD |
3693 | # Check whether --enable-stackguard-randomization was given. |
3694 | if test "${enable_stackguard_randomization+set}" = set; then | |
3695 | enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval | |
3696 | else | |
3697 | enable_stackguard_randomize=no | |
cd6ede75 UD |
3698 | fi |
3699 | ||
a152f366 UD |
3700 | if test "$enable_stackguard_randomize" = yes; then |
3701 | cat >>confdefs.h <<\_ACEOF | |
3702 | #define ENABLE_STACKGUARD_RANDOMIZE 1 | |
3703 | _ACEOF | |
cd6ede75 | 3704 | |
a152f366 | 3705 | fi |
cd6ede75 | 3706 | |
a152f366 UD |
3707 | # Check whether --enable-add-ons was given. |
3708 | if test "${enable_add_ons+set}" = set; then | |
3709 | enableval=$enable_add_ons; | |
3710 | else | |
3711 | enable_add_ons=yes | |
3712 | fi | |
cd6ede75 | 3713 | |
cd6ede75 | 3714 | |
cd6ede75 | 3715 | |
a152f366 UD |
3716 | # Check whether --with-tls was given. |
3717 | if test "${with_tls+set}" = set; then | |
3718 | withval=$with_tls; usetls=$withval | |
3719 | else | |
3720 | usetls=yes | |
3721 | fi | |
cd6ede75 | 3722 | |
cd6ede75 | 3723 | |
cd6ede75 | 3724 | |
a152f366 UD |
3725 | # Check whether --with-__thread was given. |
3726 | if test "${with___thread+set}" = set; then | |
3727 | withval=$with___thread; use__thread=$withval | |
3728 | else | |
3729 | use__thread=yes | |
3730 | fi | |
cd6ede75 | 3731 | |
cd6ede75 | 3732 | |
a152f366 UD |
3733 | # Check whether --enable-hidden-plt was given. |
3734 | if test "${enable_hidden_plt+set}" = set; then | |
3735 | enableval=$enable_hidden_plt; hidden=$enableval | |
3736 | else | |
3737 | hidden=yes | |
2de7874e | 3738 | fi |
cd6ede75 | 3739 | |
a152f366 UD |
3740 | if test "x$hidden" = xno; then |
3741 | cat >>confdefs.h <<\_ACEOF | |
3742 | #define NO_HIDDEN 1 | |
3743 | _ACEOF | |
cd6ede75 | 3744 | |
a152f366 | 3745 | fi |
e0a3ed4f | 3746 | |
a152f366 UD |
3747 | # Check whether --enable-bind-now was given. |
3748 | if test "${enable_bind_now+set}" = set; then | |
3749 | enableval=$enable_bind_now; bindnow=$enableval | |
3750 | else | |
3751 | bindnow=no | |
3752 | fi | |
e0a3ed4f | 3753 | |
e0a3ed4f | 3754 | |
e0a3ed4f | 3755 | |
a152f366 UD |
3756 | # Check whether --enable-static-nss was given. |
3757 | if test "${enable_static_nss+set}" = set; then | |
3758 | enableval=$enable_static_nss; static_nss=$enableval | |
3759 | else | |
3760 | static_nss=no | |
3761 | fi | |
e0a3ed4f | 3762 | |
a152f366 UD |
3763 | if test x"$static_nss" = xyes || test x"$shared" = xno; then |
3764 | static_nss=yes | |
3765 | cat >>confdefs.h <<\_ACEOF | |
3766 | #define DO_STATIC_NSS 1 | |
3767 | _ACEOF | |
cd6ede75 | 3768 | |
a152f366 | 3769 | fi |
cd6ede75 | 3770 | |
a152f366 UD |
3771 | # Check whether --enable-force-install was given. |
3772 | if test "${enable_force_install+set}" = set; then | |
3773 | enableval=$enable_force_install; force_install=$enableval | |
3a12e572 | 3774 | else |
a152f366 UD |
3775 | force_install=yes |
3776 | fi | |
ff886b82 | 3777 | |
3a12e572 | 3778 | |
cd6ede75 | 3779 | |
a152f366 UD |
3780 | # Check whether --enable-kernel was given. |
3781 | if test "${enable_kernel+set}" = set; then | |
3782 | enableval=$enable_kernel; minimum_kernel=$enableval | |
cd6ede75 | 3783 | fi |
a152f366 UD |
3784 | |
3785 | if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then | |
3786 | # Better nothing than this. | |
3787 | minimum_kernel="" | |
3788 | else | |
3789 | if test "$minimum_kernel" = current; then | |
3790 | minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel= | |
cd6ede75 UD |
3791 | fi |
3792 | fi | |
cd6ede75 | 3793 | |
a152f366 UD |
3794 | # Check whether --enable-all-warnings was given. |
3795 | if test "${enable_all_warnings+set}" = set; then | |
3796 | enableval=$enable_all_warnings; all_warnings=$enableval | |
3797 | fi | |
cd6ede75 | 3798 | |
5c2a0669 | 3799 | |
cd6ede75 | 3800 | |
a152f366 UD |
3801 | # Check whether --enable-multi-arch was given. |
3802 | if test "${enable_multi_arch+set}" = set; then | |
3803 | enableval=$enable_multi_arch; multi_arch=$enableval | |
cd6ede75 | 3804 | else |
6f89d2f3 | 3805 | multi_arch=default |
cd6ede75 UD |
3806 | fi |
3807 | ||
6f89d2f3 | 3808 | if test x"$multi_arch" != xno; then |
a152f366 | 3809 | multi_arch_d=/multiarch |
4bca4c17 UD |
3810 | fi |
3811 | ||
a152f366 UD |
3812 | # Check whether --enable-experimental-malloc was given. |
3813 | if test "${enable_experimental_malloc+set}" = set; then | |
3814 | enableval=$enable_experimental_malloc; experimental_malloc=$enableval | |
ae828bc6 | 3815 | fi |
3a12e572 | 3816 | |
a152f366 UD |
3817 | |
3818 | ||
3819 | # Check whether --enable-nss-crypt was given. | |
3820 | if test "${enable_nss_crypt+set}" = set; then | |
3821 | enableval=$enable_nss_crypt; nss_crypt=$enableval | |
4bca4c17 | 3822 | else |
a152f366 | 3823 | nss_crypt=no |
4bca4c17 UD |
3824 | fi |
3825 | ||
a152f366 UD |
3826 | if test x$nss_crypt = xyes; then |
3827 | nss_includes=-I$(nss-config --includedir 2>/dev/null) | |
3828 | if test $? -ne 0; then | |
322e23db UD |
3829 | { { $as_echo "$as_me:$LINENO: error: cannot find include directory with nss-config" >&5 |
3830 | $as_echo "$as_me: error: cannot find include directory with nss-config" >&2;} | |
a152f366 | 3831 | { (exit 1); exit 1; }; } |
26f56c1c | 3832 | fi |
a152f366 UD |
3833 | old_CFLAGS="$CFLAGS" |
3834 | CFLAGS="$CFLAGS $nss_includes" | |
3835 | ||
3836 | cat >conftest.$ac_ext <<_ACEOF | |
3837 | typedef int PRBool; | |
3838 | #include <hasht.h> | |
3839 | #include <nsslowhash.h> | |
3840 | void f (void) { NSSLOW_Init (); } | |
3841 | _ACEOF | |
3842 | rm -f conftest.$ac_objext | |
3843 | if { (ac_try="$ac_compile" | |
3844 | case "(($ac_try" in | |
3845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3846 | *) ac_try_echo=$ac_try;; | |
3847 | esac | |
322e23db UD |
3848 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3849 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
3850 | (eval "$ac_compile") 2>conftest.er1 |
3851 | ac_status=$? | |
3852 | grep -v '^ *+' conftest.er1 >conftest.err | |
3853 | rm -f conftest.er1 | |
3854 | cat conftest.err >&5 | |
322e23db | 3855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
3856 | (exit $ac_status); } && { |
3857 | test -z "$ac_c_werror_flag" || | |
3858 | test ! -s conftest.err | |
3859 | } && test -s conftest.$ac_objext; then | |
3860 | libc_cv_nss_crypt=yes | |
63bda0c1 | 3861 | else |
322e23db | 3862 | $as_echo "$as_me: failed program was:" >&5 |
a152f366 UD |
3863 | sed 's/^/| /' conftest.$ac_ext >&5 |
3864 | ||
322e23db | 3865 | { { $as_echo "$as_me:$LINENO: error: |
a152f366 | 3866 | cannot find NSS headers with lowlevel hash function interfaces" >&5 |
322e23db | 3867 | $as_echo "$as_me: error: |
a152f366 UD |
3868 | cannot find NSS headers with lowlevel hash function interfaces" >&2;} |
3869 | { (exit 1); exit 1; }; } | |
04be94a8 | 3870 | fi |
cd6ede75 | 3871 | |
a152f366 UD |
3872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3873 | old_LIBS="$LIBS" | |
3874 | LIBS="$LIBS -lfreebl3" | |
3875 | cat >conftest.$ac_ext <<_ACEOF | |
3876 | /* confdefs.h. */ | |
3877 | _ACEOF | |
3878 | cat confdefs.h >>conftest.$ac_ext | |
3879 | cat >>conftest.$ac_ext <<_ACEOF | |
3880 | /* end confdefs.h. */ | |
3881 | typedef int PRBool; | |
3882 | #include <hasht.h> | |
3883 | #include <nsslowhash.h> | |
3884 | int | |
3885 | main () | |
3886 | { | |
3887 | NSSLOW_Init(); | |
3888 | ; | |
3889 | return 0; | |
3890 | } | |
3891 | _ACEOF | |
3892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3893 | if { (ac_try="$ac_link" | |
3894 | case "(($ac_try" in | |
3895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3896 | *) ac_try_echo=$ac_try;; | |
3897 | esac | |
322e23db UD |
3898 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3899 | $as_echo "$ac_try_echo") >&5 | |
a152f366 UD |
3900 | (eval "$ac_link") 2>conftest.er1 |
3901 | ac_status=$? | |
3902 | grep -v '^ *+' conftest.er1 >conftest.err | |
3903 | rm -f conftest.er1 | |
3904 | cat conftest.err >&5 | |
322e23db | 3905 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a152f366 UD |
3906 | (exit $ac_status); } && { |
3907 | test -z "$ac_c_werror_flag" || | |
3908 | test ! -s conftest.err | |
322e23db UD |
3909 | } && test -s conftest$ac_exeext && { |
3910 | test "$cross_compiling" = yes || | |
3911 | $as_test_x conftest$ac_exeext | |
3912 | }; then | |
a152f366 | 3913 | libc_cv_nss_crypt=yes |
cd6ede75 | 3914 | else |
322e23db | 3915 | $as_echo "$as_me: failed program was:" >&5 |
a152f366 | 3916 | sed 's/^/| /' conftest.$ac_ext >&5 |
3a12e572 | 3917 | |
322e23db | 3918 | { { $as_echo "$as_me:$LINENO: error: |
a152f366 | 3919 | cannot link program using lowlevel NSS hash functions" >&5 |
322e23db | 3920 | $as_echo "$as_me: error: |
a152f366 UD |
3921 | cannot link program using lowlevel NSS hash functions" >&2;} |
3922 | { (exit 1); exit 1; }; } | |
cd6ede75 | 3923 | fi |
a152f366 | 3924 | |
322e23db | 3925 | rm -rf conftest.dSYM |
a152f366 UD |
3926 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3927 | conftest$ac_exeext conftest.$ac_ext | |
3928 | CFLAGS="$old_CFLAGS" | |
3929 | LIBS="$old_LIBS" | |
4bca4c17 | 3930 | else |
a152f366 | 3931 | libc_cv_nss_crypt=no |
4bca4c17 UD |
3932 | fi |
3933 | ||
cd6ede75 | 3934 | |
a152f366 UD |
3935 | # The way shlib-versions is used to generate soversions.mk uses a |
3936 | # fairly simplistic model for name recognition that can't distinguish | |
3937 | # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os | |
3938 | # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can | |
3939 | # tell. This doesn't get used much beyond that, so it's fairly safe. | |
3940 | case "$host_os" in | |
3941 | linux*) | |
3942 | ;; | |
3943 | gnu*) | |
3944 | host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'` | |
3945 | ;; | |
26f56c1c | 3946 | esac |
3a12e572 | 3947 | |
a152f366 UD |
3948 | # We keep the original values in `$config_*' and never modify them, so we |
3949 | # can write them unchanged into config.make. Everything else uses | |
3950 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
3951 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
3a12e572 | 3952 | |
a152f366 UD |
3953 | # Don't allow vendor == "unknown" |
3954 | test "$config_vendor" = unknown && config_vendor= | |
3955 | config_os="`echo $config_os | sed 's/^unknown-//'`" | |
3a12e572 | 3956 | |
a152f366 UD |
3957 | # Some configurations imply other options. |
3958 | case "$host_os" in | |
3959 | # i586-linuxaout is mangled into i586-pc-linux-gnuaout | |
3960 | linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*) | |
3961 | ;; | |
3962 | gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*) | |
3963 | # These systems (almost) always use the ELF format. | |
3964 | elf=yes | |
3965 | ;; | |
3966 | aix*) | |
3967 | # These systems are always xcoff | |
3968 | xcoff=yes | |
3969 | elf=no | |
3970 | ;; | |
26f56c1c | 3971 | esac |
3a12e572 | 3972 | |
a152f366 UD |
3973 | # The configure fragment of an add-on port can modify these to supplement |
3974 | # or override the table in the case statement below. No fragment should | |
3975 | # ever change the config_* variables, however. | |
3976 | machine=$config_machine | |
3977 | vendor=$config_vendor | |
3978 | os=$config_os | |
3979 | base_os='' | |
3a12e572 | 3980 | |
a152f366 UD |
3981 | # config.guess on some IBM machines says `rs6000' instead of `powerpc'. |
3982 | # Unify this here. | |
3983 | if test "$machine" = rs6000; then | |
3984 | machine="powerpc" | |
3985 | fi | |
3a12e572 | 3986 | |
a152f366 UD |
3987 | # Braindead PowerPC box with absolutely no FPU. |
3988 | case "$machine-$host_os" in | |
3989 | powerpc*-*soft) | |
3990 | with_fp=no | |
3991 | ;; | |
26f56c1c | 3992 | esac |
2abf9ff1 | 3993 | |
a152f366 | 3994 | submachine= |
26f56c1c | 3995 | |
a152f366 UD |
3996 | # Check whether --with-cpu was given. |
3997 | if test "${with_cpu+set}" = set; then | |
3998 | withval=$with_cpu; case "$withval" in | |
322e23db UD |
3999 | yes|'') { { $as_echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5 |
4000 | $as_echo "$as_me: error: --with-cpu requires an argument" >&2;} | |
a152f366 UD |
4001 | { (exit 1); exit 1; }; } ;; |
4002 | no) ;; | |
4003 | *) submachine="$withval" ;; | |
4004 | esac | |
3a12e572 UD |
4005 | |
4006 | fi | |
3a12e572 | 4007 | |
3a12e572 | 4008 | |
a152f366 UD |
4009 | # An add-on can set this when it wants to disable the sanity check below. |
4010 | libc_config_ok=no | |
26f56c1c | 4011 | |
a152f366 | 4012 | subdirs="$subdirs " |
3a12e572 | 4013 | |
3a12e572 | 4014 | |
a152f366 UD |
4015 | case "$enable_add_ons" in |
4016 | ''|no) add_ons= ;; | |
4017 | yes|'*') | |
4018 | add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps | | |
4019 | sed 's@/[^/]*$@@' | sort | uniq` | |
4020 | add_ons_automatic=yes | |
4021 | ;; | |
4022 | *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'` | |
4023 | add_ons_automatic=no ;; | |
26f56c1c | 4024 | esac |
2abf9ff1 | 4025 | |
a152f366 UD |
4026 | configured_add_ons= |
4027 | add_ons_sfx= | |
4028 | add_ons_pfx= | |
4029 | if test x"$add_ons" != x; then | |
4030 | for f in $add_ons; do | |
4031 | # Some sanity checks | |
4032 | case "$f" in | |
4033 | crypt) | |
322e23db | 4034 | { { $as_echo "$as_me:$LINENO: error: |
a152f366 UD |
4035 | *** It seems that you're using an old \`crypt' add-on. crypt is now |
4036 | *** part of glibc and using the old add-on will not work with this | |
4037 | *** release. Start again with fresh sources and without the old | |
4038 | *** \`crypt' add-on." >&5 | |
322e23db | 4039 | $as_echo "$as_me: error: |
a152f366 UD |
4040 | *** It seems that you're using an old \`crypt' add-on. crypt is now |
4041 | *** part of glibc and using the old add-on will not work with this | |
4042 | *** release. Start again with fresh sources and without the old | |
4043 | *** \`crypt' add-on." >&2;} | |
4044 | { (exit 1); exit 1; }; } | |
4045 | ;; | |
4046 | localedata) | |
322e23db | 4047 | { { $as_echo "$as_me:$LINENO: error: |
a152f366 UD |
4048 | *** It seems that you're using an old \`localedata' add-on. localedata |
4049 | *** is now part of glibc and using the old add-on will not work with | |
4050 | *** this release. Start again with fresh sources and without the old | |
4051 | *** \`localedata' add-on." >&5 | |
322e23db | 4052 | $as_echo "$as_me: error: |
a152f366 UD |
4053 | *** It seems that you're using an old \`localedata' add-on. localedata |
4054 | *** is now part of glibc and using the old add-on will not work with | |
4055 | *** this release. Start again with fresh sources and without the old | |
4056 | *** \`localedata' add-on." >&2;} | |
4057 | { (exit 1); exit 1; }; } | |
4058 | ;; | |
4059 | esac | |
4060 | done | |
3a12e572 | 4061 | |
a152f366 UD |
4062 | # Now source each add-on's configure fragment. |
4063 | # The fragments can use $srcdir/$libc_add_on to find themselves, | |
4064 | # and test $add_ons_automatic to see if they were explicitly requested. | |
4065 | # A fragment can clear (or even change) $libc_add_on to affect | |
4066 | # whether it goes into the list to be actually used in the build. | |
4067 | use_add_ons= | |
4068 | for libc_add_on in $add_ons; do | |
4069 | # Test whether such a directory really exists. | |
4070 | # It can be absolute, or relative to $srcdir, or relative to the build dir. | |
4071 | case "$libc_add_on" in | |
4072 | /*) | |
4073 | libc_add_on_srcdir=$libc_add_on | |
4074 | ;; | |
4075 | *) | |
4076 | test -d "$srcdir/$libc_add_on" || { | |
4077 | if test -d "$libc_add_on"; then | |
4078 | libc_add_on="`pwd`/$libc_add_on" | |
4079 | else | |
322e23db UD |
4080 | { { $as_echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5 |
4081 | $as_echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;} | |
a152f366 UD |
4082 | { (exit 1); exit 1; }; } |
4083 | fi | |
4084 | } | |
4085 | libc_add_on_srcdir=$srcdir/$libc_add_on | |
4086 | ;; | |
4087 | esac | |
2abf9ff1 | 4088 | |
a152f366 UD |
4089 | libc_add_on_frag=$libc_add_on_srcdir/configure |
4090 | libc_add_on_canonical= | |
7967983f | 4091 | libc_add_on_config_subdirs= |
a152f366 | 4092 | if test -r "$libc_add_on_frag"; then |
322e23db UD |
4093 | { $as_echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5 |
4094 | $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;} | |
a152f366 UD |
4095 | libc_add_on_canonical=unknown |
4096 | libc_add_on_subdirs= | |
4097 | . "$libc_add_on_frag" | |
4098 | test -z "$libc_add_on" || { | |
4099 | configured_add_ons="$configured_add_ons $libc_add_on" | |
4100 | if test "x$libc_add_on_canonical" = xunknown; then | |
322e23db UD |
4101 | { { $as_echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5 |
4102 | $as_echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;} | |
a152f366 UD |
4103 | { (exit 1); exit 1; }; } |
4104 | fi | |
4105 | for d in $libc_add_on_subdirs; do | |
4106 | case "$libc_add_on" in | |
4107 | /*) subdir_srcdir="$libc_add_on" ;; | |
4108 | *) subdir_srcdir="\$(..)$libc_add_on" ;; | |
4109 | esac | |
4110 | case "$d" in | |
4111 | .) | |
4112 | d="${libc_add_on_canonical:-$libc_add_on}" | |
4113 | ;; | |
4114 | /*) | |
4115 | subdir_srcdir="$d" | |
4116 | ;; | |
4117 | *) | |
4118 | subdir_srcdir="$subdir_srcdir/$d" | |
4119 | ;; | |
4120 | esac | |
4121 | d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'` | |
4122 | add_on_subdirs="$add_on_subdirs $d" | |
4123 | test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars | |
4124 | $d-srcdir = $subdir_srcdir" | |
4125 | done | |
7967983f RM |
4126 | for d in $libc_add_on_config_subdirs; do |
4127 | case "$d" in | |
4128 | /*) { { $as_echo "$as_me:$LINENO: error: fragment uses absolute path in \$libc_add_on_config_subdirs" >&5 | |
4129 | $as_echo "$as_me: error: fragment uses absolute path in \$libc_add_on_config_subdirs" >&2;} | |
4130 | { (exit 1); exit 1; }; } ;; | |
4131 | esac | |
4132 | if test ! -d "$libc_add_on_srcdir/$d"; then | |
4133 | { { $as_echo "$as_me:$LINENO: error: fragment wants to configure missing directory $d" >&5 | |
4134 | $as_echo "$as_me: error: fragment wants to configure missing directory $d" >&2;} | |
4135 | { (exit 1); exit 1; }; } | |
4136 | fi | |
4137 | case "$libc_add_on" in | |
4138 | /*) { { $as_echo "$as_me:$LINENO: error: relative path required for add-on using \$libc_add_on_config_subdirs" >&5 | |
4139 | $as_echo "$as_me: error: relative path required for add-on using \$libc_add_on_config_subdirs" >&2;} | |
4140 | { (exit 1); exit 1; }; } ;; | |
4141 | esac | |
4142 | subdirs="$subdirs $libc_add_on/$d" | |
4143 | done | |
a152f366 UD |
4144 | } |
4145 | fi | |
4146 | if test -n "$libc_add_on"; then | |
4147 | if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null` | |
4148 | then | |
322e23db UD |
4149 | { $as_echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5 |
4150 | $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; } | |
a152f366 UD |
4151 | for frag in $frags; do |
4152 | name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'` | |
4153 | echo $ECHO_N "$name $ECHO_C" >&6 | |
4154 | . "$frag" | |
4155 | done | |
322e23db UD |
4156 | { $as_echo "$as_me:$LINENO: result: " >&5 |
4157 | $as_echo "" >&6; } | |
a152f366 UD |
4158 | fi |
4159 | use_add_ons="$use_add_ons $libc_add_on" | |
4160 | add_ons_pfx="$add_ons_pfx $libc_add_on/" | |
4161 | test -z "$libc_add_on_canonical" || | |
4162 | add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical" | |
4163 | fi | |
4164 | done | |
4165 | # Use echo to strip excess whitespace. | |
4166 | add_ons="`echo $use_add_ons`" | |
5c2a0669 | 4167 | fi |
26f56c1c | 4168 | |
3a12e572 | 4169 | |
3a12e572 | 4170 | |
3a12e572 | 4171 | |
a152f366 UD |
4172 | ### |
4173 | ### I put this here to prevent those annoying emails from people who cannot | |
4174 | ### read and try to compile glibc on unsupported platforms. --drepper | |
4175 | ### | |
4176 | ### By using the undocumented --enable-hacker-mode option for configure | |
4177 | ### one can skip this test to make the configuration not fail for unsupported | |
4178 | ### platforms. | |
4179 | ### | |
4180 | if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then | |
4181 | case "$machine-$host_os" in | |
4182 | *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*) | |
4183 | ;; | |
4184 | *) | |
4185 | echo "*** The GNU C library is currently not available for this platform." | |
4186 | echo "*** So far nobody cared to port it and if there is no volunteer it" | |
4187 | echo "*** might never happen. So, if you have interest to see glibc on" | |
4188 | echo "*** this platform visit" | |
4189 | echo "*** http://www.gnu.org/software/libc/porting.html" | |
4190 | echo "*** and join the group of porters" | |
4191 | exit 1 | |
4192 | ;; | |
4193 | esac | |
3a12e572 | 4194 | fi |
2abf9ff1 | 4195 | |
a152f366 UD |
4196 | # Expand the configuration machine name into a subdirectory by architecture |
4197 | # type and particular chip. If an add-on configure fragment already set | |
4198 | # base_machine, we don't change it. | |
4199 | test -n "$base_machine" || case "$machine" in | |
4200 | a29k | am29000) base_machine=a29k machine=a29k ;; | |
4201 | c3[012]) base_machine=cx0 machine=cx0/c30 ;; | |
4202 | c4[04]) base_machine=cx0 machine=cx0/c40 ;; | |
4203 | i[34567]86) base_machine=i386 machine=i386/$machine ;; | |
4204 | ia64) base_machine=ia64 machine=ia64 ;; | |
4205 | m88???) base_machine=m88k machine=m88k/$machine ;; | |
4206 | m88k) base_machine=m88k machine=m88k/m88100 ;; | |
4207 | powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;; | |
4208 | powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;; | |
4209 | s390) base_machine=s390 machine=s390/s390-32 ;; | |
4210 | s390x) base_machine=s390 machine=s390/s390-64 ;; | |
4211 | sh3*) base_machine=sh machine=sh/sh3 ;; | |
4212 | sh4*) base_machine=sh machine=sh/sh4 ;; | |
4213 | sparc | sparcv[67]) | |
4214 | base_machine=sparc machine=sparc/sparc32 ;; | |
4215 | sparcv8 | supersparc | hypersparc) | |
4216 | base_machine=sparc machine=sparc/sparc32/sparcv8 ;; | |
4217 | sparcv8plus | sparcv8plusa | sparcv9) | |
4218 | base_machine=sparc machine=sparc/sparc32/sparcv9 ;; | |
4219 | sparcv8plusb | sparcv9b) | |
4220 | base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;; | |
4221 | sparcv9v) | |
4222 | base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;; | |
4223 | sparcv9v2) | |
4224 | base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;; | |
4225 | sparc64) | |
4226 | base_machine=sparc machine=sparc/sparc64 ;; | |
4227 | sparc64b) | |
4228 | base_machine=sparc machine=sparc/sparc64/sparcv9b ;; | |
4229 | sparc64v) | |
4230 | base_machine=sparc machine=sparc/sparc64/sparcv9v ;; | |
4231 | sparc64v2) | |
4232 | base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;; | |
4233 | *) base_machine=$machine ;; | |
4234 | esac | |
26f56c1c | 4235 | |
3a12e572 | 4236 | |
a152f366 UD |
4237 | if test "$base_machine" = "i386"; then |
4238 | cat >>confdefs.h <<\_ACEOF | |
4239 | #define USE_REGPARMS 1 | |
3a12e572 | 4240 | _ACEOF |
2abf9ff1 | 4241 | |
cd6ede75 | 4242 | fi |
26f56c1c | 4243 | |
a152f366 UD |
4244 | # Compute the list of sysdep directories for this configuration. |
4245 | # This can take a while to compute. | |
4246 | sysdep_dir=$srcdir/sysdeps | |
322e23db UD |
4247 | { $as_echo "$as_me:$LINENO: checking sysdep dirs" >&5 |
4248 | $as_echo_n "checking sysdep dirs... " >&6; } | |
a152f366 UD |
4249 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. |
4250 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" | |
4251 | ||
4252 | test "x$base_os" != x || case "$os" in | |
4253 | gnu*) | |
4254 | base_os=mach/hurd ;; | |
4255 | netbsd* | 386bsd* | freebsd* | bsdi*) | |
4256 | base_os=unix/bsd/bsd4.4 ;; | |
4257 | osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*) | |
4258 | base_os=unix/bsd ;; | |
4259 | sysv* | isc* | esix* | sco* | minix* | irix4* | linux*) | |
4260 | base_os=unix/sysv ;; | |
4261 | irix6*) | |
4262 | base_os=unix/sysv/irix6/$os ;; | |
4263 | solaris[2-9]*) | |
4264 | base_os=unix/sysv/sysv4 ;; | |
4265 | hpux*) | |
4266 | base_os=unix/sysv/hpux/$os ;; | |
4267 | aix4.3*) | |
4268 | base_os=unix/sysv/aix/aix4.3 ;; | |
4269 | none) | |
4270 | base_os=standalone ;; | |
4271 | esac | |
3a12e572 | 4272 | |
a152f366 UD |
4273 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. |
4274 | tail=$os | |
4275 | ostry=$os | |
4276 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
4277 | ostry="$ostry /$o" | |
4278 | tail=$o | |
3a12e572 | 4279 | done |
a152f366 UD |
4280 | o=`echo $tail | sed 's/[0-9]*$//'` |
4281 | if test $o != $tail; then | |
4282 | ostry="$ostry /$o" | |
4283 | fi | |
4284 | # For linux-gnu, try linux-gnu, then linux. | |
4285 | o=`echo $tail | sed 's/-.*$//'` | |
4286 | if test $o != $tail; then | |
4287 | ostry="$ostry /$o" | |
cd6ede75 | 4288 | fi |
3a12e572 | 4289 | |
a152f366 UD |
4290 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. |
4291 | base= | |
4292 | tail=$base_os | |
4293 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
4294 | set $b | |
4295 | base="$base /$1" | |
4296 | tail="$2" | |
4297 | done | |
cd6ede75 | 4298 | |
a152f366 UD |
4299 | # For sparc/sparc32, try sparc/sparc32 and then sparc. |
4300 | mach= | |
4301 | tail=$machine${submachine:+/$submachine} | |
4302 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
4303 | set $m | |
4304 | # Prepend the machine's FPU directory unless --without-fp. | |
4305 | if test "$with_fp" = yes; then | |
4306 | mach="$mach /$1/fpu" | |
26f56c1c | 4307 | else |
a152f366 | 4308 | mach="$mach /$1/nofpu" |
925c3c5c | 4309 | fi |
a152f366 UD |
4310 | mach="$mach /$1" |
4311 | tail="$2" | |
925c3c5c | 4312 | done |
a152f366 UD |
4313 | |
4314 | ||
4315 | # Find what sysdep directories exist. | |
4316 | sysnames_add_ons= | |
4317 | sysnames= | |
4318 | for b in $base ''; do | |
4319 | for m0 in $mach ''; do | |
4320 | for v in /$vendor ''; do | |
4321 | test "$v" = / && continue | |
4322 | for o in /$ostry ''; do | |
4323 | test "$o" = / && continue | |
4324 | for m in $multi_arch_d $mach ''; do | |
4325 | for d in $add_ons_pfx ''; do | |
4326 | for a in $add_ons_sfx ''; do | |
4327 | if test -n "$m0$m0sub$b$v$o$m$msub"; then | |
4328 | try_srcdir="${srcdir}/" | |
4329 | case "$d" in | |
4330 | /*) try_srcdir= ;; | |
4331 | esac | |
4332 | try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a" | |
4333 | test -n "$enable_debug_configure" && | |
4334 | echo "$0 DEBUG: try $try" >&2 | |
4335 | if test -d "$try_srcdir$try"; then | |
4336 | sysnames="$sysnames $try" | |
4337 | { test -n "$o" || test -n "$b"; } && os_used=t | |
4338 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
4339 | case x${m0:-$m} in | |
4340 | x*/$submachine) submachine_used=t ;; | |
4341 | esac | |
4342 | if test -n "$d"; then | |
4343 | case "$sysnames_add_ons" in | |
4344 | *" $d "*) ;; | |
4345 | *|'') sysnames_add_ons="$sysnames_add_ons $d" ;; | |
4346 | esac | |
4347 | fi | |
4348 | fi | |
4349 | fi | |
4350 | done | |
4351 | done | |
4352 | done | |
4353 | done | |
4354 | done | |
4355 | done | |
925c3c5c UD |
4356 | done |
4357 | ||
6f89d2f3 L |
4358 | # If the assembler supports gnu_indirect_function symbol type and the |
4359 | # architecture supports multi-arch, we enable multi-arch by default. | |
4360 | if test "$multi_arch" = default; then | |
4361 | { $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5 | |
4362 | $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; } | |
4363 | if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then | |
4364 | $as_echo_n "(cached) " >&6 | |
4365 | else | |
4366 | cat > conftest.s <<EOF | |
4367 | .type foo,%gnu_indirect_function | |
4368 | EOF | |
4369 | if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; | |
4370 | then | |
4371 | libc_cv_asm_gnu_indirect_function=yes | |
4372 | else | |
4373 | libc_cv_asm_gnu_indirect_function=no | |
4374 | fi | |
4375 | rm -f conftest* | |
4376 | fi | |
4377 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5 | |
4378 | $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; } | |
4379 | multi_arch=no | |
4380 | if test "$libc_cv_asm_gnu_indirect_function" = yes; then | |
4381 | case $sysnames_add_ons$sysnames in | |
4382 | *"$multi_arch_d"*) | |
4383 | multi_arch=yes | |
4384 | ;; | |
4385 | esac | |
4386 | fi | |
4387 | fi | |
4388 | if test x"$multi_arch" = xyes; then | |
4389 | cat >>confdefs.h <<\_ACEOF | |
4390 | #define USE_MULTIARCH 1 | |
4391 | _ACEOF | |
4392 | ||
4393 | fi | |
4394 | ||
4395 | ||
a152f366 | 4396 | if test -z "$os_used" && test "$os" != none; then |
322e23db UD |
4397 | { { $as_echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5 |
4398 | $as_echo "$as_me: error: Operating system $os is not supported." >&2;} | |
a152f366 | 4399 | { (exit 1); exit 1; }; } |
925c3c5c | 4400 | fi |
a152f366 | 4401 | if test -z "$machine_used" && test "$machine" != none; then |
322e23db UD |
4402 | { { $as_echo "$as_me:$LINENO: error: The $machine is not supported." >&5 |
4403 | $as_echo "$as_me: error: The $machine is not supported." >&2;} | |
a152f366 | 4404 | { (exit 1); exit 1; }; } |
925c3c5c | 4405 | fi |
a152f366 | 4406 | if test -z "$submachine_used" && test -n "$submachine"; then |
322e23db UD |
4407 | { { $as_echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5 |
4408 | $as_echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;} | |
a152f366 | 4409 | { (exit 1); exit 1; }; } |
925c3c5c UD |
4410 | fi |
4411 | ||
26f56c1c | 4412 | |
a152f366 UD |
4413 | # We have now validated the configuration. |
4414 | ||
4415 | ||
4416 | # If using ELF, look for an `elf' subdirectory of each machine directory. | |
4417 | # We prepend these rather than inserting them whereever the machine appears | |
4418 | # because things specified by the machine's ELF ABI should override | |
4419 | # OS-specific things, and should always be the same for any OS on the | |
4420 | # machine (otherwise what's the point of an ABI?). | |
4421 | if test "$elf" = yes; then | |
4422 | elf_dirs= | |
4423 | for d in $add_ons_pfx ''; do | |
4424 | for m in $mach; do | |
4425 | if test -d $srcdir/${d}sysdeps$m/elf; then | |
4426 | elf_dirs="$elf_dirs ${d}sysdeps$m/elf" | |
4427 | fi | |
4428 | done | |
925c3c5c | 4429 | done |
a152f366 | 4430 | sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames" |
925c3c5c | 4431 | fi |
925c3c5c | 4432 | |
925c3c5c | 4433 | |
a152f366 UD |
4434 | # Expand the list of system names into a full list of directories |
4435 | # from each element's parent name and Implies file (if present). | |
4436 | set $sysnames | |
4437 | names= | |
4438 | while test $# -gt 0; do | |
4439 | name=$1 | |
4440 | shift | |
26f56c1c | 4441 | |
a152f366 UD |
4442 | case " $names " in *" $name "*) |
4443 | # Already in the list. | |
4444 | continue | |
4445 | esac | |
925c3c5c | 4446 | |
a152f366 UD |
4447 | # Report each name as we discover it, so there is no long pause in output. |
4448 | echo $ECHO_N "$name $ECHO_C" >&6 | |
925c3c5c | 4449 | |
a152f366 UD |
4450 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` |
4451 | ||
4452 | case $name in | |
4453 | /*) xsrcdir= ;; | |
4454 | *) xsrcdir=$srcdir/ ;; | |
4455 | esac | |
4456 | test -n "$enable_debug_configure" && | |
4457 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
4458 | ||
4459 | if test -f $xsrcdir$name/Implies; then | |
4460 | # Collect more names from the `Implies' file (removing comments). | |
4461 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`" | |
4462 | implied= | |
4463 | for x in $implied_candidate; do | |
4464 | found=no | |
4465 | if test -d $xsrcdir$name_base/$x; then | |
4466 | implied="$implied $name_base/$x"; | |
4467 | found=yes | |
4468 | fi | |
4469 | for d in $add_ons_pfx ''; do | |
4470 | try="${d}sysdeps/$x" | |
4471 | case $d in | |
4472 | /*) try_srcdir= ;; | |
4473 | *) try_srcdir=$srcdir/ ;; | |
4474 | esac | |
4475 | test -n "$enable_debug_configure" && | |
4476 | echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2 | |
4477 | if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try; | |
4478 | then | |
4479 | implied="$implied $try" | |
4480 | found=yes | |
4481 | case "$sysnames_add_ons" in | |
4482 | *" $d "*) ;; | |
4483 | *|'') sysnames_add_ons="$sysnames_add_ons $d" ;; | |
4484 | esac | |
4485 | fi | |
4486 | done | |
4487 | if test $found = no; then | |
322e23db UD |
4488 | { $as_echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5 |
4489 | $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;} | |
a152f366 UD |
4490 | fi |
4491 | done | |
4492 | else | |
4493 | implied= | |
4494 | fi | |
925c3c5c | 4495 | |
a152f366 UD |
4496 | # Add NAME to the list of names. |
4497 | names="$names $name" | |
925c3c5c | 4498 | |
a152f366 UD |
4499 | # Find the parent of NAME, using the empty string if it has none. |
4500 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" | |
925c3c5c | 4501 | |
a152f366 UD |
4502 | # Add the names implied by NAME, and NAME's parent (if it has one), to |
4503 | # the list of names to be processed (the argument list). We prepend the | |
4504 | # implied names to the list and append the parent. We want implied | |
4505 | # directories to come before further directories inferred from the | |
4506 | # configuration components; this ensures that for sysv4, unix/common | |
4507 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
4508 | # after sysv4). | |
4509 | sysnames="`echo $implied $* $parent`" | |
4510 | test -n "$sysnames" && set $sysnames | |
4511 | done | |
2abf9ff1 | 4512 | |
a152f366 UD |
4513 | # Add the default directories. |
4514 | default_sysnames=sysdeps/generic | |
4515 | if test "$elf" = yes; then | |
4516 | default_sysnames="sysdeps/generic/elf $default_sysnames" | |
925c3c5c | 4517 | fi |
a152f366 | 4518 | sysnames="$names $default_sysnames" |
26f56c1c | 4519 | |
a152f366 | 4520 | # The other names were emitted during the scan. |
322e23db UD |
4521 | { $as_echo "$as_me:$LINENO: result: $default_sysnames" >&5 |
4522 | $as_echo "$default_sysnames" >&6; } | |
925c3c5c | 4523 | |
a152f366 UD |
4524 | # Collect the list of add-ons that supply partial sysdeps trees. |
4525 | sysdeps_add_ons= | |
4526 | for add_on in $add_ons; do | |
4527 | case "$add_on" in | |
4528 | /*) xsrcdir= ;; | |
4529 | *) xsrcdir="$srcdir/" ;; | |
4530 | esac | |
925c3c5c | 4531 | |
a152f366 UD |
4532 | test -d "$xsrcdir$add_on/sysdeps" || { |
4533 | case "$configured_add_ons " in | |
4534 | *" $add_on "*) ;; | |
4535 | *|'') | |
322e23db UD |
4536 | { { $as_echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5 |
4537 | $as_echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;} | |
a152f366 UD |
4538 | { (exit 1); exit 1; }; } |
4539 | ;; | |
4540 | esac | |
4541 | continue | |
4542 | } | |
2abf9ff1 | 4543 | |
a152f366 UD |
4544 | sysdeps_add_ons="$sysdeps_add_ons $add_on" |
4545 | case "$sysnames_add_ons" in | |
4546 | *" $add_on/ "*) ;; | |
4547 | *|'') | |
322e23db UD |
4548 | { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5 |
4549 | $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;} | |
a152f366 UD |
4550 | continue ;; |
4551 | esac | |
26f56c1c | 4552 | |
a152f366 UD |
4553 | found=no |
4554 | for d in $sysnames; do | |
4555 | case "$d" in | |
4556 | $add_on/sysdeps/*) ;; | |
4557 | *) continue ;; | |
4558 | esac | |
4559 | (cd "$xsrcdir$d" && for f in *[!~]; do | |
4560 | case "$f" in | |
4561 | sys|bits) | |
4562 | for ff in $f/*.h; do | |
4563 | test -d "$ff" || { test -e "$ff" && exit 88; } | |
4564 | done | |
4565 | ;; | |
4566 | *) | |
4567 | test -d "$f" || { test -e "$f" && exit 88; } | |
4568 | ;; | |
4569 | esac | |
4570 | done) | |
4571 | if test $? -eq 88; then | |
4572 | found=yes | |
4573 | break | |
4574 | fi | |
4575 | done | |
4576 | if test $found = no; then | |
322e23db UD |
4577 | { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5 |
4578 | $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;} | |
a152f366 UD |
4579 | fi |
4580 | done | |
26f56c1c | 4581 | |
2abf9ff1 | 4582 | |
26f56c1c | 4583 | |
a152f366 | 4584 | ### Locate tools. |
26f56c1c | 4585 | |
a152f366 UD |
4586 | # Find a good install program. We prefer a C program (faster), |
4587 | # so one script is as good as another. But avoid the broken or | |
4588 | # incompatible versions: | |
4589 | # SysV /etc/install, /usr/sbin/install | |
4590 | # SunOS /usr/etc/install | |
4591 | # IRIX /sbin/install | |
4592 | # AIX /bin/install | |
4593 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4594 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4595 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4596 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4597 | # OS/2's system install, which has a completely different semantic | |
4598 | # ./install, which can be erroneously created by make from ./install.sh. | |
322e23db UD |
4599 | # Reject install programs that cannot install multiple files. |
4600 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
4601 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
a152f366 UD |
4602 | if test -z "$INSTALL"; then |
4603 | if test "${ac_cv_path_install+set}" = set; then | |
322e23db | 4604 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
4605 | else |
4606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4607 | for as_dir in $PATH | |
4608 | do | |
4609 | IFS=$as_save_IFS | |
4610 | test -z "$as_dir" && as_dir=. | |
4611 | # Account for people who put trailing slashes in PATH elements. | |
4612 | case $as_dir/ in | |
4613 | ./ | .// | /cC/* | \ | |
4614 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4615 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4616 | /usr/ucb/* ) ;; | |
4617 | *) | |
4618 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4619 | # Don't use installbsd from OSF since it installs stuff as root | |
4620 | # by default. | |
4621 | for ac_prog in ginstall scoinst install; do | |
4622 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4623 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4624 | if test $ac_prog = install && | |
4625 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4626 | # AIX install. It has an incompatible calling convention. | |
4627 | : | |
4628 | elif test $ac_prog = install && | |
4629 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4630 | # program-specific install script used by HP pwplus--don't use. | |
4631 | : | |
4632 | else | |
322e23db UD |
4633 | rm -rf conftest.one conftest.two conftest.dir |
4634 | echo one > conftest.one | |
4635 | echo two > conftest.two | |
4636 | mkdir conftest.dir | |
4637 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4638 | test -s conftest.one && test -s conftest.two && | |
4639 | test -s conftest.dir/conftest.one && | |
4640 | test -s conftest.dir/conftest.two | |
4641 | then | |
4642 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4643 | break 3 | |
4644 | fi | |
a152f366 UD |
4645 | fi |
4646 | fi | |
4647 | done | |
4648 | done | |
4649 | ;; | |
26f56c1c | 4650 | esac |
322e23db | 4651 | |
a152f366 UD |
4652 | done |
4653 | IFS=$as_save_IFS | |
2abf9ff1 | 4654 | |
322e23db | 4655 | rm -rf conftest.one conftest.two conftest.dir |
26f56c1c | 4656 | |
925c3c5c | 4657 | fi |
a152f366 UD |
4658 | if test "${ac_cv_path_install+set}" = set; then |
4659 | INSTALL=$ac_cv_path_install | |
4660 | else | |
4661 | # As a last resort, use the slow shell script. Don't cache a | |
4662 | # value for INSTALL within a source directory, because that will | |
4663 | # break other packages using the cache if that directory is | |
4664 | # removed, or if the value is a relative name. | |
4665 | INSTALL=$ac_install_sh | |
4666 | fi | |
925c3c5c | 4667 | fi |
322e23db UD |
4668 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4669 | $as_echo "$INSTALL" >&6; } | |
925c3c5c | 4670 | |
a152f366 UD |
4671 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4672 | # It thinks the first close brace ends the variable substitution. | |
4673 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
26f56c1c | 4674 | |
a152f366 UD |
4675 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4676 | ||
4677 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4678 | ||
4679 | if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then | |
4680 | # The makefiles need to use a different form to find it in $srcdir. | |
4681 | INSTALL='\$(..)./scripts/install-sh -c' | |
26f56c1c | 4682 | fi |
322e23db UD |
4683 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4684 | $as_echo_n "checking whether ln -s works... " >&6; } | |
a152f366 UD |
4685 | LN_S=$as_ln_s |
4686 | if test "$LN_S" = "ln -s"; then | |
322e23db UD |
4687 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
4688 | $as_echo "yes" >&6; } | |
26f56c1c | 4689 | else |
322e23db UD |
4690 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4691 | $as_echo "no, using $LN_S" >&6; } | |
26f56c1c | 4692 | fi |
a152f366 | 4693 | |
925c3c5c | 4694 | |
650425ce UD |
4695 | # Was a --with-binutils option given? |
4696 | if test -n "$path_binutils"; then | |
4697 | # Make absolute; ensure a single trailing slash. | |
4698 | path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'` | |
63bda0c1 | 4699 | CC="$CC -B$path_binutils" |
650425ce | 4700 | fi |
27a5bb33 UD |
4701 | AS=`$CC -print-prog-name=as` |
4702 | LD=`$CC -print-prog-name=ld` | |
5edb9387 | 4703 | AR=`$CC -print-prog-name=ar` |
cd6ede75 | 4704 | |
4baa087a RM |
4705 | OBJDUMP=`$CC -print-prog-name=objdump` |
4706 | ||
4707 | ||
4708 | # ranlib has to be treated a bit differently since it might not exist at all. | |
4709 | ac_ranlib=`$CC -print-prog-name=ranlib` | |
4710 | if test "x$ac_ranlib" = xranlib; then | |
4711 | # This extra check has to happen since gcc simply echos the parameter in | |
4712 | # case it cannot find the value in its own directories. | |
4713 | if test -n "$ac_tool_prefix"; then | |
4714 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4715 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
322e23db UD |
4716 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4717 | $as_echo_n "checking for $ac_word... " >&6; } | |
4baa087a | 4718 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
322e23db | 4719 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
4720 | else |
4721 | if test -n "$RANLIB"; then | |
4722 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4723 | else | |
4724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4725 | for as_dir in $PATH | |
4726 | do | |
4727 | IFS=$as_save_IFS | |
4728 | test -z "$as_dir" && as_dir=. | |
4729 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 4730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 4731 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
322e23db | 4732 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
4733 | break 2 |
4734 | fi | |
4735 | done | |
4736 | done | |
26f56c1c | 4737 | IFS=$as_save_IFS |
4baa087a RM |
4738 | |
4739 | fi | |
4740 | fi | |
4741 | RANLIB=$ac_cv_prog_RANLIB | |
4742 | if test -n "$RANLIB"; then | |
322e23db UD |
4743 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4744 | $as_echo "$RANLIB" >&6; } | |
4baa087a | 4745 | else |
322e23db UD |
4746 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4747 | $as_echo "no" >&6; } | |
4baa087a RM |
4748 | fi |
4749 | ||
26f56c1c | 4750 | |
4baa087a RM |
4751 | fi |
4752 | if test -z "$ac_cv_prog_RANLIB"; then | |
4753 | ac_ct_RANLIB=$RANLIB | |
4754 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4755 | set dummy ranlib; ac_word=$2 | |
322e23db UD |
4756 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4757 | $as_echo_n "checking for $ac_word... " >&6; } | |
4baa087a | 4758 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
322e23db | 4759 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
4760 | else |
4761 | if test -n "$ac_ct_RANLIB"; then | |
4762 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4763 | else | |
4764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4765 | for as_dir in $PATH | |
4766 | do | |
4767 | IFS=$as_save_IFS | |
4768 | test -z "$as_dir" && as_dir=. | |
4769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 4770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 4771 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
322e23db | 4772 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
4773 | break 2 |
4774 | fi | |
4775 | done | |
4776 | done | |
26f56c1c | 4777 | IFS=$as_save_IFS |
4baa087a | 4778 | |
4baa087a RM |
4779 | fi |
4780 | fi | |
4781 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4782 | if test -n "$ac_ct_RANLIB"; then | |
322e23db UD |
4783 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4784 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4baa087a | 4785 | else |
322e23db UD |
4786 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4787 | $as_echo "no" >&6; } | |
4baa087a RM |
4788 | fi |
4789 | ||
26f56c1c UD |
4790 | if test "x$ac_ct_RANLIB" = x; then |
4791 | RANLIB=":" | |
4792 | else | |
4793 | case $cross_compiling:$ac_tool_warned in | |
4794 | yes:) | |
322e23db UD |
4795 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4796 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
26f56c1c UD |
4797 | ac_tool_warned=yes ;; |
4798 | esac | |
4799 | RANLIB=$ac_ct_RANLIB | |
4800 | fi | |
4baa087a RM |
4801 | else |
4802 | RANLIB="$ac_cv_prog_RANLIB" | |
4803 | fi | |
4804 | ||
4805 | else | |
4806 | RANLIB=$ac_ranlib | |
4807 | fi | |
4808 | ||
4809 | ||
4810 | # Determine whether we are using GNU binutils. | |
322e23db UD |
4811 | { $as_echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5 |
4812 | $as_echo_n "checking whether $AS is GNU as... " >&6; } | |
4baa087a | 4813 | if test "${libc_cv_prog_as_gnu+set}" = set; then |
322e23db | 4814 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
4815 | else |
4816 | # Most GNU programs take a -v and spit out some text including | |
4817 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
4818 | if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
4819 | libc_cv_prog_as_gnu=yes | |
4820 | else | |
4821 | libc_cv_prog_as_gnu=no | |
4822 | fi | |
4823 | rm -fr contest* | |
4824 | fi | |
322e23db UD |
4825 | { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5 |
4826 | $as_echo "$libc_cv_prog_as_gnu" >&6; } | |
4baa087a RM |
4827 | rm -f a.out |
4828 | gnu_as=$libc_cv_prog_as_gnu | |
4829 | ||
322e23db UD |
4830 | { $as_echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5 |
4831 | $as_echo_n "checking whether $LD is GNU ld... " >&6; } | |
4baa087a | 4832 | if test "${libc_cv_prog_ld_gnu+set}" = set; then |
322e23db | 4833 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
4834 | else |
4835 | # Most GNU programs take a -v and spit out some text including | |
4836 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
4837 | if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
4838 | libc_cv_prog_ld_gnu=yes | |
4839 | else | |
4840 | libc_cv_prog_ld_gnu=no | |
4841 | fi | |
4842 | rm -fr contest* | |
4843 | fi | |
322e23db UD |
4844 | { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5 |
4845 | $as_echo "$libc_cv_prog_ld_gnu" >&6; } | |
4baa087a RM |
4846 | gnu_ld=$libc_cv_prog_ld_gnu |
4847 | ||
4848 | ||
4849 | # Accept binutils 2.13 or newer. | |
4850 | for ac_prog in $AS | |
4851 | do | |
4852 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4853 | set dummy $ac_prog; ac_word=$2 | |
322e23db UD |
4854 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4855 | $as_echo_n "checking for $ac_word... " >&6; } | |
4baa087a | 4856 | if test "${ac_cv_prog_AS+set}" = set; then |
322e23db | 4857 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
4858 | else |
4859 | if test -n "$AS"; then | |
4860 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
4861 | else | |
4862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4863 | for as_dir in $PATH | |
4864 | do | |
4865 | IFS=$as_save_IFS | |
4866 | test -z "$as_dir" && as_dir=. | |
4867 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 4868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 4869 | ac_cv_prog_AS="$ac_prog" |
322e23db | 4870 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
4871 | break 2 |
4872 | fi | |
4873 | done | |
4874 | done | |
26f56c1c | 4875 | IFS=$as_save_IFS |
4baa087a RM |
4876 | |
4877 | fi | |
4878 | fi | |
4879 | AS=$ac_cv_prog_AS | |
4880 | if test -n "$AS"; then | |
322e23db UD |
4881 | { $as_echo "$as_me:$LINENO: result: $AS" >&5 |
4882 | $as_echo "$AS" >&6; } | |
4baa087a | 4883 | else |
322e23db UD |
4884 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4885 | $as_echo "no" >&6; } | |
4baa087a RM |
4886 | fi |
4887 | ||
26f56c1c | 4888 | |
4baa087a RM |
4889 | test -n "$AS" && break |
4890 | done | |
4891 | ||
4892 | if test -z "$AS"; then | |
4893 | ac_verc_fail=yes | |
4894 | else | |
4895 | # Found it, now check the version. | |
322e23db UD |
4896 | { $as_echo "$as_me:$LINENO: checking version of $AS" >&5 |
4897 | $as_echo_n "checking version of $AS... " >&6; } | |
4baa087a RM |
4898 | ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
4899 | case $ac_prog_version in | |
4900 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
f450806e | 4901 | 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*) |
4baa087a RM |
4902 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
4903 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4904 | ||
4905 | esac | |
322e23db UD |
4906 | { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
4907 | $as_echo "$ac_prog_version" >&6; } | |
4baa087a RM |
4908 | fi |
4909 | if test $ac_verc_fail = yes; then | |
73588175 | 4910 | AS=: critic_missing="$critic_missing as" |
4baa087a RM |
4911 | fi |
4912 | ||
4913 | for ac_prog in $LD | |
4914 | do | |
4915 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4916 | set dummy $ac_prog; ac_word=$2 | |
322e23db UD |
4917 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4918 | $as_echo_n "checking for $ac_word... " >&6; } | |
4baa087a | 4919 | if test "${ac_cv_prog_LD+set}" = set; then |
322e23db | 4920 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
4921 | else |
4922 | if test -n "$LD"; then | |
4923 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
4924 | else | |
4925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4926 | for as_dir in $PATH | |
4927 | do | |
4928 | IFS=$as_save_IFS | |
4929 | test -z "$as_dir" && as_dir=. | |
4930 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 4931 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 4932 | ac_cv_prog_LD="$ac_prog" |
322e23db | 4933 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
4934 | break 2 |
4935 | fi | |
4936 | done | |
4937 | done | |
26f56c1c | 4938 | IFS=$as_save_IFS |
4baa087a RM |
4939 | |
4940 | fi | |
4941 | fi | |
4942 | LD=$ac_cv_prog_LD | |
4943 | if test -n "$LD"; then | |
322e23db UD |
4944 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
4945 | $as_echo "$LD" >&6; } | |
4baa087a | 4946 | else |
322e23db UD |
4947 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4948 | $as_echo "no" >&6; } | |
4baa087a RM |
4949 | fi |
4950 | ||
26f56c1c | 4951 | |
4baa087a RM |
4952 | test -n "$LD" && break |
4953 | done | |
4954 | ||
4955 | if test -z "$LD"; then | |
4956 | ac_verc_fail=yes | |
4957 | else | |
4958 | # Found it, now check the version. | |
322e23db UD |
4959 | { $as_echo "$as_me:$LINENO: checking version of $LD" >&5 |
4960 | $as_echo_n "checking version of $LD... " >&6; } | |
4baa087a RM |
4961 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` |
4962 | case $ac_prog_version in | |
4963 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
f450806e | 4964 | 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*) |
4baa087a RM |
4965 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
4966 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4967 | ||
4968 | esac | |
322e23db UD |
4969 | { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
4970 | $as_echo "$ac_prog_version" >&6; } | |
4baa087a RM |
4971 | fi |
4972 | if test $ac_verc_fail = yes; then | |
73588175 | 4973 | LD=: critic_missing="$critic_missing ld" |
4baa087a RM |
4974 | fi |
4975 | ||
4976 | ||
4977 | # We need the physical current working directory. We cannot use the | |
4978 | # "pwd -P" shell builtin since that's not portable. Instead we try to | |
4979 | # find a pwd binary. Note that assigning to the PWD environment | |
4980 | # variable might have some interesting side effects, so we don't do | |
4981 | # that. | |
4982 | # Extract the first word of "pwd", so it can be a program name with args. | |
4983 | set dummy pwd; ac_word=$2 | |
322e23db UD |
4984 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4985 | $as_echo_n "checking for $ac_word... " >&6; } | |
4baa087a | 4986 | if test "${ac_cv_path_PWD_P+set}" = set; then |
322e23db | 4987 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
4988 | else |
4989 | case $PWD_P in | |
4990 | [\\/]* | ?:[\\/]*) | |
4991 | ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path. | |
4992 | ;; | |
4993 | *) | |
4994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4995 | for as_dir in $PATH | |
4996 | do | |
4997 | IFS=$as_save_IFS | |
4998 | test -z "$as_dir" && as_dir=. | |
4999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 5000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 5001 | ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext" |
322e23db | 5002 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
5003 | break 2 |
5004 | fi | |
5005 | done | |
5006 | done | |
26f56c1c | 5007 | IFS=$as_save_IFS |
4baa087a RM |
5008 | |
5009 | test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no" | |
5010 | ;; | |
5011 | esac | |
5012 | fi | |
5013 | PWD_P=$ac_cv_path_PWD_P | |
4baa087a | 5014 | if test -n "$PWD_P"; then |
322e23db UD |
5015 | { $as_echo "$as_me:$LINENO: result: $PWD_P" >&5 |
5016 | $as_echo "$PWD_P" >&6; } | |
4baa087a | 5017 | else |
322e23db UD |
5018 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5019 | $as_echo "no" >&6; } | |
4baa087a RM |
5020 | fi |
5021 | ||
26f56c1c | 5022 | |
4baa087a | 5023 | if test "$PWD_P" = no; then |
322e23db UD |
5024 | { { $as_echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5 |
5025 | $as_echo "$as_me: error: *** A pwd binary could not be found." >&2;} | |
4baa087a RM |
5026 | { (exit 1); exit 1; }; } |
5027 | fi | |
5028 | ||
5029 | # These programs are version sensitive. | |
5030 | ||
5031 | for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc | |
5032 | do | |
5033 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5034 | set dummy $ac_prog; ac_word=$2 | |
322e23db UD |
5035 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5036 | $as_echo_n "checking for $ac_word... " >&6; } | |
4baa087a | 5037 | if test "${ac_cv_prog_CC+set}" = set; then |
322e23db | 5038 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
5039 | else |
5040 | if test -n "$CC"; then | |
5041 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5042 | else | |
5043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5044 | for as_dir in $PATH | |
5045 | do | |
5046 | IFS=$as_save_IFS | |
5047 | test -z "$as_dir" && as_dir=. | |
5048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 5049 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 5050 | ac_cv_prog_CC="$ac_prog" |
322e23db | 5051 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
5052 | break 2 |
5053 | fi | |
5054 | done | |
5055 | done | |
26f56c1c | 5056 | IFS=$as_save_IFS |
4baa087a RM |
5057 | |
5058 | fi | |
5059 | fi | |
5060 | CC=$ac_cv_prog_CC | |
5061 | if test -n "$CC"; then | |
322e23db UD |
5062 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
5063 | $as_echo "$CC" >&6; } | |
4baa087a | 5064 | else |
322e23db UD |
5065 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5066 | $as_echo "no" >&6; } | |
4baa087a RM |
5067 | fi |
5068 | ||
26f56c1c | 5069 | |
4baa087a RM |
5070 | test -n "$CC" && break |
5071 | done | |
5072 | ||
5073 | if test -z "$CC"; then | |
5074 | ac_verc_fail=yes | |
5075 | else | |
5076 | # Found it, now check the version. | |
322e23db UD |
5077 | { $as_echo "$as_me:$LINENO: checking version of $CC" >&5 |
5078 | $as_echo_n "checking version of $CC... " >&6; } | |
4baa087a RM |
5079 | ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'` |
5080 | case $ac_prog_version in | |
5081 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
3cc4a097 | 5082 | 3.4* | 4.[0-9]* ) |
4baa087a RM |
5083 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
5084 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5085 | ||
5086 | esac | |
322e23db UD |
5087 | { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
5088 | $as_echo "$ac_prog_version" >&6; } | |
4baa087a RM |
5089 | fi |
5090 | if test $ac_verc_fail = yes; then | |
5091 | critic_missing="$critic_missing gcc" | |
5092 | fi | |
5093 | ||
5094 | for ac_prog in gnumake gmake make | |
5095 | do | |
5096 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5097 | set dummy $ac_prog; ac_word=$2 | |
322e23db UD |
5098 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5099 | $as_echo_n "checking for $ac_word... " >&6; } | |
4baa087a | 5100 | if test "${ac_cv_prog_MAKE+set}" = set; then |
322e23db | 5101 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
5102 | else |
5103 | if test -n "$MAKE"; then | |
5104 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
5105 | else | |
5106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5107 | for as_dir in $PATH | |
5108 | do | |
5109 | IFS=$as_save_IFS | |
5110 | test -z "$as_dir" && as_dir=. | |
5111 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 5112 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 5113 | ac_cv_prog_MAKE="$ac_prog" |
322e23db | 5114 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
5115 | break 2 |
5116 | fi | |
5117 | done | |
5118 | done | |
26f56c1c | 5119 | IFS=$as_save_IFS |
4baa087a RM |
5120 | |
5121 | fi | |
5122 | fi | |
5123 | MAKE=$ac_cv_prog_MAKE | |
5124 | if test -n "$MAKE"; then | |
322e23db UD |
5125 | { $as_echo "$as_me:$LINENO: result: $MAKE" >&5 |
5126 | $as_echo "$MAKE" >&6; } | |
4baa087a | 5127 | else |
322e23db UD |
5128 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5129 | $as_echo "no" >&6; } | |
4baa087a RM |
5130 | fi |
5131 | ||
26f56c1c | 5132 | |
4baa087a RM |
5133 | test -n "$MAKE" && break |
5134 | done | |
5135 | ||
5136 | if test -z "$MAKE"; then | |
5137 | ac_verc_fail=yes | |
5138 | else | |
5139 | # Found it, now check the version. | |
322e23db UD |
5140 | { $as_echo "$as_me:$LINENO: checking version of $MAKE" >&5 |
5141 | $as_echo_n "checking version of $MAKE... " >&6; } | |
4baa087a RM |
5142 | ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` |
5143 | case $ac_prog_version in | |
5144 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5145 | 3.79* | 3.[89]*) | |
5146 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5147 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5148 | ||
5149 | esac | |
322e23db UD |
5150 | { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
5151 | $as_echo "$ac_prog_version" >&6; } | |
4baa087a RM |
5152 | fi |
5153 | if test $ac_verc_fail = yes; then | |
5154 | critic_missing="$critic_missing make" | |
5155 | fi | |
6e3d59bc | 5156 | |
cd6ede75 | 5157 | |
4baa087a RM |
5158 | for ac_prog in gnumsgfmt gmsgfmt msgfmt |
5159 | do | |
5160 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5161 | set dummy $ac_prog; ac_word=$2 | |
322e23db UD |
5162 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5163 | $as_echo_n "checking for $ac_word... " >&6; } | |
4baa087a | 5164 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
322e23db | 5165 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 5166 | else |
4baa087a RM |
5167 | if test -n "$MSGFMT"; then |
5168 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
cd6ede75 | 5169 | else |
3a12e572 UD |
5170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5171 | for as_dir in $PATH | |
5172 | do | |
5173 | IFS=$as_save_IFS | |
5174 | test -z "$as_dir" && as_dir=. | |
5175 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 5176 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 5177 | ac_cv_prog_MSGFMT="$ac_prog" |
322e23db | 5178 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5179 | break 2 |
5180 | fi | |
5181 | done | |
5182 | done | |
26f56c1c | 5183 | IFS=$as_save_IFS |
3a12e572 | 5184 | |
cd6ede75 UD |
5185 | fi |
5186 | fi | |
4baa087a RM |
5187 | MSGFMT=$ac_cv_prog_MSGFMT |
5188 | if test -n "$MSGFMT"; then | |
322e23db UD |
5189 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5190 | $as_echo "$MSGFMT" >&6; } | |
cd6ede75 | 5191 | else |
322e23db UD |
5192 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5193 | $as_echo "no" >&6; } | |
cd6ede75 UD |
5194 | fi |
5195 | ||
26f56c1c | 5196 | |
4baa087a RM |
5197 | test -n "$MSGFMT" && break |
5198 | done | |
5199 | ||
5200 | if test -z "$MSGFMT"; then | |
5201 | ac_verc_fail=yes | |
5202 | else | |
5203 | # Found it, now check the version. | |
322e23db UD |
5204 | { $as_echo "$as_me:$LINENO: checking version of $MSGFMT" >&5 |
5205 | $as_echo_n "checking version of $MSGFMT... " >&6; } | |
4baa087a RM |
5206 | ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
5207 | case $ac_prog_version in | |
5208 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5209 | 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*) | |
5210 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5211 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5212 | ||
5213 | esac | |
322e23db UD |
5214 | { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
5215 | $as_echo "$ac_prog_version" >&6; } | |
3a12e572 | 5216 | fi |
4baa087a RM |
5217 | if test $ac_verc_fail = yes; then |
5218 | MSGFMT=: aux_missing="$aux_missing msgfmt" | |
5219 | fi | |
5220 | ||
5221 | for ac_prog in makeinfo | |
5222 | do | |
5223 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5224 | set dummy $ac_prog; ac_word=$2 | |
322e23db UD |
5225 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5226 | $as_echo_n "checking for $ac_word... " >&6; } | |
4baa087a | 5227 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
322e23db | 5228 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 5229 | else |
4baa087a RM |
5230 | if test -n "$MAKEINFO"; then |
5231 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
cd6ede75 | 5232 | else |
3a12e572 UD |
5233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5234 | for as_dir in $PATH | |
5235 | do | |
5236 | IFS=$as_save_IFS | |
5237 | test -z "$as_dir" && as_dir=. | |
5238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 5239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 5240 | ac_cv_prog_MAKEINFO="$ac_prog" |
322e23db | 5241 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5242 | break 2 |
5243 | fi | |
5244 | done | |
5245 | done | |
26f56c1c | 5246 | IFS=$as_save_IFS |
3a12e572 | 5247 | |
cd6ede75 UD |
5248 | fi |
5249 | fi | |
4baa087a RM |
5250 | MAKEINFO=$ac_cv_prog_MAKEINFO |
5251 | if test -n "$MAKEINFO"; then | |
322e23db UD |
5252 | { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
5253 | $as_echo "$MAKEINFO" >&6; } | |
cd6ede75 | 5254 | else |
322e23db UD |
5255 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5256 | $as_echo "no" >&6; } | |
cd6ede75 UD |
5257 | fi |
5258 | ||
26f56c1c | 5259 | |
4baa087a RM |
5260 | test -n "$MAKEINFO" && break |
5261 | done | |
5edb9387 | 5262 | |
4baa087a RM |
5263 | if test -z "$MAKEINFO"; then |
5264 | ac_verc_fail=yes | |
5edb9387 | 5265 | else |
4baa087a | 5266 | # Found it, now check the version. |
322e23db UD |
5267 | { $as_echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5 |
5268 | $as_echo_n "checking version of $MAKEINFO... " >&6; } | |
4baa087a RM |
5269 | ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` |
5270 | case $ac_prog_version in | |
5271 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5272 | 4.*) | |
5273 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5274 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5edb9387 | 5275 | |
4baa087a | 5276 | esac |
322e23db UD |
5277 | { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
5278 | $as_echo "$ac_prog_version" >&6; } | |
5edb9387 | 5279 | fi |
4baa087a RM |
5280 | if test $ac_verc_fail = yes; then |
5281 | MAKEINFO=: aux_missing="$aux_missing makeinfo" | |
5edb9387 | 5282 | fi |
cd6ede75 | 5283 | |
4baa087a | 5284 | for ac_prog in sed |
c4d23330 RM |
5285 | do |
5286 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5287 | set dummy $ac_prog; ac_word=$2 | |
322e23db UD |
5288 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5289 | $as_echo_n "checking for $ac_word... " >&6; } | |
4baa087a | 5290 | if test "${ac_cv_prog_SED+set}" = set; then |
322e23db | 5291 | $as_echo_n "(cached) " >&6 |
c4d23330 | 5292 | else |
4baa087a RM |
5293 | if test -n "$SED"; then |
5294 | ac_cv_prog_SED="$SED" # Let the user override the test. | |
c4d23330 RM |
5295 | else |
5296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5297 | for as_dir in $PATH | |
5298 | do | |
5299 | IFS=$as_save_IFS | |
5300 | test -z "$as_dir" && as_dir=. | |
5301 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 5302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 5303 | ac_cv_prog_SED="$ac_prog" |
322e23db | 5304 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c4d23330 RM |
5305 | break 2 |
5306 | fi | |
5307 | done | |
5308 | done | |
26f56c1c | 5309 | IFS=$as_save_IFS |
c4d23330 RM |
5310 | |
5311 | fi | |
5312 | fi | |
4baa087a RM |
5313 | SED=$ac_cv_prog_SED |
5314 | if test -n "$SED"; then | |
322e23db UD |
5315 | { $as_echo "$as_me:$LINENO: result: $SED" >&5 |
5316 | $as_echo "$SED" >&6; } | |
c4d23330 | 5317 | else |
322e23db UD |
5318 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5319 | $as_echo "no" >&6; } | |
c4d23330 RM |
5320 | fi |
5321 | ||
26f56c1c | 5322 | |
4baa087a | 5323 | test -n "$SED" && break |
c4d23330 RM |
5324 | done |
5325 | ||
4baa087a | 5326 | if test -z "$SED"; then |
c4d23330 RM |
5327 | ac_verc_fail=yes |
5328 | else | |
5329 | # Found it, now check the version. | |
322e23db UD |
5330 | { $as_echo "$as_me:$LINENO: checking version of $SED" >&5 |
5331 | $as_echo_n "checking version of $SED... " >&6; } | |
4baa087a | 5332 | ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'` |
c4d23330 RM |
5333 | case $ac_prog_version in |
5334 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4baa087a | 5335 | 3.0[2-9]*|3.[1-9]*|[4-9]*) |
c4d23330 RM |
5336 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
5337 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5338 | ||
5339 | esac | |
322e23db UD |
5340 | { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
5341 | $as_echo "$ac_prog_version" >&6; } | |
c4d23330 RM |
5342 | fi |
5343 | if test $ac_verc_fail = yes; then | |
4baa087a | 5344 | SED=: aux_missing="$aux_missing sed" |
c4d23330 RM |
5345 | fi |
5346 | ||
4baa087a | 5347 | |
476e7d78 | 5348 | for ac_prog in autoconf |
c4d23330 RM |
5349 | do |
5350 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5351 | set dummy $ac_prog; ac_word=$2 | |
322e23db UD |
5352 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5353 | $as_echo_n "checking for $ac_word... " >&6; } | |
4baa087a | 5354 | if test "${ac_cv_prog_AUTOCONF+set}" = set; then |
322e23db | 5355 | $as_echo_n "(cached) " >&6 |
c4d23330 | 5356 | else |
4baa087a RM |
5357 | if test -n "$AUTOCONF"; then |
5358 | ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. | |
c4d23330 RM |
5359 | else |
5360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5361 | for as_dir in $PATH | |
5362 | do | |
5363 | IFS=$as_save_IFS | |
5364 | test -z "$as_dir" && as_dir=. | |
5365 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 5366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 5367 | ac_cv_prog_AUTOCONF="$ac_prog" |
322e23db | 5368 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c4d23330 RM |
5369 | break 2 |
5370 | fi | |
5371 | done | |
5372 | done | |
26f56c1c | 5373 | IFS=$as_save_IFS |
c4d23330 RM |
5374 | |
5375 | fi | |
5376 | fi | |
4baa087a RM |
5377 | AUTOCONF=$ac_cv_prog_AUTOCONF |
5378 | if test -n "$AUTOCONF"; then | |
322e23db UD |
5379 | { $as_echo "$as_me:$LINENO: result: $AUTOCONF" >&5 |
5380 | $as_echo "$AUTOCONF" >&6; } | |
c4d23330 | 5381 | else |
322e23db UD |
5382 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5383 | $as_echo "no" >&6; } | |
c4d23330 RM |
5384 | fi |
5385 | ||
26f56c1c | 5386 | |
4baa087a | 5387 | test -n "$AUTOCONF" && break |
c4d23330 | 5388 | done |
4baa087a | 5389 | test -n "$AUTOCONF" || AUTOCONF="no" |
c4d23330 | 5390 | |
476e7d78 RM |
5391 | case "x$AUTOCONF" in |
5392 | xno|x|x:) AUTOCONF=no ;; | |
5393 | *) | |
322e23db UD |
5394 | { $as_echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5 |
5395 | $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; } | |
4baa087a | 5396 | if test "${libc_cv_autoconf_works+set}" = set; then |
322e23db | 5397 | $as_echo_n "(cached) " >&6 |
c4d23330 | 5398 | else |
476e7d78 RM |
5399 | if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then |
5400 | libc_cv_autoconf_works=yes | |
5401 | else | |
5402 | libc_cv_autoconf_works=no | |
5403 | fi | |
c4d23330 | 5404 | fi |
322e23db UD |
5405 | { $as_echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5 |
5406 | $as_echo "$libc_cv_autoconf_works" >&6; } | |
476e7d78 RM |
5407 | test $libc_cv_autoconf_works = yes || AUTOCONF=no |
5408 | ;; | |
5409 | esac | |
5410 | if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then | |
5411 | # If --without-cvs they probably won't change configure.in, so no complaints. | |
5412 | aux_missing="$aux_missing autoconf" | |
c4d23330 RM |
5413 | fi |
5414 | ||
322e23db | 5415 | test -n "$critic_missing" && { { $as_echo "$as_me:$LINENO: error: |
32a448ed RM |
5416 | *** These critical programs are missing or too old:$critic_missing |
5417 | *** Check the INSTALL file for required versions." >&5 | |
322e23db | 5418 | $as_echo "$as_me: error: |
32a448ed RM |
5419 | *** These critical programs are missing or too old:$critic_missing |
5420 | *** Check the INSTALL file for required versions." >&2;} | |
5421 | { (exit 1); exit 1; }; } | |
5422 | ||
322e23db | 5423 | test -n "$aux_missing" && { $as_echo "$as_me:$LINENO: WARNING: |
9c6fffc0 | 5424 | *** These auxiliary programs are missing or incompatible versions:$aux_missing |
ea9f119b | 5425 | *** some features will be disabled. |
3a12e572 | 5426 | *** Check the INSTALL file for required versions." >&5 |
322e23db | 5427 | $as_echo "$as_me: WARNING: |
3a12e572 UD |
5428 | *** These auxiliary programs are missing or incompatible versions:$aux_missing |
5429 | *** some features will be disabled. | |
5430 | *** Check the INSTALL file for required versions." >&2;} | |
ea9f119b | 5431 | |
3c720987 UD |
5432 | # if using special system headers, find out the compiler's sekrit |
5433 | # header directory and add that to the list. NOTE: Only does the right | |
5434 | # thing on a system that doesn't need fixincludes. (Not presently a problem.) | |
5435 | if test -n "$sysheaders"; then | |
67fbfa5c RM |
5436 | SYSINCLUDES=-nostdinc |
5437 | for d in include include-fixed; do | |
22dca1ea | 5438 | i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" && |
67fbfa5c RM |
5439 | SYSINCLUDES="$SYSINCLUDES -isystem $i" |
5440 | done | |
5441 | SYSINCLUDES="$SYSINCLUDES \ | |
3d6ce23a | 5442 | -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" |
ef226fec RM |
5443 | if test -n "$CXX"; then |
5444 | cxxversion=`$CXX -dumpversion 2>&5` && | |
5445 | cxxmachine=`$CXX -dumpmachine 2>&5` && | |
5446 | cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" && | |
5447 | CXX_SYSINCLUDES="-isystem $cxxheaders \ | |
5448 | -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward" | |
5449 | fi | |
3c720987 UD |
5450 | fi |
5451 | ||
5452 | ||
ef226fec | 5453 | |
f89ac85c | 5454 | # check if ranlib is necessary |
322e23db UD |
5455 | { $as_echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5 |
5456 | $as_echo_n "checking whether ranlib is necessary... " >&6; } | |
3a12e572 | 5457 | if test "${libc_cv_ranlib_necessary+set}" = set; then |
322e23db | 5458 | $as_echo_n "(cached) " >&6 |
f38931a9 | 5459 | else |
f89ac85c UD |
5460 | cat > conftest.c <<EOF |
5461 | int a; | |
5462 | char b; | |
5463 | void c(void) {} | |
5464 | EOF | |
3217788f | 5465 | $CC $CFLAGS $CPPFLAGS -c conftest.c |
5bbfc1ea | 5466 | $AR cr conftest.a conftest.o |
f89ac85c UD |
5467 | cp conftest.a conftest2.a |
5468 | $RANLIB conftest.a | |
5469 | if cmp -s conftest.a conftest2.a; then | |
5470 | libc_cv_ranlib_necessary=no | |
f38931a9 | 5471 | else |
f89ac85c | 5472 | libc_cv_ranlib_necessary=yes |
f38931a9 | 5473 | fi |
f89ac85c | 5474 | rm -rf conftest* |
f38931a9 | 5475 | fi |
322e23db UD |
5476 | { $as_echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5 |
5477 | $as_echo "$libc_cv_ranlib_necessary" >&6; } | |
f89ac85c UD |
5478 | if test "$libc_cv_ranlib_necessary" = no; then |
5479 | RANLIB=: | |
5480 | fi | |
f38931a9 | 5481 | |
3911660e UD |
5482 | # Test if LD_LIBRARY_PATH contains the notation for the current directory |
5483 | # since this would lead to problems installing/building glibc. | |
5484 | # LD_LIBRARY_PATH contains the current directory if one of the following | |
5485 | # is true: | |
5486 | # - one of the terminals (":" and ";") is the first or last sign | |
5487 | # - two terminals occur directly after each other | |
5488 | # - the path contains an element with a dot in it | |
322e23db UD |
5489 | { $as_echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5 |
5490 | $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; } | |
3911660e UD |
5491 | case ${LD_LIBRARY_PATH} in |
5492 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
b3a86ae1 | 5493 | ld_library_path_setting="contains current directory" |
3911660e UD |
5494 | ;; |
5495 | *) | |
5496 | ld_library_path_setting="ok" | |
5497 | ;; | |
5498 | esac | |
322e23db UD |
5499 | { $as_echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5 |
5500 | $as_echo "$ld_library_path_setting" >&6; } | |
3911660e | 5501 | if test "$ld_library_path_setting" != "ok"; then |
322e23db | 5502 | { { $as_echo "$as_me:$LINENO: error: |
3a12e572 UD |
5503 | *** LD_LIBRARY_PATH shouldn't contain the current directory when |
5504 | *** building glibc. Please change the environment variable | |
5505 | *** and run configure again." >&5 | |
322e23db | 5506 | $as_echo "$as_me: error: |
63bda0c1 UD |
5507 | *** LD_LIBRARY_PATH shouldn't contain the current directory when |
5508 | *** building glibc. Please change the environment variable | |
3a12e572 UD |
5509 | *** and run configure again." >&2;} |
5510 | { (exit 1); exit 1; }; } | |
3911660e UD |
5511 | fi |
5512 | ||
322e23db UD |
5513 | { $as_echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5 |
5514 | $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; } | |
3a12e572 | 5515 | if test "${libc_cv_gcc_static_libgcc+set}" = set; then |
322e23db | 5516 | $as_echo_n "(cached) " >&6 |
74bd2300 UD |
5517 | else |
5518 | if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then | |
5519 | libc_cv_gcc_static_libgcc= | |
5520 | else | |
5521 | libc_cv_gcc_static_libgcc=-static-libgcc | |
5522 | fi | |
5523 | fi | |
322e23db UD |
5524 | { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5 |
5525 | $as_echo "$libc_cv_gcc_static_libgcc" >&6; } | |
74bd2300 UD |
5526 | |
5527 | ||
cd6ede75 UD |
5528 | # Extract the first word of "bash", so it can be a program name with args. |
5529 | set dummy bash; ac_word=$2 | |
322e23db UD |
5530 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5531 | $as_echo_n "checking for $ac_word... " >&6; } | |
26f56c1c | 5532 | if test "${ac_cv_path_BASH_SHELL+set}" = set; then |
322e23db | 5533 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 5534 | else |
26f56c1c | 5535 | case $BASH_SHELL in |
3a12e572 | 5536 | [\\/]* | ?:[\\/]*) |
26f56c1c | 5537 | ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path. |
cd6ede75 UD |
5538 | ;; |
5539 | *) | |
3a12e572 UD |
5540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5541 | for as_dir in $PATH | |
5542 | do | |
5543 | IFS=$as_save_IFS | |
5544 | test -z "$as_dir" && as_dir=. | |
5545 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c UD |
5546 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5547 | ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext" | |
322e23db | 5548 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5549 | break 2 |
5550 | fi | |
5551 | done | |
5552 | done | |
26f56c1c | 5553 | IFS=$as_save_IFS |
3a12e572 | 5554 | |
26f56c1c | 5555 | test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no" |
cd6ede75 UD |
5556 | ;; |
5557 | esac | |
5558 | fi | |
26f56c1c UD |
5559 | BASH_SHELL=$ac_cv_path_BASH_SHELL |
5560 | if test -n "$BASH_SHELL"; then | |
322e23db UD |
5561 | { $as_echo "$as_me:$LINENO: result: $BASH_SHELL" >&5 |
5562 | $as_echo "$BASH_SHELL" >&6; } | |
cd6ede75 | 5563 | else |
322e23db UD |
5564 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5565 | $as_echo "no" >&6; } | |
cd6ede75 UD |
5566 | fi |
5567 | ||
26f56c1c UD |
5568 | |
5569 | if test "$BASH_SHELL" != no && | |
5570 | $BASH_SHELL -c 'test "$BASH_VERSINFO" \ | |
6973fc01 | 5571 | && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then |
cd6ede75 UD |
5572 | libc_cv_have_bash2=yes |
5573 | else | |
5574 | libc_cv_have_bash2=no | |
5575 | fi | |
5576 | ||
5577 | ||
26f56c1c | 5578 | if test "$BASH_SHELL" = no; then |
cd6ede75 UD |
5579 | # Extract the first word of "ksh", so it can be a program name with args. |
5580 | set dummy ksh; ac_word=$2 | |
322e23db UD |
5581 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5582 | $as_echo_n "checking for $ac_word... " >&6; } | |
3a12e572 | 5583 | if test "${ac_cv_path_KSH+set}" = set; then |
322e23db | 5584 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 5585 | else |
3a12e572 UD |
5586 | case $KSH in |
5587 | [\\/]* | ?:[\\/]*) | |
cd6ede75 UD |
5588 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. |
5589 | ;; | |
5590 | *) | |
3a12e572 UD |
5591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5592 | for as_dir in $PATH | |
5593 | do | |
5594 | IFS=$as_save_IFS | |
5595 | test -z "$as_dir" && as_dir=. | |
5596 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 5597 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3a12e572 | 5598 | ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext" |
322e23db | 5599 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5600 | break 2 |
5601 | fi | |
5602 | done | |
5603 | done | |
26f56c1c | 5604 | IFS=$as_save_IFS |
3a12e572 | 5605 | |
cd6ede75 UD |
5606 | test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no" |
5607 | ;; | |
5608 | esac | |
5609 | fi | |
3a12e572 | 5610 | KSH=$ac_cv_path_KSH |
cd6ede75 | 5611 | if test -n "$KSH"; then |
322e23db UD |
5612 | { $as_echo "$as_me:$LINENO: result: $KSH" >&5 |
5613 | $as_echo "$KSH" >&6; } | |
cd6ede75 | 5614 | else |
322e23db UD |
5615 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5616 | $as_echo "no" >&6; } | |
cd6ede75 UD |
5617 | fi |
5618 | ||
26f56c1c | 5619 | |
cd6ede75 UD |
5620 | if test "$KSH" = no; then |
5621 | libc_cv_have_ksh=no | |
5622 | else | |
5623 | libc_cv_have_ksh=yes | |
5624 | fi | |
5625 | else | |
26f56c1c | 5626 | KSH="$BASH_SHELL" |
3a12e572 | 5627 | |
cd6ede75 UD |
5628 | libc_cv_have_ksh=yes |
5629 | fi | |
5630 | ||
5631 | ||
a8c01776 | 5632 | for ac_prog in gawk mawk nawk awk |
a2b08ee5 | 5633 | do |
3a12e572 | 5634 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a2b08ee5 | 5635 | set dummy $ac_prog; ac_word=$2 |
322e23db UD |
5636 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5637 | $as_echo_n "checking for $ac_word... " >&6; } | |
3a12e572 | 5638 | if test "${ac_cv_prog_AWK+set}" = set; then |
322e23db | 5639 | $as_echo_n "(cached) " >&6 |
5aa8ff62 UD |
5640 | else |
5641 | if test -n "$AWK"; then | |
5642 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
5643 | else | |
3a12e572 UD |
5644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5645 | for as_dir in $PATH | |
5646 | do | |
5647 | IFS=$as_save_IFS | |
5648 | test -z "$as_dir" && as_dir=. | |
5649 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 5650 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3a12e572 | 5651 | ac_cv_prog_AWK="$ac_prog" |
322e23db | 5652 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5653 | break 2 |
5654 | fi | |
5655 | done | |
5656 | done | |
26f56c1c | 5657 | IFS=$as_save_IFS |
3a12e572 | 5658 | |
5aa8ff62 UD |
5659 | fi |
5660 | fi | |
3a12e572 | 5661 | AWK=$ac_cv_prog_AWK |
5aa8ff62 | 5662 | if test -n "$AWK"; then |
322e23db UD |
5663 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
5664 | $as_echo "$AWK" >&6; } | |
5aa8ff62 | 5665 | else |
322e23db UD |
5666 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5667 | $as_echo "no" >&6; } | |
5aa8ff62 UD |
5668 | fi |
5669 | ||
26f56c1c | 5670 | |
3a12e572 | 5671 | test -n "$AWK" && break |
5aa8ff62 UD |
5672 | done |
5673 | ||
c0016081 UD |
5674 | # Extract the first word of "perl", so it can be a program name with args. |
5675 | set dummy perl; ac_word=$2 | |
322e23db UD |
5676 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5677 | $as_echo_n "checking for $ac_word... " >&6; } | |
3a12e572 | 5678 | if test "${ac_cv_path_PERL+set}" = set; then |
322e23db | 5679 | $as_echo_n "(cached) " >&6 |
a2b08ee5 | 5680 | else |
3a12e572 UD |
5681 | case $PERL in |
5682 | [\\/]* | ?:[\\/]*) | |
a2b08ee5 UD |
5683 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
5684 | ;; | |
5685 | *) | |
3a12e572 UD |
5686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5687 | for as_dir in $PATH | |
5688 | do | |
5689 | IFS=$as_save_IFS | |
5690 | test -z "$as_dir" && as_dir=. | |
5691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 5692 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3a12e572 | 5693 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
322e23db | 5694 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5695 | break 2 |
5696 | fi | |
5697 | done | |
5698 | done | |
26f56c1c | 5699 | IFS=$as_save_IFS |
3a12e572 | 5700 | |
c0016081 | 5701 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" |
a2b08ee5 UD |
5702 | ;; |
5703 | esac | |
5704 | fi | |
3a12e572 | 5705 | PERL=$ac_cv_path_PERL |
a2b08ee5 | 5706 | if test -n "$PERL"; then |
322e23db UD |
5707 | { $as_echo "$as_me:$LINENO: result: $PERL" >&5 |
5708 | $as_echo "$PERL" >&6; } | |
a2b08ee5 | 5709 | else |
322e23db UD |
5710 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5711 | $as_echo "no" >&6; } | |
a2b08ee5 UD |
5712 | fi |
5713 | ||
26f56c1c | 5714 | |
2fd5d029 RM |
5715 | if test "$PERL" != no && |
5716 | (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then | |
5717 | PERL=no | |
fc304e02 | 5718 | fi |
c0016081 UD |
5719 | # Extract the first word of "install-info", so it can be a program name with args. |
5720 | set dummy install-info; ac_word=$2 | |
322e23db UD |
5721 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5722 | $as_echo_n "checking for $ac_word... " >&6; } | |
3a12e572 | 5723 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
322e23db | 5724 | $as_echo_n "(cached) " >&6 |
c0016081 | 5725 | else |
3a12e572 UD |
5726 | case $INSTALL_INFO in |
5727 | [\\/]* | ?:[\\/]*) | |
c0016081 UD |
5728 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
5729 | ;; | |
5730 | *) | |
3a12e572 | 5731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f4b07664 RM |
5732 | as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" |
5733 | for as_dir in $as_dummy | |
3a12e572 UD |
5734 | do |
5735 | IFS=$as_save_IFS | |
5736 | test -z "$as_dir" && as_dir=. | |
5737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 5738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3a12e572 | 5739 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
322e23db | 5740 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5741 | break 2 |
5742 | fi | |
5743 | done | |
5744 | done | |
26f56c1c | 5745 | IFS=$as_save_IFS |
3a12e572 | 5746 | |
c0016081 UD |
5747 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" |
5748 | ;; | |
5749 | esac | |
5750 | fi | |
3a12e572 | 5751 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
c0016081 | 5752 | if test -n "$INSTALL_INFO"; then |
322e23db UD |
5753 | { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
5754 | $as_echo "$INSTALL_INFO" >&6; } | |
c0016081 | 5755 | else |
322e23db UD |
5756 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5757 | $as_echo "no" >&6; } | |
c0016081 UD |
5758 | fi |
5759 | ||
26f56c1c | 5760 | |
ae113383 UD |
5761 | # Extract the first word of "bison", so it can be a program name with args. |
5762 | set dummy bison; ac_word=$2 | |
322e23db UD |
5763 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5764 | $as_echo_n "checking for $ac_word... " >&6; } | |
3a12e572 | 5765 | if test "${ac_cv_path_BISON+set}" = set; then |
322e23db | 5766 | $as_echo_n "(cached) " >&6 |
ae113383 | 5767 | else |
3a12e572 UD |
5768 | case $BISON in |
5769 | [\\/]* | ?:[\\/]*) | |
ae113383 UD |
5770 | ac_cv_path_BISON="$BISON" # Let the user override the test with a path. |
5771 | ;; | |
ae113383 | 5772 | *) |
3a12e572 | 5773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f4b07664 RM |
5774 | as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin" |
5775 | for as_dir in $as_dummy | |
3a12e572 UD |
5776 | do |
5777 | IFS=$as_save_IFS | |
5778 | test -z "$as_dir" && as_dir=. | |
5779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26f56c1c | 5780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3a12e572 | 5781 | ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" |
322e23db | 5782 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5783 | break 2 |
5784 | fi | |
5785 | done | |
5786 | done | |
26f56c1c | 5787 | IFS=$as_save_IFS |
3a12e572 | 5788 | |
ae113383 UD |
5789 | test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no" |
5790 | ;; | |
5791 | esac | |
5792 | fi | |
3a12e572 | 5793 | BISON=$ac_cv_path_BISON |
ae113383 | 5794 | if test -n "$BISON"; then |
322e23db UD |
5795 | { $as_echo "$as_me:$LINENO: result: $BISON" >&5 |
5796 | $as_echo "$BISON" >&6; } | |
ae113383 | 5797 | else |
322e23db UD |
5798 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5799 | $as_echo "no" >&6; } | |
ae113383 UD |
5800 | fi |
5801 | ||
5802 | ||
26f56c1c | 5803 | |
322e23db UD |
5804 | { $as_echo "$as_me:$LINENO: checking for signed size_t type" >&5 |
5805 | $as_echo_n "checking for signed size_t type... " >&6; } | |
3a12e572 | 5806 | if test "${libc_cv_signed_size_t+set}" = set; then |
322e23db | 5807 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
5808 | else |
5809 | echo '#include <stddef.h> | |
5810 | FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c | |
5811 | if eval "$ac_cpp conftest.c 2>/dev/null" \ | |
5812 | | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then | |
5813 | libc_cv_signed_size_t=no | |
5814 | else | |
5815 | libc_cv_signed_size_t=yes | |
5816 | fi | |
5817 | rm -f conftest* | |
5818 | fi | |
322e23db UD |
5819 | { $as_echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5 |
5820 | $as_echo "$libc_cv_signed_size_t" >&6; } | |
cd6ede75 UD |
5821 | if test $libc_cv_signed_size_t = yes; then |
5822 | cat >> confdefs.h <<\EOF | |
5823 | #undef __SIZE_TYPE__ | |
5824 | #define __SIZE_TYPE__ unsigned | |
5825 | EOF | |
5826 | fi | |
5827 | ||
322e23db UD |
5828 | { $as_echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5 |
5829 | $as_echo_n "checking for libc-friendly stddef.h... " >&6; } | |
3a12e572 | 5830 | if test "${libc_cv_friendly_stddef+set}" = set; then |
322e23db | 5831 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 5832 | else |
f4b07664 | 5833 | cat >conftest.$ac_ext <<_ACEOF |
2abf9ff1 RM |
5834 | /* confdefs.h. */ |
5835 | _ACEOF | |
5836 | cat confdefs.h >>conftest.$ac_ext | |
5837 | cat >>conftest.$ac_ext <<_ACEOF | |
5838 | /* end confdefs.h. */ | |
cd6ede75 UD |
5839 | #define __need_size_t |
5840 | #define __need_wchar_t | |
5841 | #include <stddef.h> | |
5842 | #define __need_NULL | |
5843 | #include <stddef.h> | |
3a12e572 UD |
5844 | int |
5845 | main () | |
5846 | { | |
cd6ede75 UD |
5847 | size_t size; wchar_t wchar; |
5848 | #ifdef offsetof | |
5849 | #error stddef.h ignored __need_* | |
5850 | #endif | |
5851 | if (&size == NULL || &wchar == NULL) abort (); | |
3a12e572 UD |
5852 | ; |
5853 | return 0; | |
5854 | } | |
5855 | _ACEOF | |
5856 | rm -f conftest.$ac_objext | |
26f56c1c UD |
5857 | if { (ac_try="$ac_compile" |
5858 | case "(($ac_try" in | |
5859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5860 | *) ac_try_echo=$ac_try;; | |
5861 | esac | |
322e23db UD |
5862 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5863 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 5864 | (eval "$ac_compile") 2>conftest.er1 |
3a12e572 | 5865 | ac_status=$? |
9382fcee RM |
5866 | grep -v '^ *+' conftest.er1 >conftest.err |
5867 | rm -f conftest.er1 | |
5868 | cat conftest.err >&5 | |
322e23db | 5869 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
5870 | (exit $ac_status); } && { |
5871 | test -z "$ac_c_werror_flag" || | |
5872 | test ! -s conftest.err | |
5873 | } && test -s conftest.$ac_objext; then | |
cd6ede75 UD |
5874 | libc_cv_friendly_stddef=yes |
5875 | else | |
322e23db | 5876 | $as_echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
5877 | sed 's/^/| /' conftest.$ac_ext >&5 |
5878 | ||
26f56c1c | 5879 | libc_cv_friendly_stddef=no |
cd6ede75 | 5880 | fi |
26f56c1c UD |
5881 | |
5882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cd6ede75 | 5883 | fi |
322e23db UD |
5884 | { $as_echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5 |
5885 | $as_echo "$libc_cv_friendly_stddef" >&6; } | |
cd6ede75 UD |
5886 | if test $libc_cv_friendly_stddef = yes; then |
5887 | config_vars="$config_vars | |
5888 | override stddef.h = # The installed <stddef.h> seems to be libc-friendly." | |
5889 | fi | |
5890 | ||
322e23db UD |
5891 | { $as_echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5 |
5892 | $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; } | |
3a12e572 | 5893 | if test "${libc_cv_need_minus_P+set}" = set; then |
322e23db | 5894 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
5895 | else |
5896 | cat > conftest.S <<EOF | |
5897 | #include "confdefs.h" | |
5898 | /* Nothing whatsoever. */ | |
5899 | EOF | |
3217788f | 5900 | if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5' |
61cea1c3 RM |
5901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5902 | (eval $ac_try) 2>&5 | |
5903 | ac_status=$? | |
322e23db | 5904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
61cea1c3 | 5905 | (exit $ac_status); }; }; then |
cd6ede75 UD |
5906 | libc_cv_need_minus_P=no |
5907 | else | |
5908 | libc_cv_need_minus_P=yes | |
5909 | fi | |
5910 | rm -f conftest* | |
5911 | fi | |
322e23db UD |
5912 | { $as_echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5 |
5913 | $as_echo "$libc_cv_need_minus_P" >&6; } | |
cd6ede75 UD |
5914 | if test $libc_cv_need_minus_P = yes; then |
5915 | config_vars="$config_vars | |
5916 | asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives." | |
5917 | fi | |
5918 | ||
322e23db UD |
5919 | { $as_echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5 |
5920 | $as_echo_n "checking whether .text pseudo-op must be used... " >&6; } | |
3a12e572 | 5921 | if test "${libc_cv_dot_text+set}" = set; then |
322e23db | 5922 | $as_echo_n "(cached) " >&6 |
2293395f UD |
5923 | else |
5924 | cat > conftest.s <<EOF | |
5925 | .text | |
5926 | EOF | |
5927 | libc_cv_dot_text= | |
3217788f | 5928 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' |
61cea1c3 RM |
5929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5930 | (eval $ac_try) 2>&5 | |
5931 | ac_status=$? | |
322e23db | 5932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
61cea1c3 | 5933 | (exit $ac_status); }; }; then |
2293395f UD |
5934 | libc_cv_dot_text=.text |
5935 | fi | |
5936 | rm -f conftest* | |
5937 | fi | |
5938 | ||
5939 | if test -z "$libc_cv_dot_text"; then | |
322e23db UD |
5940 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5941 | $as_echo "no" >&6; } | |
2293395f | 5942 | else |
322e23db UD |
5943 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
5944 | $as_echo "yes" >&6; } | |
2293395f UD |
5945 | fi |
5946 | ||
322e23db UD |
5947 | { $as_echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5 |
5948 | $as_echo_n "checking for assembler global-symbol directive... " >&6; } | |
3a12e572 | 5949 | if test "${libc_cv_asm_global_directive+set}" = set; then |
322e23db | 5950 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
5951 | else |
5952 | libc_cv_asm_global_directive=UNKNOWN | |
908c3d5b | 5953 | for ac_globl in .globl .global .EXPORT; do |
cd6ede75 | 5954 | cat > conftest.s <<EOF |
2293395f | 5955 | ${libc_cv_dot_text} |
908c3d5b | 5956 | ${ac_globl} foo |
cd6ede75 UD |
5957 | foo: |
5958 | EOF | |
3217788f | 5959 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' |
61cea1c3 RM |
5960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5961 | (eval $ac_try) 2>&5 | |
5962 | ac_status=$? | |
322e23db | 5963 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
61cea1c3 | 5964 | (exit $ac_status); }; }; then |
cd6ede75 UD |
5965 | libc_cv_asm_global_directive=${ac_globl} |
5966 | fi | |
5967 | rm -f conftest* | |
5968 | test $libc_cv_asm_global_directive != UNKNOWN && break | |
5969 | done | |
5970 | fi | |
322e23db UD |
5971 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5 |
5972 | $as_echo "$libc_cv_asm_global_directive" >&6; } | |
cd6ede75 | 5973 | if test $libc_cv_asm_global_directive = UNKNOWN; then |
322e23db UD |
5974 | { { $as_echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5 |
5975 | $as_echo "$as_me: error: cannot determine asm global directive" >&2;} | |
3a12e572 | 5976 | { (exit 1); exit 1; }; } |
cd6ede75 | 5977 | else |
3a12e572 | 5978 | cat >>confdefs.h <<_ACEOF |
cd6ede75 | 5979 | #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive} |
3a12e572 | 5980 | _ACEOF |
cd6ede75 UD |
5981 | |
5982 | fi | |
5983 | ||
322e23db UD |
5984 | { $as_echo "$as_me:$LINENO: checking for .set assembler directive" >&5 |
5985 | $as_echo_n "checking for .set assembler directive... " >&6; } | |
3a12e572 | 5986 | if test "${libc_cv_asm_set_directive+set}" = set; then |
322e23db | 5987 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
5988 | else |
5989 | cat > conftest.s <<EOF | |
2293395f | 5990 | ${libc_cv_dot_text} |
cd6ede75 UD |
5991 | foo: |
5992 | .set glibc_conftest_frobozz,foo | |
5993 | $libc_cv_asm_global_directive glibc_conftest_frobozz | |
5994 | EOF | |
5995 | # The alpha-dec-osf1 assembler gives only a warning for `.set' | |
5996 | # (but it doesn't work), so we must do a linking check to be sure. | |
5997 | cat > conftest1.c <<\EOF | |
5998 | extern int glibc_conftest_frobozz; | |
640f0119 | 5999 | void _start() { glibc_conftest_frobozz = 1; } |
cd6ede75 UD |
6000 | EOF |
6001 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
640f0119 | 6002 | -nostartfiles -nostdlib \ |
cd6ede75 UD |
6003 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then |
6004 | libc_cv_asm_set_directive=yes | |
6005 | else | |
6006 | libc_cv_asm_set_directive=no | |
6007 | fi | |
6008 | rm -f conftest* | |
6009 | fi | |
322e23db UD |
6010 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5 |
6011 | $as_echo "$libc_cv_asm_set_directive" >&6; } | |
cd6ede75 | 6012 | if test $libc_cv_asm_set_directive = yes; then |
3a12e572 | 6013 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 6014 | #define HAVE_ASM_SET_DIRECTIVE 1 |
3a12e572 | 6015 | _ACEOF |
cd6ede75 UD |
6016 | |
6017 | fi | |
6018 | ||
322e23db UD |
6019 | { $as_echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5 |
6020 | $as_echo_n "checking for assembler .type directive prefix... " >&6; } | |
3a12e572 | 6021 | if test "${libc_cv_asm_type_prefix+set}" = set; then |
322e23db | 6022 | $as_echo_n "(cached) " >&6 |
b88ac073 RM |
6023 | else |
6024 | libc_cv_asm_type_prefix=no | |
6025 | for ac_try_prefix in '@' '%' '#'; do | |
6026 | cat > conftest.s <<EOF | |
6027 | ${libc_cv_dot_text} | |
6028 | ${libc_cv_asm_global_directive} foo | |
6029 | .type foo, ${ac_try_prefix}object | |
6030 | .size foo, 1 | |
6031 | foo: | |
6032 | .byte 1 | |
6033 | EOF | |
3217788f | 6034 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' |
61cea1c3 RM |
6035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6036 | (eval $ac_try) 2>&5 | |
6037 | ac_status=$? | |
322e23db | 6038 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
61cea1c3 | 6039 | (exit $ac_status); }; }; then |
b88ac073 RM |
6040 | libc_cv_asm_type_prefix=${ac_try_prefix} |
6041 | fi | |
6042 | rm -f conftest* | |
6043 | test "x$libc_cv_asm_type_prefix" != xno && break | |
6044 | done | |
6045 | fi | |
322e23db UD |
6046 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5 |
6047 | $as_echo "$libc_cv_asm_type_prefix" >&6; } | |
b88ac073 | 6048 | if test "x$libc_cv_asm_type_prefix" != xno; then |
3a12e572 | 6049 | cat >>confdefs.h <<_ACEOF |
b88ac073 | 6050 | #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix} |
3a12e572 | 6051 | _ACEOF |
b88ac073 RM |
6052 | |
6053 | fi | |
6054 | ||
415ac3df UD |
6055 | { $as_echo "$as_me:$LINENO: checking for assembler gnu_unique_object symbol type" >&5 |
6056 | $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; } | |
6057 | if test "${libc_cv_asm_unique_object+set}" = set; then | |
6058 | $as_echo_n "(cached) " >&6 | |
6059 | else | |
6060 | cat > conftest.s <<EOF | |
6061 | ${libc_cv_dot_text} | |
6062 | _sym: | |
6063 | .type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object | |
6064 | EOF | |
6065 | if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then | |
6066 | libc_cv_asm_unique_object=yes | |
6067 | else | |
6068 | libc_cv_asm_unique_object=no | |
6069 | fi | |
6070 | rm -f conftest* | |
6071 | fi | |
6072 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_unique_object" >&5 | |
6073 | $as_echo "$libc_cv_asm_unique_object" >&6; } | |
6074 | if test $libc_cv_asm_unique_object = yes; then | |
6075 | cat >>confdefs.h <<\_ACEOF | |
6076 | #define HAVE_ASM_UNIQUE_OBJECT 1 | |
6077 | _ACEOF | |
6078 | ||
6079 | fi | |
6080 | ||
425ce2ed UD |
6081 | # For the multi-arch option we need support in the assembler. |
6082 | if test "$multi_arch" = yes; then | |
6083 | if test "x$libc_cv_asm_type_prefix" != xno; then | |
322e23db UD |
6084 | { $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5 |
6085 | $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; } | |
425ce2ed | 6086 | if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then |
322e23db | 6087 | $as_echo_n "(cached) " >&6 |
425ce2ed UD |
6088 | else |
6089 | cat > conftest.s <<EOF | |
6090 | .type foo,%gnu_indirect_function | |
6091 | EOF | |
6092 | if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; | |
6093 | then | |
6094 | libc_cv_asm_gnu_indirect_function=yes | |
6095 | else | |
6096 | libc_cv_asm_gnu_indirect_function=no | |
6097 | fi | |
6098 | rm -f conftest* | |
6099 | fi | |
322e23db UD |
6100 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5 |
6101 | $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; } | |
425ce2ed UD |
6102 | else |
6103 | libc_cv_asm_gnu_indirect_function=no | |
6104 | fi | |
6105 | if test x"$libc_cv_asm_gnu_indirect_function" != xyes; then | |
322e23db UD |
6106 | { { $as_echo "$as_me:$LINENO: error: --enable-multi-arch support requires assembler and linker support" >&5 |
6107 | $as_echo "$as_me: error: --enable-multi-arch support requires assembler and linker support" >&2;} | |
425ce2ed UD |
6108 | { (exit 1); exit 1; }; } |
6109 | fi | |
6110 | fi | |
6111 | ||
322e23db UD |
6112 | { $as_echo "$as_me:$LINENO: checking for .symver assembler directive" >&5 |
6113 | $as_echo_n "checking for .symver assembler directive... " >&6; } | |
3a12e572 | 6114 | if test "${libc_cv_asm_symver_directive+set}" = set; then |
322e23db | 6115 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
6116 | else |
6117 | cat > conftest.s <<EOF | |
2293395f | 6118 | ${libc_cv_dot_text} |
cd6ede75 UD |
6119 | _sym: |
6120 | .symver _sym,sym@VERS | |
6121 | EOF | |
3217788f | 6122 | if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then |
cd6ede75 UD |
6123 | libc_cv_asm_symver_directive=yes |
6124 | else | |
6125 | libc_cv_asm_symver_directive=no | |
6126 | fi | |
6127 | rm -f conftest* | |
6128 | fi | |
322e23db UD |
6129 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5 |
6130 | $as_echo "$libc_cv_asm_symver_directive" >&6; } | |
6131 | { $as_echo "$as_me:$LINENO: checking for ld --version-script" >&5 | |
6132 | $as_echo_n "checking for ld --version-script... " >&6; } | |
3a12e572 | 6133 | if test "${libc_cv_ld_version_script_option+set}" = set; then |
322e23db | 6134 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
6135 | else |
6136 | if test $libc_cv_asm_symver_directive = yes; then | |
6137 | cat > conftest.s <<EOF | |
2293395f | 6138 | ${libc_cv_dot_text} |
cd6ede75 UD |
6139 | _sym: |
6140 | .symver _sym,sym@VERS | |
6141 | EOF | |
6142 | cat > conftest.map <<EOF | |
f43ce637 | 6143 | VERS_1 { |
cd6ede75 UD |
6144 | global: sym; |
6145 | }; | |
f43ce637 UD |
6146 | |
6147 | VERS_2 { | |
6148 | global: sym; | |
6149 | } VERS_1; | |
cd6ede75 | 6150 | EOF |
3217788f RM |
6151 | if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then |
6152 | if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared | |
6153 | -o conftest.so conftest.o | |
6154 | -nostartfiles -nostdlib | |
6155 | -Wl,--version-script,conftest.map | |
3a12e572 UD |
6156 | 1>&5' |
6157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6158 | (eval $ac_try) 2>&5 | |
6159 | ac_status=$? | |
322e23db | 6160 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 6161 | (exit $ac_status); }; }; |
cd6ede75 UD |
6162 | then |
6163 | libc_cv_ld_version_script_option=yes | |
6164 | else | |
6165 | libc_cv_ld_version_script_option=no | |
6166 | fi | |
6167 | else | |
6168 | libc_cv_ld_version_script_option=no | |
6169 | fi | |
6170 | else | |
6171 | libc_cv_ld_version_script_option=no | |
6172 | fi | |
6173 | rm -f conftest* | |
6174 | fi | |
322e23db UD |
6175 | { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5 |
6176 | $as_echo "$libc_cv_ld_version_script_option" >&6; } | |
7499a22a RM |
6177 | if test $shared != no && |
6178 | test $libc_cv_asm_symver_directive = yes && | |
650425ce UD |
6179 | test $libc_cv_ld_version_script_option = yes && |
6180 | test $enable_versioning = yes; then | |
cd6ede75 | 6181 | VERSIONING=yes |
3a12e572 | 6182 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 6183 | #define DO_VERSIONING 1 |
3a12e572 | 6184 | _ACEOF |
cd6ede75 UD |
6185 | |
6186 | else | |
6187 | VERSIONING=no | |
6188 | fi | |
6189 | ||
6190 | ||
22af13de | 6191 | if test $elf = yes && test $shared != no && test $VERSIONING = no; then |
f43ce637 | 6192 | echo "\ |
f4017d20 | 6193 | *** WARNING: You should not compile GNU libc without versioning. Not using |
f43ce637 UD |
6194 | *** versioning will introduce incompatibilities so that old binaries |
6195 | *** will not run anymore. | |
08a0d60a | 6196 | *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)." |
f43ce637 | 6197 | fi |
cd6ede75 | 6198 | if test $elf = yes; then |
322e23db UD |
6199 | { $as_echo "$as_me:$LINENO: checking for .previous assembler directive" >&5 |
6200 | $as_echo_n "checking for .previous assembler directive... " >&6; } | |
3a12e572 | 6201 | if test "${libc_cv_asm_previous_directive+set}" = set; then |
322e23db | 6202 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
6203 | else |
6204 | cat > conftest.s <<EOF | |
6205 | .section foo_section | |
6206 | .previous | |
6207 | EOF | |
3217788f | 6208 | if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' |
3a12e572 UD |
6209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6210 | (eval $ac_try) 2>&5 | |
6211 | ac_status=$? | |
322e23db | 6212 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 6213 | (exit $ac_status); }; }; then |
cd6ede75 UD |
6214 | libc_cv_asm_previous_directive=yes |
6215 | else | |
6216 | libc_cv_asm_previous_directive=no | |
6217 | fi | |
6218 | rm -f conftest* | |
6219 | fi | |
322e23db UD |
6220 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5 |
6221 | $as_echo "$libc_cv_asm_previous_directive" >&6; } | |
cd6ede75 | 6222 | if test $libc_cv_asm_previous_directive = yes; then |
3a12e572 | 6223 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 6224 | #define HAVE_ASM_PREVIOUS_DIRECTIVE 1 |
3a12e572 | 6225 | _ACEOF |
cd6ede75 UD |
6226 | |
6227 | else | |
322e23db UD |
6228 | { $as_echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5 |
6229 | $as_echo_n "checking for .popsection assembler directive... " >&6; } | |
3a12e572 | 6230 | if test "${libc_cv_asm_popsection_directive+set}" = set; then |
322e23db | 6231 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
6232 | else |
6233 | cat > conftest.s <<EOF | |
6234 | .pushsection foo_section | |
6235 | .popsection | |
6236 | EOF | |
3217788f | 6237 | if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' |
3a12e572 UD |
6238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6239 | (eval $ac_try) 2>&5 | |
6240 | ac_status=$? | |
322e23db | 6241 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 6242 | (exit $ac_status); }; }; then |
cd6ede75 UD |
6243 | libc_cv_asm_popsection_directive=yes |
6244 | else | |
6245 | libc_cv_asm_popsection_directive=no | |
6246 | fi | |
6247 | rm -f conftest* | |
6248 | fi | |
322e23db UD |
6249 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5 |
6250 | $as_echo "$libc_cv_asm_popsection_directive" >&6; } | |
cd6ede75 | 6251 | if test $libc_cv_asm_popsection_directive = yes; then |
3a12e572 | 6252 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 6253 | #define HAVE_ASM_POPSECTION_DIRECTIVE 1 |
3a12e572 | 6254 | _ACEOF |
cd6ede75 UD |
6255 | |
6256 | fi | |
6257 | fi | |
322e23db UD |
6258 | { $as_echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5 |
6259 | $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; } | |
3a12e572 | 6260 | if test "${libc_cv_asm_protected_directive+set}" = set; then |
322e23db | 6261 | $as_echo_n "(cached) " >&6 |
2d499f55 UD |
6262 | else |
6263 | cat > conftest.s <<EOF | |
6264 | .protected foo | |
6265 | foo: | |
6266 | .hidden bar | |
6267 | bar: | |
6268 | EOF | |
3217788f | 6269 | if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' |
3a12e572 UD |
6270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6271 | (eval $ac_try) 2>&5 | |
6272 | ac_status=$? | |
322e23db | 6273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 6274 | (exit $ac_status); }; }; then |
2d499f55 UD |
6275 | libc_cv_asm_protected_directive=yes |
6276 | else | |
322e23db UD |
6277 | { { $as_echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5 |
6278 | $as_echo "$as_me: error: assembler support for symbol visibility is required" >&2;} | |
11bf311e | 6279 | { (exit 1); exit 1; }; } |
2d499f55 UD |
6280 | fi |
6281 | rm -f conftest* | |
6282 | fi | |
322e23db UD |
6283 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5 |
6284 | $as_echo "$libc_cv_asm_protected_directive" >&6; } | |
2d499f55 | 6285 | |
0d01dace | 6286 | if test $libc_cv_asm_protected_directive = yes; then |
322e23db UD |
6287 | { $as_echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5 |
6288 | $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; } | |
3a12e572 | 6289 | if test "${libc_cv_visibility_attribute+set}" = set; then |
322e23db | 6290 | $as_echo_n "(cached) " >&6 |
0d01dace UD |
6291 | else |
6292 | cat > conftest.c <<EOF | |
6293 | int foo __attribute__ ((visibility ("hidden"))) = 1; | |
6294 | int bar __attribute__ ((visibility ("protected"))) = 1; | |
6295 | EOF | |
6296 | libc_cv_visibility_attribute=no | |
61cea1c3 RM |
6297 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' |
6298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6299 | (eval $ac_try) 2>&5 | |
6300 | ac_status=$? | |
322e23db | 6301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
61cea1c3 | 6302 | (exit $ac_status); }; }; then |
0d01dace UD |
6303 | if grep '\.hidden.*foo' conftest.s >/dev/null; then |
6304 | if grep '\.protected.*bar' conftest.s >/dev/null; then | |
6305 | libc_cv_visibility_attribute=yes | |
6306 | fi | |
6307 | fi | |
6308 | fi | |
6309 | rm -f conftest.cs | |
0d01dace | 6310 | |
3a12e572 | 6311 | fi |
322e23db UD |
6312 | { $as_echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5 |
6313 | $as_echo "$libc_cv_visibility_attribute" >&6; } | |
11bf311e | 6314 | if test $libc_cv_visibility_attribute != yes; then |
322e23db UD |
6315 | { { $as_echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5 |
6316 | $as_echo "$as_me: error: compiler support for visibility attribute is required" >&2;} | |
11bf311e | 6317 | { (exit 1); exit 1; }; } |
0d01dace UD |
6318 | fi |
6319 | fi | |
6320 | ||
37ba7d66 | 6321 | if test $libc_cv_visibility_attribute = yes; then |
322e23db UD |
6322 | { $as_echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5 |
6323 | $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; } | |
3a12e572 | 6324 | if test "${libc_cv_broken_visibility_attribute+set}" = set; then |
322e23db | 6325 | $as_echo_n "(cached) " >&6 |
37ba7d66 UD |
6326 | else |
6327 | cat > conftest.c <<EOF | |
6328 | int foo (int x); | |
6329 | int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden"))); | |
6330 | int bar (int x) { return x; } | |
6331 | EOF | |
6332 | libc_cv_broken_visibility_attribute=yes | |
61cea1c3 RM |
6333 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5' |
6334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6335 | (eval $ac_try) 2>&5 | |
6336 | ac_status=$? | |
322e23db | 6337 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
61cea1c3 | 6338 | (exit $ac_status); }; }; then |
37ba7d66 UD |
6339 | if grep '\.hidden[ _]foo' conftest.s >/dev/null; then |
6340 | libc_cv_broken_visibility_attribute=no | |
6341 | fi | |
6342 | fi | |
6343 | rm -f conftest.c conftest.s | |
37ba7d66 | 6344 | |
3a12e572 | 6345 | fi |
322e23db UD |
6346 | { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5 |
6347 | $as_echo "$libc_cv_broken_visibility_attribute" >&6; } | |
37ba7d66 | 6348 | if test $libc_cv_broken_visibility_attribute = yes; then |
322e23db UD |
6349 | { { $as_echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5 |
6350 | $as_echo "$as_me: error: working compiler support for visibility attribute is required" >&2;} | |
11bf311e | 6351 | { (exit 1); exit 1; }; } |
37ba7d66 UD |
6352 | fi |
6353 | fi | |
6354 | ||
322e23db UD |
6355 | { $as_echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5 |
6356 | $as_echo_n "checking for broken __attribute__((alias()))... " >&6; } | |
3a12e572 | 6357 | if test "${libc_cv_broken_alias_attribute+set}" = set; then |
322e23db | 6358 | $as_echo_n "(cached) " >&6 |
37ba7d66 UD |
6359 | else |
6360 | cat > conftest.c <<EOF | |
6361 | extern int foo (int x) __asm ("xyzzy"); | |
6362 | int bar (int x) { return x; } | |
48b8e846 UD |
6363 | extern __typeof (bar) foo __attribute ((weak, alias ("bar"))); |
6364 | extern int dfoo; | |
6365 | extern __typeof (dfoo) dfoo __asm ("abccb"); | |
6366 | int dfoo = 1; | |
37ba7d66 UD |
6367 | EOF |
6368 | libc_cv_broken_alias_attribute=yes | |
61cea1c3 RM |
6369 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' |
6370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6371 | (eval $ac_try) 2>&5 | |
6372 | ac_status=$? | |
322e23db | 6373 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
61cea1c3 | 6374 | (exit $ac_status); }; }; then |
48b8e846 UD |
6375 | if grep 'xyzzy' conftest.s >/dev/null && |
6376 | grep 'abccb' conftest.s >/dev/null; then | |
37ba7d66 UD |
6377 | libc_cv_broken_alias_attribute=no |
6378 | fi | |
6379 | fi | |
6380 | rm -f conftest.c conftest.s | |
37ba7d66 | 6381 | |
3a12e572 | 6382 | fi |
322e23db UD |
6383 | { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5 |
6384 | $as_echo "$libc_cv_broken_alias_attribute" >&6; } | |
37ba7d66 | 6385 | if test $libc_cv_broken_alias_attribute = yes; then |
322e23db UD |
6386 | { { $as_echo "$as_me:$LINENO: error: working alias attribute support required" >&5 |
6387 | $as_echo "$as_me: error: working alias attribute support required" >&2;} | |
11bf311e | 6388 | { (exit 1); exit 1; }; } |
37ba7d66 UD |
6389 | fi |
6390 | ||
8e635611 | 6391 | if test $libc_cv_visibility_attribute = yes; then |
322e23db UD |
6392 | { $as_echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5 |
6393 | $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; } | |
3a12e572 | 6394 | if test "${libc_cv_have_sdata_section+set}" = set; then |
322e23db | 6395 | $as_echo_n "(cached) " >&6 |
0d01dace UD |
6396 | else |
6397 | echo "int i;" > conftest.c | |
6398 | libc_cv_have_sdata_section=no | |
dbc92dc6 | 6399 | if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \ |
0d01dace UD |
6400 | | grep '\.sdata' >/dev/null; then |
6401 | libc_cv_have_sdata_section=yes | |
6402 | fi | |
6403 | rm -f conftest.c conftest.so | |
0d01dace | 6404 | |
3a12e572 | 6405 | fi |
322e23db UD |
6406 | { $as_echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5 |
6407 | $as_echo "$libc_cv_have_sdata_section" >&6; } | |
0d01dace | 6408 | if test $libc_cv_have_sdata_section = yes; then |
3a12e572 | 6409 | cat >>confdefs.h <<\_ACEOF |
0d01dace | 6410 | #define HAVE_SDATA_SECTION 1 |
3a12e572 | 6411 | _ACEOF |
0d01dace UD |
6412 | |
6413 | fi | |
6414 | fi | |
6415 | ||
322e23db UD |
6416 | { $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5 |
6417 | $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; } | |
ce33ee7c | 6418 | if test "${libc_cv_initfini_array+set}" = set; then |
322e23db | 6419 | $as_echo_n "(cached) " >&6 |
2c617417 UD |
6420 | else |
6421 | cat > conftest.c <<EOF | |
6422 | int _start (void) { return 0; } | |
6423 | int __start (void) { return 0; } | |
6424 | int foo (void) { return 1; } | |
6425 | int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; | |
6426 | EOF | |
3217788f | 6427 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c |
3a12e572 UD |
6428 | -static -nostartfiles -nostdlib 1>&5' |
6429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6430 | (eval $ac_try) 2>&5 | |
6431 | ac_status=$? | |
322e23db | 6432 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 6433 | (exit $ac_status); }; } |
2c617417 UD |
6434 | then |
6435 | if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then | |
ce33ee7c | 6436 | libc_cv_initfini_array=yes |
2c617417 | 6437 | else |
ce33ee7c | 6438 | libc_cv_initfini_array=no |
2c617417 UD |
6439 | fi |
6440 | else | |
ce33ee7c | 6441 | libc_cv_initfini_array=no |
2c617417 UD |
6442 | fi |
6443 | rm -f conftest* | |
6444 | fi | |
322e23db UD |
6445 | { $as_echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5 |
6446 | $as_echo "$libc_cv_initfini_array" >&6; } | |
ce33ee7c | 6447 | if test $libc_cv_initfini_array != yes; then |
322e23db UD |
6448 | { { $as_echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5 |
6449 | $as_echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;} | |
ce33ee7c | 6450 | { (exit 1); exit 1; }; } |
2c617417 UD |
6451 | fi |
6452 | ||
322e23db UD |
6453 | { $as_echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5 |
6454 | $as_echo_n "checking for libunwind-support in compiler... " >&6; } | |
c776b3d7 | 6455 | if test "${libc_cv_cc_with_libunwind+set}" = set; then |
322e23db | 6456 | $as_echo_n "(cached) " >&6 |
c776b3d7 | 6457 | else |
c776b3d7 | 6458 | |
cbdb12de UD |
6459 | cat > conftest.c <<EOF |
6460 | int main (void) { return 0; } | |
6461 | EOF | |
6462 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \ | |
6463 | conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then | |
6464 | libc_cv_cc_with_libunwind=yes | |
6465 | else | |
6466 | libc_cv_cc_with_libunwind=no | |
6467 | fi | |
6468 | rm -f conftest* | |
c776b3d7 | 6469 | fi |
322e23db UD |
6470 | { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5 |
6471 | $as_echo "$libc_cv_cc_with_libunwind" >&6; } | |
c776b3d7 UD |
6472 | |
6473 | if test $libc_cv_cc_with_libunwind = yes; then | |
6474 | cat >>confdefs.h <<\_ACEOF | |
6475 | #define HAVE_CC_WITH_LIBUNWIND 1 | |
6476 | _ACEOF | |
6477 | ||
6478 | fi | |
6479 | ||
322e23db UD |
6480 | { $as_echo "$as_me:$LINENO: checking for -z nodelete option" >&5 |
6481 | $as_echo_n "checking for -z nodelete option... " >&6; } | |
3a12e572 | 6482 | if test "${libc_cv_z_nodelete+set}" = set; then |
322e23db | 6483 | $as_echo_n "(cached) " >&6 |
2f54c82d UD |
6484 | else |
6485 | cat > conftest.c <<EOF | |
6486 | int _start (void) { return 42; } | |
6487 | EOF | |
3217788f | 6488 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
dbc92dc6 | 6489 | -fPIC -shared -o conftest.so conftest.c |
35cd3c97 | 6490 | -nostartfiles -nostdlib |
3a12e572 UD |
6491 | -Wl,--enable-new-dtags,-z,nodelete 1>&5' |
6492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6493 | (eval $ac_try) 2>&5 | |
6494 | ac_status=$? | |
322e23db | 6495 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 6496 | (exit $ac_status); }; } |
2f54c82d UD |
6497 | then |
6498 | libc_cv_z_nodelete=yes | |
6499 | else | |
322e23db UD |
6500 | { { $as_echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5 |
6501 | $as_echo "$as_me: error: linker with -z nodelete support required" >&2;} | |
11bf311e | 6502 | { (exit 1); exit 1; }; } |
2f54c82d UD |
6503 | fi |
6504 | rm -f conftest* | |
6505 | fi | |
322e23db UD |
6506 | { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5 |
6507 | $as_echo "$libc_cv_z_nodelete" >&6; } | |
2f54c82d | 6508 | |
322e23db UD |
6509 | { $as_echo "$as_me:$LINENO: checking for -z nodlopen option" >&5 |
6510 | $as_echo_n "checking for -z nodlopen option... " >&6; } | |
3a12e572 | 6511 | if test "${libc_cv_z_nodlopen+set}" = set; then |
322e23db | 6512 | $as_echo_n "(cached) " >&6 |
2f54c82d UD |
6513 | else |
6514 | cat > conftest.c <<EOF | |
6515 | int _start (void) { return 42; } | |
6516 | EOF | |
3217788f | 6517 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
dbc92dc6 | 6518 | -fPIC -shared -o conftest.so conftest.c |
35cd3c97 | 6519 | -nostartfiles -nostdlib |
3a12e572 UD |
6520 | -Wl,--enable-new-dtags,-z,nodlopen 1>&5' |
6521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6522 | (eval $ac_try) 2>&5 | |
6523 | ac_status=$? | |
322e23db | 6524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 6525 | (exit $ac_status); }; } |
2f54c82d UD |
6526 | then |
6527 | libc_cv_z_nodlopen=yes | |
6528 | else | |
322e23db UD |
6529 | { { $as_echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5 |
6530 | $as_echo "$as_me: error: linker with -z nodlopen support required" >&2;} | |
11bf311e | 6531 | { (exit 1); exit 1; }; } |
2f54c82d UD |
6532 | fi |
6533 | rm -f conftest* | |
6534 | fi | |
322e23db UD |
6535 | { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5 |
6536 | $as_echo "$libc_cv_z_nodlopen" >&6; } | |
2f54c82d | 6537 | |
322e23db UD |
6538 | { $as_echo "$as_me:$LINENO: checking for -z initfirst option" >&5 |
6539 | $as_echo_n "checking for -z initfirst option... " >&6; } | |
3a12e572 | 6540 | if test "${libc_cv_z_initfirst+set}" = set; then |
322e23db | 6541 | $as_echo_n "(cached) " >&6 |
5d916713 UD |
6542 | else |
6543 | cat > conftest.c <<EOF | |
6544 | int _start (void) { return 42; } | |
6545 | EOF | |
3217788f | 6546 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
dbc92dc6 | 6547 | -fPIC -shared -o conftest.so conftest.c |
35cd3c97 | 6548 | -nostartfiles -nostdlib |
3a12e572 UD |
6549 | -Wl,--enable-new-dtags,-z,initfirst 1>&5' |
6550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6551 | (eval $ac_try) 2>&5 | |
6552 | ac_status=$? | |
322e23db | 6553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 6554 | (exit $ac_status); }; } |
5d916713 UD |
6555 | then |
6556 | libc_cv_z_initfirst=yes | |
6557 | else | |
322e23db UD |
6558 | { { $as_echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5 |
6559 | $as_echo "$as_me: error: linker with -z initfirst support required" >&2;} | |
11bf311e | 6560 | { (exit 1); exit 1; }; } |
5d916713 UD |
6561 | fi |
6562 | rm -f conftest* | |
6563 | fi | |
322e23db UD |
6564 | { $as_echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5 |
6565 | $as_echo "$libc_cv_z_initfirst" >&6; } | |
5d916713 | 6566 | |
11bf311e UD |
6567 | case "$base_machine" in |
6568 | i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*) | |
322e23db UD |
6569 | { $as_echo "$as_me:$LINENO: checking for -z relro option" >&5 |
6570 | $as_echo_n "checking for -z relro option... " >&6; } | |
ed20b3d9 | 6571 | if test "${libc_cv_z_relro+set}" = set; then |
322e23db | 6572 | $as_echo_n "(cached) " >&6 |
ed20b3d9 | 6573 | else |
54beacab UD |
6574 | libc_cv_z_relro=no |
6575 | if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5' | |
ed20b3d9 UD |
6576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6577 | (eval $ac_try) 2>&5 | |
6578 | ac_status=$? | |
322e23db | 6579 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ed20b3d9 UD |
6580 | (exit $ac_status); }; } |
6581 | then | |
54beacab UD |
6582 | if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5' |
6583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6584 | (eval $ac_try) 2>&5 | |
6585 | ac_status=$? | |
322e23db | 6586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
54beacab UD |
6587 | (exit $ac_status); }; } |
6588 | then | |
6589 | libc_cv_z_relro=yes | |
6590 | fi | |
ed20b3d9 UD |
6591 | fi |
6592 | fi | |
322e23db UD |
6593 | { $as_echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5 |
6594 | $as_echo "$libc_cv_z_relro" >&6; } | |
11bf311e | 6595 | if test "$libc_cv_z_relro" = no; then |
322e23db UD |
6596 | { { $as_echo "$as_me:$LINENO: error: linker with -z relro support required" >&5 |
6597 | $as_echo "$as_me: error: linker with -z relro support required" >&2;} | |
11bf311e UD |
6598 | { (exit 1); exit 1; }; } |
6599 | fi | |
6600 | ;; | |
6601 | *) ;; | |
6602 | esac | |
ed20b3d9 | 6603 | |
322e23db UD |
6604 | { $as_echo "$as_me:$LINENO: checking for -Bgroup option" >&5 |
6605 | $as_echo_n "checking for -Bgroup option... " >&6; } | |
3a12e572 | 6606 | if test "${libc_cv_Bgroup+set}" = set; then |
322e23db | 6607 | $as_echo_n "(cached) " >&6 |
639c3248 UD |
6608 | else |
6609 | cat > conftest.c <<EOF | |
6610 | int _start (void) { return 42; } | |
6611 | EOF | |
3217788f | 6612 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
dbc92dc6 | 6613 | -fPIC -shared -o conftest.so conftest.c |
3217788f | 6614 | -Wl,-Bgroup -nostdlib 1>&5' |
3a12e572 UD |
6615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6616 | (eval $ac_try) 2>&5 | |
6617 | ac_status=$? | |
322e23db | 6618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 6619 | (exit $ac_status); }; } |
639c3248 UD |
6620 | then |
6621 | libc_cv_Bgroup=yes | |
6622 | else | |
6623 | libc_cv_Bgroup=no | |
6624 | fi | |
6625 | rm -f conftest* | |
6626 | fi | |
322e23db UD |
6627 | { $as_echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5 |
6628 | $as_echo "$libc_cv_Bgroup" >&6; } | |
639c3248 | 6629 | |
a711b01d | 6630 | |
322e23db UD |
6631 | { $as_echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5 |
6632 | $as_echo_n "checking for libgcc_s suffix... " >&6; } | |
66b3d198 | 6633 | if test "${libc_cv_libgcc_s_suffix+set}" = set; then |
322e23db | 6634 | $as_echo_n "(cached) " >&6 |
66b3d198 UD |
6635 | else |
6636 | cat > conftest.c <<EOF | |
6637 | int main (void) { return 0; } | |
6638 | EOF | |
6639 | libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
dbc92dc6 | 6640 | -fPIC -shared -shared-libgcc -o conftest.so \ |
66b3d198 UD |
6641 | conftest.c -v 2>&1 >/dev/null \ |
6642 | | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` | |
6643 | rm -f conftest* | |
6644 | fi | |
322e23db UD |
6645 | { $as_echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5 |
6646 | $as_echo "$libc_cv_libgcc_s_suffix" >&6; } | |
66b3d198 UD |
6647 | |
6648 | ||
322e23db UD |
6649 | { $as_echo "$as_me:$LINENO: checking for --as-needed option" >&5 |
6650 | $as_echo_n "checking for --as-needed option... " >&6; } | |
78ec7d8c | 6651 | if test "${libc_cv_as_needed+set}" = set; then |
322e23db | 6652 | $as_echo_n "(cached) " >&6 |
78ec7d8c UD |
6653 | else |
6654 | cat > conftest.c <<EOF | |
6655 | int main (void) { return 0; } | |
6656 | EOF | |
6657 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS | |
dbc92dc6 | 6658 | -fPIC -shared -o conftest.so conftest.c |
66b3d198 UD |
6659 | -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed |
6660 | -nostdlib 1>&5' | |
78ec7d8c UD |
6661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6662 | (eval $ac_try) 2>&5 | |
6663 | ac_status=$? | |
322e23db | 6664 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
78ec7d8c UD |
6665 | (exit $ac_status); }; } |
6666 | then | |
6667 | libc_cv_as_needed=yes | |
6668 | else | |
6669 | libc_cv_as_needed=no | |
6670 | fi | |
6671 | rm -f conftest* | |
6672 | fi | |
322e23db UD |
6673 | { $as_echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5 |
6674 | $as_echo "$libc_cv_as_needed" >&6; } | |
78ec7d8c UD |
6675 | |
6676 | ||
35915ec8 | 6677 | ASFLAGS_config= |
322e23db UD |
6678 | { $as_echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5 |
6679 | $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; } | |
35915ec8 | 6680 | if test "${libc_cv_as_noexecstack+set}" = set; then |
322e23db | 6681 | $as_echo_n "(cached) " >&6 |
35915ec8 UD |
6682 | else |
6683 | cat > conftest.c <<EOF | |
6684 | void foo (void) { } | |
6685 | EOF | |
6686 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS | |
6687 | -S -o conftest.s conftest.c 1>&5' | |
6688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6689 | (eval $ac_try) 2>&5 | |
6690 | ac_status=$? | |
322e23db | 6691 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35915ec8 UD |
6692 | (exit $ac_status); }; } \ |
6693 | && grep -q .note.GNU-stack conftest.s \ | |
215a8745 | 6694 | && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack |
35915ec8 UD |
6695 | -c -o conftest.o conftest.s 1>&5' |
6696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6697 | (eval $ac_try) 2>&5 | |
6698 | ac_status=$? | |
322e23db | 6699 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35915ec8 UD |
6700 | (exit $ac_status); }; } |
6701 | then | |
6702 | libc_cv_as_noexecstack=yes | |
6703 | else | |
6704 | libc_cv_as_noexecstack=no | |
6705 | fi | |
6706 | rm -f conftest* | |
6707 | fi | |
322e23db UD |
6708 | { $as_echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5 |
6709 | $as_echo "$libc_cv_as_noexecstack" >&6; } | |
35915ec8 UD |
6710 | if test $libc_cv_as_noexecstack = yes; then |
6711 | ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack" | |
6712 | fi | |
6713 | ||
2abf9ff1 | 6714 | |
322e23db UD |
6715 | { $as_echo "$as_me:$LINENO: checking for -z combreloc" >&5 |
6716 | $as_echo_n "checking for -z combreloc... " >&6; } | |
3a12e572 | 6717 | if test "${libc_cv_z_combreloc+set}" = set; then |
322e23db | 6718 | $as_echo_n "(cached) " >&6 |
a711b01d UD |
6719 | else |
6720 | cat > conftest.c <<EOF | |
d555194c UD |
6721 | extern int bar (int); |
6722 | extern int mumble; | |
6723 | int foo (void) { return bar (mumble); } | |
a711b01d | 6724 | EOF |
3217788f | 6725 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
dbc92dc6 | 6726 | -fPIC -shared -o conftest.so conftest.c |
35cd3c97 | 6727 | -nostdlib -nostartfiles |
3a12e572 UD |
6728 | -Wl,-z,combreloc 1>&5' |
6729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6730 | (eval $ac_try) 2>&5 | |
6731 | ac_status=$? | |
322e23db | 6732 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 6733 | (exit $ac_status); }; } |
a711b01d | 6734 | then |
fdde8349 UD |
6735 | if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then |
6736 | libc_cv_z_combreloc=yes | |
6737 | else | |
6738 | libc_cv_z_combreloc=no | |
a711b01d | 6739 | fi |
fdde8349 UD |
6740 | else |
6741 | libc_cv_z_combreloc=no | |
a711b01d UD |
6742 | fi |
6743 | rm -f conftest* | |
6744 | fi | |
322e23db UD |
6745 | { $as_echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5 |
6746 | $as_echo "$libc_cv_z_combreloc" >&6; } | |
fdde8349 | 6747 | if test "$libc_cv_z_combreloc" = yes; then |
3a12e572 | 6748 | cat >>confdefs.h <<\_ACEOF |
fdde8349 | 6749 | #define HAVE_Z_COMBRELOC 1 |
3a12e572 | 6750 | _ACEOF |
fdde8349 UD |
6751 | |
6752 | fi | |
2abf9ff1 RM |
6753 | |
6754 | ||
322e23db UD |
6755 | { $as_echo "$as_me:$LINENO: checking for -z execstack" >&5 |
6756 | $as_echo_n "checking for -z execstack... " >&6; } | |
2abf9ff1 | 6757 | if test "${libc_cv_z_execstack+set}" = set; then |
322e23db | 6758 | $as_echo_n "(cached) " >&6 |
2abf9ff1 RM |
6759 | else |
6760 | cat > conftest.c <<EOF | |
6761 | int _start (void) { return 42; } | |
6762 | EOF | |
6763 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS | |
dbc92dc6 | 6764 | -fPIC -shared -o conftest.so conftest.c |
2abf9ff1 RM |
6765 | -Wl,-z,execstack -nostdlib |
6766 | 1>&5' | |
6767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6768 | (eval $ac_try) 2>&5 | |
6769 | ac_status=$? | |
322e23db | 6770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2abf9ff1 RM |
6771 | (exit $ac_status); }; } |
6772 | then | |
6773 | libc_cv_z_execstack=yes | |
6774 | else | |
6775 | libc_cv_z_execstack=no | |
6776 | fi | |
6777 | rm -f conftest* | |
cd6ede75 | 6778 | fi |
322e23db UD |
6779 | { $as_echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5 |
6780 | $as_echo "$libc_cv_z_execstack" >&6; } | |
cd6ede75 | 6781 | |
0f124303 | 6782 | |
322e23db UD |
6783 | { $as_echo "$as_me:$LINENO: checking for -fpie" >&5 |
6784 | $as_echo_n "checking for -fpie... " >&6; } | |
0f124303 | 6785 | if test "${libc_cv_fpie+set}" = set; then |
322e23db | 6786 | $as_echo_n "(cached) " >&6 |
0f124303 UD |
6787 | else |
6788 | cat > conftest.c <<EOF | |
6789 | int foo; | |
49803108 | 6790 | main () { return 0;} |
0f124303 UD |
6791 | EOF |
6792 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie | |
6793 | -o conftest conftest.c 1>&5' | |
6794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6795 | (eval $ac_try) 2>&5 | |
6796 | ac_status=$? | |
322e23db | 6797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
0f124303 UD |
6798 | (exit $ac_status); }; } |
6799 | then | |
6800 | libc_cv_fpie=yes | |
6801 | else | |
6802 | libc_cv_fpie=no | |
6803 | fi | |
6804 | rm -f conftest* | |
6805 | fi | |
322e23db UD |
6806 | { $as_echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5 |
6807 | $as_echo "$libc_cv_fpie" >&6; } | |
0f124303 UD |
6808 | |
6809 | ||
871b9158 | 6810 | |
322e23db UD |
6811 | { $as_echo "$as_me:$LINENO: checking for --hash-style option" >&5 |
6812 | $as_echo_n "checking for --hash-style option... " >&6; } | |
871b9158 | 6813 | if test "${libc_cv_hashstyle+set}" = set; then |
322e23db | 6814 | $as_echo_n "(cached) " >&6 |
871b9158 UD |
6815 | else |
6816 | cat > conftest.c <<EOF | |
6817 | int _start (void) { return 42; } | |
6818 | EOF | |
6819 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS | |
6820 | -fPIC -shared -o conftest.so conftest.c | |
6821 | -Wl,--hash-style=both -nostdlib 1>&5' | |
6822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6823 | (eval $ac_try) 2>&5 | |
6824 | ac_status=$? | |
322e23db | 6825 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
871b9158 UD |
6826 | (exit $ac_status); }; } |
6827 | then | |
6828 | libc_cv_hashstyle=yes | |
6829 | else | |
6830 | libc_cv_hashstyle=no | |
6831 | fi | |
6832 | rm -f conftest* | |
6833 | fi | |
322e23db UD |
6834 | { $as_echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5 |
6835 | $as_echo "$libc_cv_hashstyle" >&6; } | |
871b9158 | 6836 | |
2abf9ff1 | 6837 | fi |
f13df7c7 | 6838 | |
322e23db UD |
6839 | { $as_echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5 |
6840 | $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; } | |
18e2ac6d | 6841 | if test "${libc_cv_fno_toplevel_reorder+set}" = set; then |
322e23db | 6842 | $as_echo_n "(cached) " >&6 |
49803108 AJ |
6843 | else |
6844 | cat > conftest.c <<EOF | |
6845 | int foo; | |
6846 | EOF | |
22dca1ea | 6847 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors |
49803108 AJ |
6848 | conftest.c 1>&5' |
6849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6850 | (eval $ac_try) 2>&5 | |
6851 | ac_status=$? | |
322e23db | 6852 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
49803108 AJ |
6853 | (exit $ac_status); }; } |
6854 | then | |
18e2ac6d | 6855 | libc_cv_fno_toplevel_reorder=yes |
49803108 | 6856 | else |
18e2ac6d | 6857 | libc_cv_fno_toplevel_reorder=no |
49803108 AJ |
6858 | fi |
6859 | rm -f conftest* | |
6860 | fi | |
322e23db UD |
6861 | { $as_echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5 |
6862 | $as_echo "$libc_cv_fno_toplevel_reorder" >&6; } | |
18e2ac6d | 6863 | if test $libc_cv_fno_toplevel_reorder = yes; then |
22dca1ea | 6864 | fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors" |
18e2ac6d | 6865 | else |
49803108 AJ |
6866 | fno_unit_at_a_time=-fno-unit-at-a-time |
6867 | fi | |
6868 | ||
6869 | ||
322e23db UD |
6870 | { $as_echo "$as_me:$LINENO: checking for -fstack-protector" >&5 |
6871 | $as_echo_n "checking for -fstack-protector... " >&6; } | |
10ffcd52 | 6872 | if test "${libc_cv_ssp+set}" = set; then |
322e23db | 6873 | $as_echo_n "(cached) " >&6 |
10ffcd52 UD |
6874 | else |
6875 | cat > conftest.c <<EOF | |
6876 | int foo; | |
6877 | main () { return 0;} | |
6878 | EOF | |
a40fbc8d | 6879 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector |
10ffcd52 UD |
6880 | -o conftest conftest.c 1>&5' |
6881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6882 | (eval $ac_try) 2>&5 | |
6883 | ac_status=$? | |
322e23db | 6884 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10ffcd52 UD |
6885 | (exit $ac_status); }; } |
6886 | then | |
6887 | libc_cv_ssp=yes | |
6888 | else | |
6889 | libc_cv_ssp=no | |
6890 | fi | |
6891 | rm -f conftest* | |
6892 | fi | |
322e23db UD |
6893 | { $as_echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5 |
6894 | $as_echo "$libc_cv_ssp" >&6; } | |
10ffcd52 UD |
6895 | |
6896 | ||
322e23db UD |
6897 | { $as_echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5 |
6898 | $as_echo_n "checking for -fgnu89-inline... " >&6; } | |
965cba04 | 6899 | if test "${libc_cv_gnu89_inline+set}" = set; then |
322e23db | 6900 | $as_echo_n "(cached) " >&6 |
965cba04 UD |
6901 | else |
6902 | cat > conftest.c <<EOF | |
6903 | int foo; | |
6904 | #ifdef __GNUC_GNU_INLINE__ | |
6905 | main () { return 0;} | |
6906 | #else | |
6907 | #error | |
6908 | #endif | |
6909 | EOF | |
371f84a4 JJ |
6910 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline |
6911 | -o conftest.s conftest.c 1>&5' | |
965cba04 UD |
6912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6913 | (eval $ac_try) 2>&5 | |
6914 | ac_status=$? | |
322e23db | 6915 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
965cba04 UD |
6916 | (exit $ac_status); }; } |
6917 | then | |
6918 | libc_cv_gnu89_inline=yes | |
6919 | else | |
6920 | libc_cv_gnu89_inline=no | |
6921 | fi | |
6922 | rm -f conftest* | |
6923 | fi | |
322e23db UD |
6924 | { $as_echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5 |
6925 | $as_echo "$libc_cv_gnu89_inline" >&6; } | |
965cba04 UD |
6926 | if test $libc_cv_gnu89_inline = yes; then |
6927 | libc_cv_gnu89_inline=-fgnu89-inline | |
6928 | else | |
6929 | libc_cv_gnu89_inline= | |
6930 | fi | |
6931 | ||
6932 | ||
cd6ede75 | 6933 | if test $elf != yes; then |
322e23db UD |
6934 | { $as_echo "$as_me:$LINENO: checking for .init and .fini sections" >&5 |
6935 | $as_echo_n "checking for .init and .fini sections... " >&6; } | |
3a12e572 | 6936 | if test "${libc_cv_have_initfini+set}" = set; then |
322e23db | 6937 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 6938 | else |
3a12e572 | 6939 | cat >conftest.$ac_ext <<_ACEOF |
2abf9ff1 RM |
6940 | /* confdefs.h. */ |
6941 | _ACEOF | |
6942 | cat confdefs.h >>conftest.$ac_ext | |
6943 | cat >>conftest.$ac_ext <<_ACEOF | |
6944 | /* end confdefs.h. */ | |
cd6ede75 | 6945 | |
3a12e572 UD |
6946 | int |
6947 | main () | |
6948 | { | |
cd6ede75 UD |
6949 | asm (".section .init"); |
6950 | asm (".section .fini"); | |
2293395f | 6951 | asm ("${libc_cv_dot_text}"); |
3a12e572 UD |
6952 | ; |
6953 | return 0; | |
6954 | } | |
6955 | _ACEOF | |
6956 | rm -f conftest.$ac_objext | |
26f56c1c UD |
6957 | if { (ac_try="$ac_compile" |
6958 | case "(($ac_try" in | |
6959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6960 | *) ac_try_echo=$ac_try;; | |
6961 | esac | |
322e23db UD |
6962 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6963 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 6964 | (eval "$ac_compile") 2>conftest.er1 |
3a12e572 | 6965 | ac_status=$? |
9382fcee RM |
6966 | grep -v '^ *+' conftest.er1 >conftest.err |
6967 | rm -f conftest.er1 | |
6968 | cat conftest.err >&5 | |
322e23db | 6969 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
6970 | (exit $ac_status); } && { |
6971 | test -z "$ac_c_werror_flag" || | |
6972 | test ! -s conftest.err | |
6973 | } && test -s conftest.$ac_objext; then | |
cd6ede75 UD |
6974 | libc_cv_have_initfini=yes |
6975 | else | |
322e23db | 6976 | $as_echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
6977 | sed 's/^/| /' conftest.$ac_ext >&5 |
6978 | ||
26f56c1c | 6979 | libc_cv_have_initfini=no |
cd6ede75 | 6980 | fi |
26f56c1c UD |
6981 | |
6982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cd6ede75 | 6983 | fi |
322e23db UD |
6984 | { $as_echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5 |
6985 | $as_echo "$libc_cv_have_initfini" >&6; } | |
cd6ede75 | 6986 | if test $libc_cv_have_initfini = yes; then |
3a12e572 | 6987 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 6988 | #define HAVE_INITFINI 1 |
3a12e572 | 6989 | _ACEOF |
cd6ede75 UD |
6990 | |
6991 | fi | |
6992 | fi | |
6993 | ||
8e635611 | 6994 | if test $elf = yes; then |
322e23db UD |
6995 | { $as_echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5 |
6996 | $as_echo_n "checking whether cc puts quotes around section names... " >&6; } | |
3a12e572 | 6997 | if test "${libc_cv_have_section_quotes+set}" = set; then |
322e23db | 6998 | $as_echo_n "(cached) " >&6 |
e26dd47f UD |
6999 | else |
7000 | cat > conftest.c <<EOF | |
7001 | static const int foo | |
7002 | __attribute__ ((section ("bar"))) = 1; | |
7003 | EOF | |
7004 | if ${CC-cc} -S conftest.c -o conftest.s; then | |
7005 | if grep '\.section.*"bar"' conftest.s >/dev/null; then | |
7006 | libc_cv_have_section_quotes=yes | |
7007 | else | |
7008 | libc_cv_have_section_quotes=no | |
7009 | fi | |
7010 | else | |
7011 | libc_cv_have_section_quotes=unknown | |
7012 | fi | |
7013 | rm -f conftest.cs | |
e26dd47f | 7014 | |
3a12e572 | 7015 | fi |
322e23db UD |
7016 | { $as_echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5 |
7017 | $as_echo "$libc_cv_have_section_quotes" >&6; } | |
e26dd47f | 7018 | if test $libc_cv_have_section_quotes = yes; then |
3a12e572 | 7019 | cat >>confdefs.h <<\_ACEOF |
e26dd47f | 7020 | #define HAVE_SECTION_QUOTES 1 |
3a12e572 | 7021 | _ACEOF |
e26dd47f UD |
7022 | |
7023 | fi | |
7024 | fi | |
7025 | ||
9a0a462c UD |
7026 | |
7027 | ||
cd6ede75 UD |
7028 | if test $elf = yes; then |
7029 | libc_cv_asm_underscores=no | |
7030 | else | |
9a0a462c | 7031 | if test $ac_cv_prog_cc_works = yes; then |
322e23db UD |
7032 | { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5 |
7033 | $as_echo_n "checking for _ prefix on C symbol names... " >&6; } | |
3a12e572 | 7034 | if test "${libc_cv_asm_underscores+set}" = set; then |
322e23db | 7035 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 7036 | else |
3a12e572 | 7037 | cat >conftest.$ac_ext <<_ACEOF |
2abf9ff1 RM |
7038 | /* confdefs.h. */ |
7039 | _ACEOF | |
7040 | cat confdefs.h >>conftest.$ac_ext | |
7041 | cat >>conftest.$ac_ext <<_ACEOF | |
7042 | /* end confdefs.h. */ | |
cd6ede75 | 7043 | asm ("_glibc_foobar:"); |
3a12e572 UD |
7044 | int |
7045 | main () | |
7046 | { | |
cd6ede75 | 7047 | glibc_foobar (); |
3a12e572 UD |
7048 | ; |
7049 | return 0; | |
7050 | } | |
7051 | _ACEOF | |
7052 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26f56c1c UD |
7053 | if { (ac_try="$ac_link" |
7054 | case "(($ac_try" in | |
7055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7056 | *) ac_try_echo=$ac_try;; | |
7057 | esac | |
322e23db UD |
7058 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7059 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 7060 | (eval "$ac_link") 2>conftest.er1 |
3a12e572 | 7061 | ac_status=$? |
9382fcee RM |
7062 | grep -v '^ *+' conftest.er1 >conftest.err |
7063 | rm -f conftest.er1 | |
7064 | cat conftest.err >&5 | |
322e23db | 7065 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
7066 | (exit $ac_status); } && { |
7067 | test -z "$ac_c_werror_flag" || | |
7068 | test ! -s conftest.err | |
322e23db UD |
7069 | } && test -s conftest$ac_exeext && { |
7070 | test "$cross_compiling" = yes || | |
7071 | $as_test_x conftest$ac_exeext | |
7072 | }; then | |
cd6ede75 UD |
7073 | libc_cv_asm_underscores=yes |
7074 | else | |
322e23db | 7075 | $as_echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
7076 | sed 's/^/| /' conftest.$ac_ext >&5 |
7077 | ||
26f56c1c | 7078 | libc_cv_asm_underscores=no |
cd6ede75 | 7079 | fi |
26f56c1c | 7080 | |
322e23db | 7081 | rm -rf conftest.dSYM |
26f56c1c | 7082 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9382fcee | 7083 | conftest$ac_exeext conftest.$ac_ext |
cd6ede75 | 7084 | fi |
322e23db UD |
7085 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5 |
7086 | $as_echo "$libc_cv_asm_underscores" >&6; } | |
9a0a462c | 7087 | else |
322e23db UD |
7088 | { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5 |
7089 | $as_echo_n "checking for _ prefix on C symbol names... " >&6; } | |
3a12e572 | 7090 | if test "${libc_cv_asm_underscores+set}" = set; then |
322e23db | 7091 | $as_echo_n "(cached) " >&6 |
9a0a462c UD |
7092 | else |
7093 | cat > conftest.$ac_ext <<EOF | |
85dd1003 | 7094 | #line $LINENO "configure" |
9a0a462c UD |
7095 | #include "confdefs.h" |
7096 | void underscore_test(void) { | |
7097 | return; } | |
7098 | EOF | |
3a12e572 UD |
7099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7100 | (eval $ac_compile) 2>&5 | |
7101 | ac_status=$? | |
322e23db | 7102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 7103 | (exit $ac_status); }; then |
9a0a462c UD |
7104 | if grep _underscore_test conftest* >/dev/null; then |
7105 | rm -f conftest* | |
7106 | libc_cv_asm_underscores=yes | |
7107 | else | |
7108 | rm -f conftest* | |
7109 | libc_cv_asm_underscores=no | |
7110 | fi | |
7111 | else | |
7112 | echo "configure: failed program was:" >&5 | |
7113 | cat conftest.$ac_ext >&5 | |
7114 | rm -f conftest* | |
7115 | libc_cv_asm_underscores=no | |
7116 | fi | |
7117 | rm -f conftest* | |
7118 | fi | |
322e23db UD |
7119 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5 |
7120 | $as_echo "$libc_cv_asm_underscores" >&6; } | |
9a0a462c | 7121 | fi |
cd6ede75 UD |
7122 | fi |
7123 | if test $libc_cv_asm_underscores = no; then | |
3a12e572 | 7124 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 7125 | #define NO_UNDERSCORES 1 |
3a12e572 | 7126 | _ACEOF |
cd6ede75 UD |
7127 | |
7128 | fi | |
7129 | ||
7130 | if test $elf = yes; then | |
7131 | libc_cv_weak_symbols=yes | |
9a97d1f7 UD |
7132 | fi |
7133 | ||
322e23db UD |
7134 | { $as_echo "$as_me:$LINENO: checking for assembler .weak directive" >&5 |
7135 | $as_echo_n "checking for assembler .weak directive... " >&6; } | |
3a12e572 | 7136 | if test "${libc_cv_asm_weak_directive+set}" = set; then |
322e23db | 7137 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
7138 | else |
7139 | cat > conftest.s <<EOF | |
2293395f | 7140 | ${libc_cv_dot_text} |
cd6ede75 UD |
7141 | ${libc_cv_asm_global_directive} foo |
7142 | foo: | |
7143 | .weak foo | |
7144 | .weak bar; bar = foo | |
7145 | EOF | |
3217788f | 7146 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' |
61cea1c3 RM |
7147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7148 | (eval $ac_try) 2>&5 | |
7149 | ac_status=$? | |
322e23db | 7150 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
61cea1c3 | 7151 | (exit $ac_status); }; }; then |
9a97d1f7 UD |
7152 | libc_cv_asm_weak_directive=yes |
7153 | else | |
7154 | libc_cv_asm_weak_directive=no | |
7155 | fi | |
7156 | rm -f conftest* | |
cd6ede75 | 7157 | fi |
322e23db UD |
7158 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5 |
7159 | $as_echo "$libc_cv_asm_weak_directive" >&6; } | |
cd6ede75 UD |
7160 | |
7161 | if test $libc_cv_asm_weak_directive = no; then | |
322e23db UD |
7162 | { $as_echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5 |
7163 | $as_echo_n "checking for assembler .weakext directive... " >&6; } | |
3a12e572 | 7164 | if test "${libc_cv_asm_weakext_directive+set}" = set; then |
322e23db | 7165 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
7166 | else |
7167 | cat > conftest.s <<EOF | |
2293395f | 7168 | ${libc_cv_dot_text} |
cd6ede75 UD |
7169 | ${libc_cv_asm_global_directive} foo |
7170 | foo: | |
9a97d1f7 UD |
7171 | .weakext bar foo |
7172 | .weakext baz | |
7173 | ${libc_cv_asm_global_directive} baz | |
7174 | baz: | |
cd6ede75 | 7175 | EOF |
3217788f | 7176 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' |
61cea1c3 RM |
7177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7178 | (eval $ac_try) 2>&5 | |
7179 | ac_status=$? | |
322e23db | 7180 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
61cea1c3 | 7181 | (exit $ac_status); }; }; then |
cd6ede75 UD |
7182 | libc_cv_asm_weakext_directive=yes |
7183 | else | |
7184 | libc_cv_asm_weakext_directive=no | |
7185 | fi | |
7186 | rm -f conftest* | |
7187 | fi | |
322e23db UD |
7188 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5 |
7189 | $as_echo "$libc_cv_asm_weakext_directive" >&6; } | |
cd6ede75 | 7190 | |
9a97d1f7 | 7191 | fi # no .weak |
cd6ede75 UD |
7192 | |
7193 | if test $libc_cv_asm_weak_directive = yes; then | |
3a12e572 | 7194 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 7195 | #define HAVE_ASM_WEAK_DIRECTIVE 1 |
3a12e572 | 7196 | _ACEOF |
cd6ede75 UD |
7197 | |
7198 | elif test $libc_cv_asm_weakext_directive = yes; then | |
3a12e572 | 7199 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 7200 | #define HAVE_ASM_WEAKEXT_DIRECTIVE 1 |
3a12e572 | 7201 | _ACEOF |
cd6ede75 UD |
7202 | |
7203 | fi | |
7204 | ||
322e23db UD |
7205 | { $as_echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5 |
7206 | $as_echo_n "checking whether CFI directives are supported... " >&6; } | |
50189569 | 7207 | if test "${libc_cv_asm_cfi_directives+set}" = set; then |
322e23db | 7208 | $as_echo_n "(cached) " >&6 |
50189569 | 7209 | else |
ced368f7 UD |
7210 | case $machine in |
7211 | sparc/sparc64*) cfi_offset=2047;; | |
7212 | *) cfi_offset=0;; | |
7213 | esac | |
7214 | cat > conftest.s <<EOF | |
50189569 | 7215 | .text |
d0868826 | 7216 | .type func,%function |
50189569 AJ |
7217 | func: |
7218 | .cfi_startproc | |
f212e8dc | 7219 | .cfi_remember_state |
ced368f7 | 7220 | .cfi_rel_offset 1, $cfi_offset |
50189569 AJ |
7221 | .cfi_endproc |
7222 | EOF | |
7223 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' | |
7224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7225 | (eval $ac_try) 2>&5 | |
7226 | ac_status=$? | |
322e23db | 7227 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
50189569 AJ |
7228 | (exit $ac_status); }; }; then |
7229 | libc_cv_asm_cfi_directives=yes | |
7230 | else | |
7231 | libc_cv_asm_cfi_directives=no | |
7232 | fi | |
7233 | rm -f conftest* | |
7234 | fi | |
322e23db UD |
7235 | { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5 |
7236 | $as_echo "$libc_cv_asm_cfi_directives" >&6; } | |
50189569 AJ |
7237 | if test $libc_cv_asm_cfi_directives = yes; then |
7238 | cat >>confdefs.h <<\_ACEOF | |
7239 | #define HAVE_ASM_CFI_DIRECTIVES 1 | |
7240 | _ACEOF | |
7241 | ||
7242 | fi | |
7243 | ||
322e23db UD |
7244 | { $as_echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5 |
7245 | $as_echo_n "checking for ld --no-whole-archive... " >&6; } | |
3a12e572 | 7246 | if test "${libc_cv_ld_no_whole_archive+set}" = set; then |
322e23db | 7247 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
7248 | else |
7249 | cat > conftest.c <<\EOF | |
7250 | _start () {} | |
7251 | int __eh_pc; | |
7252 | __throw () {} | |
7253 | EOF | |
3217788f | 7254 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
cd6ede75 | 7255 | -nostdlib -nostartfiles -Wl,--no-whole-archive |
3a12e572 UD |
7256 | -o conftest conftest.c 1>&5' |
7257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7258 | (eval $ac_try) 2>&5 | |
7259 | ac_status=$? | |
322e23db | 7260 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 7261 | (exit $ac_status); }; }; then |
cd6ede75 UD |
7262 | libc_cv_ld_no_whole_archive=yes |
7263 | else | |
7264 | libc_cv_ld_no_whole_archive=no | |
7265 | fi | |
7266 | rm -f conftest* | |
7267 | fi | |
322e23db UD |
7268 | { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5 |
7269 | $as_echo "$libc_cv_ld_no_whole_archive" >&6; } | |
b17277cf UD |
7270 | if test $libc_cv_ld_no_whole_archive = yes; then |
7271 | no_whole_archive=-Wl,--no-whole-archive | |
7272 | fi | |
cd6ede75 | 7273 | |
322e23db UD |
7274 | { $as_echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5 |
7275 | $as_echo_n "checking for gcc -fexceptions... " >&6; } | |
3a12e572 | 7276 | if test "${libc_cv_gcc_exceptions+set}" = set; then |
322e23db | 7277 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
7278 | else |
7279 | cat > conftest.c <<\EOF | |
7280 | _start () {} | |
7281 | int __eh_pc; | |
7282 | __throw () {} | |
7283 | EOF | |
3217788f | 7284 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
dff14448 | 7285 | -nostdlib -nostartfiles -fexceptions |
3a12e572 UD |
7286 | -o conftest conftest.c 1>&5' |
7287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7288 | (eval $ac_try) 2>&5 | |
7289 | ac_status=$? | |
322e23db | 7290 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 7291 | (exit $ac_status); }; }; then |
dff14448 | 7292 | libc_cv_gcc_exceptions=yes |
cd6ede75 | 7293 | else |
dff14448 | 7294 | libc_cv_gcc_exceptions=no |
cd6ede75 UD |
7295 | fi |
7296 | rm -f conftest* | |
7297 | fi | |
322e23db UD |
7298 | { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5 |
7299 | $as_echo "$libc_cv_gcc_exceptions" >&6; } | |
dff14448 UD |
7300 | if test $libc_cv_gcc_exceptions = yes; then |
7301 | exceptions=-fexceptions | |
b17277cf | 7302 | fi |
cd6ede75 | 7303 | |
ebcd12d4 UD |
7304 | if test "$host_cpu" = powerpc ; then |
7305 | # Check for a bug present in at least versions 2.8.x of GCC | |
7306 | # and versions 1.0.x of EGCS. | |
322e23db UD |
7307 | { $as_echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5 |
7308 | $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; } | |
3a12e572 | 7309 | if test "${libc_cv_c_asmcr0_bug+set}" = set; then |
322e23db | 7310 | $as_echo_n "(cached) " >&6 |
ebcd12d4 | 7311 | else |
3a12e572 | 7312 | cat >conftest.$ac_ext <<_ACEOF |
2abf9ff1 RM |
7313 | /* confdefs.h. */ |
7314 | _ACEOF | |
7315 | cat confdefs.h >>conftest.$ac_ext | |
7316 | cat >>conftest.$ac_ext <<_ACEOF | |
7317 | /* end confdefs.h. */ | |
ebcd12d4 | 7318 | int tester(int x) { asm ("" : : : "cc"); return x & 123; } |
3a12e572 UD |
7319 | int |
7320 | main () | |
7321 | { | |
ebcd12d4 | 7322 | |
3a12e572 UD |
7323 | ; |
7324 | return 0; | |
7325 | } | |
7326 | _ACEOF | |
7327 | rm -f conftest.$ac_objext | |
26f56c1c UD |
7328 | if { (ac_try="$ac_compile" |
7329 | case "(($ac_try" in | |
7330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7331 | *) ac_try_echo=$ac_try;; | |
7332 | esac | |
322e23db UD |
7333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7334 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 7335 | (eval "$ac_compile") 2>conftest.er1 |
3a12e572 | 7336 | ac_status=$? |
9382fcee RM |
7337 | grep -v '^ *+' conftest.er1 >conftest.err |
7338 | rm -f conftest.er1 | |
7339 | cat conftest.err >&5 | |
322e23db | 7340 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
7341 | (exit $ac_status); } && { |
7342 | test -z "$ac_c_werror_flag" || | |
7343 | test ! -s conftest.err | |
7344 | } && test -s conftest.$ac_objext; then | |
ebcd12d4 UD |
7345 | libc_cv_c_asmcr0_bug='no' |
7346 | else | |
322e23db | 7347 | $as_echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
7348 | sed 's/^/| /' conftest.$ac_ext >&5 |
7349 | ||
26f56c1c | 7350 | libc_cv_c_asmcr0_bug='yes' |
ebcd12d4 | 7351 | fi |
26f56c1c UD |
7352 | |
7353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ebcd12d4 | 7354 | fi |
322e23db UD |
7355 | { $as_echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5 |
7356 | $as_echo "$libc_cv_c_asmcr0_bug" >&6; } | |
ebcd12d4 | 7357 | if test "$libc_cv_c_asmcr0_bug" != 'no'; then |
3a12e572 | 7358 | cat >>confdefs.h <<\_ACEOF |
ebcd12d4 | 7359 | #define BROKEN_PPC_ASM_CR0 1 |
3a12e572 | 7360 | _ACEOF |
ebcd12d4 UD |
7361 | |
7362 | fi | |
7363 | fi | |
7364 | ||
322e23db UD |
7365 | { $as_echo "$as_me:$LINENO: checking for __builtin_expect" >&5 |
7366 | $as_echo_n "checking for __builtin_expect... " >&6; } | |
3a12e572 | 7367 | if test "${libc_cv_gcc_builtin_expect+set}" = set; then |
322e23db | 7368 | $as_echo_n "(cached) " >&6 |
a8eab8b1 UD |
7369 | else |
7370 | cat > conftest.c <<EOF | |
85dd1003 | 7371 | #line $LINENO "configure" |
a8eab8b1 UD |
7372 | int foo (int a) |
7373 | { | |
7374 | a = __builtin_expect (a, 10); | |
7375 | return a == 10 ? 0 : 1; | |
7376 | } | |
7377 | EOF | |
3217788f | 7378 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles |
3a12e572 UD |
7379 | -o conftest conftest.c -lgcc >&5' |
7380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7381 | (eval $ac_try) 2>&5 | |
7382 | ac_status=$? | |
322e23db | 7383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 7384 | (exit $ac_status); }; }; then |
a8eab8b1 UD |
7385 | libc_cv_gcc_builtin_expect=yes |
7386 | else | |
7387 | libc_cv_gcc_builtin_expect=no | |
7388 | fi | |
7389 | rm -f conftest* | |
7390 | fi | |
322e23db UD |
7391 | { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5 |
7392 | $as_echo "$libc_cv_gcc_builtin_expect" >&6; } | |
a8eab8b1 | 7393 | if test "$libc_cv_gcc_builtin_expect" = yes; then |
3a12e572 | 7394 | cat >>confdefs.h <<\_ACEOF |
a8eab8b1 | 7395 | #define HAVE_BUILTIN_EXPECT 1 |
3a12e572 | 7396 | _ACEOF |
a8eab8b1 UD |
7397 | |
7398 | fi | |
7399 | ||
322e23db UD |
7400 | { $as_echo "$as_me:$LINENO: checking for __builtin_memset" >&5 |
7401 | $as_echo_n "checking for __builtin_memset... " >&6; } | |
3a12e572 | 7402 | if test "${libc_cv_gcc_builtin_memset+set}" = set; then |
322e23db | 7403 | $as_echo_n "(cached) " >&6 |
d555194c UD |
7404 | else |
7405 | cat > conftest.c <<\EOF | |
7406 | void zero (void *x) | |
7407 | { | |
a52d1562 | 7408 | __builtin_memset (x, 0, 1000); |
d555194c UD |
7409 | } |
7410 | EOF | |
3a12e572 UD |
7411 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null' |
7412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7413 | (eval $ac_try) 2>&5 | |
7414 | ac_status=$? | |
322e23db | 7415 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 7416 | (exit $ac_status); }; }; |
d555194c UD |
7417 | then |
7418 | libc_cv_gcc_builtin_memset=no | |
7419 | else | |
7420 | libc_cv_gcc_builtin_memset=yes | |
7421 | fi | |
3a12e572 | 7422 | rm -f conftest* |
d555194c | 7423 | fi |
322e23db UD |
7424 | { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5 |
7425 | $as_echo "$libc_cv_gcc_builtin_memset" >&6; } | |
d555194c | 7426 | if test "$libc_cv_gcc_builtin_memset" = yes ; then |
3a12e572 | 7427 | cat >>confdefs.h <<\_ACEOF |
d555194c | 7428 | #define HAVE_BUILTIN_MEMSET 1 |
3a12e572 | 7429 | _ACEOF |
d555194c UD |
7430 | |
7431 | fi | |
7432 | ||
322e23db UD |
7433 | { $as_echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5 |
7434 | $as_echo_n "checking for redirection of built-in functions... " >&6; } | |
85dd1003 | 7435 | if test "${libc_cv_gcc_builtin_redirection+set}" = set; then |
322e23db | 7436 | $as_echo_n "(cached) " >&6 |
85dd1003 UD |
7437 | else |
7438 | cat > conftest.c <<\EOF | |
7439 | extern char *strstr (const char *, const char *) __asm ("my_strstr"); | |
7440 | char *foo (const char *a, const char *b) | |
7441 | { | |
7442 | return __builtin_strstr (a, b); | |
7443 | } | |
7444 | EOF | |
7445 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null' | |
7446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7447 | (eval $ac_try) 2>&5 | |
7448 | ac_status=$? | |
322e23db | 7449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
85dd1003 UD |
7450 | (exit $ac_status); }; }; |
7451 | then | |
7452 | libc_cv_gcc_builtin_redirection=yes | |
7453 | else | |
7454 | libc_cv_gcc_builtin_redirection=no | |
7455 | fi | |
7456 | rm -f conftest* | |
7457 | fi | |
322e23db UD |
7458 | { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5 |
7459 | $as_echo "$libc_cv_gcc_builtin_redirection" >&6; } | |
85dd1003 UD |
7460 | if test "$libc_cv_gcc_builtin_redirection" = yes ; then |
7461 | cat >>confdefs.h <<\_ACEOF | |
7462 | #define HAVE_BUILTIN_REDIRECTION 1 | |
7463 | _ACEOF | |
7464 | ||
7465 | fi | |
7466 | ||
5b8f26b4 | 7467 | if test "x$use__thread" != xno; then |
322e23db UD |
7468 | { $as_echo "$as_me:$LINENO: checking for __thread" >&5 |
7469 | $as_echo_n "checking for __thread... " >&6; } | |
3a12e572 | 7470 | if test "${libc_cv_gcc___thread+set}" = set; then |
322e23db | 7471 | $as_echo_n "(cached) " >&6 |
739d440d | 7472 | else |
5bbfc1ea | 7473 | cat > conftest.c <<\EOF |
fbb18522 RM |
7474 | __thread int a = 42; |
7475 | EOF | |
3217788f | 7476 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5' |
3a12e572 UD |
7477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7478 | (eval $ac_try) 2>&5 | |
7479 | ac_status=$? | |
322e23db | 7480 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 7481 | (exit $ac_status); }; }; then |
5b8f26b4 RM |
7482 | libc_cv_gcc___thread=yes |
7483 | else | |
7484 | libc_cv_gcc___thread=no | |
7485 | fi | |
7486 | rm -f conftest* | |
739d440d | 7487 | fi |
322e23db UD |
7488 | { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5 |
7489 | $as_echo "$libc_cv_gcc___thread" >&6; } | |
5b8f26b4 | 7490 | if test "$libc_cv_gcc___thread" = yes; then |
3a12e572 | 7491 | cat >>confdefs.h <<\_ACEOF |
739d440d | 7492 | #define HAVE___THREAD 1 |
3a12e572 | 7493 | _ACEOF |
739d440d | 7494 | |
5b8f26b4 | 7495 | fi |
fbb18522 RM |
7496 | else |
7497 | libc_cv_gcc___thread=no | |
739d440d UD |
7498 | fi |
7499 | ||
9b21e6bc | 7500 | if test "$libc_cv_gcc___thread" = yes; then |
322e23db UD |
7501 | { $as_echo "$as_me:$LINENO: checking for tls_model attribute" >&5 |
7502 | $as_echo_n "checking for tls_model attribute... " >&6; } | |
3a12e572 | 7503 | if test "${libc_cv_gcc_tls_model_attr+set}" = set; then |
322e23db | 7504 | $as_echo_n "(cached) " >&6 |
9b21e6bc RM |
7505 | else |
7506 | cat > conftest.c <<\EOF | |
7507 | extern __thread int a __attribute__((tls_model ("initial-exec"))); | |
7508 | EOF | |
3217788f | 7509 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5' |
3a12e572 UD |
7510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7511 | (eval $ac_try) 2>&5 | |
7512 | ac_status=$? | |
322e23db | 7513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 7514 | (exit $ac_status); }; }; then |
9b21e6bc RM |
7515 | libc_cv_gcc_tls_model_attr=yes |
7516 | else | |
7517 | libc_cv_gcc_tls_model_attr=no | |
7518 | fi | |
7519 | rm -f conftest* | |
7520 | fi | |
322e23db UD |
7521 | { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5 |
7522 | $as_echo "$libc_cv_gcc_tls_model_attr" >&6; } | |
9b21e6bc | 7523 | if test "$libc_cv_gcc_tls_model_attr" = yes; then |
3a12e572 | 7524 | cat >>confdefs.h <<\_ACEOF |
9b21e6bc | 7525 | #define HAVE_TLS_MODEL_ATTRIBUTE 1 |
3a12e572 | 7526 | _ACEOF |
9b21e6bc RM |
7527 | |
7528 | fi | |
7529 | fi | |
739d440d | 7530 | |
2cf9ad57 | 7531 | if test -n "$submachine"; then |
322e23db UD |
7532 | { $as_echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5 |
7533 | $as_echo_n "checking for compiler option for CPU variant... " >&6; } | |
2cf9ad57 | 7534 | if test "${libc_cv_cc_submachine+set}" = set; then |
322e23db | 7535 | $as_echo_n "(cached) " >&6 |
2cf9ad57 RM |
7536 | else |
7537 | libc_cv_cc_submachine=no | |
7538 | for opt in "-march=$submachine" "-mcpu=$submachine"; do | |
7539 | if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' | |
7540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7541 | (eval $ac_try) 2>&5 | |
7542 | ac_status=$? | |
322e23db | 7543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2cf9ad57 RM |
7544 | (exit $ac_status); }; }; then |
7545 | libc_cv_cc_submachine="$opt" | |
7546 | break | |
7547 | fi | |
7548 | done | |
7549 | fi | |
322e23db UD |
7550 | { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5 |
7551 | $as_echo "$libc_cv_cc_submachine" >&6; } | |
2cf9ad57 | 7552 | if test "x$libc_cv_cc_submachine" = xno; then |
322e23db UD |
7553 | { { $as_echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5 |
7554 | $as_echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;} | |
2cf9ad57 RM |
7555 | { (exit 1); exit 1; }; } |
7556 | fi | |
7557 | fi | |
7558 | ||
7559 | ||
322e23db UD |
7560 | { $as_echo "$as_me:$LINENO: checking for libgd" >&5 |
7561 | $as_echo_n "checking for libgd... " >&6; } | |
6dab8688 UD |
7562 | if test "$with_gd" != "no"; then |
7563 | old_CFLAGS="$CFLAGS" | |
7564 | CFLAGS="$CFLAGS $libgd_include" | |
7565 | old_LDFLAGS="$LDFLAGS" | |
7566 | LDFLAGS="$LDFLAGS $libgd_ldflags" | |
7567 | old_LIBS="$LIBS" | |
7568 | LIBS="$LIBS -lgd -lpng -lz -lm" | |
3a12e572 | 7569 | cat >conftest.$ac_ext <<_ACEOF |
2abf9ff1 RM |
7570 | /* confdefs.h. */ |
7571 | _ACEOF | |
7572 | cat confdefs.h >>conftest.$ac_ext | |
7573 | cat >>conftest.$ac_ext <<_ACEOF | |
7574 | /* end confdefs.h. */ | |
c8f3e6db | 7575 | #include <gd.h> |
3a12e572 UD |
7576 | int |
7577 | main () | |
7578 | { | |
c8f3e6db | 7579 | gdImagePng (0, 0) |
3a12e572 UD |
7580 | ; |
7581 | return 0; | |
7582 | } | |
7583 | _ACEOF | |
7584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26f56c1c UD |
7585 | if { (ac_try="$ac_link" |
7586 | case "(($ac_try" in | |
7587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7588 | *) ac_try_echo=$ac_try;; | |
7589 | esac | |
322e23db UD |
7590 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7591 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 7592 | (eval "$ac_link") 2>conftest.er1 |
3a12e572 | 7593 | ac_status=$? |
9382fcee RM |
7594 | grep -v '^ *+' conftest.er1 >conftest.err |
7595 | rm -f conftest.er1 | |
7596 | cat conftest.err >&5 | |
322e23db | 7597 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
7598 | (exit $ac_status); } && { |
7599 | test -z "$ac_c_werror_flag" || | |
7600 | test ! -s conftest.err | |
322e23db UD |
7601 | } && test -s conftest$ac_exeext && { |
7602 | test "$cross_compiling" = yes || | |
7603 | $as_test_x conftest$ac_exeext | |
7604 | }; then | |
c8f3e6db UD |
7605 | LIBGD=yes |
7606 | else | |
322e23db | 7607 | $as_echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
7608 | sed 's/^/| /' conftest.$ac_ext >&5 |
7609 | ||
26f56c1c | 7610 | LIBGD=no |
c8f3e6db | 7611 | fi |
26f56c1c | 7612 | |
322e23db | 7613 | rm -rf conftest.dSYM |
26f56c1c | 7614 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9382fcee | 7615 | conftest$ac_exeext conftest.$ac_ext |
6dab8688 UD |
7616 | CFLAGS="$old_CFLAGS" |
7617 | LDFLAGS="$old_LDFLAGS" | |
7618 | LIBS="$old_LIBS" | |
7619 | else | |
7620 | LIBGD=no | |
7621 | fi | |
322e23db UD |
7622 | { $as_echo "$as_me:$LINENO: result: $LIBGD" >&5 |
7623 | $as_echo "$LIBGD" >&6; } | |
3a12e572 UD |
7624 | |
7625 | ||
74a30a58 UD |
7626 | # SELinux detection |
7627 | if test x$with_selinux = xno ; then | |
7628 | have_selinux=no; | |
7629 | else | |
7630 | # See if we have the SELinux library | |
322e23db UD |
7631 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
7632 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
74a30a58 | 7633 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
322e23db | 7634 | $as_echo_n "(cached) " >&6 |
74a30a58 UD |
7635 | else |
7636 | ac_check_lib_save_LIBS=$LIBS | |
7637 | LIBS="-lselinux $LIBS" | |
7638 | cat >conftest.$ac_ext <<_ACEOF | |
7639 | /* confdefs.h. */ | |
7640 | _ACEOF | |
7641 | cat confdefs.h >>conftest.$ac_ext | |
7642 | cat >>conftest.$ac_ext <<_ACEOF | |
7643 | /* end confdefs.h. */ | |
7644 | ||
26f56c1c UD |
7645 | /* Override any GCC internal prototype to avoid an error. |
7646 | Use char because int might match the return type of a GCC | |
7647 | builtin and then its argument prototype would still apply. */ | |
74a30a58 UD |
7648 | #ifdef __cplusplus |
7649 | extern "C" | |
7650 | #endif | |
74a30a58 UD |
7651 | char is_selinux_enabled (); |
7652 | int | |
7653 | main () | |
7654 | { | |
26f56c1c | 7655 | return is_selinux_enabled (); |
74a30a58 UD |
7656 | ; |
7657 | return 0; | |
7658 | } | |
7659 | _ACEOF | |
7660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26f56c1c UD |
7661 | if { (ac_try="$ac_link" |
7662 | case "(($ac_try" in | |
7663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7664 | *) ac_try_echo=$ac_try;; | |
7665 | esac | |
322e23db UD |
7666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7667 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 7668 | (eval "$ac_link") 2>conftest.er1 |
74a30a58 UD |
7669 | ac_status=$? |
7670 | grep -v '^ *+' conftest.er1 >conftest.err | |
7671 | rm -f conftest.er1 | |
7672 | cat conftest.err >&5 | |
322e23db | 7673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
7674 | (exit $ac_status); } && { |
7675 | test -z "$ac_c_werror_flag" || | |
7676 | test ! -s conftest.err | |
322e23db UD |
7677 | } && test -s conftest$ac_exeext && { |
7678 | test "$cross_compiling" = yes || | |
7679 | $as_test_x conftest$ac_exeext | |
7680 | }; then | |
74a30a58 UD |
7681 | ac_cv_lib_selinux_is_selinux_enabled=yes |
7682 | else | |
322e23db | 7683 | $as_echo "$as_me: failed program was:" >&5 |
74a30a58 UD |
7684 | sed 's/^/| /' conftest.$ac_ext >&5 |
7685 | ||
26f56c1c | 7686 | ac_cv_lib_selinux_is_selinux_enabled=no |
74a30a58 | 7687 | fi |
26f56c1c | 7688 | |
322e23db | 7689 | rm -rf conftest.dSYM |
26f56c1c | 7690 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
74a30a58 UD |
7691 | conftest$ac_exeext conftest.$ac_ext |
7692 | LIBS=$ac_check_lib_save_LIBS | |
7693 | fi | |
322e23db UD |
7694 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
7695 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
7696 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
74a30a58 UD |
7697 | have_selinux=yes |
7698 | else | |
7699 | have_selinux=no | |
7700 | fi | |
7701 | ||
7702 | # See if we have the SELinux header with the NSCD permissions in it. | |
7703 | if test x$have_selinux = xyes ; then | |
322e23db UD |
7704 | { $as_echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5 |
7705 | $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; } | |
74a30a58 UD |
7706 | cat >conftest.$ac_ext <<_ACEOF |
7707 | /* confdefs.h. */ | |
7708 | _ACEOF | |
7709 | cat confdefs.h >>conftest.$ac_ext | |
7710 | cat >>conftest.$ac_ext <<_ACEOF | |
7711 | /* end confdefs.h. */ | |
7712 | #include <selinux/av_permissions.h> | |
7713 | int | |
7714 | main () | |
7715 | { | |
7716 | #ifdef NSCD__SHMEMHOST | |
7717 | return 0; | |
7718 | #else | |
7719 | #error NSCD__SHMEMHOST not defined | |
7720 | #endif | |
7721 | ; | |
7722 | return 0; | |
7723 | } | |
7724 | _ACEOF | |
7725 | rm -f conftest.$ac_objext | |
26f56c1c UD |
7726 | if { (ac_try="$ac_compile" |
7727 | case "(($ac_try" in | |
7728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7729 | *) ac_try_echo=$ac_try;; | |
7730 | esac | |
322e23db UD |
7731 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7732 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 7733 | (eval "$ac_compile") 2>conftest.er1 |
74a30a58 UD |
7734 | ac_status=$? |
7735 | grep -v '^ *+' conftest.er1 >conftest.err | |
7736 | rm -f conftest.er1 | |
7737 | cat conftest.err >&5 | |
322e23db | 7738 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
7739 | (exit $ac_status); } && { |
7740 | test -z "$ac_c_werror_flag" || | |
7741 | test ! -s conftest.err | |
7742 | } && test -s conftest.$ac_objext; then | |
74a30a58 UD |
7743 | have_selinux=yes |
7744 | else | |
322e23db | 7745 | $as_echo "$as_me: failed program was:" >&5 |
74a30a58 UD |
7746 | sed 's/^/| /' conftest.$ac_ext >&5 |
7747 | ||
26f56c1c | 7748 | have_selinux=no |
74a30a58 | 7749 | fi |
26f56c1c UD |
7750 | |
7751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
322e23db UD |
7752 | { $as_echo "$as_me:$LINENO: result: $have_selinux" >&5 |
7753 | $as_echo "$have_selinux" >&6; } | |
74a30a58 UD |
7754 | fi |
7755 | ||
8f1913a9 | 7756 | if test x$with_selinux = xyes ; then |
74a30a58 | 7757 | if test x$have_selinux = xno ; then |
322e23db UD |
7758 | { { $as_echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5 |
7759 | $as_echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;} | |
74a30a58 UD |
7760 | { (exit 1); exit 1; }; } |
7761 | fi | |
7762 | fi | |
7763 | fi | |
7764 | # Check if we're building with SELinux support. | |
7765 | if test "x$have_selinux" = xyes; then | |
7766 | ||
7767 | cat >>confdefs.h <<\_ACEOF | |
7768 | #define HAVE_SELINUX 1 | |
7769 | _ACEOF | |
7770 | ||
b399a0c2 UD |
7771 | |
7772 | # See if we have the libaudit library | |
322e23db UD |
7773 | { $as_echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5 |
7774 | $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; } | |
b2f97341 | 7775 | if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then |
322e23db | 7776 | $as_echo_n "(cached) " >&6 |
b399a0c2 UD |
7777 | else |
7778 | ac_check_lib_save_LIBS=$LIBS | |
7779 | LIBS="-laudit $LIBS" | |
7780 | cat >conftest.$ac_ext <<_ACEOF | |
7781 | /* confdefs.h. */ | |
7782 | _ACEOF | |
7783 | cat confdefs.h >>conftest.$ac_ext | |
7784 | cat >>conftest.$ac_ext <<_ACEOF | |
7785 | /* end confdefs.h. */ | |
7786 | ||
26f56c1c UD |
7787 | /* Override any GCC internal prototype to avoid an error. |
7788 | Use char because int might match the return type of a GCC | |
7789 | builtin and then its argument prototype would still apply. */ | |
b399a0c2 UD |
7790 | #ifdef __cplusplus |
7791 | extern "C" | |
7792 | #endif | |
b2f97341 | 7793 | char audit_log_user_avc_message (); |
b399a0c2 UD |
7794 | int |
7795 | main () | |
7796 | { | |
26f56c1c | 7797 | return audit_log_user_avc_message (); |
b399a0c2 UD |
7798 | ; |
7799 | return 0; | |
7800 | } | |
7801 | _ACEOF | |
7802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26f56c1c UD |
7803 | if { (ac_try="$ac_link" |
7804 | case "(($ac_try" in | |
7805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7806 | *) ac_try_echo=$ac_try;; | |
7807 | esac | |
322e23db UD |
7808 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7809 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 7810 | (eval "$ac_link") 2>conftest.er1 |
b399a0c2 UD |
7811 | ac_status=$? |
7812 | grep -v '^ *+' conftest.er1 >conftest.err | |
7813 | rm -f conftest.er1 | |
7814 | cat conftest.err >&5 | |
322e23db | 7815 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
7816 | (exit $ac_status); } && { |
7817 | test -z "$ac_c_werror_flag" || | |
7818 | test ! -s conftest.err | |
322e23db UD |
7819 | } && test -s conftest$ac_exeext && { |
7820 | test "$cross_compiling" = yes || | |
7821 | $as_test_x conftest$ac_exeext | |
7822 | }; then | |
b2f97341 | 7823 | ac_cv_lib_audit_audit_log_user_avc_message=yes |
b399a0c2 | 7824 | else |
322e23db | 7825 | $as_echo "$as_me: failed program was:" >&5 |
b399a0c2 UD |
7826 | sed 's/^/| /' conftest.$ac_ext >&5 |
7827 | ||
26f56c1c | 7828 | ac_cv_lib_audit_audit_log_user_avc_message=no |
b399a0c2 | 7829 | fi |
26f56c1c | 7830 | |
322e23db | 7831 | rm -rf conftest.dSYM |
26f56c1c | 7832 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
b399a0c2 UD |
7833 | conftest$ac_exeext conftest.$ac_ext |
7834 | LIBS=$ac_check_lib_save_LIBS | |
7835 | fi | |
322e23db UD |
7836 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5 |
7837 | $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; } | |
7838 | if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = x""yes; then | |
b399a0c2 UD |
7839 | have_libaudit=yes |
7840 | else | |
7841 | have_libaudit=no | |
7842 | fi | |
7843 | ||
7844 | if test "x$have_libaudit" = xyes; then | |
7845 | ||
7846 | cat >>confdefs.h <<\_ACEOF | |
7847 | #define HAVE_LIBAUDIT 1 | |
7848 | _ACEOF | |
7849 | ||
7850 | fi | |
7851 | ||
1f063dca UD |
7852 | |
7853 | # See if we have the libcap library | |
322e23db UD |
7854 | { $as_echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5 |
7855 | $as_echo_n "checking for cap_init in -lcap... " >&6; } | |
1f063dca | 7856 | if test "${ac_cv_lib_cap_cap_init+set}" = set; then |
322e23db | 7857 | $as_echo_n "(cached) " >&6 |
1f063dca UD |
7858 | else |
7859 | ac_check_lib_save_LIBS=$LIBS | |
7860 | LIBS="-lcap $LIBS" | |
7861 | cat >conftest.$ac_ext <<_ACEOF | |
7862 | /* confdefs.h. */ | |
7863 | _ACEOF | |
7864 | cat confdefs.h >>conftest.$ac_ext | |
7865 | cat >>conftest.$ac_ext <<_ACEOF | |
7866 | /* end confdefs.h. */ | |
7867 | ||
26f56c1c UD |
7868 | /* Override any GCC internal prototype to avoid an error. |
7869 | Use char because int might match the return type of a GCC | |
7870 | builtin and then its argument prototype would still apply. */ | |
1f063dca UD |
7871 | #ifdef __cplusplus |
7872 | extern "C" | |
7873 | #endif | |
1f063dca UD |
7874 | char cap_init (); |
7875 | int | |
7876 | main () | |
7877 | { | |
26f56c1c | 7878 | return cap_init (); |
1f063dca UD |
7879 | ; |
7880 | return 0; | |
7881 | } | |
7882 | _ACEOF | |
7883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26f56c1c UD |
7884 | if { (ac_try="$ac_link" |
7885 | case "(($ac_try" in | |
7886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7887 | *) ac_try_echo=$ac_try;; | |
7888 | esac | |
322e23db UD |
7889 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7890 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 7891 | (eval "$ac_link") 2>conftest.er1 |
1f063dca UD |
7892 | ac_status=$? |
7893 | grep -v '^ *+' conftest.er1 >conftest.err | |
7894 | rm -f conftest.er1 | |
7895 | cat conftest.err >&5 | |
322e23db | 7896 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
7897 | (exit $ac_status); } && { |
7898 | test -z "$ac_c_werror_flag" || | |
7899 | test ! -s conftest.err | |
322e23db UD |
7900 | } && test -s conftest$ac_exeext && { |
7901 | test "$cross_compiling" = yes || | |
7902 | $as_test_x conftest$ac_exeext | |
7903 | }; then | |
1f063dca UD |
7904 | ac_cv_lib_cap_cap_init=yes |
7905 | else | |
322e23db | 7906 | $as_echo "$as_me: failed program was:" >&5 |
1f063dca UD |
7907 | sed 's/^/| /' conftest.$ac_ext >&5 |
7908 | ||
26f56c1c | 7909 | ac_cv_lib_cap_cap_init=no |
1f063dca | 7910 | fi |
26f56c1c | 7911 | |
322e23db | 7912 | rm -rf conftest.dSYM |
26f56c1c | 7913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
1f063dca UD |
7914 | conftest$ac_exeext conftest.$ac_ext |
7915 | LIBS=$ac_check_lib_save_LIBS | |
7916 | fi | |
322e23db UD |
7917 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5 |
7918 | $as_echo "$ac_cv_lib_cap_cap_init" >&6; } | |
7919 | if test "x$ac_cv_lib_cap_cap_init" = x""yes; then | |
1f063dca UD |
7920 | have_libcap=yes |
7921 | else | |
7922 | have_libcap=no | |
7923 | fi | |
7924 | ||
7925 | if test "x$have_libcap" = xyes; then | |
7926 | ||
7927 | cat >>confdefs.h <<\_ACEOF | |
7928 | #define HAVE_LIBCAP 1 | |
7929 | _ACEOF | |
7930 | ||
7931 | fi | |
7932 | ||
74a30a58 UD |
7933 | fi |
7934 | ||
7935 | ||
3a12e572 | 7936 | |
322e23db UD |
7937 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
7938 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
26f56c1c | 7939 | if test "${ac_cv_path_GREP+set}" = set; then |
322e23db | 7940 | $as_echo_n "(cached) " >&6 |
26f56c1c | 7941 | else |
322e23db | 7942 | if test -z "$GREP"; then |
26f56c1c | 7943 | ac_path_GREP_found=false |
322e23db UD |
7944 | # Loop through the user's path and test for each of PROGNAME-LIST |
7945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26f56c1c UD |
7946 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
7947 | do | |
7948 | IFS=$as_save_IFS | |
7949 | test -z "$as_dir" && as_dir=. | |
7950 | for ac_prog in grep ggrep; do | |
322e23db UD |
7951 | for ac_exec_ext in '' $ac_executable_extensions; do |
7952 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
7953 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
7954 | # Check for GNU ac_path_GREP and select it if it is found. | |
26f56c1c UD |
7955 | # Check for GNU $ac_path_GREP |
7956 | case `"$ac_path_GREP" --version 2>&1` in | |
7957 | *GNU*) | |
7958 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
7959 | *) | |
7960 | ac_count=0 | |
322e23db | 7961 | $as_echo_n 0123456789 >"conftest.in" |
26f56c1c UD |
7962 | while : |
7963 | do | |
7964 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7965 | mv "conftest.tmp" "conftest.in" | |
7966 | cp "conftest.in" "conftest.nl" | |
322e23db | 7967 | $as_echo 'GREP' >> "conftest.nl" |
26f56c1c UD |
7968 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
7969 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7970 | ac_count=`expr $ac_count + 1` | |
7971 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
7972 | # Best one so far, save it but keep looking for a better one | |
7973 | ac_cv_path_GREP="$ac_path_GREP" | |
7974 | ac_path_GREP_max=$ac_count | |
7975 | fi | |
7976 | # 10*(2^10) chars as input seems more than enough | |
7977 | test $ac_count -gt 10 && break | |
7978 | done | |
7979 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7980 | esac | |
7981 | ||
322e23db UD |
7982 | $ac_path_GREP_found && break 3 |
7983 | done | |
26f56c1c UD |
7984 | done |
7985 | done | |
26f56c1c | 7986 | IFS=$as_save_IFS |
322e23db UD |
7987 | if test -z "$ac_cv_path_GREP"; then |
7988 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
7989 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
26f56c1c | 7990 | { (exit 1); exit 1; }; } |
322e23db | 7991 | fi |
26f56c1c UD |
7992 | else |
7993 | ac_cv_path_GREP=$GREP | |
7994 | fi | |
7995 | ||
26f56c1c | 7996 | fi |
322e23db UD |
7997 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
7998 | $as_echo "$ac_cv_path_GREP" >&6; } | |
26f56c1c UD |
7999 | GREP="$ac_cv_path_GREP" |
8000 | ||
8001 | ||
322e23db UD |
8002 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
8003 | $as_echo_n "checking for egrep... " >&6; } | |
26f56c1c | 8004 | if test "${ac_cv_path_EGREP+set}" = set; then |
322e23db | 8005 | $as_echo_n "(cached) " >&6 |
26f56c1c UD |
8006 | else |
8007 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
8008 | then ac_cv_path_EGREP="$GREP -E" | |
8009 | else | |
322e23db | 8010 | if test -z "$EGREP"; then |
26f56c1c | 8011 | ac_path_EGREP_found=false |
322e23db UD |
8012 | # Loop through the user's path and test for each of PROGNAME-LIST |
8013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26f56c1c UD |
8014 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8015 | do | |
8016 | IFS=$as_save_IFS | |
8017 | test -z "$as_dir" && as_dir=. | |
8018 | for ac_prog in egrep; do | |
322e23db UD |
8019 | for ac_exec_ext in '' $ac_executable_extensions; do |
8020 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
8021 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
8022 | # Check for GNU ac_path_EGREP and select it if it is found. | |
26f56c1c UD |
8023 | # Check for GNU $ac_path_EGREP |
8024 | case `"$ac_path_EGREP" --version 2>&1` in | |
8025 | *GNU*) | |
8026 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
8027 | *) | |
8028 | ac_count=0 | |
322e23db | 8029 | $as_echo_n 0123456789 >"conftest.in" |
26f56c1c UD |
8030 | while : |
8031 | do | |
8032 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
8033 | mv "conftest.tmp" "conftest.in" | |
8034 | cp "conftest.in" "conftest.nl" | |
322e23db | 8035 | $as_echo 'EGREP' >> "conftest.nl" |
26f56c1c UD |
8036 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
8037 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
8038 | ac_count=`expr $ac_count + 1` | |
8039 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
8040 | # Best one so far, save it but keep looking for a better one | |
8041 | ac_cv_path_EGREP="$ac_path_EGREP" | |
8042 | ac_path_EGREP_max=$ac_count | |
f4b07664 | 8043 | fi |
26f56c1c UD |
8044 | # 10*(2^10) chars as input seems more than enough |
8045 | test $ac_count -gt 10 && break | |
8046 | done | |
8047 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8048 | esac | |
8049 | ||
322e23db UD |
8050 | $ac_path_EGREP_found && break 3 |
8051 | done | |
26f56c1c UD |
8052 | done |
8053 | done | |
26f56c1c | 8054 | IFS=$as_save_IFS |
322e23db UD |
8055 | if test -z "$ac_cv_path_EGREP"; then |
8056 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
8057 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
26f56c1c | 8058 | { (exit 1); exit 1; }; } |
322e23db | 8059 | fi |
26f56c1c UD |
8060 | else |
8061 | ac_cv_path_EGREP=$EGREP | |
8062 | fi | |
8063 | ||
26f56c1c UD |
8064 | fi |
8065 | fi | |
322e23db UD |
8066 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
8067 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
26f56c1c | 8068 | EGREP="$ac_cv_path_EGREP" |
f4b07664 RM |
8069 | |
8070 | ||
322e23db UD |
8071 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
8072 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3a12e572 | 8073 | if test "${ac_cv_header_stdc+set}" = set; then |
322e23db | 8074 | $as_echo_n "(cached) " >&6 |
3a12e572 UD |
8075 | else |
8076 | cat >conftest.$ac_ext <<_ACEOF | |
2abf9ff1 RM |
8077 | /* confdefs.h. */ |
8078 | _ACEOF | |
8079 | cat confdefs.h >>conftest.$ac_ext | |
8080 | cat >>conftest.$ac_ext <<_ACEOF | |
8081 | /* end confdefs.h. */ | |
3a12e572 UD |
8082 | #include <stdlib.h> |
8083 | #include <stdarg.h> | |
8084 | #include <string.h> | |
8085 | #include <float.h> | |
8086 | ||
2abf9ff1 RM |
8087 | int |
8088 | main () | |
8089 | { | |
8090 | ||
8091 | ; | |
8092 | return 0; | |
8093 | } | |
3a12e572 | 8094 | _ACEOF |
2abf9ff1 | 8095 | rm -f conftest.$ac_objext |
26f56c1c UD |
8096 | if { (ac_try="$ac_compile" |
8097 | case "(($ac_try" in | |
8098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8099 | *) ac_try_echo=$ac_try;; | |
8100 | esac | |
322e23db UD |
8101 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8102 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 8103 | (eval "$ac_compile") 2>conftest.er1 |
32a448ed | 8104 | ac_status=$? |
9382fcee RM |
8105 | grep -v '^ *+' conftest.er1 >conftest.err |
8106 | rm -f conftest.er1 | |
8107 | cat conftest.err >&5 | |
322e23db | 8108 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
8109 | (exit $ac_status); } && { |
8110 | test -z "$ac_c_werror_flag" || | |
8111 | test ! -s conftest.err | |
8112 | } && test -s conftest.$ac_objext; then | |
3a12e572 UD |
8113 | ac_cv_header_stdc=yes |
8114 | else | |
322e23db | 8115 | $as_echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
8116 | sed 's/^/| /' conftest.$ac_ext >&5 |
8117 | ||
26f56c1c | 8118 | ac_cv_header_stdc=no |
3a12e572 | 8119 | fi |
26f56c1c UD |
8120 | |
8121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c8f3e6db | 8122 | |
3a12e572 UD |
8123 | if test $ac_cv_header_stdc = yes; then |
8124 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8125 | cat >conftest.$ac_ext <<_ACEOF | |
2abf9ff1 RM |
8126 | /* confdefs.h. */ |
8127 | _ACEOF | |
8128 | cat confdefs.h >>conftest.$ac_ext | |
8129 | cat >>conftest.$ac_ext <<_ACEOF | |
8130 | /* end confdefs.h. */ | |
3a12e572 | 8131 | #include <string.h> |
3d558f4e | 8132 | |
3a12e572 UD |
8133 | _ACEOF |
8134 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
f4b07664 | 8135 | $EGREP "memchr" >/dev/null 2>&1; then |
3a12e572 | 8136 | : |
8ed1e7d5 | 8137 | else |
3a12e572 UD |
8138 | ac_cv_header_stdc=no |
8139 | fi | |
8140 | rm -f conftest* | |
8141 | ||
8142 | fi | |
8143 | ||
8144 | if test $ac_cv_header_stdc = yes; then | |
8145 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8146 | cat >conftest.$ac_ext <<_ACEOF | |
2abf9ff1 RM |
8147 | /* confdefs.h. */ |
8148 | _ACEOF | |
8149 | cat confdefs.h >>conftest.$ac_ext | |
8150 | cat >>conftest.$ac_ext <<_ACEOF | |
8151 | /* end confdefs.h. */ | |
3a12e572 UD |
8152 | #include <stdlib.h> |
8153 | ||
8154 | _ACEOF | |
8155 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
f4b07664 | 8156 | $EGREP "free" >/dev/null 2>&1; then |
3a12e572 UD |
8157 | : |
8158 | else | |
8159 | ac_cv_header_stdc=no | |
8160 | fi | |
8161 | rm -f conftest* | |
8162 | ||
8163 | fi | |
8164 | ||
8165 | if test $ac_cv_header_stdc = yes; then | |
8166 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8ed1e7d5 | 8167 | if test "$cross_compiling" = yes; then |
3a12e572 | 8168 | : |
8ed1e7d5 | 8169 | else |
3a12e572 | 8170 | cat >conftest.$ac_ext <<_ACEOF |
2abf9ff1 RM |
8171 | /* confdefs.h. */ |
8172 | _ACEOF | |
8173 | cat confdefs.h >>conftest.$ac_ext | |
8174 | cat >>conftest.$ac_ext <<_ACEOF | |
8175 | /* end confdefs.h. */ | |
3a12e572 | 8176 | #include <ctype.h> |
26f56c1c | 8177 | #include <stdlib.h> |
3a12e572 UD |
8178 | #if ((' ' & 0x0FF) == 0x020) |
8179 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8180 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8181 | #else | |
2abf9ff1 | 8182 | # define ISLOWER(c) \ |
9382fcee RM |
8183 | (('a' <= (c) && (c) <= 'i') \ |
8184 | || ('j' <= (c) && (c) <= 'r') \ | |
8185 | || ('s' <= (c) && (c) <= 'z')) | |
3a12e572 UD |
8186 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
8187 | #endif | |
8188 | ||
8189 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8190 | int | |
8191 | main () | |
8ed1e7d5 | 8192 | { |
3a12e572 UD |
8193 | int i; |
8194 | for (i = 0; i < 256; i++) | |
8195 | if (XOR (islower (i), ISLOWER (i)) | |
9382fcee | 8196 | || toupper (i) != TOUPPER (i)) |
26f56c1c UD |
8197 | return 2; |
8198 | return 0; | |
8ed1e7d5 | 8199 | } |
3a12e572 UD |
8200 | _ACEOF |
8201 | rm -f conftest$ac_exeext | |
26f56c1c UD |
8202 | if { (ac_try="$ac_link" |
8203 | case "(($ac_try" in | |
8204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8205 | *) ac_try_echo=$ac_try;; | |
8206 | esac | |
322e23db UD |
8207 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8208 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 8209 | (eval "$ac_link") 2>&5 |
3a12e572 | 8210 | ac_status=$? |
322e23db | 8211 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 8212 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
26f56c1c UD |
8213 | { (case "(($ac_try" in |
8214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8215 | *) ac_try_echo=$ac_try;; | |
8216 | esac | |
322e23db UD |
8217 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8218 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 8219 | (eval "$ac_try") 2>&5 |
3a12e572 | 8220 | ac_status=$? |
322e23db | 8221 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 UD |
8222 | (exit $ac_status); }; }; then |
8223 | : | |
8ed1e7d5 | 8224 | else |
322e23db UD |
8225 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8226 | $as_echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
8227 | sed 's/^/| /' conftest.$ac_ext >&5 |
8228 | ||
3a12e572 UD |
8229 | ( exit $ac_status ) |
8230 | ac_cv_header_stdc=no | |
8231 | fi | |
322e23db | 8232 | rm -rf conftest.dSYM |
26f56c1c | 8233 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8ed1e7d5 | 8234 | fi |
26f56c1c UD |
8235 | |
8236 | ||
8ed1e7d5 | 8237 | fi |
3a12e572 | 8238 | fi |
322e23db UD |
8239 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
8240 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3a12e572 UD |
8241 | if test $ac_cv_header_stdc = yes; then |
8242 | ||
8243 | cat >>confdefs.h <<\_ACEOF | |
8244 | #define STDC_HEADERS 1 | |
8245 | _ACEOF | |
8246 | ||
8247 | fi | |
8248 | ||
8249 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
8250 | ||
8251 | ||
8252 | ||
8253 | ||
8254 | ||
8255 | ||
8256 | ||
8257 | ||
8258 | ||
8259 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
9382fcee | 8260 | inttypes.h stdint.h unistd.h |
3a12e572 | 8261 | do |
322e23db UD |
8262 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8263 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8264 | $as_echo_n "checking for $ac_header... " >&6; } | |
26f56c1c | 8265 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
322e23db | 8266 | $as_echo_n "(cached) " >&6 |
3a12e572 UD |
8267 | else |
8268 | cat >conftest.$ac_ext <<_ACEOF | |
2abf9ff1 RM |
8269 | /* confdefs.h. */ |
8270 | _ACEOF | |
8271 | cat confdefs.h >>conftest.$ac_ext | |
8272 | cat >>conftest.$ac_ext <<_ACEOF | |
8273 | /* end confdefs.h. */ | |
3a12e572 UD |
8274 | $ac_includes_default |
8275 | ||
8276 | #include <$ac_header> | |
8277 | _ACEOF | |
8278 | rm -f conftest.$ac_objext | |
26f56c1c UD |
8279 | if { (ac_try="$ac_compile" |
8280 | case "(($ac_try" in | |
8281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8282 | *) ac_try_echo=$ac_try;; | |
8283 | esac | |
322e23db UD |
8284 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8285 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 8286 | (eval "$ac_compile") 2>conftest.er1 |
3a12e572 | 8287 | ac_status=$? |
9382fcee RM |
8288 | grep -v '^ *+' conftest.er1 >conftest.err |
8289 | rm -f conftest.er1 | |
8290 | cat conftest.err >&5 | |
322e23db | 8291 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
8292 | (exit $ac_status); } && { |
8293 | test -z "$ac_c_werror_flag" || | |
8294 | test ! -s conftest.err | |
8295 | } && test -s conftest.$ac_objext; then | |
3a12e572 UD |
8296 | eval "$as_ac_Header=yes" |
8297 | else | |
322e23db | 8298 | $as_echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
8299 | sed 's/^/| /' conftest.$ac_ext >&5 |
8300 | ||
26f56c1c | 8301 | eval "$as_ac_Header=no" |
3a12e572 | 8302 | fi |
26f56c1c UD |
8303 | |
8304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3a12e572 | 8305 | fi |
322e23db UD |
8306 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8307 | $as_echo "$as_val"'` | |
8308 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8309 | $as_echo "$ac_res" >&6; } | |
8310 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8311 | $as_echo "$as_val"'` | |
8312 | if test "x$as_val" = x""yes; then | |
3a12e572 | 8313 | cat >>confdefs.h <<_ACEOF |
322e23db | 8314 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3a12e572 | 8315 | _ACEOF |
8ed1e7d5 GK |
8316 | |
8317 | fi | |
3a12e572 UD |
8318 | |
8319 | done | |
8320 | ||
8321 | ||
26f56c1c UD |
8322 | # The cast to long int works around a bug in the HP C Compiler |
8323 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
8324 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
8325 | # This bug is HP SR number 8606223364. | |
322e23db UD |
8326 | { $as_echo "$as_me:$LINENO: checking size of long double" >&5 |
8327 | $as_echo_n "checking size of long double... " >&6; } | |
3a12e572 | 8328 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
322e23db | 8329 | $as_echo_n "(cached) " >&6 |
3a12e572 | 8330 | else |
3a12e572 UD |
8331 | if test "$cross_compiling" = yes; then |
8332 | # Depending upon the size, compute the lo and hi bounds. | |
8333 | cat >conftest.$ac_ext <<_ACEOF | |
2abf9ff1 RM |
8334 | /* confdefs.h. */ |
8335 | _ACEOF | |
8336 | cat confdefs.h >>conftest.$ac_ext | |
8337 | cat >>conftest.$ac_ext <<_ACEOF | |
8338 | /* end confdefs.h. */ | |
3a12e572 | 8339 | $ac_includes_default |
3a12e572 UD |
8340 | int |
8341 | main () | |
8342 | { | |
322e23db | 8343 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)]; |
3a12e572 UD |
8344 | test_array [0] = 0 |
8345 | ||
8346 | ; | |
8347 | return 0; | |
8348 | } | |
8349 | _ACEOF | |
8350 | rm -f conftest.$ac_objext | |
26f56c1c UD |
8351 | if { (ac_try="$ac_compile" |
8352 | case "(($ac_try" in | |
8353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8354 | *) ac_try_echo=$ac_try;; | |
8355 | esac | |
322e23db UD |
8356 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8357 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 8358 | (eval "$ac_compile") 2>conftest.er1 |
3a12e572 | 8359 | ac_status=$? |
9382fcee RM |
8360 | grep -v '^ *+' conftest.er1 >conftest.err |
8361 | rm -f conftest.er1 | |
8362 | cat conftest.err >&5 | |
322e23db | 8363 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
8364 | (exit $ac_status); } && { |
8365 | test -z "$ac_c_werror_flag" || | |
8366 | test ! -s conftest.err | |
8367 | } && test -s conftest.$ac_objext; then | |
3a12e572 UD |
8368 | ac_lo=0 ac_mid=0 |
8369 | while :; do | |
8370 | cat >conftest.$ac_ext <<_ACEOF | |
2abf9ff1 RM |
8371 | /* confdefs.h. */ |
8372 | _ACEOF | |
8373 | cat confdefs.h >>conftest.$ac_ext | |
8374 | cat >>conftest.$ac_ext <<_ACEOF | |
8375 | /* end confdefs.h. */ | |
3a12e572 | 8376 | $ac_includes_default |
3a12e572 UD |
8377 | int |
8378 | main () | |
8379 | { | |
322e23db | 8380 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)]; |
3a12e572 UD |
8381 | test_array [0] = 0 |
8382 | ||
8383 | ; | |
8384 | return 0; | |
8385 | } | |
8386 | _ACEOF | |
8387 | rm -f conftest.$ac_objext | |
26f56c1c UD |
8388 | if { (ac_try="$ac_compile" |
8389 | case "(($ac_try" in | |
8390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8391 | *) ac_try_echo=$ac_try;; | |
8392 | esac | |
322e23db UD |
8393 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8394 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 8395 | (eval "$ac_compile") 2>conftest.er1 |
3a12e572 | 8396 | ac_status=$? |
9382fcee RM |
8397 | grep -v '^ *+' conftest.er1 >conftest.err |
8398 | rm -f conftest.er1 | |
8399 | cat conftest.err >&5 | |
322e23db | 8400 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
8401 | (exit $ac_status); } && { |
8402 | test -z "$ac_c_werror_flag" || | |
8403 | test ! -s conftest.err | |
8404 | } && test -s conftest.$ac_objext; then | |
3a12e572 UD |
8405 | ac_hi=$ac_mid; break |
8406 | else | |
322e23db | 8407 | $as_echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
8408 | sed 's/^/| /' conftest.$ac_ext >&5 |
8409 | ||
26f56c1c UD |
8410 | ac_lo=`expr $ac_mid + 1` |
8411 | if test $ac_lo -le $ac_mid; then | |
8412 | ac_lo= ac_hi= | |
8413 | break | |
8414 | fi | |
8415 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
3a12e572 | 8416 | fi |
26f56c1c UD |
8417 | |
8418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3a12e572 UD |
8419 | done |
8420 | else | |
322e23db | 8421 | $as_echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
8422 | sed 's/^/| /' conftest.$ac_ext >&5 |
8423 | ||
26f56c1c | 8424 | cat >conftest.$ac_ext <<_ACEOF |
2abf9ff1 RM |
8425 | /* confdefs.h. */ |
8426 | _ACEOF | |
8427 | cat confdefs.h >>conftest.$ac_ext | |
8428 | cat >>conftest.$ac_ext <<_ACEOF | |
8429 | /* end confdefs.h. */ | |
3a12e572 | 8430 | $ac_includes_default |
3a12e572 UD |
8431 | int |
8432 | main () | |
8433 | { | |
322e23db | 8434 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)]; |
3a12e572 UD |
8435 | test_array [0] = 0 |
8436 | ||
8437 | ; | |
8438 | return 0; | |
8439 | } | |
8440 | _ACEOF | |
8441 | rm -f conftest.$ac_objext | |
26f56c1c UD |
8442 | if { (ac_try="$ac_compile" |
8443 | case "(($ac_try" in | |
8444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8445 | *) ac_try_echo=$ac_try;; | |
8446 | esac | |
322e23db UD |
8447 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8448 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 8449 | (eval "$ac_compile") 2>conftest.er1 |
3a12e572 | 8450 | ac_status=$? |
9382fcee RM |
8451 | grep -v '^ *+' conftest.er1 >conftest.err |
8452 | rm -f conftest.er1 | |
8453 | cat conftest.err >&5 | |
322e23db | 8454 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
8455 | (exit $ac_status); } && { |
8456 | test -z "$ac_c_werror_flag" || | |
8457 | test ! -s conftest.err | |
8458 | } && test -s conftest.$ac_objext; then | |
3a12e572 UD |
8459 | ac_hi=-1 ac_mid=-1 |
8460 | while :; do | |
8461 | cat >conftest.$ac_ext <<_ACEOF | |
2abf9ff1 RM |
8462 | /* confdefs.h. */ |
8463 | _ACEOF | |
8464 | cat confdefs.h >>conftest.$ac_ext | |
8465 | cat >>conftest.$ac_ext <<_ACEOF | |
8466 | /* end confdefs.h. */ | |
3a12e572 | 8467 | $ac_includes_default |
3a12e572 UD |
8468 | int |
8469 | main () | |
8470 | { | |
322e23db | 8471 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)]; |
3a12e572 UD |
8472 | test_array [0] = 0 |
8473 | ||
8474 | ; | |
8475 | return 0; | |
8476 | } | |
8477 | _ACEOF | |
8478 | rm -f conftest.$ac_objext | |
26f56c1c UD |
8479 | if { (ac_try="$ac_compile" |
8480 | case "(($ac_try" in | |
8481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8482 | *) ac_try_echo=$ac_try;; | |
8483 | esac | |
322e23db UD |
8484 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8485 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 8486 | (eval "$ac_compile") 2>conftest.er1 |
3a12e572 | 8487 | ac_status=$? |
9382fcee RM |
8488 | grep -v '^ *+' conftest.er1 >conftest.err |
8489 | rm -f conftest.er1 | |
8490 | cat conftest.err >&5 | |
322e23db | 8491 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
8492 | (exit $ac_status); } && { |
8493 | test -z "$ac_c_werror_flag" || | |
8494 | test ! -s conftest.err | |
8495 | } && test -s conftest.$ac_objext; then | |
3a12e572 UD |
8496 | ac_lo=$ac_mid; break |
8497 | else | |
322e23db | 8498 | $as_echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
8499 | sed 's/^/| /' conftest.$ac_ext >&5 |
8500 | ||
26f56c1c UD |
8501 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8502 | if test $ac_mid -le $ac_hi; then | |
8503 | ac_lo= ac_hi= | |
8504 | break | |
8505 | fi | |
8506 | ac_mid=`expr 2 '*' $ac_mid` | |
3a12e572 | 8507 | fi |
26f56c1c UD |
8508 | |
8509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3a12e572 UD |
8510 | done |
8511 | else | |
322e23db | 8512 | $as_echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
8513 | sed 's/^/| /' conftest.$ac_ext >&5 |
8514 | ||
26f56c1c | 8515 | ac_lo= ac_hi= |
3a12e572 | 8516 | fi |
26f56c1c UD |
8517 | |
8518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3a12e572 | 8519 | fi |
26f56c1c UD |
8520 | |
8521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3a12e572 UD |
8522 | # Binary search between lo and hi bounds. |
8523 | while test "x$ac_lo" != "x$ac_hi"; do | |
8524 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
8525 | cat >conftest.$ac_ext <<_ACEOF | |
2abf9ff1 RM |
8526 | /* confdefs.h. */ |
8527 | _ACEOF | |
8528 | cat confdefs.h >>conftest.$ac_ext | |
8529 | cat >>conftest.$ac_ext <<_ACEOF | |
8530 | /* end confdefs.h. */ | |
3a12e572 | 8531 | $ac_includes_default |
3a12e572 UD |
8532 | int |
8533 | main () | |
8534 | { | |
322e23db | 8535 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)]; |
3a12e572 UD |
8536 | test_array [0] = 0 |
8537 | ||
8538 | ; | |
8539 | return 0; | |
8540 | } | |
8541 | _ACEOF | |
8542 | rm -f conftest.$ac_objext | |
26f56c1c UD |
8543 | if { (ac_try="$ac_compile" |
8544 | case "(($ac_try" in | |
8545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8546 | *) ac_try_echo=$ac_try;; | |
8547 | esac | |
322e23db UD |
8548 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8549 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 8550 | (eval "$ac_compile") 2>conftest.er1 |
3a12e572 | 8551 | ac_status=$? |
9382fcee RM |
8552 | grep -v '^ *+' conftest.er1 >conftest.err |
8553 | rm -f conftest.er1 | |
8554 | cat conftest.err >&5 | |
322e23db | 8555 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26f56c1c UD |
8556 | (exit $ac_status); } && { |
8557 | test -z "$ac_c_werror_flag" || | |
8558 | test ! -s conftest.err | |
8559 | } && test -s conftest.$ac_objext; then | |
3a12e572 UD |
8560 | ac_hi=$ac_mid |
8561 | else | |
322e23db | 8562 | $as_echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
8563 | sed 's/^/| /' conftest.$ac_ext >&5 |
8564 | ||
26f56c1c | 8565 | ac_lo=`expr '(' $ac_mid ')' + 1` |
3a12e572 | 8566 | fi |
26f56c1c UD |
8567 | |
8568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3a12e572 UD |
8569 | done |
8570 | case $ac_lo in | |
8571 | ?*) ac_cv_sizeof_long_double=$ac_lo;; | |
26f56c1c | 8572 | '') if test "$ac_cv_type_long_double" = yes; then |
322e23db UD |
8573 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
8574 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8575 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double) | |
2abf9ff1 | 8576 | See \`config.log' for more details." >&5 |
322e23db | 8577 | $as_echo "$as_me: error: cannot compute sizeof (long double) |
2abf9ff1 | 8578 | See \`config.log' for more details." >&2;} |
322e23db | 8579 | { (exit 77); exit 77; }; }; } |
26f56c1c UD |
8580 | else |
8581 | ac_cv_sizeof_long_double=0 | |
8582 | fi ;; | |
3a12e572 | 8583 | esac |
3a12e572 UD |
8584 | else |
8585 | cat >conftest.$ac_ext <<_ACEOF | |
2abf9ff1 RM |
8586 | /* confdefs.h. */ |
8587 | _ACEOF | |
8588 | cat confdefs.h >>conftest.$ac_ext | |
8589 | cat >>conftest.$ac_ext <<_ACEOF | |
8590 | /* end confdefs.h. */ | |
3a12e572 | 8591 | $ac_includes_default |
322e23db UD |
8592 | static long int longval () { return (long int) (sizeof (long double)); } |
8593 | static unsigned long int ulongval () { return (long int) (sizeof (long double)); } | |
3a12e572 UD |
8594 | #include <stdio.h> |
8595 | #include <stdlib.h> | |
3a12e572 UD |
8596 | int |
8597 | main () | |
8598 | { | |
8599 | ||
8600 | FILE *f = fopen ("conftest.val", "w"); | |
8601 | if (! f) | |
26f56c1c | 8602 | return 1; |
322e23db | 8603 | if (((long int) (sizeof (long double))) < 0) |
3a12e572 | 8604 | { |
26f56c1c | 8605 | long int i = longval (); |
322e23db | 8606 | if (i != ((long int) (sizeof (long double)))) |
26f56c1c | 8607 | return 1; |
322e23db | 8608 | fprintf (f, "%ld", i); |
3a12e572 UD |
8609 | } |
8610 | else | |
8611 | { | |
26f56c1c | 8612 | unsigned long int i = ulongval (); |
322e23db | 8613 | if (i != ((long int) (sizeof (long double)))) |
26f56c1c | 8614 | return 1; |
322e23db | 8615 | fprintf (f, "%lu", i); |
3a12e572 | 8616 | } |
322e23db UD |
8617 | /* Do not output a trailing newline, as this causes \r\n confusion |
8618 | on some platforms. */ | |
26f56c1c | 8619 | return ferror (f) || fclose (f) != 0; |
3a12e572 UD |
8620 | |
8621 | ; | |
8622 | return 0; | |
8623 | } | |
8624 | _ACEOF | |
8625 | rm -f conftest$ac_exeext | |
26f56c1c UD |
8626 | if { (ac_try="$ac_link" |
8627 | case "(($ac_try" in | |
8628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8629 | *) ac_try_echo=$ac_try;; | |
8630 | esac | |
322e23db UD |
8631 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8632 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 8633 | (eval "$ac_link") 2>&5 |
3a12e572 | 8634 | ac_status=$? |
322e23db | 8635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 | 8636 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
26f56c1c UD |
8637 | { (case "(($ac_try" in |
8638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8639 | *) ac_try_echo=$ac_try;; | |
8640 | esac | |
322e23db UD |
8641 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8642 | $as_echo "$ac_try_echo") >&5 | |
26f56c1c | 8643 | (eval "$ac_try") 2>&5 |
3a12e572 | 8644 | ac_status=$? |
322e23db | 8645 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3a12e572 UD |
8646 | (exit $ac_status); }; }; then |
8647 | ac_cv_sizeof_long_double=`cat conftest.val` | |
8648 | else | |
322e23db UD |
8649 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8650 | $as_echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
8651 | sed 's/^/| /' conftest.$ac_ext >&5 |
8652 | ||
3a12e572 | 8653 | ( exit $ac_status ) |
26f56c1c | 8654 | if test "$ac_cv_type_long_double" = yes; then |
322e23db UD |
8655 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
8656 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8657 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double) | |
2abf9ff1 | 8658 | See \`config.log' for more details." >&5 |
322e23db | 8659 | $as_echo "$as_me: error: cannot compute sizeof (long double) |
2abf9ff1 | 8660 | See \`config.log' for more details." >&2;} |
322e23db | 8661 | { (exit 77); exit 77; }; }; } |
26f56c1c UD |
8662 | else |
8663 | ac_cv_sizeof_long_double=0 | |
8664 | fi | |
3a12e572 | 8665 | fi |
322e23db | 8666 | rm -rf conftest.dSYM |
26f56c1c | 8667 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3a12e572 UD |
8668 | fi |
8669 | rm -f conftest.val | |
3a12e572 | 8670 | fi |
322e23db UD |
8671 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
8672 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | |
26f56c1c UD |
8673 | |
8674 | ||
8675 | ||
3a12e572 | 8676 | cat >>confdefs.h <<_ACEOF |
8ed1e7d5 | 8677 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
3a12e572 | 8678 | _ACEOF |
8ed1e7d5 GK |
8679 | |
8680 | ||
8681 | sizeof_long_double=$ac_cv_sizeof_long_double | |
8682 | ||
8683 | ||
cd6ede75 UD |
8684 | ### End of automated tests. |
8685 | ### Now run sysdeps configure fragments. | |
8686 | ||
cb343854 | 8687 | # They also can set these variables. |
b43b13ac | 8688 | use_ldconfig=no |
cb343854 | 8689 | ldd_rewrite_script=no |
77259608 | 8690 | libc_cv_sysconfdir=$sysconfdir |
74bd2300 | 8691 | libc_cv_gcc_unwind_find_fde=no |
e2fd3cbe | 8692 | libc_cv_idn=no |
cb343854 | 8693 | |
cd6ede75 UD |
8694 | # Iterate over all the sysdep directories we will use, running their |
8695 | # configure fragments, and looking for a uname implementation. | |
8696 | uname= | |
8697 | for dir in $sysnames; do | |
8698 | case $dir in | |
8699 | /*) dest=$dir ;; | |
8700 | *) dest=$srcdir/$dir ;; | |
8701 | esac | |
8702 | if test -r $dest/configure; then | |
322e23db UD |
8703 | { $as_echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5 |
8704 | $as_echo "running configure fragment for $dir" >&6; } | |
cd6ede75 UD |
8705 | . $dest/configure |
8706 | fi | |
8707 | ||
8708 | if test -z "$uname"; then | |
8709 | if test -r $dest/uname.c || | |
8710 | test -r $dest/uname.S || | |
8711 | { test -r $dest/syscalls.list && | |
8712 | grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then | |
8713 | uname=$dir | |
8714 | fi | |
8715 | fi | |
8716 | done | |
8717 | ||
74bd2300 | 8718 | if test x$libc_cv_gcc_unwind_find_fde = xyes; then |
3a12e572 | 8719 | cat >>confdefs.h <<\_ACEOF |
74bd2300 | 8720 | #define EXPORT_UNWIND_FIND_FDE 1 |
3a12e572 | 8721 | _ACEOF |
74bd2300 UD |
8722 | |
8723 | fi | |
8724 | ||
8725 | ||
cd6ede75 UD |
8726 | # If we will use the generic uname implementation, we must figure out what |
8727 | # it will say by examining the system, and write the results in config-name.h. | |
8728 | if test "$uname" = "sysdeps/generic"; then | |
8729 | ||
8730 | uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'` | |
8731 | if test $uname_sysname != $config_os; then | |
8732 | config_release=`echo $config_os | sed s/$uname_sysname//` | |
8733 | fi | |
8734 | ||
322e23db UD |
8735 | { $as_echo "$as_me:$LINENO: checking OS release for uname" >&5 |
8736 | $as_echo_n "checking OS release for uname... " >&6; } | |
3a12e572 | 8737 | if test "${libc_cv_uname_release+set}" = set; then |
322e23db | 8738 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 8739 | else |
3a12e572 UD |
8740 | if test -r /vmunix; then |
8741 | kernel_id=`strings /vmunix | grep UNIX` | |
8742 | elif test -r /dynix; then | |
8743 | kernel_id=`strings /dynix | grep DYNIX` | |
8744 | else | |
8745 | kernel_id= | |
8746 | fi | |
8747 | ||
8748 | kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'` | |
cd6ede75 UD |
8749 | if test x`echo "$config_release" | sed "s/^$kernel_release//"` \ |
8750 | != x$config_release; then | |
8751 | # The configuration release is a substring of the kernel release. | |
8752 | libc_cv_uname_release=$kernel_release | |
8753 | elif test x$config_release != x; then | |
8754 | libc_cv_uname_release=$config_release | |
8755 | elif test x$kernel_release != x; then | |
8756 | libc_cv_uname_release=$kernel_release | |
8757 | else | |
8758 | libc_cv_uname_release=unknown | |
8759 | fi | |
8760 | fi | |
322e23db UD |
8761 | { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5 |
8762 | $as_echo "$libc_cv_uname_release" >&6; } | |
cd6ede75 UD |
8763 | uname_release="$libc_cv_uname_release" |
8764 | ||
322e23db UD |
8765 | { $as_echo "$as_me:$LINENO: checking OS version for uname" >&5 |
8766 | $as_echo_n "checking OS version for uname... " >&6; } | |
3a12e572 | 8767 | if test "${libc_cv_uname_version+set}" = set; then |
322e23db | 8768 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 8769 | else |
3a12e572 UD |
8770 | if test -r /vmunix; then |
8771 | kernel_id=`strings /vmunix | grep UNIX` | |
8772 | elif test -r /dynix; then | |
8773 | kernel_id=`strings /dynix | grep DYNIX` | |
8774 | else | |
8775 | kernel_id= | |
8776 | fi | |
8777 | ||
8778 | kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'` | |
cd6ede75 UD |
8779 | if test -n "$kernel_version"; then |
8780 | libc_cv_uname_version="$kernel_version" | |
8781 | else | |
8782 | libc_cv_uname_version=unknown | |
8783 | fi | |
8784 | fi | |
322e23db UD |
8785 | { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5 |
8786 | $as_echo "$libc_cv_uname_version" >&6; } | |
cd6ede75 UD |
8787 | uname_version="$libc_cv_uname_version" |
8788 | ||
8789 | config_uname=config-name.h:config-name.in | |
8790 | else | |
8791 | # For non-generic uname, we don't need to create config-name.h at all. | |
8792 | config_uname= | |
8793 | fi | |
8794 | ||
3a12e572 | 8795 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 8796 | #define USE_IN_LIBIO 1 |
3a12e572 | 8797 | _ACEOF |
a8c01776 | 8798 | |
cd6ede75 | 8799 | |
a53bad16 UD |
8800 | # Test for old glibc 2.0.x headers so that they can be removed properly |
8801 | # Search only in includedir. | |
322e23db UD |
8802 | { $as_echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5 |
8803 | $as_echo_n "checking for old glibc 2.0.x headers... " >&6; } | |
011ce8ed | 8804 | if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h" |
a53bad16 UD |
8805 | then |
8806 | old_glibc_headers=yes | |
8807 | else | |
8808 | old_glibc_headers=no | |
8809 | fi | |
322e23db UD |
8810 | { $as_echo "$as_me:$LINENO: result: $old_glibc_headers" >&5 |
8811 | $as_echo "$old_glibc_headers" >&6; } | |
a53bad16 | 8812 | if test ${old_glibc_headers} = yes; then |
322e23db UD |
8813 | { $as_echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5 |
8814 | $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;} | |
8815 | { $as_echo "$as_me:$LINENO: WARNING: *** be removed." >&5 | |
8816 | $as_echo "$as_me: WARNING: *** be removed." >&2;} | |
a53bad16 | 8817 | fi |
26b4d766 | 8818 | |
cd6ede75 UD |
8819 | |
8820 | ||
8821 | ||
8822 | ||
8823 | ||
8824 | ||
cb343854 | 8825 | |
dff14448 | 8826 | |
77259608 | 8827 | |
3a12e572 | 8828 | |
bcd5f356 | 8829 | |
58a4b51a RM |
8830 | |
8831 | ||
06e51c8f | 8832 | |
b0ecde3a | 8833 | |
01f1f5ee | 8834 | |
cd6ede75 | 8835 | if test $elf = yes; then |
3a12e572 | 8836 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 8837 | #define HAVE_ELF 1 |
3a12e572 | 8838 | _ACEOF |
cd6ede75 UD |
8839 | |
8840 | fi | |
5af3245a | 8841 | if test $xcoff = yes; then |
3a12e572 | 8842 | cat >>confdefs.h <<\_ACEOF |
5af3245a | 8843 | #define HAVE_XCOFF 1 |
3a12e572 | 8844 | _ACEOF |
5af3245a UD |
8845 | |
8846 | fi | |
cd6ede75 UD |
8847 | |
8848 | ||
650425ce | 8849 | |
cd6ede75 | 8850 | if test $shared = default; then |
8e635611 | 8851 | shared=$elf |
a334319f UD |
8852 | fi |
8853 | ||
322e23db UD |
8854 | { $as_echo "$as_me:$LINENO: checking whether -fPIC is default" >&5 |
8855 | $as_echo_n "checking whether -fPIC is default... " >&6; } | |
ff886b82 | 8856 | if test "${libc_cv_pic_default+set}" = set; then |
322e23db | 8857 | $as_echo_n "(cached) " >&6 |
cc3fa755 | 8858 | else |
ff886b82 | 8859 | libc_cv_pic_default=yes |
cc3fa755 | 8860 | cat > conftest.c <<EOF |
9756dfe1 | 8861 | #if defined __PIC__ || defined __pic__ || defined PIC || defined pic |
cc3fa755 UD |
8862 | # error PIC is default. |
8863 | #endif | |
8864 | EOF | |
8865 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
ff886b82 | 8866 | libc_cv_pic_default=no |
cc3fa755 UD |
8867 | fi |
8868 | rm -f conftest.* | |
8869 | fi | |
322e23db UD |
8870 | { $as_echo "$as_me:$LINENO: result: $libc_cv_pic_default" >&5 |
8871 | $as_echo "$libc_cv_pic_default" >&6; } | |
cc3fa755 UD |
8872 | |
8873 | ||
2103c260 | 8874 | |
2103c260 | 8875 | |
2103c260 | 8876 | |
cc3fa755 | 8877 | |
cd6ede75 UD |
8878 | |
8879 | ||
8880 | ||
8881 | ||
8882 | ||
8883 | ||
cd6ede75 UD |
8884 | if test "`(cd $srcdir; pwd)`" = "`pwd`"; then |
8885 | config_makefile= | |
8886 | else | |
8887 | config_makefile=Makefile | |
8888 | fi | |
8889 | ||
ee74a442 UD |
8890 | VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h` |
8891 | RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h` | |
8892 | ||
cd6ede75 UD |
8893 | |
8894 | ||
26f56c1c | 8895 | ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}" |
f4b07664 | 8896 | |
26f56c1c | 8897 | ac_config_commands="$ac_config_commands default" |
f4b07664 | 8898 | |
3a12e572 | 8899 | cat >confcache <<\_ACEOF |
cd6ede75 UD |
8900 | # This file is a shell script that caches the results of configure |
8901 | # tests run on this system so they can be shared between configure | |
3a12e572 UD |
8902 | # scripts and configure runs, see configure's option --config-cache. |
8903 | # It is not useful on other systems. If it contains results you don't | |
8904 | # want to keep, you may remove or edit it. | |
cd6ede75 | 8905 | # |
3a12e572 UD |
8906 | # config.status only pays attention to the cache file if you give it |
8907 | # the --recheck option to rerun configure. | |
cd6ede75 | 8908 | # |
f4b07664 | 8909 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
3a12e572 UD |
8910 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
8911 | # following values. | |
8912 | ||
8913 | _ACEOF | |
8914 | ||
cd6ede75 UD |
8915 | # The following way of writing the cache mishandles newlines in values, |
8916 | # but we know of no workaround that is simple, portable, and efficient. | |
26f56c1c | 8917 | # So, we kill variables containing newlines. |
cd6ede75 UD |
8918 | # Ultrix sh set writes to stderr and can't be redirected directly, |
8919 | # and sets the high bit in the cache file unless we assign to the vars. | |
26f56c1c UD |
8920 | ( |
8921 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
8922 | eval ac_val=\$$ac_var | |
8923 | case $ac_val in #( | |
8924 | *${as_nl}*) | |
8925 | case $ac_var in #( | |
322e23db UD |
8926 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
8927 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26f56c1c UD |
8928 | esac |
8929 | case $ac_var in #( | |
8930 | _ | IFS | as_nl) ;; #( | |
322e23db | 8931 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
26f56c1c UD |
8932 | *) $as_unset $ac_var ;; |
8933 | esac ;; | |
8934 | esac | |
8935 | done | |
8936 | ||
3a12e572 | 8937 | (set) 2>&1 | |
26f56c1c UD |
8938 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
8939 | *${as_nl}ac_space=\ *) | |
3a12e572 UD |
8940 | # `set' does not quote correctly, so add quotes (double-quote |
8941 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
8942 | sed -n \ | |
9382fcee RM |
8943 | "s/'/'\\\\''/g; |
8944 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
26f56c1c | 8945 | ;; #( |
3a12e572 UD |
8946 | *) |
8947 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
26f56c1c | 8948 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
3a12e572 | 8949 | ;; |
26f56c1c UD |
8950 | esac | |
8951 | sort | |
8952 | ) | | |
3a12e572 | 8953 | sed ' |
26f56c1c | 8954 | /^ac_cv_env_/b end |
3a12e572 | 8955 | t clear |
26f56c1c | 8956 | :clear |
3a12e572 UD |
8957 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
8958 | t end | |
26f56c1c UD |
8959 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
8960 | :end' >>confcache | |
8961 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
8962 | if test -w "$cache_file"; then | |
8963 | test "x$cache_file" != "x/dev/null" && | |
322e23db UD |
8964 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
8965 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
3a12e572 | 8966 | cat confcache >$cache_file |
cd6ede75 | 8967 | else |
322e23db UD |
8968 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
8969 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
cd6ede75 UD |
8970 | fi |
8971 | fi | |
8972 | rm -f confcache | |
8973 | ||
cd6ede75 UD |
8974 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
8975 | # Let make expand exec_prefix. | |
8976 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8977 | ||
cd6ede75 UD |
8978 | DEFS=-DHAVE_CONFIG_H |
8979 | ||
f4b07664 RM |
8980 | ac_libobjs= |
8981 | ac_ltlibobjs= | |
8982 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
8983 | # 1. Remove the extension, and $U if already installed. | |
26f56c1c | 8984 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
322e23db | 8985 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
26f56c1c UD |
8986 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
8987 | # will be set to the directory where LIBOBJS objects are built. | |
8988 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
8989 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
f4b07664 RM |
8990 | done |
8991 | LIBOBJS=$ac_libobjs | |
8992 | ||
8993 | LTLIBOBJS=$ac_ltlibobjs | |
8994 | ||
8995 | ||
cd6ede75 | 8996 | |
3a12e572 | 8997 | : ${CONFIG_STATUS=./config.status} |
322e23db | 8998 | ac_write_fail=0 |
3a12e572 UD |
8999 | ac_clean_files_save=$ac_clean_files |
9000 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
322e23db UD |
9001 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
9002 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
9003 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3a12e572 UD |
9004 | #! $SHELL |
9005 | # Generated by $as_me. | |
cd6ede75 | 9006 | # Run this file to recreate the current configuration. |
cd6ede75 | 9007 | # Compiler output produced by configure, useful for debugging |
3a12e572 | 9008 | # configure, is in config.log if it exists. |
cd6ede75 | 9009 | |
3a12e572 | 9010 | debug=false |
2abf9ff1 RM |
9011 | ac_cs_recheck=false |
9012 | ac_cs_silent=false | |
3a12e572 UD |
9013 | SHELL=\${CONFIG_SHELL-$SHELL} |
9014 | _ACEOF | |
9015 | ||
322e23db | 9016 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3a12e572 UD |
9017 | ## --------------------- ## |
9018 | ## M4sh Initialization. ## | |
9019 | ## --------------------- ## | |
9020 | ||
26f56c1c UD |
9021 | # Be more Bourne compatible |
9022 | DUALCASE=1; export DUALCASE # for MKS sh | |
3a12e572 UD |
9023 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
9024 | emulate sh | |
9025 | NULLCMD=: | |
322e23db | 9026 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
f4b07664 RM |
9027 | # is contrary to our usage. Disable this feature. |
9028 | alias -g '${1+"$@"}'='"$@"' | |
26f56c1c UD |
9029 | setopt NO_GLOB_SUBST |
9030 | else | |
9031 | case `(set -o) 2>/dev/null` in | |
9032 | *posix*) set -o posix ;; | |
9033 | esac | |
9034 | ||
9035 | fi | |
9036 | ||
9037 | ||
9038 | ||
9039 | ||
9040 | # PATH needs CR | |
9041 | # Avoid depending upon Character Ranges. | |
9042 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
9043 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
9044 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
9045 | as_cr_digits='0123456789' | |
9046 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
9047 | ||
322e23db UD |
9048 | as_nl=' |
9049 | ' | |
9050 | export as_nl | |
9051 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
9052 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
9053 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
9054 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
9055 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
9056 | as_echo='printf %s\n' | |
9057 | as_echo_n='printf %s' | |
9058 | else | |
9059 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
9060 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
9061 | as_echo_n='/usr/ucb/echo -n' | |
a152f366 | 9062 | else |
322e23db UD |
9063 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
9064 | as_echo_n_body='eval | |
9065 | arg=$1; | |
9066 | case $arg in | |
9067 | *"$as_nl"*) | |
9068 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
9069 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
9070 | esac; | |
9071 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
9072 | ' | |
9073 | export as_echo_n_body | |
9074 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
a152f366 | 9075 | fi |
322e23db UD |
9076 | export as_echo_body |
9077 | as_echo='sh -c $as_echo_body as_echo' | |
9078 | fi | |
9079 | ||
9080 | # The user is always right. | |
9081 | if test "${PATH_SEPARATOR+set}" != set; then | |
9082 | PATH_SEPARATOR=: | |
9083 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
9084 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
9085 | PATH_SEPARATOR=';' | |
9086 | } | |
3a12e572 UD |
9087 | fi |
9088 | ||
3a12e572 | 9089 | # Support unset when possible. |
9382fcee | 9090 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
3a12e572 UD |
9091 | as_unset=unset |
9092 | else | |
9093 | as_unset=false | |
9094 | fi | |
9095 | ||
f4b07664 | 9096 | |
26f56c1c UD |
9097 | # IFS |
9098 | # We need space, tab and new line, in precisely that order. Quoting is | |
9099 | # there to prevent editors from complaining about space-tab. | |
9100 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
9101 | # splitting by setting IFS to empty value.) | |
26f56c1c UD |
9102 | IFS=" "" $as_nl" |
9103 | ||
9104 | # Find who we are. Look in the path if we contain no directory separator. | |
9105 | case $0 in | |
9106 | *[\\/]* ) as_myself=$0 ;; | |
9107 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9108 | for as_dir in $PATH | |
9109 | do | |
9110 | IFS=$as_save_IFS | |
9111 | test -z "$as_dir" && as_dir=. | |
9112 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
9113 | done | |
9114 | IFS=$as_save_IFS | |
9115 | ||
9116 | ;; | |
9117 | esac | |
9118 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
9119 | # in which case we are not to be found in the path. | |
9120 | if test "x$as_myself" = x; then | |
9121 | as_myself=$0 | |
9122 | fi | |
9123 | if test ! -f "$as_myself"; then | |
322e23db | 9124 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
26f56c1c UD |
9125 | { (exit 1); exit 1; } |
9126 | fi | |
9127 | ||
f4b07664 | 9128 | # Work around bugs in pre-3.0 UWIN ksh. |
26f56c1c UD |
9129 | for as_var in ENV MAIL MAILPATH |
9130 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
9131 | done | |
f4b07664 RM |
9132 | PS1='$ ' |
9133 | PS2='> ' | |
9134 | PS4='+ ' | |
9135 | ||
9136 | # NLS nuisances. | |
322e23db UD |
9137 | LC_ALL=C |
9138 | export LC_ALL | |
9139 | LANGUAGE=C | |
9140 | export LANGUAGE | |
f4b07664 RM |
9141 | |
9142 | # Required to use basename. | |
26f56c1c UD |
9143 | if expr a : '\(a\)' >/dev/null 2>&1 && |
9144 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f4b07664 RM |
9145 | as_expr=expr |
9146 | else | |
9147 | as_expr=false | |
9148 | fi | |
9149 | ||
26f56c1c | 9150 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
f4b07664 RM |
9151 | as_basename=basename |
9152 | else | |
9153 | as_basename=false | |
9154 | fi | |
3a12e572 UD |
9155 | |
9156 | ||
9157 | # Name of the executable. | |
26f56c1c | 9158 | as_me=`$as_basename -- "$0" || |
3a12e572 UD |
9159 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
9160 | X"$0" : 'X\(//\)$' \| \ | |
26f56c1c | 9161 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
322e23db | 9162 | $as_echo X/"$0" | |
26f56c1c UD |
9163 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
9164 | s//\1/ | |
9165 | q | |
9166 | } | |
9167 | /^X\/\(\/\/\)$/{ | |
9168 | s//\1/ | |
9169 | q | |
9170 | } | |
9171 | /^X\/\(\/\).*/{ | |
9172 | s//\1/ | |
9173 | q | |
9174 | } | |
9175 | s/.*/./; q'` | |
3a12e572 | 9176 | |
26f56c1c UD |
9177 | # CDPATH. |
9178 | $as_unset CDPATH | |
3a12e572 UD |
9179 | |
9180 | ||
3a12e572 | 9181 | |
3a12e572 UD |
9182 | as_lineno_1=$LINENO |
9183 | as_lineno_2=$LINENO | |
3a12e572 | 9184 | test "x$as_lineno_1" != "x$as_lineno_2" && |
26f56c1c | 9185 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
cd6ede75 | 9186 | |
3a12e572 UD |
9187 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
9188 | # uniformly replaced by the line number. The first 'sed' inserts a | |
26f56c1c UD |
9189 | # line-number line after each line using $LINENO; the second 'sed' |
9190 | # does the real work. The second script uses 'N' to pair each | |
9191 | # line-number line with the line containing $LINENO, and appends | |
9192 | # trailing '-' during substitution so that $LINENO is not a special | |
9193 | # case at line end. | |
3a12e572 | 9194 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
26f56c1c UD |
9195 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
9196 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
9197 | sed -n ' | |
9198 | p | |
9199 | /[$]LINENO/= | |
9200 | ' <$as_myself | | |
3a12e572 | 9201 | sed ' |
26f56c1c UD |
9202 | s/[$]LINENO.*/&-/ |
9203 | t lineno | |
9204 | b | |
9205 | :lineno | |
3a12e572 | 9206 | N |
26f56c1c UD |
9207 | :loop |
9208 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
3a12e572 | 9209 | t loop |
26f56c1c | 9210 | s/-\n.*// |
3a12e572 | 9211 | ' >$as_me.lineno && |
26f56c1c | 9212 | chmod +x "$as_me.lineno" || |
322e23db | 9213 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
3a12e572 UD |
9214 | { (exit 1); exit 1; }; } |
9215 | ||
9216 | # Don't try to exec as it changes $[0], causing all sort of problems | |
9217 | # (the dirname of $[0] is not the place where we might find the | |
26f56c1c UD |
9218 | # original and so on. Autoconf is especially sensitive to this). |
9219 | . "./$as_me.lineno" | |
3a12e572 UD |
9220 | # Exit status is that of the last command. |
9221 | exit | |
9222 | } | |
cd6ede75 | 9223 | |
cd6ede75 | 9224 | |
26f56c1c UD |
9225 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
9226 | as_dirname=dirname | |
9227 | else | |
9228 | as_dirname=false | |
9229 | fi | |
9230 | ||
9231 | ECHO_C= ECHO_N= ECHO_T= | |
9232 | case `echo -n x` in | |
9233 | -n*) | |
9234 | case `echo 'x\c'` in | |
9235 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
9236 | *) ECHO_C='\c';; | |
9237 | esac;; | |
9238 | *) | |
9239 | ECHO_N='-n';; | |
3a12e572 | 9240 | esac |
26f56c1c UD |
9241 | if expr a : '\(a\)' >/dev/null 2>&1 && |
9242 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
3a12e572 UD |
9243 | as_expr=expr |
9244 | else | |
9245 | as_expr=false | |
9246 | fi | |
cd6ede75 | 9247 | |
3a12e572 | 9248 | rm -f conf$$ conf$$.exe conf$$.file |
26f56c1c UD |
9249 | if test -d conf$$.dir; then |
9250 | rm -f conf$$.dir/conf$$.file | |
9251 | else | |
9252 | rm -f conf$$.dir | |
322e23db UD |
9253 | mkdir conf$$.dir 2>/dev/null |
9254 | fi | |
9255 | if (echo >conf$$.file) 2>/dev/null; then | |
9256 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9257 | as_ln_s='ln -s' | |
9258 | # ... but there are two gotchas: | |
9259 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
9260 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
9261 | # In both cases, we have to default to `cp -p'. | |
9262 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
9263 | as_ln_s='cp -p' | |
9264 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
9265 | as_ln_s=ln | |
9266 | else | |
3a12e572 | 9267 | as_ln_s='cp -p' |
322e23db | 9268 | fi |
3a12e572 UD |
9269 | else |
9270 | as_ln_s='cp -p' | |
cd6ede75 | 9271 | fi |
26f56c1c UD |
9272 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
9273 | rmdir conf$$.dir 2>/dev/null | |
cd6ede75 | 9274 | |
f4b07664 RM |
9275 | if mkdir -p . 2>/dev/null; then |
9276 | as_mkdir_p=: | |
9277 | else | |
9382fcee | 9278 | test -d ./-p && rmdir ./-p |
f4b07664 RM |
9279 | as_mkdir_p=false |
9280 | fi | |
9281 | ||
26f56c1c UD |
9282 | if test -x / >/dev/null 2>&1; then |
9283 | as_test_x='test -x' | |
9284 | else | |
9285 | if ls -dL / >/dev/null 2>&1; then | |
9286 | as_ls_L_option=L | |
9287 | else | |
9288 | as_ls_L_option= | |
9289 | fi | |
9290 | as_test_x=' | |
9291 | eval sh -c '\'' | |
9292 | if test -d "$1"; then | |
322e23db | 9293 | test -d "$1/."; |
26f56c1c UD |
9294 | else |
9295 | case $1 in | |
322e23db | 9296 | -*)set "./$1";; |
26f56c1c UD |
9297 | esac; |
9298 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
9299 | ???[sx]*):;;*)false;;esac;fi | |
9300 | '\'' sh | |
9301 | ' | |
9302 | fi | |
9303 | as_executable_p=$as_test_x | |
cd6ede75 | 9304 | |
3a12e572 | 9305 | # Sed expression to map a string onto a valid CPP name. |
9382fcee | 9306 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
3a12e572 UD |
9307 | |
9308 | # Sed expression to map a string onto a valid variable name. | |
9382fcee | 9309 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
3a12e572 UD |
9310 | |
9311 | ||
3a12e572 UD |
9312 | exec 6>&1 |
9313 | ||
26f56c1c | 9314 | # Save the log message, to keep $[0] and so on meaningful, and to |
3a12e572 | 9315 | # report actual input values of CONFIG_FILES etc. instead of their |
26f56c1c UD |
9316 | # values after options handling. |
9317 | ac_log=" | |
f4b07664 | 9318 | This file was extended by GNU C Library $as_me (see version.h), which was |
322e23db | 9319 | generated by GNU Autoconf 2.63. Invocation command line was |
3a12e572 UD |
9320 | |
9321 | CONFIG_FILES = $CONFIG_FILES | |
9322 | CONFIG_HEADERS = $CONFIG_HEADERS | |
9323 | CONFIG_LINKS = $CONFIG_LINKS | |
9324 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
9325 | $ $0 $@ | |
9326 | ||
26f56c1c UD |
9327 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
9328 | " | |
9329 | ||
3a12e572 UD |
9330 | _ACEOF |
9331 | ||
322e23db UD |
9332 | case $ac_config_files in *" |
9333 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
9334 | esac | |
9335 | ||
9336 | case $ac_config_headers in *" | |
9337 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
9338 | esac | |
9339 | ||
9340 | ||
9341 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3a12e572 | 9342 | # Files that config.status was made for. |
26f56c1c UD |
9343 | config_files="$ac_config_files" |
9344 | config_headers="$ac_config_headers" | |
9345 | config_commands="$ac_config_commands" | |
3a12e572 | 9346 | |
26f56c1c | 9347 | _ACEOF |
3a12e572 | 9348 | |
322e23db | 9349 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3a12e572 UD |
9350 | ac_cs_usage="\ |
9351 | \`$as_me' instantiates files from templates according to the | |
9352 | current configuration. | |
9353 | ||
322e23db | 9354 | Usage: $0 [OPTION]... [FILE]... |
3a12e572 UD |
9355 | |
9356 | -h, --help print this help, then exit | |
26f56c1c | 9357 | -V, --version print version number and configuration settings, then exit |
322e23db UD |
9358 | -q, --quiet, --silent |
9359 | do not print progress messages | |
3a12e572 UD |
9360 | -d, --debug don't remove temporary files |
9361 | --recheck update $as_me by reconfiguring in the same conditions | |
322e23db UD |
9362 | --file=FILE[:TEMPLATE] |
9363 | instantiate the configuration file FILE | |
9364 | --header=FILE[:TEMPLATE] | |
9365 | instantiate the configuration header FILE | |
3a12e572 UD |
9366 | |
9367 | Configuration files: | |
9368 | $config_files | |
9369 | ||
9370 | Configuration headers: | |
9371 | $config_headers | |
9372 | ||
3a12e572 UD |
9373 | Configuration commands: |
9374 | $config_commands | |
9375 | ||
9376 | Report bugs to <bug-autoconf@gnu.org>." | |
3a12e572 | 9377 | |
26f56c1c | 9378 | _ACEOF |
322e23db | 9379 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3a12e572 | 9380 | ac_cs_version="\\ |
f4b07664 | 9381 | GNU C Library config.status (see version.h) |
322e23db UD |
9382 | configured by $0, generated by GNU Autoconf 2.63, |
9383 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
3a12e572 | 9384 | |
322e23db | 9385 | Copyright (C) 2008 Free Software Foundation, Inc. |
3a12e572 UD |
9386 | This config.status script is free software; the Free Software Foundation |
9387 | gives unlimited permission to copy, distribute and modify it." | |
26f56c1c UD |
9388 | |
9389 | ac_pwd='$ac_pwd' | |
9390 | srcdir='$srcdir' | |
9391 | INSTALL='$INSTALL' | |
322e23db UD |
9392 | AWK='$AWK' |
9393 | test -n "\$AWK" || AWK=awk | |
3a12e572 UD |
9394 | _ACEOF |
9395 | ||
322e23db UD |
9396 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9397 | # The default lists apply if the user does not specify any file. | |
3a12e572 UD |
9398 | ac_need_defaults=: |
9399 | while test $# != 0 | |
9400 | do | |
9401 | case $1 in | |
9402 | --*=*) | |
26f56c1c UD |
9403 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
9404 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
f4b07664 RM |
9405 | ac_shift=: |
9406 | ;; | |
26f56c1c | 9407 | *) |
f4b07664 RM |
9408 | ac_option=$1 |
9409 | ac_optarg=$2 | |
9410 | ac_shift=shift | |
3a12e572 | 9411 | ;; |
cd6ede75 UD |
9412 | esac |
9413 | ||
f4b07664 | 9414 | case $ac_option in |
3a12e572 | 9415 | # Handling of the options. |
2abf9ff1 RM |
9416 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
9417 | ac_cs_recheck=: ;; | |
26f56c1c | 9418 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
322e23db | 9419 | $as_echo "$ac_cs_version"; exit ;; |
26f56c1c | 9420 | --debug | --debu | --deb | --de | --d | -d ) |
3a12e572 UD |
9421 | debug=: ;; |
9422 | --file | --fil | --fi | --f ) | |
f4b07664 | 9423 | $ac_shift |
322e23db UD |
9424 | case $ac_optarg in |
9425 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9426 | esac | |
9427 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
3a12e572 UD |
9428 | ac_need_defaults=false;; |
9429 | --header | --heade | --head | --hea ) | |
f4b07664 | 9430 | $ac_shift |
322e23db UD |
9431 | case $ac_optarg in |
9432 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9433 | esac | |
9434 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
3a12e572 | 9435 | ac_need_defaults=false;; |
26f56c1c UD |
9436 | --he | --h) |
9437 | # Conflict between --help and --header | |
322e23db | 9438 | { $as_echo "$as_me: error: ambiguous option: $1 |
26f56c1c UD |
9439 | Try \`$0 --help' for more information." >&2 |
9440 | { (exit 1); exit 1; }; };; | |
9441 | --help | --hel | -h ) | |
322e23db | 9442 | $as_echo "$ac_cs_usage"; exit ;; |
2abf9ff1 RM |
9443 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
9444 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
9445 | ac_cs_silent=: ;; | |
3a12e572 UD |
9446 | |
9447 | # This is an error. | |
322e23db | 9448 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
26f56c1c | 9449 | Try \`$0 --help' for more information." >&2 |
3a12e572 UD |
9450 | { (exit 1); exit 1; }; } ;; |
9451 | ||
26f56c1c UD |
9452 | *) ac_config_targets="$ac_config_targets $1" |
9453 | ac_need_defaults=false ;; | |
cd6ede75 | 9454 | |
3a12e572 UD |
9455 | esac |
9456 | shift | |
9457 | done | |
9458 | ||
2abf9ff1 RM |
9459 | ac_configure_extra_args= |
9460 | ||
9461 | if $ac_cs_silent; then | |
9462 | exec 6>/dev/null | |
9463 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
9464 | fi | |
9465 | ||
9466 | _ACEOF | |
322e23db | 9467 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2abf9ff1 | 9468 | if \$ac_cs_recheck; then |
322e23db UD |
9469 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9470 | shift | |
9471 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
9472 | CONFIG_SHELL='$SHELL' | |
26f56c1c | 9473 | export CONFIG_SHELL |
322e23db | 9474 | exec "\$@" |
2abf9ff1 RM |
9475 | fi |
9476 | ||
3a12e572 | 9477 | _ACEOF |
322e23db | 9478 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
9479 | exec 5>>config.log |
9480 | { | |
9481 | echo | |
9482 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
9483 | ## Running $as_me. ## | |
9484 | _ASBOX | |
322e23db | 9485 | $as_echo "$ac_log" |
26f56c1c | 9486 | } >&5 |
3a12e572 | 9487 | |
26f56c1c | 9488 | _ACEOF |
322e23db | 9489 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3a12e572 | 9490 | # |
26f56c1c | 9491 | # INIT-COMMANDS |
3a12e572 | 9492 | # |
3a12e572 UD |
9493 | config_vars='$config_vars' |
9494 | ||
9495 | _ACEOF | |
9496 | ||
322e23db | 9497 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
9498 | |
9499 | # Handling of arguments. | |
3a12e572 UD |
9500 | for ac_config_target in $ac_config_targets |
9501 | do | |
26f56c1c UD |
9502 | case $ac_config_target in |
9503 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
9504 | "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;; | |
9505 | "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;; | |
9506 | "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;; | |
9507 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
9508 | ||
322e23db UD |
9509 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
9510 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
3a12e572 UD |
9511 | { (exit 1); exit 1; }; };; |
9512 | esac | |
9513 | done | |
9514 | ||
26f56c1c | 9515 | |
3a12e572 UD |
9516 | # If the user did not use the arguments to specify the items to instantiate, |
9517 | # then the envvar interface is used. Set only those that are not. | |
9518 | # We use the long form for the default assignment because of an extremely | |
9519 | # bizarre bug on SunOS 4.1.3. | |
9520 | if $ac_need_defaults; then | |
9521 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
9522 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
3a12e572 UD |
9523 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
9524 | fi | |
9525 | ||
2abf9ff1 | 9526 | # Have a temporary directory for convenience. Make it in the build tree |
26f56c1c | 9527 | # simply because there is no reason against having it here, and in addition, |
2abf9ff1 | 9528 | # creating and moving files from /tmp can sometimes cause problems. |
26f56c1c UD |
9529 | # Hook for its removal unless debugging. |
9530 | # Note that there is a small window in which the directory will not be cleaned: | |
9531 | # after its creation but before its name has been assigned to `$tmp'. | |
3a12e572 UD |
9532 | $debug || |
9533 | { | |
26f56c1c UD |
9534 | tmp= |
9535 | trap 'exit_status=$? | |
9536 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
9537 | ' 0 | |
3a12e572 UD |
9538 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
9539 | } | |
3a12e572 | 9540 | # Create a (secure) tmp directory for tmp files. |
2abf9ff1 | 9541 | |
3a12e572 | 9542 | { |
26f56c1c | 9543 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
3a12e572 UD |
9544 | test -n "$tmp" && test -d "$tmp" |
9545 | } || | |
9546 | { | |
26f56c1c UD |
9547 | tmp=./conf$$-$RANDOM |
9548 | (umask 077 && mkdir "$tmp") | |
3a12e572 UD |
9549 | } || |
9550 | { | |
322e23db | 9551 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
3a12e572 UD |
9552 | { (exit 1); exit 1; } |
9553 | } | |
9554 | ||
322e23db UD |
9555 | # Set up the scripts for CONFIG_FILES section. |
9556 | # No need to generate them if there are no CONFIG_FILES. | |
9557 | # This happens for instance with `./config.status config.h'. | |
26f56c1c UD |
9558 | if test -n "$CONFIG_FILES"; then |
9559 | ||
a152f366 | 9560 | |
322e23db UD |
9561 | ac_cr='\r' |
9562 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
9563 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
9564 | ac_cs_awk_cr='\\r' | |
9565 | else | |
9566 | ac_cs_awk_cr=$ac_cr | |
26f56c1c UD |
9567 | fi |
9568 | ||
322e23db | 9569 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
26f56c1c UD |
9570 | _ACEOF |
9571 | ||
9572 | ||
322e23db UD |
9573 | { |
9574 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
9575 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
9576 | echo "_ACEOF" | |
9577 | } >conf$$subs.sh || | |
9578 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
9579 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
9580 | { (exit 1); exit 1; }; } | |
9581 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
26f56c1c UD |
9582 | ac_delim='%!_!# ' |
9583 | for ac_last_try in false false false false false :; do | |
322e23db UD |
9584 | . ./conf$$subs.sh || |
9585 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
9586 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
9587 | { (exit 1); exit 1; }; } | |
9588 | ||
9589 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
9590 | if test $ac_delim_n = $ac_delim_num; then | |
26f56c1c UD |
9591 | break |
9592 | elif $ac_last_try; then | |
322e23db UD |
9593 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
9594 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
26f56c1c UD |
9595 | { (exit 1); exit 1; }; } |
9596 | else | |
9597 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
9598 | fi | |
9599 | done | |
322e23db UD |
9600 | rm -f conf$$subs.sh |
9601 | ||
9602 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9603 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
9604 | _ACEOF | |
9605 | sed -n ' | |
9606 | h | |
9607 | s/^/S["/; s/!.*/"]=/ | |
9608 | p | |
9609 | g | |
9610 | s/^[^!]*!// | |
9611 | :repl | |
9612 | t repl | |
9613 | s/'"$ac_delim"'$// | |
9614 | t delim | |
9615 | :nl | |
9616 | h | |
9617 | s/\(.\{148\}\).*/\1/ | |
9618 | t more1 | |
9619 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
9620 | p | |
9621 | n | |
9622 | b repl | |
9623 | :more1 | |
9624 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
9625 | p | |
9626 | g | |
9627 | s/.\{148\}// | |
9628 | t nl | |
9629 | :delim | |
9630 | h | |
9631 | s/\(.\{148\}\).*/\1/ | |
9632 | t more2 | |
9633 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
9634 | p | |
9635 | b | |
9636 | :more2 | |
9637 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
9638 | p | |
9639 | g | |
9640 | s/.\{148\}// | |
9641 | t delim | |
9642 | ' <conf$$subs.awk | sed ' | |
9643 | /^[^""]/{ | |
9644 | N | |
9645 | s/\n// | |
9646 | } | |
9647 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
9648 | rm -f conf$$subs.awk | |
9649 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9650 | _ACAWK | |
9651 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
9652 | for (key in S) S_is_set[key] = 1 | |
9653 | FS = "\a" | |
ff886b82 | 9654 | |
322e23db UD |
9655 | } |
9656 | { | |
9657 | line = $ 0 | |
9658 | nfields = split(line, field, "@") | |
9659 | substed = 0 | |
9660 | len = length(field[1]) | |
9661 | for (i = 2; i < nfields; i++) { | |
9662 | key = field[i] | |
9663 | keylen = length(key) | |
9664 | if (S_is_set[key]) { | |
9665 | value = S[key] | |
9666 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
9667 | len += length(value) + length(field[++i]) | |
9668 | substed = 1 | |
9669 | } else | |
9670 | len += 1 + keylen | |
9671 | } | |
9672 | ||
9673 | print line | |
9674 | } | |
cd6ede75 | 9675 | |
322e23db | 9676 | _ACAWK |
26f56c1c | 9677 | _ACEOF |
322e23db UD |
9678 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9679 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
9680 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
9681 | else | |
9682 | cat | |
9683 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
9684 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
9685 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
9686 | { (exit 1); exit 1; }; } | |
3a12e572 | 9687 | _ACEOF |
26f56c1c | 9688 | |
26f56c1c UD |
9689 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
9690 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
9691 | # trailing colons and then remove the whole line if VPATH becomes empty | |
9692 | # (actually we leave an empty line to preserve line numbers). | |
9693 | if test "x$srcdir" = x.; then | |
9694 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
9695 | s/:*\$(srcdir):*/:/ | |
9696 | s/:*\${srcdir}:*/:/ | |
9697 | s/:*@srcdir@:*/:/ | |
9698 | s/^\([^=]*=[ ]*\):*/\1/ | |
9699 | s/:*$// | |
9700 | s/^[^=]*=[ ]*$// | |
9701 | }' | |
9702 | fi | |
9703 | ||
322e23db | 9704 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
9705 | fi # test -n "$CONFIG_FILES" |
9706 | ||
322e23db UD |
9707 | # Set up the scripts for CONFIG_HEADERS section. |
9708 | # No need to generate them if there are no CONFIG_HEADERS. | |
9709 | # This happens for instance with `./config.status Makefile'. | |
9710 | if test -n "$CONFIG_HEADERS"; then | |
9711 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
9712 | BEGIN { | |
9713 | _ACEOF | |
9714 | ||
9715 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
9716 | # here-document in config.status, that substitutes the proper values into | |
9717 | # config.h.in to produce config.h. | |
9718 | ||
9719 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
9720 | # handling of long lines. | |
9721 | ac_delim='%!_!# ' | |
9722 | for ac_last_try in false false :; do | |
9723 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
9724 | if test -z "$ac_t"; then | |
9725 | break | |
9726 | elif $ac_last_try; then | |
9727 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
9728 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
9729 | { (exit 1); exit 1; }; } | |
9730 | else | |
9731 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
9732 | fi | |
9733 | done | |
9734 | ||
9735 | # For the awk script, D is an array of macro values keyed by name, | |
9736 | # likewise P contains macro parameters if any. Preserve backslash | |
9737 | # newline sequences. | |
9738 | ||
9739 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
9740 | sed -n ' | |
9741 | s/.\{148\}/&'"$ac_delim"'/g | |
9742 | t rset | |
9743 | :rset | |
9744 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
9745 | t def | |
9746 | d | |
9747 | :def | |
9748 | s/\\$// | |
9749 | t bsnl | |
9750 | s/["\\]/\\&/g | |
9751 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
9752 | D["\1"]=" \3"/p | |
9753 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
9754 | d | |
9755 | :bsnl | |
9756 | s/["\\]/\\&/g | |
9757 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
9758 | D["\1"]=" \3\\\\\\n"\\/p | |
9759 | t cont | |
9760 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
9761 | t cont | |
9762 | d | |
9763 | :cont | |
9764 | n | |
9765 | s/.\{148\}/&'"$ac_delim"'/g | |
9766 | t clear | |
9767 | :clear | |
9768 | s/\\$// | |
9769 | t bsnlc | |
9770 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
9771 | d | |
9772 | :bsnlc | |
9773 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
9774 | b cont | |
9775 | ' <confdefs.h | sed ' | |
9776 | s/'"$ac_delim"'/"\\\ | |
9777 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
9778 | ||
9779 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9780 | for (key in D) D_is_set[key] = 1 | |
9781 | FS = "\a" | |
9782 | } | |
9783 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
9784 | line = \$ 0 | |
9785 | split(line, arg, " ") | |
9786 | if (arg[1] == "#") { | |
9787 | defundef = arg[2] | |
9788 | mac1 = arg[3] | |
9789 | } else { | |
9790 | defundef = substr(arg[1], 2) | |
9791 | mac1 = arg[2] | |
9792 | } | |
9793 | split(mac1, mac2, "(") #) | |
9794 | macro = mac2[1] | |
9795 | prefix = substr(line, 1, index(line, defundef) - 1) | |
9796 | if (D_is_set[macro]) { | |
9797 | # Preserve the white space surrounding the "#". | |
9798 | print prefix "define", macro P[macro] D[macro] | |
9799 | next | |
9800 | } else { | |
9801 | # Replace #undef with comments. This is necessary, for example, | |
9802 | # in the case of _POSIX_SOURCE, which is predefined and required | |
9803 | # on some systems where configure will not decide to define it. | |
9804 | if (defundef == "undef") { | |
9805 | print "/*", prefix defundef, macro, "*/" | |
9806 | next | |
9807 | } | |
9808 | } | |
9809 | } | |
9810 | { print } | |
9811 | _ACAWK | |
9812 | _ACEOF | |
9813 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
9814 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
9815 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
9816 | { (exit 1); exit 1; }; } | |
9817 | fi # test -n "$CONFIG_HEADERS" | |
9818 | ||
26f56c1c | 9819 | |
322e23db UD |
9820 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
9821 | shift | |
9822 | for ac_tag | |
26f56c1c UD |
9823 | do |
9824 | case $ac_tag in | |
9825 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
9826 | esac | |
9827 | case $ac_mode$ac_tag in | |
9828 | :[FHL]*:*);; | |
322e23db UD |
9829 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
9830 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
26f56c1c UD |
9831 | { (exit 1); exit 1; }; };; |
9832 | :[FH]-) ac_tag=-:-;; | |
9833 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
cd6ede75 | 9834 | esac |
26f56c1c UD |
9835 | ac_save_IFS=$IFS |
9836 | IFS=: | |
9837 | set x $ac_tag | |
9838 | IFS=$ac_save_IFS | |
9839 | shift | |
9840 | ac_file=$1 | |
9841 | shift | |
9842 | ||
9843 | case $ac_mode in | |
9844 | :L) ac_source=$1;; | |
9845 | :[FH]) | |
9846 | ac_file_inputs= | |
9847 | for ac_f | |
9848 | do | |
9849 | case $ac_f in | |
9850 | -) ac_f="$tmp/stdin";; | |
9851 | *) # Look for the file first in the build tree, then in the source tree | |
9852 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
9853 | # because $ac_f cannot contain `:'. | |
9854 | test -f "$ac_f" || | |
9855 | case $ac_f in | |
9856 | [\\/$]*) false;; | |
9857 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
9858 | esac || | |
322e23db UD |
9859 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
9860 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
26f56c1c UD |
9861 | { (exit 1); exit 1; }; };; |
9862 | esac | |
322e23db UD |
9863 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
9864 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
26f56c1c | 9865 | done |
cd6ede75 | 9866 | |
26f56c1c UD |
9867 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
9868 | # use $as_me), people would be surprised to read: | |
9869 | # /* config.h. Generated by config.status. */ | |
322e23db UD |
9870 | configure_input='Generated from '` |
9871 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
9872 | `' by configure.' | |
26f56c1c UD |
9873 | if test x"$ac_file" != x-; then |
9874 | configure_input="$ac_file. $configure_input" | |
322e23db UD |
9875 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
9876 | $as_echo "$as_me: creating $ac_file" >&6;} | |
26f56c1c | 9877 | fi |
322e23db UD |
9878 | # Neutralize special characters interpreted by sed in replacement strings. |
9879 | case $configure_input in #( | |
9880 | *\&* | *\|* | *\\* ) | |
9881 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
9882 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
9883 | *) ac_sed_conf_input=$configure_input;; | |
9884 | esac | |
26f56c1c UD |
9885 | |
9886 | case $ac_tag in | |
322e23db UD |
9887 | *:-:* | *:-) cat >"$tmp/stdin" \ |
9888 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
9889 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
9890 | { (exit 1); exit 1; }; } ;; | |
26f56c1c UD |
9891 | esac |
9892 | ;; | |
9893 | esac | |
9894 | ||
9895 | ac_dir=`$as_dirname -- "$ac_file" || | |
3a12e572 | 9896 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9382fcee RM |
9897 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
9898 | X"$ac_file" : 'X\(//\)$' \| \ | |
26f56c1c | 9899 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
322e23db | 9900 | $as_echo X"$ac_file" | |
26f56c1c UD |
9901 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9902 | s//\1/ | |
9903 | q | |
9904 | } | |
9905 | /^X\(\/\/\)[^/].*/{ | |
9906 | s//\1/ | |
9907 | q | |
9908 | } | |
9909 | /^X\(\/\/\)$/{ | |
9910 | s//\1/ | |
9911 | q | |
9912 | } | |
9913 | /^X\(\/\).*/{ | |
9914 | s//\1/ | |
9915 | q | |
9916 | } | |
9917 | s/.*/./; q'` | |
9918 | { as_dir="$ac_dir" | |
9919 | case $as_dir in #( | |
9920 | -*) as_dir=./$as_dir;; | |
9921 | esac | |
9922 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
f4b07664 | 9923 | as_dirs= |
26f56c1c UD |
9924 | while :; do |
9925 | case $as_dir in #( | |
322e23db | 9926 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
26f56c1c UD |
9927 | *) as_qdir=$as_dir;; |
9928 | esac | |
9929 | as_dirs="'$as_qdir' $as_dirs" | |
9930 | as_dir=`$as_dirname -- "$as_dir" || | |
f4b07664 | 9931 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9382fcee RM |
9932 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
9933 | X"$as_dir" : 'X\(//\)$' \| \ | |
26f56c1c | 9934 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
322e23db | 9935 | $as_echo X"$as_dir" | |
26f56c1c UD |
9936 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9937 | s//\1/ | |
9938 | q | |
9939 | } | |
9940 | /^X\(\/\/\)[^/].*/{ | |
9941 | s//\1/ | |
9942 | q | |
9943 | } | |
9944 | /^X\(\/\/\)$/{ | |
9945 | s//\1/ | |
9946 | q | |
9947 | } | |
9948 | /^X\(\/\).*/{ | |
9949 | s//\1/ | |
9950 | q | |
9951 | } | |
9952 | s/.*/./; q'` | |
9953 | test -d "$as_dir" && break | |
f4b07664 | 9954 | done |
26f56c1c | 9955 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
322e23db UD |
9956 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
9957 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
f4b07664 | 9958 | { (exit 1); exit 1; }; }; } |
3a12e572 UD |
9959 | ac_builddir=. |
9960 | ||
26f56c1c UD |
9961 | case "$ac_dir" in |
9962 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9963 | *) | |
322e23db | 9964 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 9965 | # A ".." for each directory in $ac_dir_suffix. |
322e23db | 9966 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
9967 | case $ac_top_builddir_sub in |
9968 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9969 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9970 | esac ;; | |
9971 | esac | |
9972 | ac_abs_top_builddir=$ac_pwd | |
9973 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9974 | # for backward compatibility: | |
9975 | ac_top_builddir=$ac_top_build_prefix | |
3a12e572 UD |
9976 | |
9977 | case $srcdir in | |
26f56c1c | 9978 | .) # We are building in place. |
3a12e572 | 9979 | ac_srcdir=. |
26f56c1c UD |
9980 | ac_top_srcdir=$ac_top_builddir_sub |
9981 | ac_abs_top_srcdir=$ac_pwd ;; | |
9982 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 9983 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
9984 | ac_top_srcdir=$srcdir |
9985 | ac_abs_top_srcdir=$srcdir ;; | |
9986 | *) # Relative name. | |
9987 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9988 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9989 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3a12e572 | 9990 | esac |
26f56c1c | 9991 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
9382fcee | 9992 | |
cd6ede75 | 9993 | |
26f56c1c UD |
9994 | case $ac_mode in |
9995 | :F) | |
9996 | # | |
9997 | # CONFIG_FILE | |
9998 | # | |
3a12e572 UD |
9999 | |
10000 | case $INSTALL in | |
10001 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
26f56c1c | 10002 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
cd6ede75 | 10003 | esac |
26f56c1c | 10004 | _ACEOF |
cd6ede75 | 10005 | |
322e23db | 10006 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
10007 | # If the template does not know about datarootdir, expand it. |
10008 | # FIXME: This hack should be removed a few years after 2.60. | |
10009 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
10010 | ||
322e23db UD |
10011 | ac_sed_dataroot=' |
10012 | /datarootdir/ { | |
26f56c1c UD |
10013 | p |
10014 | q | |
10015 | } | |
10016 | /@datadir@/p | |
10017 | /@docdir@/p | |
10018 | /@infodir@/p | |
10019 | /@localedir@/p | |
10020 | /@mandir@/p | |
322e23db UD |
10021 | ' |
10022 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
26f56c1c UD |
10023 | *datarootdir*) ac_datarootdir_seen=yes;; |
10024 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
322e23db UD |
10025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
10026 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
26f56c1c | 10027 | _ACEOF |
322e23db | 10028 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
26f56c1c UD |
10029 | ac_datarootdir_hack=' |
10030 | s&@datadir@&$datadir&g | |
10031 | s&@docdir@&$docdir&g | |
10032 | s&@infodir@&$infodir&g | |
10033 | s&@localedir@&$localedir&g | |
10034 | s&@mandir@&$mandir&g | |
10035 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
10036 | esac | |
3a12e572 | 10037 | _ACEOF |
26f56c1c UD |
10038 | |
10039 | # Neutralize VPATH when `$srcdir' = `.'. | |
10040 | # Shell code in configure.ac might set extrasub. | |
10041 | # FIXME: do we really want to maintain this feature? | |
322e23db UD |
10042 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10043 | ac_sed_extra="$ac_vpsub | |
3a12e572 UD |
10044 | $extrasub |
10045 | _ACEOF | |
322e23db | 10046 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3a12e572 UD |
10047 | :t |
10048 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
322e23db | 10049 | s|@configure_input@|$ac_sed_conf_input|;t t |
26f56c1c | 10050 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
322e23db | 10051 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
26f56c1c UD |
10052 | s&@srcdir@&$ac_srcdir&;t t |
10053 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
10054 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
10055 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
10056 | s&@builddir@&$ac_builddir&;t t | |
10057 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
10058 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
10059 | s&@INSTALL@&$ac_INSTALL&;t t | |
10060 | $ac_datarootdir_hack | |
322e23db UD |
10061 | " |
10062 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
10063 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
10064 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
10065 | { (exit 1); exit 1; }; } | |
26f56c1c UD |
10066 | |
10067 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
10068 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
10069 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
322e23db | 10070 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
26f56c1c | 10071 | which seems to be undefined. Please make sure it is defined." >&5 |
322e23db | 10072 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
26f56c1c UD |
10073 | which seems to be undefined. Please make sure it is defined." >&2;} |
10074 | ||
10075 | rm -f "$tmp/stdin" | |
3a12e572 | 10076 | case $ac_file in |
322e23db UD |
10077 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
10078 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
10079 | esac \ | |
10080 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
10081 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
10082 | { (exit 1); exit 1; }; } | |
26f56c1c UD |
10083 | ;; |
10084 | :H) | |
10085 | # | |
10086 | # CONFIG_HEADER | |
10087 | # | |
3a12e572 | 10088 | if test x"$ac_file" != x-; then |
322e23db UD |
10089 | { |
10090 | $as_echo "/* $configure_input */" \ | |
10091 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
10092 | } >"$tmp/config.h" \ | |
10093 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
10094 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
10095 | { (exit 1); exit 1; }; } | |
10096 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
10097 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
10098 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
3a12e572 | 10099 | else |
322e23db UD |
10100 | rm -f "$ac_file" |
10101 | mv "$tmp/config.h" "$ac_file" \ | |
10102 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
10103 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
10104 | { (exit 1); exit 1; }; } | |
f4b07664 RM |
10105 | fi |
10106 | else | |
322e23db UD |
10107 | $as_echo "/* $configure_input */" \ |
10108 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
10109 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
10110 | $as_echo "$as_me: error: could not create -" >&2;} | |
10111 | { (exit 1); exit 1; }; } | |
f4b07664 | 10112 | fi |
26f56c1c | 10113 | ;; |
9382fcee | 10114 | |
322e23db UD |
10115 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
10116 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
26f56c1c UD |
10117 | ;; |
10118 | esac | |
3a12e572 UD |
10119 | |
10120 | ||
26f56c1c UD |
10121 | case $ac_file$ac_mode in |
10122 | "default":C) | |
c0fb8a56 UD |
10123 | case $CONFIG_FILES in *config.make*) |
10124 | echo "$config_vars" >> config.make;; | |
10125 | esac | |
3a12e572 | 10126 | test -d bits || mkdir bits ;; |
26f56c1c | 10127 | |
3a12e572 | 10128 | esac |
26f56c1c | 10129 | done # for ac_tag |
3a12e572 | 10130 | |
3a12e572 UD |
10131 | |
10132 | { (exit 0); exit 0; } | |
10133 | _ACEOF | |
cd6ede75 | 10134 | chmod +x $CONFIG_STATUS |
3a12e572 UD |
10135 | ac_clean_files=$ac_clean_files_save |
10136 | ||
322e23db UD |
10137 | test $ac_write_fail = 0 || |
10138 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
10139 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
10140 | { (exit 1); exit 1; }; } | |
10141 | ||
3a12e572 UD |
10142 | |
10143 | # configure is writing to config.log, and then calls config.status. | |
10144 | # config.status does its own redirection, appending to config.log. | |
10145 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
10146 | # by configure, so config.status won't be able to write to it; its | |
10147 | # output is simply discarded. So we exec the FD to /dev/null, | |
10148 | # effectively closing config.log, so it can be properly (re)opened and | |
10149 | # appended to by config.status. When coming back to configure, we | |
10150 | # need to make the FD available again. | |
10151 | if test "$no_create" != yes; then | |
10152 | ac_cs_success=: | |
2abf9ff1 RM |
10153 | ac_config_status_args= |
10154 | test "$silent" = yes && | |
10155 | ac_config_status_args="$ac_config_status_args --quiet" | |
3a12e572 | 10156 | exec 5>/dev/null |
2abf9ff1 | 10157 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
3a12e572 UD |
10158 | exec 5>>config.log |
10159 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
10160 | # would make configure fail if this is the last instruction. | |
10161 | $ac_cs_success || { (exit 1); exit 1; } | |
10162 | fi | |
cd6ede75 | 10163 | |
3a12e572 UD |
10164 | # |
10165 | # CONFIG_SUBDIRS section. | |
10166 | # | |
cd6ede75 UD |
10167 | if test "$no_recursion" != yes; then |
10168 | ||
322e23db UD |
10169 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
10170 | # so they do not pile up. | |
cd6ede75 UD |
10171 | ac_sub_configure_args= |
10172 | ac_prev= | |
26f56c1c UD |
10173 | eval "set x $ac_configure_args" |
10174 | shift | |
10175 | for ac_arg | |
10176 | do | |
cd6ede75 UD |
10177 | if test -n "$ac_prev"; then |
10178 | ac_prev= | |
10179 | continue | |
10180 | fi | |
3a12e572 | 10181 | case $ac_arg in |
cd6ede75 UD |
10182 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
10183 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
10184 | ac_prev=cache_file ;; | |
10185 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
3a12e572 UD |
10186 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
10187 | | --c=*) | |
10188 | ;; | |
10189 | --config-cache | -C) | |
cd6ede75 UD |
10190 | ;; |
10191 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
10192 | ac_prev=srcdir ;; | |
10193 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
10194 | ;; | |
3a12e572 UD |
10195 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
10196 | ac_prev=prefix ;; | |
10197 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
10198 | ;; | |
322e23db UD |
10199 | --disable-option-checking) |
10200 | ;; | |
26f56c1c UD |
10201 | *) |
10202 | case $ac_arg in | |
322e23db | 10203 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26f56c1c UD |
10204 | esac |
10205 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
cd6ede75 UD |
10206 | esac |
10207 | done | |
10208 | ||
3a12e572 UD |
10209 | # Always prepend --prefix to ensure using the same prefix |
10210 | # in subdir configurations. | |
26f56c1c UD |
10211 | ac_arg="--prefix=$prefix" |
10212 | case $ac_arg in | |
322e23db | 10213 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26f56c1c UD |
10214 | esac |
10215 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
10216 | ||
10217 | # Pass --silent | |
10218 | if test "$silent" = yes; then | |
10219 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
10220 | fi | |
3a12e572 | 10221 | |
322e23db UD |
10222 | # Always prepend --disable-option-checking to silence warnings, since |
10223 | # different subdirs can have different --enable and --with options. | |
10224 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
10225 | ||
3a12e572 UD |
10226 | ac_popdir=`pwd` |
10227 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
cd6ede75 UD |
10228 | |
10229 | # Do not complain, so a configure script can configure whichever | |
10230 | # parts of a large source tree are present. | |
26f56c1c UD |
10231 | test -d "$srcdir/$ac_dir" || continue |
10232 | ||
10233 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
322e23db UD |
10234 | $as_echo "$as_me:$LINENO: $ac_msg" >&5 |
10235 | $as_echo "$ac_msg" >&6 | |
26f56c1c UD |
10236 | { as_dir="$ac_dir" |
10237 | case $as_dir in #( | |
10238 | -*) as_dir=./$as_dir;; | |
10239 | esac | |
10240 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
f4b07664 | 10241 | as_dirs= |
26f56c1c UD |
10242 | while :; do |
10243 | case $as_dir in #( | |
322e23db | 10244 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
26f56c1c UD |
10245 | *) as_qdir=$as_dir;; |
10246 | esac | |
10247 | as_dirs="'$as_qdir' $as_dirs" | |
10248 | as_dir=`$as_dirname -- "$as_dir" || | |
f4b07664 | 10249 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9382fcee RM |
10250 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
10251 | X"$as_dir" : 'X\(//\)$' \| \ | |
26f56c1c | 10252 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
322e23db | 10253 | $as_echo X"$as_dir" | |
26f56c1c UD |
10254 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10255 | s//\1/ | |
10256 | q | |
10257 | } | |
10258 | /^X\(\/\/\)[^/].*/{ | |
10259 | s//\1/ | |
10260 | q | |
10261 | } | |
10262 | /^X\(\/\/\)$/{ | |
10263 | s//\1/ | |
10264 | q | |
10265 | } | |
10266 | /^X\(\/\).*/{ | |
10267 | s//\1/ | |
10268 | q | |
10269 | } | |
10270 | s/.*/./; q'` | |
10271 | test -d "$as_dir" && break | |
f4b07664 | 10272 | done |
26f56c1c | 10273 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
322e23db UD |
10274 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
10275 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
f4b07664 | 10276 | { (exit 1); exit 1; }; }; } |
3a12e572 | 10277 | ac_builddir=. |
cd6ede75 | 10278 | |
26f56c1c UD |
10279 | case "$ac_dir" in |
10280 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10281 | *) | |
322e23db | 10282 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 10283 | # A ".." for each directory in $ac_dir_suffix. |
322e23db | 10284 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
10285 | case $ac_top_builddir_sub in |
10286 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10287 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10288 | esac ;; | |
10289 | esac | |
10290 | ac_abs_top_builddir=$ac_pwd | |
10291 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10292 | # for backward compatibility: | |
10293 | ac_top_builddir=$ac_top_build_prefix | |
cd6ede75 | 10294 | |
3a12e572 | 10295 | case $srcdir in |
26f56c1c | 10296 | .) # We are building in place. |
3a12e572 | 10297 | ac_srcdir=. |
26f56c1c UD |
10298 | ac_top_srcdir=$ac_top_builddir_sub |
10299 | ac_abs_top_srcdir=$ac_pwd ;; | |
10300 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 10301 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
10302 | ac_top_srcdir=$srcdir |
10303 | ac_abs_top_srcdir=$srcdir ;; | |
10304 | *) # Relative name. | |
10305 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10306 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10307 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
9382fcee | 10308 | esac |
26f56c1c | 10309 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
3a12e572 UD |
10310 | |
10311 | ||
26f56c1c | 10312 | cd "$ac_dir" |
cd6ede75 UD |
10313 | |
10314 | # Check for guested configure; otherwise get Cygnus style configure. | |
26f56c1c UD |
10315 | if test -f "$ac_srcdir/configure.gnu"; then |
10316 | ac_sub_configure=$ac_srcdir/configure.gnu | |
10317 | elif test -f "$ac_srcdir/configure"; then | |
10318 | ac_sub_configure=$ac_srcdir/configure | |
10319 | elif test -f "$ac_srcdir/configure.in"; then | |
10320 | # This should be Cygnus configure. | |
10321 | ac_sub_configure=$ac_aux_dir/configure | |
cd6ede75 | 10322 | else |
322e23db UD |
10323 | { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
10324 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
cd6ede75 UD |
10325 | ac_sub_configure= |
10326 | fi | |
10327 | ||
10328 | # The recursion is here. | |
10329 | if test -n "$ac_sub_configure"; then | |
cd6ede75 | 10330 | # Make the cache file name correct relative to the subdirectory. |
3a12e572 UD |
10331 | case $cache_file in |
10332 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
26f56c1c UD |
10333 | *) # Relative name. |
10334 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
cd6ede75 | 10335 | esac |
cd6ede75 | 10336 | |
322e23db UD |
10337 | { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
10338 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
cd6ede75 | 10339 | # The eval makes quoting arguments work. |
26f56c1c UD |
10340 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
10341 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
322e23db UD |
10342 | { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
10343 | $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
3a12e572 | 10344 | { (exit 1); exit 1; }; } |
cd6ede75 UD |
10345 | fi |
10346 | ||
26f56c1c | 10347 | cd "$ac_popdir" |
cd6ede75 UD |
10348 | done |
10349 | fi | |
322e23db UD |
10350 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
10351 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
10352 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
10353 | fi | |
cd6ede75 | 10354 |