]>
Commit | Line | Data |
---|---|---|
cd6ede75 | 1 | #! /bin/sh |
3a12e572 | 2 | # Guess values for system-dependent variables and create Makefiles. |
f318beb8 | 3 | # Generated by GNU Autoconf 2.68 for GNU C Library (see version.h). |
f4b07664 | 4 | # |
f318beb8 | 5 | # Report bugs to <http://sourceware.org/bugzilla/>. |
3a12e572 | 6 | # |
b08c89d9 | 7 | # |
26f56c1c | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
4a531bb0 L |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
10 | # Foundation, Inc. | |
b08c89d9 UD |
11 | # |
12 | # | |
3a12e572 UD |
13 | # This configure script is free software; the Free Software Foundation |
14 | # gives unlimited permission to copy, distribute and modify it. | |
b08c89d9 UD |
15 | ## -------------------- ## |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
cd6ede75 | 18 | |
26f56c1c UD |
19 | # Be more Bourne compatible |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
b08c89d9 | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
3a12e572 UD |
22 | emulate sh |
23 | NULLCMD=: | |
322e23db | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
f4b07664 RM |
25 | # is contrary to our usage. Disable this feature. |
26 | alias -g '${1+"$@"}'='"$@"' | |
26f56c1c UD |
27 | setopt NO_GLOB_SUBST |
28 | else | |
b08c89d9 UD |
29 | case `(set -o) 2>/dev/null` in #( |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
26f56c1c | 34 | esac |
26f56c1c UD |
35 | fi |
36 | ||
37 | ||
322e23db UD |
38 | as_nl=' |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b08c89d9 UD |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
322e23db UD |
52 | as_echo='printf %s\n' |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
a152f366 | 58 | else |
322e23db UD |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
b08c89d9 | 62 | case $arg in #( |
322e23db UD |
63 | *"$as_nl"*) |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
a152f366 | 71 | fi |
322e23db UD |
72 | export as_echo_body |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
3a12e572 | 83 | fi |
cd6ede75 | 84 | |
f4b07664 | 85 | |
26f56c1c UD |
86 | # IFS |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
26f56c1c UD |
91 | IFS=" "" $as_nl" |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
f318beb8 | 94 | as_myself= |
b08c89d9 | 95 | case $0 in #(( |
26f56c1c UD |
96 | *[\\/]* ) as_myself=$0 ;; |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
100 | IFS=$as_save_IFS | |
101 | test -z "$as_dir" && as_dir=. | |
b08c89d9 UD |
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
103 | done | |
26f56c1c UD |
104 | IFS=$as_save_IFS |
105 | ||
106 | ;; | |
107 | esac | |
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 | # in which case we are not to be found in the path. | |
110 | if test "x$as_myself" = x; then | |
111 | as_myself=$0 | |
112 | fi | |
113 | if test ! -f "$as_myself"; then | |
322e23db | 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b08c89d9 | 115 | exit 1 |
26f56c1c UD |
116 | fi |
117 | ||
b08c89d9 UD |
118 | # Unset variables that we do not need and which cause bugs (e.g. in |
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 | # suppresses any "Segmentation fault" message there. '((' could | |
121 | # trigger a bug in pdksh 5.2.14. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
26f56c1c | 125 | done |
f4b07664 RM |
126 | PS1='$ ' |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
322e23db UD |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
f4b07664 | 135 | |
b08c89d9 UD |
136 | # CDPATH. |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
139 | if test "x$CONFIG_SHELL" = x; then | |
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
141 | emulate sh | |
142 | NULLCMD=: | |
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
144 | # is contrary to our usage. Disable this feature. | |
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
146 | setopt NO_GLOB_SUBST | |
147 | else | |
148 | case \`(set -o) 2>/dev/null\` in #( | |
149 | *posix*) : | |
150 | set -o posix ;; #( | |
151 | *) : | |
152 | ;; | |
153 | esac | |
154 | fi | |
155 | " | |
156 | as_required="as_fn_return () { (exit \$1); } | |
157 | as_fn_success () { as_fn_return 0; } | |
158 | as_fn_failure () { as_fn_return 1; } | |
159 | as_fn_ret_success () { return 0; } | |
160 | as_fn_ret_failure () { return 1; } | |
161 | ||
162 | exitcode=0 | |
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
168 | ||
169 | else | |
170 | exitcode=1; echo positional parameters were not saved. | |
171 | fi | |
172 | test x\$exitcode = x0 || exit 1" | |
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
177 | test \$(( 1 + 1 )) = 2 || exit 1" | |
178 | if (eval "$as_required") 2>/dev/null; then : | |
179 | as_have_required=yes | |
180 | else | |
181 | as_have_required=no | |
182 | fi | |
183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
184 | ||
185 | else | |
186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
187 | as_found=false | |
188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
189 | do | |
190 | IFS=$as_save_IFS | |
191 | test -z "$as_dir" && as_dir=. | |
192 | as_found=: | |
193 | case $as_dir in #( | |
194 | /*) | |
195 | for as_base in sh bash ksh sh5; do | |
196 | # Try only shells that exist, to save several forks. | |
197 | as_shell=$as_dir/$as_base | |
198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 | CONFIG_SHELL=$as_shell as_have_required=yes | |
201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
202 | break 2 | |
203 | fi | |
204 | fi | |
205 | done;; | |
206 | esac | |
207 | as_found=false | |
208 | done | |
209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
211 | CONFIG_SHELL=$SHELL as_have_required=yes | |
212 | fi; } | |
213 | IFS=$as_save_IFS | |
214 | ||
215 | ||
216 | if test "x$CONFIG_SHELL" != x; then : | |
217 | # We cannot yet assume a decent shell, so we have to provide a | |
218 | # neutralization value for shells without unset; and this also | |
219 | # works around shells that cannot unset nonexistent variables. | |
f318beb8 | 220 | # Preserve -v and -x to the replacement shell. |
b08c89d9 UD |
221 | BASH_ENV=/dev/null |
222 | ENV=/dev/null | |
223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
224 | export CONFIG_SHELL | |
f318beb8 UD |
225 | case $- in # (((( |
226 | *v*x* | *x*v* ) as_opts=-vx ;; | |
227 | *v* ) as_opts=-v ;; | |
228 | *x* ) as_opts=-x ;; | |
229 | * ) as_opts= ;; | |
230 | esac | |
231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
b08c89d9 UD |
232 | fi |
233 | ||
234 | if test x$as_have_required = xno; then : | |
235 | $as_echo "$0: This script requires a shell more modern than all" | |
236 | $as_echo "$0: the shells that I found on your system." | |
237 | if test x${ZSH_VERSION+set} = xset ; then | |
238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
240 | else | |
f318beb8 UD |
241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
242 | $0: http://sourceware.org/bugzilla/ about your system, | |
243 | $0: including any error possibly output before this | |
b08c89d9 UD |
244 | $0: message. Then install a modern shell, or manually run |
245 | $0: the script under such a shell if you do have one." | |
246 | fi | |
247 | exit 1 | |
248 | fi | |
249 | fi | |
250 | fi | |
251 | SHELL=${CONFIG_SHELL-/bin/sh} | |
252 | export SHELL | |
253 | # Unset more variables known to interfere with behavior of common tools. | |
254 | CLICOLOR_FORCE= GREP_OPTIONS= | |
255 | unset CLICOLOR_FORCE GREP_OPTIONS | |
256 | ||
257 | ## --------------------- ## | |
258 | ## M4sh Shell Functions. ## | |
259 | ## --------------------- ## | |
260 | # as_fn_unset VAR | |
261 | # --------------- | |
262 | # Portably unset VAR. | |
263 | as_fn_unset () | |
264 | { | |
265 | { eval $1=; unset $1;} | |
266 | } | |
267 | as_unset=as_fn_unset | |
268 | ||
269 | # as_fn_set_status STATUS | |
270 | # ----------------------- | |
271 | # Set $? to STATUS, without forking. | |
272 | as_fn_set_status () | |
273 | { | |
274 | return $1 | |
275 | } # as_fn_set_status | |
276 | ||
277 | # as_fn_exit STATUS | |
278 | # ----------------- | |
279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
280 | as_fn_exit () | |
281 | { | |
282 | set +e | |
283 | as_fn_set_status $1 | |
284 | exit $1 | |
285 | } # as_fn_exit | |
286 | ||
287 | # as_fn_mkdir_p | |
288 | # ------------- | |
289 | # Create "$as_dir" as a directory, including parents if necessary. | |
290 | as_fn_mkdir_p () | |
291 | { | |
292 | ||
293 | case $as_dir in #( | |
294 | -*) as_dir=./$as_dir;; | |
295 | esac | |
296 | test -d "$as_dir" || eval $as_mkdir_p || { | |
297 | as_dirs= | |
298 | while :; do | |
299 | case $as_dir in #( | |
300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
301 | *) as_qdir=$as_dir;; | |
302 | esac | |
303 | as_dirs="'$as_qdir' $as_dirs" | |
304 | as_dir=`$as_dirname -- "$as_dir" || | |
305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
306 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
307 | X"$as_dir" : 'X\(//\)$' \| \ | |
308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
309 | $as_echo X"$as_dir" | | |
310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
311 | s//\1/ | |
312 | q | |
313 | } | |
314 | /^X\(\/\/\)[^/].*/{ | |
315 | s//\1/ | |
316 | q | |
317 | } | |
318 | /^X\(\/\/\)$/{ | |
319 | s//\1/ | |
320 | q | |
321 | } | |
322 | /^X\(\/\).*/{ | |
323 | s//\1/ | |
324 | q | |
325 | } | |
326 | s/.*/./; q'` | |
327 | test -d "$as_dir" && break | |
328 | done | |
329 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4a531bb0 | 330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b08c89d9 UD |
331 | |
332 | ||
333 | } # as_fn_mkdir_p | |
334 | # as_fn_append VAR VALUE | |
335 | # ---------------------- | |
336 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
337 | # advantage of any shell optimizations that allow amortized linear growth over | |
338 | # repeated appends, instead of the typical quadratic growth present in naive | |
339 | # implementations. | |
340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
341 | eval 'as_fn_append () | |
342 | { | |
343 | eval $1+=\$2 | |
344 | }' | |
345 | else | |
346 | as_fn_append () | |
347 | { | |
348 | eval $1=\$$1\$2 | |
349 | } | |
350 | fi # as_fn_append | |
351 | ||
352 | # as_fn_arith ARG... | |
353 | # ------------------ | |
354 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
356 | # must be portable across $(()) and expr. | |
357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
358 | eval 'as_fn_arith () | |
359 | { | |
360 | as_val=$(( $* )) | |
361 | }' | |
362 | else | |
363 | as_fn_arith () | |
364 | { | |
365 | as_val=`expr "$@" || test $? -eq 1` | |
366 | } | |
367 | fi # as_fn_arith | |
368 | ||
369 | ||
4a531bb0 L |
370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
371 | # ---------------------------------------- | |
b08c89d9 UD |
372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4a531bb0 | 374 | # script with STATUS, using 1 if that was 0. |
b08c89d9 UD |
375 | as_fn_error () |
376 | { | |
4a531bb0 L |
377 | as_status=$1; test $as_status -eq 0 && as_status=1 |
378 | if test "$4"; then | |
379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b08c89d9 | 381 | fi |
4a531bb0 | 382 | $as_echo "$as_me: error: $2" >&2 |
b08c89d9 UD |
383 | as_fn_exit $as_status |
384 | } # as_fn_error | |
385 | ||
26f56c1c UD |
386 | if expr a : '\(a\)' >/dev/null 2>&1 && |
387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f4b07664 RM |
388 | as_expr=expr |
389 | else | |
390 | as_expr=false | |
391 | fi | |
392 | ||
26f56c1c | 393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
f4b07664 RM |
394 | as_basename=basename |
395 | else | |
396 | as_basename=false | |
397 | fi | |
3a12e572 | 398 | |
b08c89d9 UD |
399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
400 | as_dirname=dirname | |
401 | else | |
402 | as_dirname=false | |
403 | fi | |
3a12e572 | 404 | |
26f56c1c | 405 | as_me=`$as_basename -- "$0" || |
3a12e572 UD |
406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
407 | X"$0" : 'X\(//\)$' \| \ | |
26f56c1c | 408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
322e23db | 409 | $as_echo X/"$0" | |
26f56c1c UD |
410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
411 | s//\1/ | |
412 | q | |
413 | } | |
414 | /^X\/\(\/\/\)$/{ | |
415 | s//\1/ | |
416 | q | |
417 | } | |
418 | /^X\/\(\/\).*/{ | |
419 | s//\1/ | |
420 | q | |
421 | } | |
422 | s/.*/./; q'` | |
3a12e572 | 423 | |
b08c89d9 UD |
424 | # Avoid depending upon Character Ranges. |
425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
428 | as_cr_digits='0123456789' | |
429 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
f4b07664 | 430 | |
3a12e572 | 431 | |
b08c89d9 UD |
432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
437 | sed -n ' | |
438 | p | |
439 | /[$]LINENO/= | |
440 | ' <$as_myself | | |
441 | sed ' | |
442 | s/[$]LINENO.*/&-/ | |
443 | t lineno | |
444 | b | |
445 | :lineno | |
446 | N | |
447 | :loop | |
448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
449 | t loop | |
450 | s/-\n.*// | |
451 | ' >$as_me.lineno && | |
452 | chmod +x "$as_me.lineno" || | |
453 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
cd6ede75 | 454 | |
b08c89d9 UD |
455 | # Don't try to exec as it changes $[0], causing all sort of problems |
456 | # (the dirname of $[0] is not the place where we might find the | |
457 | # original and so on. Autoconf is especially sensitive to this). | |
458 | . "./$as_me.lineno" | |
459 | # Exit status is that of the last command. | |
460 | exit | |
26f56c1c | 461 | } |
cd6ede75 | 462 | |
b08c89d9 UD |
463 | ECHO_C= ECHO_N= ECHO_T= |
464 | case `echo -n x` in #((((( | |
465 | -n*) | |
466 | case `echo 'xy\c'` in | |
467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
468 | xy) ECHO_C='\c';; | |
469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
470 | ECHO_T=' ';; | |
471 | esac;; | |
472 | *) | |
473 | ECHO_N='-n';; | |
474 | esac | |
650425ce | 475 | |
b08c89d9 UD |
476 | rm -f conf$$ conf$$.exe conf$$.file |
477 | if test -d conf$$.dir; then | |
478 | rm -f conf$$.dir/conf$$.file | |
479 | else | |
480 | rm -f conf$$.dir | |
481 | mkdir conf$$.dir 2>/dev/null | |
26f56c1c | 482 | fi |
b08c89d9 UD |
483 | if (echo >conf$$.file) 2>/dev/null; then |
484 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
485 | as_ln_s='ln -s' | |
486 | # ... but there are two gotchas: | |
487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
489 | # In both cases, we have to default to `cp -p'. | |
490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
491 | as_ln_s='cp -p' | |
492 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
493 | as_ln_s=ln | |
494 | else | |
495 | as_ln_s='cp -p' | |
496 | fi | |
26f56c1c | 497 | else |
b08c89d9 | 498 | as_ln_s='cp -p' |
26f56c1c | 499 | fi |
b08c89d9 UD |
500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
501 | rmdir conf$$.dir 2>/dev/null | |
26f56c1c | 502 | |
b08c89d9 UD |
503 | if mkdir -p . 2>/dev/null; then |
504 | as_mkdir_p='mkdir -p "$as_dir"' | |
505 | else | |
506 | test -d ./-p && rmdir ./-p | |
507 | as_mkdir_p=false | |
26f56c1c UD |
508 | fi |
509 | ||
b08c89d9 UD |
510 | if test -x / >/dev/null 2>&1; then |
511 | as_test_x='test -x' | |
26f56c1c | 512 | else |
b08c89d9 UD |
513 | if ls -dL / >/dev/null 2>&1; then |
514 | as_ls_L_option=L | |
515 | else | |
516 | as_ls_L_option= | |
517 | fi | |
518 | as_test_x=' | |
519 | eval sh -c '\'' | |
520 | if test -d "$1"; then | |
521 | test -d "$1/."; | |
522 | else | |
523 | case $1 in #( | |
524 | -*)set "./$1";; | |
525 | esac; | |
526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
527 | ???[sx]*):;;*)false;;esac;fi | |
528 | '\'' sh | |
529 | ' | |
26f56c1c | 530 | fi |
b08c89d9 | 531 | as_executable_p=$as_test_x |
26f56c1c | 532 | |
b08c89d9 UD |
533 | # Sed expression to map a string onto a valid CPP name. |
534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
26f56c1c | 535 | |
b08c89d9 UD |
536 | # Sed expression to map a string onto a valid variable name. |
537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
26f56c1c UD |
538 | |
539 | ||
b08c89d9 UD |
540 | test -n "$DJDIR" || exec 7<&0 </dev/null |
541 | exec 6>&1 | |
cd6ede75 | 542 | |
3a12e572 | 543 | # Name of the host. |
4a531bb0 | 544 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
3a12e572 UD |
545 | # so uname gets run too. |
546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
547 | ||
3a12e572 UD |
548 | # |
549 | # Initializations. | |
550 | # | |
cd6ede75 | 551 | ac_default_prefix=/usr/local |
26f56c1c | 552 | ac_clean_files= |
f4b07664 | 553 | ac_config_libobj_dir=. |
26f56c1c | 554 | LIBOBJS= |
3a12e572 UD |
555 | cross_compiling=no |
556 | subdirs= | |
557 | MFLAGS= | |
558 | MAKEFLAGS= | |
3a12e572 | 559 | |
3a12e572 | 560 | # Identity of this package. |
f4b07664 | 561 | PACKAGE_NAME='GNU C Library' |
f318beb8 | 562 | PACKAGE_TARNAME='glibc' |
f4b07664 RM |
563 | PACKAGE_VERSION='(see version.h)' |
564 | PACKAGE_STRING='GNU C Library (see version.h)' | |
f318beb8 UD |
565 | PACKAGE_BUGREPORT='http://sourceware.org/bugzilla/' |
566 | PACKAGE_URL='http://www.gnu.org/software/glibc/' | |
3a12e572 UD |
567 | |
568 | ac_unique_file="include/features.h" | |
322e23db | 569 | enable_option_checking=no |
918b5606 | 570 | ac_includes_default='/* none */' |
322e23db | 571 | ac_subst_vars='LTLIBOBJS |
a152f366 | 572 | LIBOBJS |
322e23db UD |
573 | RELEASE |
574 | VERSION | |
575 | mach_interface_list | |
576 | DEFINES | |
322e23db | 577 | static_nss |
322e23db UD |
578 | profile |
579 | libc_cv_pic_default | |
580 | shared | |
581 | static | |
322e23db UD |
582 | ldd_rewrite_script |
583 | use_ldconfig | |
eae47a36 | 584 | libc_cv_sparc_as_vis3 |
01f1f5ee | 585 | libc_cv_as_i686 |
7998fa78 | 586 | libc_cv_cc_nofma |
af968f62 | 587 | libc_cv_cc_fma4 |
091023f5 | 588 | libc_cv_cc_novzeroupper |
3b100462 | 589 | libc_cv_cc_sse2avx |
b0ecde3a | 590 | libc_cv_cc_avx |
06e51c8f | 591 | libc_cv_cc_sse4 |
322e23db UD |
592 | libc_cv_forced_unwind |
593 | libc_cv_rootsbindir | |
4248b1b1 | 594 | libc_cv_localstatedir |
322e23db UD |
595 | libc_cv_sysconfdir |
596 | libc_cv_localedir | |
597 | libc_cv_slibdir | |
598 | old_glibc_headers | |
3cc3ef96 | 599 | use_nscd |
322e23db | 600 | libc_cv_gcc_unwind_find_fde |
30b99d79 | 601 | libc_extra_cflags |
61653dfb | 602 | CPPUNDEFS |
322e23db | 603 | sizeof_long_double |
322e23db UD |
604 | have_selinux |
605 | have_libcap | |
606 | have_libaudit | |
607 | LIBGD | |
608 | libc_cv_cc_submachine | |
609 | exceptions | |
1c7570ff | 610 | gnu89_inline |
322e23db UD |
611 | libc_cv_ssp |
612 | fno_unit_at_a_time | |
5c550700 | 613 | libc_cv_output_format |
322e23db UD |
614 | libc_cv_hashstyle |
615 | libc_cv_fpie | |
616 | libc_cv_z_execstack | |
617 | libc_cv_z_combreloc | |
618 | ASFLAGS_config | |
322e23db UD |
619 | libc_cv_Bgroup |
620 | libc_cv_cc_with_libunwind | |
621 | VERSIONING | |
622 | BISON | |
623 | INSTALL_INFO | |
624 | PERL | |
322e23db UD |
625 | libc_cv_have_ksh |
626 | KSH | |
627 | libc_cv_have_bash2 | |
628 | BASH_SHELL | |
629 | libc_cv_gcc_static_libgcc | |
630 | CXX_SYSINCLUDES | |
631 | SYSINCLUDES | |
632 | AUTOCONF | |
30b99d79 | 633 | NM |
0786794f | 634 | AWK |
322e23db UD |
635 | SED |
636 | MAKEINFO | |
637 | MSGFMT | |
638 | MAKE | |
322e23db UD |
639 | LD |
640 | AS | |
641 | MIG | |
1b74661a | 642 | OBJCOPY |
322e23db UD |
643 | OBJDUMP |
644 | AR | |
645 | LN_S | |
646 | INSTALL_DATA | |
647 | INSTALL_SCRIPT | |
648 | INSTALL_PROGRAM | |
649 | sysdeps_add_ons | |
650 | sysnames | |
651 | submachine | |
6f89d2f3 | 652 | multi_arch |
322e23db UD |
653 | base_machine |
654 | add_on_subdirs | |
655 | add_ons | |
c53d909c | 656 | build_nscd |
021db4be | 657 | link_obsolete_rpc |
322e23db | 658 | libc_cv_nss_crypt |
322e23db UD |
659 | all_warnings |
660 | force_install | |
661 | bindnow | |
740b3dbe | 662 | hardcoded_path_in_tests |
322e23db | 663 | oldest_abi |
f781ef40 | 664 | use_default_link |
c91c505f | 665 | sysheaders |
322e23db | 666 | with_fp |
0cae3f4b | 667 | READELF |
322e23db UD |
668 | ac_ct_CXX |
669 | CXXFLAGS | |
670 | CXX | |
671 | CPP | |
672 | cross_compiling | |
673 | BUILD_CC | |
674 | OBJEXT | |
675 | ac_ct_CC | |
676 | CPPFLAGS | |
677 | LDFLAGS | |
678 | CFLAGS | |
679 | CC | |
c16a054d AS |
680 | host_os |
681 | host_vendor | |
682 | host_cpu | |
683 | host | |
684 | build_os | |
685 | build_vendor | |
686 | build_cpu | |
687 | build | |
7967983f | 688 | subdirs |
8b748aed JM |
689 | REPORT_BUGS_TEXI |
690 | REPORT_BUGS_TO | |
691 | PKGVERSION_TEXI | |
692 | PKGVERSION | |
322e23db UD |
693 | target_alias |
694 | host_alias | |
695 | build_alias | |
696 | LIBS | |
697 | ECHO_T | |
698 | ECHO_N | |
699 | ECHO_C | |
700 | DEFS | |
701 | mandir | |
702 | localedir | |
703 | libdir | |
704 | psdir | |
705 | pdfdir | |
706 | dvidir | |
707 | htmldir | |
708 | infodir | |
709 | docdir | |
710 | oldincludedir | |
711 | includedir | |
712 | localstatedir | |
713 | sharedstatedir | |
714 | sysconfdir | |
715 | datadir | |
716 | datarootdir | |
717 | libexecdir | |
718 | sbindir | |
719 | bindir | |
720 | program_transform_name | |
721 | prefix | |
722 | exec_prefix | |
b08c89d9 | 723 | PACKAGE_URL |
322e23db UD |
724 | PACKAGE_BUGREPORT |
725 | PACKAGE_STRING | |
726 | PACKAGE_VERSION | |
727 | PACKAGE_TARNAME | |
728 | PACKAGE_NAME | |
729 | PATH_SEPARATOR | |
730 | SHELL' | |
a152f366 | 731 | ac_subst_files='' |
322e23db UD |
732 | ac_user_opts=' |
733 | enable_option_checking | |
8b748aed JM |
734 | with_pkgversion |
735 | with_bugurl | |
322e23db UD |
736 | with_gd |
737 | with_gd_include | |
738 | with_gd_lib | |
739 | with_fp | |
740 | with_binutils | |
322e23db | 741 | with_selinux |
322e23db | 742 | with_headers |
f781ef40 | 743 | with_default_link |
322e23db | 744 | enable_sanity_checks |
322e23db UD |
745 | enable_shared |
746 | enable_profile | |
322e23db UD |
747 | enable_versioning |
748 | enable_oldest_abi | |
740b3dbe | 749 | enable_hardcoded_path_in_tests |
322e23db UD |
750 | enable_stackguard_randomization |
751 | enable_add_ons | |
322e23db UD |
752 | enable_hidden_plt |
753 | enable_bind_now | |
754 | enable_static_nss | |
755 | enable_force_install | |
756 | enable_kernel | |
757 | enable_all_warnings | |
758 | enable_multi_arch | |
322e23db | 759 | enable_nss_crypt |
021db4be | 760 | enable_obsolete_rpc |
3a097cc7 | 761 | enable_systemtap |
c53d909c | 762 | enable_build_nscd |
3cc3ef96 | 763 | enable_nscd |
322e23db UD |
764 | with_cpu |
765 | ' | |
a152f366 UD |
766 | ac_precious_vars='build_alias |
767 | host_alias | |
768 | target_alias | |
769 | CC | |
770 | CFLAGS | |
771 | LDFLAGS | |
772 | LIBS | |
773 | CPPFLAGS | |
774 | CPP | |
775 | CXX | |
776 | CXXFLAGS | |
777 | CCC' | |
7967983f RM |
778 | ac_subdirs_all=' |
779 | ' | |
a152f366 UD |
780 | |
781 | # Initialize some variables set by options. | |
782 | ac_init_help= | |
783 | ac_init_version=false | |
322e23db UD |
784 | ac_unrecognized_opts= |
785 | ac_unrecognized_sep= | |
a152f366 UD |
786 | # The variables have the same names as the options, with |
787 | # dashes changed to underlines. | |
788 | cache_file=/dev/null | |
789 | exec_prefix=NONE | |
790 | no_create= | |
791 | no_recursion= | |
792 | prefix=NONE | |
793 | program_prefix=NONE | |
794 | program_suffix=NONE | |
795 | program_transform_name=s,x,x, | |
796 | silent= | |
797 | site= | |
798 | srcdir= | |
799 | verbose= | |
800 | x_includes=NONE | |
801 | x_libraries=NONE | |
802 | ||
803 | # Installation directory options. | |
804 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
805 | # and all the variables that are supposed to be based on exec_prefix | |
806 | # by default will actually change. | |
807 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
808 | # (The list follows the same order as the GNU Coding Standards.) | |
809 | bindir='${exec_prefix}/bin' | |
810 | sbindir='${exec_prefix}/sbin' | |
811 | libexecdir='${exec_prefix}/libexec' | |
812 | datarootdir='${prefix}/share' | |
813 | datadir='${datarootdir}' | |
814 | sysconfdir='${prefix}/etc' | |
815 | sharedstatedir='${prefix}/com' | |
816 | localstatedir='${prefix}/var' | |
817 | includedir='${prefix}/include' | |
818 | oldincludedir='/usr/include' | |
819 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
820 | infodir='${datarootdir}/info' | |
821 | htmldir='${docdir}' | |
26f56c1c UD |
822 | dvidir='${docdir}' |
823 | pdfdir='${docdir}' | |
824 | psdir='${docdir}' | |
825 | libdir='${exec_prefix}/lib' | |
826 | localedir='${datarootdir}/locale' | |
827 | mandir='${datarootdir}/man' | |
cd6ede75 | 828 | |
cd6ede75 | 829 | ac_prev= |
26f56c1c | 830 | ac_dashdash= |
cd6ede75 UD |
831 | for ac_option |
832 | do | |
cd6ede75 UD |
833 | # If the previous option needs an argument, assign it. |
834 | if test -n "$ac_prev"; then | |
26f56c1c | 835 | eval $ac_prev=\$ac_option |
cd6ede75 UD |
836 | ac_prev= |
837 | continue | |
838 | fi | |
839 | ||
26f56c1c | 840 | case $ac_option in |
f318beb8 UD |
841 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
842 | *=) ac_optarg= ;; | |
843 | *) ac_optarg=yes ;; | |
26f56c1c | 844 | esac |
cd6ede75 UD |
845 | |
846 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
847 | ||
26f56c1c UD |
848 | case $ac_dashdash$ac_option in |
849 | --) | |
850 | ac_dashdash=yes ;; | |
cd6ede75 UD |
851 | |
852 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
853 | ac_prev=bindir ;; | |
854 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
3a12e572 | 855 | bindir=$ac_optarg ;; |
cd6ede75 UD |
856 | |
857 | -build | --build | --buil | --bui | --bu) | |
3a12e572 | 858 | ac_prev=build_alias ;; |
cd6ede75 | 859 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
3a12e572 | 860 | build_alias=$ac_optarg ;; |
cd6ede75 UD |
861 | |
862 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
863 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
864 | ac_prev=cache_file ;; | |
865 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
866 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
3a12e572 UD |
867 | cache_file=$ac_optarg ;; |
868 | ||
869 | --config-cache | -C) | |
870 | cache_file=config.cache ;; | |
cd6ede75 | 871 | |
26f56c1c | 872 | -datadir | --datadir | --datadi | --datad) |
cd6ede75 | 873 | ac_prev=datadir ;; |
26f56c1c | 874 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
3a12e572 | 875 | datadir=$ac_optarg ;; |
cd6ede75 | 876 | |
26f56c1c UD |
877 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
878 | | --dataroo | --dataro | --datar) | |
879 | ac_prev=datarootdir ;; | |
880 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
881 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
882 | datarootdir=$ac_optarg ;; | |
883 | ||
cd6ede75 | 884 | -disable-* | --disable-*) |
322e23db | 885 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
cd6ede75 | 886 | # Reject names that are not valid shell variable names. |
322e23db | 887 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
4a531bb0 | 888 | as_fn_error $? "invalid feature name: $ac_useropt" |
322e23db UD |
889 | ac_useropt_orig=$ac_useropt |
890 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
891 | case $ac_user_opts in | |
892 | *" | |
893 | "enable_$ac_useropt" | |
894 | "*) ;; | |
895 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
896 | ac_unrecognized_sep=', ';; | |
897 | esac | |
898 | eval enable_$ac_useropt=no ;; | |
26f56c1c UD |
899 | |
900 | -docdir | --docdir | --docdi | --doc | --do) | |
901 | ac_prev=docdir ;; | |
902 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
903 | docdir=$ac_optarg ;; | |
904 | ||
905 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
906 | ac_prev=dvidir ;; | |
907 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
908 | dvidir=$ac_optarg ;; | |
cd6ede75 UD |
909 | |
910 | -enable-* | --enable-*) | |
322e23db | 911 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
cd6ede75 | 912 | # Reject names that are not valid shell variable names. |
322e23db | 913 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
4a531bb0 | 914 | as_fn_error $? "invalid feature name: $ac_useropt" |
322e23db UD |
915 | ac_useropt_orig=$ac_useropt |
916 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
917 | case $ac_user_opts in | |
918 | *" | |
919 | "enable_$ac_useropt" | |
920 | "*) ;; | |
921 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
922 | ac_unrecognized_sep=', ';; | |
923 | esac | |
924 | eval enable_$ac_useropt=\$ac_optarg ;; | |
cd6ede75 UD |
925 | |
926 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
927 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
928 | | --exec | --exe | --ex) | |
929 | ac_prev=exec_prefix ;; | |
930 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
931 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
932 | | --exec=* | --exe=* | --ex=*) | |
3a12e572 | 933 | exec_prefix=$ac_optarg ;; |
cd6ede75 UD |
934 | |
935 | -gas | --gas | --ga | --g) | |
936 | # Obsolete; use --with-gas. | |
937 | with_gas=yes ;; | |
938 | ||
3a12e572 UD |
939 | -help | --help | --hel | --he | -h) |
940 | ac_init_help=long ;; | |
941 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
942 | ac_init_help=recursive ;; | |
943 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
944 | ac_init_help=short ;; | |
cd6ede75 UD |
945 | |
946 | -host | --host | --hos | --ho) | |
3a12e572 | 947 | ac_prev=host_alias ;; |
cd6ede75 | 948 | -host=* | --host=* | --hos=* | --ho=*) |
3a12e572 | 949 | host_alias=$ac_optarg ;; |
cd6ede75 | 950 | |
26f56c1c UD |
951 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
952 | ac_prev=htmldir ;; | |
953 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
954 | | --ht=*) | |
955 | htmldir=$ac_optarg ;; | |
956 | ||
cd6ede75 UD |
957 | -includedir | --includedir | --includedi | --included | --include \ |
958 | | --includ | --inclu | --incl | --inc) | |
959 | ac_prev=includedir ;; | |
960 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
961 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
3a12e572 | 962 | includedir=$ac_optarg ;; |
cd6ede75 UD |
963 | |
964 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
965 | ac_prev=infodir ;; | |
966 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
3a12e572 | 967 | infodir=$ac_optarg ;; |
cd6ede75 UD |
968 | |
969 | -libdir | --libdir | --libdi | --libd) | |
970 | ac_prev=libdir ;; | |
971 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
3a12e572 | 972 | libdir=$ac_optarg ;; |
cd6ede75 UD |
973 | |
974 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
975 | | --libexe | --libex | --libe) | |
976 | ac_prev=libexecdir ;; | |
977 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
978 | | --libexe=* | --libex=* | --libe=*) | |
3a12e572 | 979 | libexecdir=$ac_optarg ;; |
cd6ede75 | 980 | |
26f56c1c UD |
981 | -localedir | --localedir | --localedi | --localed | --locale) |
982 | ac_prev=localedir ;; | |
983 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
984 | localedir=$ac_optarg ;; | |
985 | ||
cd6ede75 | 986 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
26f56c1c | 987 | | --localstate | --localstat | --localsta | --localst | --locals) |
cd6ede75 UD |
988 | ac_prev=localstatedir ;; |
989 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
26f56c1c | 990 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
3a12e572 | 991 | localstatedir=$ac_optarg ;; |
cd6ede75 UD |
992 | |
993 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
994 | ac_prev=mandir ;; | |
995 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
3a12e572 | 996 | mandir=$ac_optarg ;; |
cd6ede75 UD |
997 | |
998 | -nfp | --nfp | --nf) | |
999 | # Obsolete; use --without-fp. | |
1000 | with_fp=no ;; | |
1001 | ||
1002 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
3a12e572 | 1003 | | --no-cr | --no-c | -n) |
cd6ede75 UD |
1004 | no_create=yes ;; |
1005 | ||
1006 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1007 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1008 | no_recursion=yes ;; | |
1009 | ||
1010 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1011 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1012 | | --oldin | --oldi | --old | --ol | --o) | |
1013 | ac_prev=oldincludedir ;; | |
1014 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1015 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1016 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
3a12e572 | 1017 | oldincludedir=$ac_optarg ;; |
cd6ede75 UD |
1018 | |
1019 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1020 | ac_prev=prefix ;; | |
1021 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
3a12e572 | 1022 | prefix=$ac_optarg ;; |
cd6ede75 UD |
1023 | |
1024 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1025 | | --program-pre | --program-pr | --program-p) | |
1026 | ac_prev=program_prefix ;; | |
1027 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1028 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
3a12e572 | 1029 | program_prefix=$ac_optarg ;; |
cd6ede75 UD |
1030 | |
1031 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1032 | | --program-suf | --program-su | --program-s) | |
1033 | ac_prev=program_suffix ;; | |
1034 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1035 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
3a12e572 | 1036 | program_suffix=$ac_optarg ;; |
cd6ede75 UD |
1037 | |
1038 | -program-transform-name | --program-transform-name \ | |
1039 | | --program-transform-nam | --program-transform-na \ | |
1040 | | --program-transform-n | --program-transform- \ | |
1041 | | --program-transform | --program-transfor \ | |
1042 | | --program-transfo | --program-transf \ | |
1043 | | --program-trans | --program-tran \ | |
1044 | | --progr-tra | --program-tr | --program-t) | |
1045 | ac_prev=program_transform_name ;; | |
1046 | -program-transform-name=* | --program-transform-name=* \ | |
1047 | | --program-transform-nam=* | --program-transform-na=* \ | |
1048 | | --program-transform-n=* | --program-transform-=* \ | |
1049 | | --program-transform=* | --program-transfor=* \ | |
1050 | | --program-transfo=* | --program-transf=* \ | |
1051 | | --program-trans=* | --program-tran=* \ | |
1052 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
3a12e572 | 1053 | program_transform_name=$ac_optarg ;; |
cd6ede75 | 1054 | |
26f56c1c UD |
1055 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1056 | ac_prev=pdfdir ;; | |
1057 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1058 | pdfdir=$ac_optarg ;; | |
1059 | ||
1060 | -psdir | --psdir | --psdi | --psd | --ps) | |
1061 | ac_prev=psdir ;; | |
1062 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1063 | psdir=$ac_optarg ;; | |
1064 | ||
cd6ede75 UD |
1065 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1066 | | -silent | --silent | --silen | --sile | --sil) | |
1067 | silent=yes ;; | |
1068 | ||
1069 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1070 | ac_prev=sbindir ;; | |
1071 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1072 | | --sbi=* | --sb=*) | |
3a12e572 | 1073 | sbindir=$ac_optarg ;; |
cd6ede75 UD |
1074 | |
1075 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1076 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1077 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1078 | | --sha | --sh) | |
1079 | ac_prev=sharedstatedir ;; | |
1080 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1081 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1082 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1083 | | --sha=* | --sh=*) | |
3a12e572 | 1084 | sharedstatedir=$ac_optarg ;; |
cd6ede75 UD |
1085 | |
1086 | -site | --site | --sit) | |
1087 | ac_prev=site ;; | |
1088 | -site=* | --site=* | --sit=*) | |
3a12e572 | 1089 | site=$ac_optarg ;; |
cd6ede75 UD |
1090 | |
1091 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1092 | ac_prev=srcdir ;; | |
1093 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
3a12e572 | 1094 | srcdir=$ac_optarg ;; |
cd6ede75 UD |
1095 | |
1096 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1097 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1098 | ac_prev=sysconfdir ;; | |
1099 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1100 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
3a12e572 | 1101 | sysconfdir=$ac_optarg ;; |
cd6ede75 UD |
1102 | |
1103 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
3a12e572 | 1104 | ac_prev=target_alias ;; |
cd6ede75 | 1105 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
3a12e572 | 1106 | target_alias=$ac_optarg ;; |
cd6ede75 UD |
1107 | |
1108 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1109 | verbose=yes ;; | |
1110 | ||
3a12e572 UD |
1111 | -version | --version | --versio | --versi | --vers | -V) |
1112 | ac_init_version=: ;; | |
cd6ede75 UD |
1113 | |
1114 | -with-* | --with-*) | |
322e23db | 1115 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
cd6ede75 | 1116 | # Reject names that are not valid shell variable names. |
322e23db | 1117 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
4a531bb0 | 1118 | as_fn_error $? "invalid package name: $ac_useropt" |
322e23db UD |
1119 | ac_useropt_orig=$ac_useropt |
1120 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1121 | case $ac_user_opts in | |
1122 | *" | |
1123 | "with_$ac_useropt" | |
1124 | "*) ;; | |
1125 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1126 | ac_unrecognized_sep=', ';; | |
1127 | esac | |
1128 | eval with_$ac_useropt=\$ac_optarg ;; | |
cd6ede75 UD |
1129 | |
1130 | -without-* | --without-*) | |
322e23db | 1131 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
cd6ede75 | 1132 | # Reject names that are not valid shell variable names. |
322e23db | 1133 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
4a531bb0 | 1134 | as_fn_error $? "invalid package name: $ac_useropt" |
322e23db UD |
1135 | ac_useropt_orig=$ac_useropt |
1136 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1137 | case $ac_user_opts in | |
1138 | *" | |
1139 | "with_$ac_useropt" | |
1140 | "*) ;; | |
1141 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1142 | ac_unrecognized_sep=', ';; | |
1143 | esac | |
1144 | eval with_$ac_useropt=no ;; | |
cd6ede75 UD |
1145 | |
1146 | --x) | |
1147 | # Obsolete; use --with-x. | |
1148 | with_x=yes ;; | |
1149 | ||
1150 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1151 | | --x-incl | --x-inc | --x-in | --x-i) | |
1152 | ac_prev=x_includes ;; | |
1153 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1154 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
3a12e572 | 1155 | x_includes=$ac_optarg ;; |
cd6ede75 UD |
1156 | |
1157 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1158 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1159 | ac_prev=x_libraries ;; | |
1160 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1161 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
3a12e572 | 1162 | x_libraries=$ac_optarg ;; |
cd6ede75 | 1163 | |
4a531bb0 L |
1164 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1165 | Try \`$0 --help' for more information" | |
cd6ede75 UD |
1166 | ;; |
1167 | ||
3a12e572 UD |
1168 | *=*) |
1169 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1170 | # Reject names that are not valid shell variable names. | |
b08c89d9 UD |
1171 | case $ac_envvar in #( |
1172 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
4a531bb0 | 1173 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
b08c89d9 | 1174 | esac |
26f56c1c | 1175 | eval $ac_envvar=\$ac_optarg |
3a12e572 UD |
1176 | export $ac_envvar ;; |
1177 | ||
cd6ede75 | 1178 | *) |
3a12e572 | 1179 | # FIXME: should be removed in autoconf 3.0. |
322e23db | 1180 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
3a12e572 | 1181 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
322e23db | 1182 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
f318beb8 | 1183 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
cd6ede75 UD |
1184 | ;; |
1185 | ||
1186 | esac | |
1187 | done | |
1188 | ||
1189 | if test -n "$ac_prev"; then | |
3a12e572 | 1190 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
4a531bb0 | 1191 | as_fn_error $? "missing argument to $ac_option" |
cd6ede75 | 1192 | fi |
cd6ede75 | 1193 | |
322e23db UD |
1194 | if test -n "$ac_unrecognized_opts"; then |
1195 | case $enable_option_checking in | |
1196 | no) ;; | |
4a531bb0 | 1197 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
322e23db UD |
1198 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1199 | esac | |
1200 | fi | |
1201 | ||
1202 | # Check all directory arguments for consistency. | |
26f56c1c UD |
1203 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1204 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1205 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1206 | libdir localedir mandir | |
cd6ede75 | 1207 | do |
26f56c1c | 1208 | eval ac_val=\$$ac_var |
322e23db UD |
1209 | # Remove trailing slashes. |
1210 | case $ac_val in | |
1211 | */ ) | |
1212 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1213 | eval $ac_var=\$ac_val;; | |
1214 | esac | |
1215 | # Be sure to have absolute directory names. | |
3a12e572 | 1216 | case $ac_val in |
26f56c1c UD |
1217 | [\\/$]* | ?:[\\/]* ) continue;; |
1218 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
cd6ede75 | 1219 | esac |
4a531bb0 | 1220 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
cd6ede75 UD |
1221 | done |
1222 | ||
3a12e572 UD |
1223 | # There might be people who depend on the old broken behavior: `$host' |
1224 | # used to hold the argument of --host etc. | |
1225 | # FIXME: To remove some day. | |
1226 | build=$build_alias | |
1227 | host=$host_alias | |
1228 | target=$target_alias | |
1229 | ||
1230 | # FIXME: To remove some day. | |
1231 | if test "x$host_alias" != x; then | |
1232 | if test "x$build_alias" = x; then | |
1233 | cross_compiling=maybe | |
4a531bb0 L |
1234 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1235 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
3a12e572 UD |
1236 | elif test "x$build_alias" != "x$host_alias"; then |
1237 | cross_compiling=yes | |
1238 | fi | |
1239 | fi | |
cd6ede75 | 1240 | |
3a12e572 UD |
1241 | ac_tool_prefix= |
1242 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1243 | ||
1244 | test "$silent" = yes && exec 6>/dev/null | |
cd6ede75 | 1245 | |
cd6ede75 | 1246 | |
26f56c1c UD |
1247 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1248 | ac_ls_di=`ls -di .` && | |
1249 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
4a531bb0 | 1250 | as_fn_error $? "working directory cannot be determined" |
26f56c1c | 1251 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
4a531bb0 | 1252 | as_fn_error $? "pwd does not report name of working directory" |
26f56c1c UD |
1253 | |
1254 | ||
cd6ede75 UD |
1255 | # Find the source files, if location was not specified. |
1256 | if test -z "$srcdir"; then | |
1257 | ac_srcdir_defaulted=yes | |
26f56c1c | 1258 | # Try the directory containing this script, then the parent directory. |
322e23db UD |
1259 | ac_confdir=`$as_dirname -- "$as_myself" || |
1260 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1261 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1262 | X"$as_myself" : 'X\(//\)$' \| \ | |
1263 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1264 | $as_echo X"$as_myself" | | |
26f56c1c UD |
1265 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1266 | s//\1/ | |
1267 | q | |
1268 | } | |
1269 | /^X\(\/\/\)[^/].*/{ | |
1270 | s//\1/ | |
1271 | q | |
1272 | } | |
1273 | /^X\(\/\/\)$/{ | |
1274 | s//\1/ | |
1275 | q | |
1276 | } | |
1277 | /^X\(\/\).*/{ | |
1278 | s//\1/ | |
1279 | q | |
1280 | } | |
1281 | s/.*/./; q'` | |
cd6ede75 | 1282 | srcdir=$ac_confdir |
26f56c1c | 1283 | if test ! -r "$srcdir/$ac_unique_file"; then |
cd6ede75 UD |
1284 | srcdir=.. |
1285 | fi | |
1286 | else | |
1287 | ac_srcdir_defaulted=no | |
1288 | fi | |
26f56c1c UD |
1289 | if test ! -r "$srcdir/$ac_unique_file"; then |
1290 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
4a531bb0 | 1291 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
cd6ede75 | 1292 | fi |
26f56c1c UD |
1293 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1294 | ac_abs_confdir=`( | |
4a531bb0 | 1295 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
26f56c1c UD |
1296 | pwd)` |
1297 | # When building in place, set srcdir=. | |
1298 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1299 | srcdir=. | |
1300 | fi | |
1301 | # Remove unnecessary trailing slashes from srcdir. | |
1302 | # Double slashes in file names in object file debugging info | |
1303 | # mess up M-x gdb in Emacs. | |
1304 | case $srcdir in | |
1305 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1306 | esac | |
1307 | for ac_var in $ac_precious_vars; do | |
1308 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1309 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1310 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1311 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1312 | done | |
3a12e572 UD |
1313 | |
1314 | # | |
1315 | # Report the --help message. | |
1316 | # | |
1317 | if test "$ac_init_help" = "long"; then | |
1318 | # Omit some internal or obsolete options to make the list less imposing. | |
1319 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1320 | cat <<_ACEOF | |
f4b07664 | 1321 | \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems. |
3a12e572 UD |
1322 | |
1323 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1324 | ||
1325 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1326 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1327 | ||
1328 | Defaults for the options are specified in brackets. | |
1329 | ||
1330 | Configuration: | |
1331 | -h, --help display this help and exit | |
1332 | --help=short display options specific to this package | |
1333 | --help=recursive display the short help of all the included packages | |
1334 | -V, --version display version information and exit | |
4a531bb0 | 1335 | -q, --quiet, --silent do not print \`checking ...' messages |
3a12e572 UD |
1336 | --cache-file=FILE cache test results in FILE [disabled] |
1337 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1338 | -n, --no-create do not create output files | |
1339 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1340 | ||
3a12e572 UD |
1341 | Installation directories: |
1342 | --prefix=PREFIX install architecture-independent files in PREFIX | |
322e23db | 1343 | [$ac_default_prefix] |
3a12e572 | 1344 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
322e23db | 1345 | [PREFIX] |
3a12e572 UD |
1346 | |
1347 | By default, \`make install' will install all the files in | |
1348 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1349 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1350 | for instance \`--prefix=\$HOME'. | |
1351 | ||
1352 | For better control, use the options below. | |
1353 | ||
1354 | Fine tuning of the installation directories: | |
322e23db UD |
1355 | --bindir=DIR user executables [EPREFIX/bin] |
1356 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1357 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1358 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1359 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1360 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1361 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1362 | --includedir=DIR C header files [PREFIX/include] | |
1363 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1364 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1365 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1366 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1367 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1368 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
f318beb8 | 1369 | --docdir=DIR documentation root [DATAROOTDIR/doc/glibc] |
322e23db UD |
1370 | --htmldir=DIR html documentation [DOCDIR] |
1371 | --dvidir=DIR dvi documentation [DOCDIR] | |
1372 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1373 | --psdir=DIR ps documentation [DOCDIR] | |
3a12e572 UD |
1374 | _ACEOF |
1375 | ||
1376 | cat <<\_ACEOF | |
1377 | ||
1378 | System types: | |
1379 | --build=BUILD configure for building on BUILD [guessed] | |
1380 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1381 | _ACEOF | |
1382 | fi | |
cd6ede75 | 1383 | |
3a12e572 | 1384 | if test -n "$ac_init_help"; then |
f4b07664 RM |
1385 | case $ac_init_help in |
1386 | short | recursive ) echo "Configuration of GNU C Library (see version.h):";; | |
1387 | esac | |
3a12e572 UD |
1388 | cat <<\_ACEOF |
1389 | ||
1390 | Optional Features: | |
322e23db | 1391 | --disable-option-checking ignore unrecognized --enable/--with options |
3a12e572 UD |
1392 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1393 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6b7f6183 RM |
1394 | --disable-sanity-checks really do not use threads (should not be used except |
1395 | in special situations) [default=yes] | |
a0da5fe1 | 1396 | --enable-shared build shared library [default=yes if GNU ld] |
11bf311e | 1397 | --enable-profile build profiled library [default=no] |
6b7f6183 RM |
1398 | --disable-versioning do not include versioning information in the library |
1399 | objects [default=yes if supported] | |
1400 | --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2] | |
1401 | [default=glibc default] | |
740b3dbe L |
1402 | --enable-hardcoded-path-in-tests |
1403 | hardcode newly built glibc path in tests | |
1404 | [default=no] | |
35f1e827 UD |
1405 | --enable-stackguard-randomization |
1406 | initialize __stack_chk_guard canary with a random | |
1407 | number at program start | |
6b7f6183 RM |
1408 | --enable-add-ons[=DIRS...] |
1409 | configure and build add-ons in DIR1,DIR2,... search | |
1410 | for add-ons if no parameter given | |
3a12e572 | 1411 | --disable-hidden-plt do not hide internal function calls to avoid PLT |
4df8c11d | 1412 | --enable-bind-now disable lazy relocations in DSOs |
6b7f6183 | 1413 | --enable-static-nss build static NSS modules [default=no] |
3a12e572 | 1414 | --disable-force-install don't force installation of files from this package, |
6b7f6183 RM |
1415 | even if they are older than the installed files |
1416 | --enable-kernel=VERSION compile for compatibility with kernel not older than | |
1417 | VERSION | |
3a12e572 | 1418 | --enable-all-warnings enable all useful warnings gcc can issue |
425ce2ed UD |
1419 | --enable-multi-arch enable single DSO with optimizations for multiple |
1420 | architectures | |
ff886b82 | 1421 | --enable-nss-crypt enable libcrypt to use nss |
021db4be AJ |
1422 | --enable-obsolete-rpc build and install the obsolete RPC code for |
1423 | link-time usage | |
3a097cc7 | 1424 | --enable-systemtap enable systemtap static probe points [default=no] |
c53d909c | 1425 | --disable-build-nscd disable building and installing the nscd daemon |
3cc3ef96 | 1426 | --disable-nscd library functions will not contact the nscd daemon |
3a12e572 UD |
1427 | |
1428 | Optional Packages: | |
1429 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1430 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
8b748aed JM |
1431 | --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc" |
1432 | --with-bugurl=URL Direct users to URL to report a bug | |
3a12e572 UD |
1433 | --with-gd=DIR find libgd include dir and library with prefix DIR |
1434 | --with-gd-include=DIR find libgd include files in DIR | |
1435 | --with-gd-lib=DIR find libgd library files in DIR | |
6b7f6183 RM |
1436 | --with-fp if using floating-point hardware [default=yes] |
1437 | --with-binutils=PATH specify location of binutils (as and ld) | |
74a30a58 | 1438 | --with-selinux if building with SELinux support |
6b7f6183 | 1439 | --with-headers=PATH location of system headers to use (for example |
26f56c1c | 1440 | /usr/src/linux/include) [default=compiler default] |
fd5e21c7 | 1441 | --with-default-link do not use explicit linker scripts |
2ceaa76a | 1442 | --with-cpu=CPU select code for CPU variant |
3a12e572 UD |
1443 | |
1444 | Some influential environment variables: | |
1445 | CC C compiler command | |
1446 | CFLAGS C compiler flags | |
1447 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1448 | nonstandard directory <lib dir> | |
26f56c1c | 1449 | LIBS libraries to pass to the linker, e.g. -l<library> |
b08c89d9 | 1450 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
26f56c1c | 1451 | you have headers in a nonstandard directory <include dir> |
3a12e572 | 1452 | CPP C preprocessor |
925c3c5c UD |
1453 | CXX C++ compiler command |
1454 | CXXFLAGS C++ compiler flags | |
3a12e572 UD |
1455 | |
1456 | Use these variables to override the choices made by `configure' or to help | |
1457 | it to find libraries and programs with nonstandard names/locations. | |
1458 | ||
f318beb8 UD |
1459 | Report bugs to <http://sourceware.org/bugzilla/>. |
1460 | GNU C Library home page: <http://www.gnu.org/software/glibc/>. | |
b08c89d9 | 1461 | General help using GNU software: <http://www.gnu.org/gethelp/>. |
3a12e572 | 1462 | _ACEOF |
26f56c1c | 1463 | ac_status=$? |
3a12e572 UD |
1464 | fi |
1465 | ||
1466 | if test "$ac_init_help" = "recursive"; then | |
1467 | # If there are subdirs, report their specific --help. | |
3a12e572 | 1468 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
322e23db UD |
1469 | test -d "$ac_dir" || |
1470 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1471 | continue | |
3a12e572 UD |
1472 | ac_builddir=. |
1473 | ||
26f56c1c UD |
1474 | case "$ac_dir" in |
1475 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1476 | *) | |
322e23db | 1477 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 1478 | # A ".." for each directory in $ac_dir_suffix. |
322e23db | 1479 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
1480 | case $ac_top_builddir_sub in |
1481 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1482 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1483 | esac ;; | |
1484 | esac | |
1485 | ac_abs_top_builddir=$ac_pwd | |
1486 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1487 | # for backward compatibility: | |
1488 | ac_top_builddir=$ac_top_build_prefix | |
3a12e572 UD |
1489 | |
1490 | case $srcdir in | |
26f56c1c | 1491 | .) # We are building in place. |
3a12e572 | 1492 | ac_srcdir=. |
26f56c1c UD |
1493 | ac_top_srcdir=$ac_top_builddir_sub |
1494 | ac_abs_top_srcdir=$ac_pwd ;; | |
1495 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 1496 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
1497 | ac_top_srcdir=$srcdir |
1498 | ac_abs_top_srcdir=$srcdir ;; | |
1499 | *) # Relative name. | |
1500 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1501 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1502 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3a12e572 | 1503 | esac |
26f56c1c UD |
1504 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1505 | ||
1506 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1507 | # Check for guested configure. | |
1508 | if test -f "$ac_srcdir/configure.gnu"; then | |
1509 | echo && | |
1510 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1511 | elif test -f "$ac_srcdir/configure"; then | |
1512 | echo && | |
1513 | $SHELL "$ac_srcdir/configure" --help=recursive | |
3a12e572 | 1514 | else |
322e23db | 1515 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
26f56c1c UD |
1516 | fi || ac_status=$? |
1517 | cd "$ac_pwd" || { ac_status=$?; break; } | |
3a12e572 UD |
1518 | done |
1519 | fi | |
1520 | ||
26f56c1c | 1521 | test -n "$ac_init_help" && exit $ac_status |
3a12e572 UD |
1522 | if $ac_init_version; then |
1523 | cat <<\_ACEOF | |
f4b07664 | 1524 | GNU C Library configure (see version.h) |
f318beb8 | 1525 | generated by GNU Autoconf 2.68 |
3a12e572 | 1526 | |
4a531bb0 | 1527 | Copyright (C) 2010 Free Software Foundation, Inc. |
3a12e572 UD |
1528 | This configure script is free software; the Free Software Foundation |
1529 | gives unlimited permission to copy, distribute and modify it. | |
1530 | _ACEOF | |
26f56c1c | 1531 | exit |
3a12e572 | 1532 | fi |
3a12e572 | 1533 | |
b08c89d9 UD |
1534 | ## ------------------------ ## |
1535 | ## Autoconf initialization. ## | |
1536 | ## ------------------------ ## | |
3a12e572 | 1537 | |
b08c89d9 UD |
1538 | # ac_fn_c_try_compile LINENO |
1539 | # -------------------------- | |
1540 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1541 | ac_fn_c_try_compile () | |
3a12e572 | 1542 | { |
b08c89d9 UD |
1543 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1544 | rm -f conftest.$ac_objext | |
1545 | if { { ac_try="$ac_compile" | |
1546 | case "(($ac_try" in | |
1547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1548 | *) ac_try_echo=$ac_try;; | |
1549 | esac | |
1550 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1551 | $as_echo "$ac_try_echo"; } >&5 | |
1552 | (eval "$ac_compile") 2>conftest.err | |
1553 | ac_status=$? | |
1554 | if test -s conftest.err; then | |
1555 | grep -v '^ *+' conftest.err >conftest.er1 | |
1556 | cat conftest.er1 >&5 | |
1557 | mv -f conftest.er1 conftest.err | |
1558 | fi | |
1559 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1560 | test $ac_status = 0; } && { | |
1561 | test -z "$ac_c_werror_flag" || | |
1562 | test ! -s conftest.err | |
1563 | } && test -s conftest.$ac_objext; then : | |
1564 | ac_retval=0 | |
1565 | else | |
1566 | $as_echo "$as_me: failed program was:" >&5 | |
1567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3a12e572 | 1568 | |
b08c89d9 UD |
1569 | ac_retval=1 |
1570 | fi | |
f318beb8 | 1571 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 | 1572 | as_fn_set_status $ac_retval |
3a12e572 | 1573 | |
b08c89d9 | 1574 | } # ac_fn_c_try_compile |
3a12e572 | 1575 | |
b08c89d9 UD |
1576 | # ac_fn_cxx_try_compile LINENO |
1577 | # ---------------------------- | |
1578 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1579 | ac_fn_cxx_try_compile () | |
1580 | { | |
1581 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1582 | rm -f conftest.$ac_objext | |
1583 | if { { ac_try="$ac_compile" | |
1584 | case "(($ac_try" in | |
1585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1586 | *) ac_try_echo=$ac_try;; | |
1587 | esac | |
1588 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1589 | $as_echo "$ac_try_echo"; } >&5 | |
1590 | (eval "$ac_compile") 2>conftest.err | |
1591 | ac_status=$? | |
1592 | if test -s conftest.err; then | |
1593 | grep -v '^ *+' conftest.err >conftest.er1 | |
1594 | cat conftest.er1 >&5 | |
1595 | mv -f conftest.er1 conftest.err | |
1596 | fi | |
1597 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1598 | test $ac_status = 0; } && { | |
1599 | test -z "$ac_cxx_werror_flag" || | |
1600 | test ! -s conftest.err | |
1601 | } && test -s conftest.$ac_objext; then : | |
1602 | ac_retval=0 | |
1603 | else | |
1604 | $as_echo "$as_me: failed program was:" >&5 | |
1605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1606 | ||
1607 | ac_retval=1 | |
1608 | fi | |
f318beb8 | 1609 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 UD |
1610 | as_fn_set_status $ac_retval |
1611 | ||
1612 | } # ac_fn_cxx_try_compile | |
1613 | ||
1614 | # ac_fn_c_try_link LINENO | |
1615 | # ----------------------- | |
1616 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1617 | ac_fn_c_try_link () | |
1618 | { | |
1619 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1620 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1621 | if { { ac_try="$ac_link" | |
1622 | case "(($ac_try" in | |
1623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1624 | *) ac_try_echo=$ac_try;; | |
1625 | esac | |
1626 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1627 | $as_echo "$ac_try_echo"; } >&5 | |
1628 | (eval "$ac_link") 2>conftest.err | |
1629 | ac_status=$? | |
1630 | if test -s conftest.err; then | |
1631 | grep -v '^ *+' conftest.err >conftest.er1 | |
1632 | cat conftest.er1 >&5 | |
1633 | mv -f conftest.er1 conftest.err | |
1634 | fi | |
1635 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1636 | test $ac_status = 0; } && { | |
1637 | test -z "$ac_c_werror_flag" || | |
1638 | test ! -s conftest.err | |
1639 | } && test -s conftest$ac_exeext && { | |
1640 | test "$cross_compiling" = yes || | |
1641 | $as_test_x conftest$ac_exeext | |
1642 | }; then : | |
1643 | ac_retval=0 | |
1644 | else | |
1645 | $as_echo "$as_me: failed program was:" >&5 | |
1646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1647 | ||
1648 | ac_retval=1 | |
1649 | fi | |
1650 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1651 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1652 | # interfere with the next link command; also delete a directory that is | |
1653 | # left behind by Apple's compiler. We do this before executing the actions. | |
1654 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f318beb8 | 1655 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 UD |
1656 | as_fn_set_status $ac_retval |
1657 | ||
1658 | } # ac_fn_c_try_link | |
1659 | ||
1660 | # ac_fn_c_try_run LINENO | |
1661 | # ---------------------- | |
1662 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1663 | # that executables *can* be run. | |
1664 | ac_fn_c_try_run () | |
1665 | { | |
1666 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1667 | if { { ac_try="$ac_link" | |
1668 | case "(($ac_try" in | |
1669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1670 | *) ac_try_echo=$ac_try;; | |
1671 | esac | |
1672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1673 | $as_echo "$ac_try_echo"; } >&5 | |
1674 | (eval "$ac_link") 2>&5 | |
1675 | ac_status=$? | |
1676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1677 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1678 | { { case "(($ac_try" in | |
1679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1680 | *) ac_try_echo=$ac_try;; | |
1681 | esac | |
1682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1683 | $as_echo "$ac_try_echo"; } >&5 | |
1684 | (eval "$ac_try") 2>&5 | |
1685 | ac_status=$? | |
1686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1687 | test $ac_status = 0; }; }; then : | |
1688 | ac_retval=0 | |
1689 | else | |
1690 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1691 | $as_echo "$as_me: failed program was:" >&5 | |
1692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1693 | ||
1694 | ac_retval=$ac_status | |
1695 | fi | |
1696 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f318beb8 | 1697 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 UD |
1698 | as_fn_set_status $ac_retval |
1699 | ||
1700 | } # ac_fn_c_try_run | |
1701 | ||
1702 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1703 | # -------------------------------------------- | |
1704 | # Tries to find the compile-time value of EXPR in a program that includes | |
1705 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1706 | # computed | |
1707 | ac_fn_c_compute_int () | |
1708 | { | |
1709 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1710 | if test "$cross_compiling" = yes; then | |
1711 | # Depending upon the size, compute the lo and hi bounds. | |
1712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1713 | /* end confdefs.h. */ | |
1714 | $4 | |
1715 | int | |
1716 | main () | |
1717 | { | |
1718 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
1719 | test_array [0] = 0 | |
1720 | ||
1721 | ; | |
1722 | return 0; | |
1723 | } | |
1724 | _ACEOF | |
1725 | if ac_fn_c_try_compile "$LINENO"; then : | |
1726 | ac_lo=0 ac_mid=0 | |
1727 | while :; do | |
1728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1729 | /* end confdefs.h. */ | |
1730 | $4 | |
1731 | int | |
1732 | main () | |
1733 | { | |
1734 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1735 | test_array [0] = 0 | |
1736 | ||
1737 | ; | |
1738 | return 0; | |
1739 | } | |
1740 | _ACEOF | |
1741 | if ac_fn_c_try_compile "$LINENO"; then : | |
1742 | ac_hi=$ac_mid; break | |
1743 | else | |
1744 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1745 | if test $ac_lo -le $ac_mid; then | |
1746 | ac_lo= ac_hi= | |
1747 | break | |
1748 | fi | |
1749 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1750 | fi | |
1751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1752 | done | |
1753 | else | |
1754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1755 | /* end confdefs.h. */ | |
1756 | $4 | |
1757 | int | |
1758 | main () | |
1759 | { | |
1760 | static int test_array [1 - 2 * !(($2) < 0)]; | |
1761 | test_array [0] = 0 | |
1762 | ||
1763 | ; | |
1764 | return 0; | |
1765 | } | |
1766 | _ACEOF | |
1767 | if ac_fn_c_try_compile "$LINENO"; then : | |
1768 | ac_hi=-1 ac_mid=-1 | |
1769 | while :; do | |
1770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1771 | /* end confdefs.h. */ | |
1772 | $4 | |
1773 | int | |
1774 | main () | |
1775 | { | |
1776 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
1777 | test_array [0] = 0 | |
1778 | ||
1779 | ; | |
1780 | return 0; | |
1781 | } | |
1782 | _ACEOF | |
1783 | if ac_fn_c_try_compile "$LINENO"; then : | |
1784 | ac_lo=$ac_mid; break | |
1785 | else | |
1786 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1787 | if test $ac_mid -le $ac_hi; then | |
1788 | ac_lo= ac_hi= | |
1789 | break | |
1790 | fi | |
1791 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
1792 | fi | |
1793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1794 | done | |
1795 | else | |
1796 | ac_lo= ac_hi= | |
1797 | fi | |
1798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1799 | fi | |
1800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1801 | # Binary search between lo and hi bounds. | |
1802 | while test "x$ac_lo" != "x$ac_hi"; do | |
1803 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1805 | /* end confdefs.h. */ | |
1806 | $4 | |
1807 | int | |
1808 | main () | |
1809 | { | |
1810 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1811 | test_array [0] = 0 | |
1812 | ||
1813 | ; | |
1814 | return 0; | |
1815 | } | |
1816 | _ACEOF | |
1817 | if ac_fn_c_try_compile "$LINENO"; then : | |
1818 | ac_hi=$ac_mid | |
1819 | else | |
1820 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
1821 | fi | |
1822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1823 | done | |
1824 | case $ac_lo in #(( | |
1825 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
1826 | '') ac_retval=1 ;; | |
1827 | esac | |
1828 | else | |
1829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1830 | /* end confdefs.h. */ | |
1831 | $4 | |
1832 | static long int longval () { return $2; } | |
1833 | static unsigned long int ulongval () { return $2; } | |
1834 | #include <stdio.h> | |
1835 | #include <stdlib.h> | |
1836 | int | |
1837 | main () | |
1838 | { | |
1839 | ||
1840 | FILE *f = fopen ("conftest.val", "w"); | |
1841 | if (! f) | |
1842 | return 1; | |
1843 | if (($2) < 0) | |
1844 | { | |
1845 | long int i = longval (); | |
1846 | if (i != ($2)) | |
1847 | return 1; | |
1848 | fprintf (f, "%ld", i); | |
1849 | } | |
1850 | else | |
1851 | { | |
1852 | unsigned long int i = ulongval (); | |
1853 | if (i != ($2)) | |
1854 | return 1; | |
1855 | fprintf (f, "%lu", i); | |
1856 | } | |
1857 | /* Do not output a trailing newline, as this causes \r\n confusion | |
1858 | on some platforms. */ | |
1859 | return ferror (f) || fclose (f) != 0; | |
1860 | ||
1861 | ; | |
1862 | return 0; | |
1863 | } | |
1864 | _ACEOF | |
1865 | if ac_fn_c_try_run "$LINENO"; then : | |
1866 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
1867 | else | |
1868 | ac_retval=1 | |
1869 | fi | |
1870 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
1871 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1872 | rm -f conftest.val | |
1873 | ||
1874 | fi | |
f318beb8 | 1875 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 UD |
1876 | as_fn_set_status $ac_retval |
1877 | ||
1878 | } # ac_fn_c_compute_int | |
b08c89d9 UD |
1879 | cat >config.log <<_ACEOF |
1880 | This file contains any messages produced by compilers while | |
1881 | running configure, to aid debugging if configure makes a mistake. | |
1882 | ||
1883 | It was created by GNU C Library $as_me (see version.h), which was | |
f318beb8 | 1884 | generated by GNU Autoconf 2.68. Invocation command line was |
b08c89d9 UD |
1885 | |
1886 | $ $0 $@ | |
1887 | ||
1888 | _ACEOF | |
1889 | exec 5>>config.log | |
1890 | { | |
1891 | cat <<_ASUNAME | |
1892 | ## --------- ## | |
1893 | ## Platform. ## | |
1894 | ## --------- ## | |
1895 | ||
1896 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1897 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1898 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1899 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1900 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1901 | ||
1902 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1903 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1904 | ||
1905 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1906 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1907 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1908 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1909 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1910 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1911 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1912 | ||
1913 | _ASUNAME | |
3a12e572 UD |
1914 | |
1915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1916 | for as_dir in $PATH | |
1917 | do | |
1918 | IFS=$as_save_IFS | |
1919 | test -z "$as_dir" && as_dir=. | |
b08c89d9 UD |
1920 | $as_echo "PATH: $as_dir" |
1921 | done | |
26f56c1c | 1922 | IFS=$as_save_IFS |
3a12e572 UD |
1923 | |
1924 | } >&5 | |
1925 | ||
1926 | cat >&5 <<_ACEOF | |
1927 | ||
1928 | ||
1929 | ## ----------- ## | |
1930 | ## Core tests. ## | |
1931 | ## ----------- ## | |
1932 | ||
1933 | _ACEOF | |
1934 | ||
1935 | ||
1936 | # Keep a trace of the command line. | |
1937 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2abf9ff1 | 1938 | # Strip out --silent because we don't want to record it for future runs. |
3a12e572 | 1939 | # Also quote any args containing shell meta-characters. |
2abf9ff1 | 1940 | # Make two passes to allow for proper duplicate-argument suppression. |
3a12e572 | 1941 | ac_configure_args= |
2abf9ff1 RM |
1942 | ac_configure_args0= |
1943 | ac_configure_args1= | |
2abf9ff1 RM |
1944 | ac_must_keep_next=false |
1945 | for ac_pass in 1 2 | |
3a12e572 | 1946 | do |
2abf9ff1 RM |
1947 | for ac_arg |
1948 | do | |
1949 | case $ac_arg in | |
1950 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1951 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1952 | | -silent | --silent | --silen | --sile | --sil) | |
1953 | continue ;; | |
26f56c1c | 1954 | *\'*) |
322e23db | 1955 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2abf9ff1 RM |
1956 | esac |
1957 | case $ac_pass in | |
b08c89d9 | 1958 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2abf9ff1 | 1959 | 2) |
b08c89d9 | 1960 | as_fn_append ac_configure_args1 " '$ac_arg'" |
2abf9ff1 | 1961 | if test $ac_must_keep_next = true; then |
9382fcee | 1962 | ac_must_keep_next=false # Got value, back to normal. |
2abf9ff1 | 1963 | else |
9382fcee RM |
1964 | case $ac_arg in |
1965 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1966 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1967 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1968 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1969 | case "$ac_configure_args0 " in | |
1970 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1971 | esac | |
1972 | ;; | |
1973 | -* ) ac_must_keep_next=true ;; | |
1974 | esac | |
2abf9ff1 | 1975 | fi |
b08c89d9 | 1976 | as_fn_append ac_configure_args " '$ac_arg'" |
2abf9ff1 RM |
1977 | ;; |
1978 | esac | |
1979 | done | |
3a12e572 | 1980 | done |
b08c89d9 UD |
1981 | { ac_configure_args0=; unset ac_configure_args0;} |
1982 | { ac_configure_args1=; unset ac_configure_args1;} | |
3a12e572 UD |
1983 | |
1984 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1985 | # config.log. We remove comments because anyway the quotes in there | |
1986 | # would cause problems or look ugly. | |
26f56c1c UD |
1987 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1988 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
3a12e572 UD |
1989 | trap 'exit_status=$? |
1990 | # Save into config.log some information that might help in debugging. | |
1991 | { | |
1992 | echo | |
f4b07664 | 1993 | |
4a531bb0 | 1994 | $as_echo "## ---------------- ## |
3a12e572 | 1995 | ## Cache variables. ## |
4a531bb0 | 1996 | ## ---------------- ##" |
3a12e572 UD |
1997 | echo |
1998 | # The following way of writing the cache mishandles newlines in values, | |
26f56c1c UD |
1999 | ( |
2000 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2001 | eval ac_val=\$$ac_var | |
2002 | case $ac_val in #( | |
2003 | *${as_nl}*) | |
2004 | case $ac_var in #( | |
b08c89d9 | 2005 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
322e23db | 2006 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
26f56c1c UD |
2007 | esac |
2008 | case $ac_var in #( | |
2009 | _ | IFS | as_nl) ;; #( | |
322e23db | 2010 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b08c89d9 | 2011 | *) { eval $ac_var=; unset $ac_var;} ;; |
26f56c1c UD |
2012 | esac ;; |
2013 | esac | |
2014 | done | |
3a12e572 | 2015 | (set) 2>&1 | |
26f56c1c UD |
2016 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2017 | *${as_nl}ac_space=\ *) | |
3a12e572 | 2018 | sed -n \ |
26f56c1c UD |
2019 | "s/'\''/'\''\\\\'\'''\''/g; |
2020 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2021 | ;; #( | |
3a12e572 | 2022 | *) |
26f56c1c | 2023 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
3a12e572 | 2024 | ;; |
26f56c1c UD |
2025 | esac | |
2026 | sort | |
2027 | ) | |
3a12e572 | 2028 | echo |
f4b07664 | 2029 | |
4a531bb0 | 2030 | $as_echo "## ----------------- ## |
f4b07664 | 2031 | ## Output variables. ## |
4a531bb0 | 2032 | ## ----------------- ##" |
f4b07664 RM |
2033 | echo |
2034 | for ac_var in $ac_subst_vars | |
2035 | do | |
26f56c1c UD |
2036 | eval ac_val=\$$ac_var |
2037 | case $ac_val in | |
322e23db | 2038 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
26f56c1c | 2039 | esac |
322e23db | 2040 | $as_echo "$ac_var='\''$ac_val'\''" |
f4b07664 RM |
2041 | done | sort |
2042 | echo | |
2043 | ||
2044 | if test -n "$ac_subst_files"; then | |
4a531bb0 | 2045 | $as_echo "## ------------------- ## |
26f56c1c | 2046 | ## File substitutions. ## |
4a531bb0 | 2047 | ## ------------------- ##" |
f4b07664 RM |
2048 | echo |
2049 | for ac_var in $ac_subst_files | |
2050 | do | |
26f56c1c UD |
2051 | eval ac_val=\$$ac_var |
2052 | case $ac_val in | |
322e23db | 2053 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
26f56c1c | 2054 | esac |
322e23db | 2055 | $as_echo "$ac_var='\''$ac_val'\''" |
f4b07664 RM |
2056 | done | sort |
2057 | echo | |
2058 | fi | |
2059 | ||
3a12e572 | 2060 | if test -s confdefs.h; then |
4a531bb0 | 2061 | $as_echo "## ----------- ## |
3a12e572 | 2062 | ## confdefs.h. ## |
4a531bb0 | 2063 | ## ----------- ##" |
3a12e572 | 2064 | echo |
26f56c1c | 2065 | cat confdefs.h |
3a12e572 UD |
2066 | echo |
2067 | fi | |
2068 | test "$ac_signal" != 0 && | |
322e23db UD |
2069 | $as_echo "$as_me: caught signal $ac_signal" |
2070 | $as_echo "$as_me: exit $exit_status" | |
3a12e572 | 2071 | } >&5 |
26f56c1c UD |
2072 | rm -f core *.core core.conftest.* && |
2073 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
3a12e572 | 2074 | exit $exit_status |
26f56c1c | 2075 | ' 0 |
3a12e572 | 2076 | for ac_signal in 1 2 13 15; do |
b08c89d9 | 2077 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
3a12e572 UD |
2078 | done |
2079 | ac_signal=0 | |
2080 | ||
2081 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
26f56c1c | 2082 | rm -f -r conftest* confdefs.h |
3a12e572 | 2083 | |
b08c89d9 UD |
2084 | $as_echo "/* confdefs.h */" > confdefs.h |
2085 | ||
3a12e572 UD |
2086 | # Predefined preprocessor variables. |
2087 | ||
2088 | cat >>confdefs.h <<_ACEOF | |
2089 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2090 | _ACEOF | |
2091 | ||
3a12e572 UD |
2092 | cat >>confdefs.h <<_ACEOF |
2093 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2094 | _ACEOF | |
2095 | ||
3a12e572 UD |
2096 | cat >>confdefs.h <<_ACEOF |
2097 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2098 | _ACEOF | |
2099 | ||
3a12e572 UD |
2100 | cat >>confdefs.h <<_ACEOF |
2101 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2102 | _ACEOF | |
2103 | ||
3a12e572 UD |
2104 | cat >>confdefs.h <<_ACEOF |
2105 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2106 | _ACEOF | |
2107 | ||
b08c89d9 UD |
2108 | cat >>confdefs.h <<_ACEOF |
2109 | #define PACKAGE_URL "$PACKAGE_URL" | |
2110 | _ACEOF | |
2111 | ||
3a12e572 UD |
2112 | |
2113 | # Let the site file select an alternate cache file if it wants to. | |
322e23db UD |
2114 | # Prefer an explicitly selected file to automatically selected ones. |
2115 | ac_site_file1=NONE | |
2116 | ac_site_file2=NONE | |
26f56c1c | 2117 | if test -n "$CONFIG_SITE"; then |
4a531bb0 L |
2118 | # We do not want a PATH search for config.site. |
2119 | case $CONFIG_SITE in #(( | |
2120 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2121 | */*) ac_site_file1=$CONFIG_SITE;; | |
2122 | *) ac_site_file1=./$CONFIG_SITE;; | |
2123 | esac | |
26f56c1c | 2124 | elif test "x$prefix" != xNONE; then |
322e23db UD |
2125 | ac_site_file1=$prefix/share/config.site |
2126 | ac_site_file2=$prefix/etc/config.site | |
26f56c1c | 2127 | else |
322e23db UD |
2128 | ac_site_file1=$ac_default_prefix/share/config.site |
2129 | ac_site_file2=$ac_default_prefix/etc/config.site | |
cd6ede75 | 2130 | fi |
322e23db | 2131 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
26f56c1c | 2132 | do |
322e23db | 2133 | test "x$ac_site_file" = xNONE && continue |
b08c89d9 UD |
2134 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2135 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
322e23db | 2136 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
3a12e572 | 2137 | sed 's/^/| /' "$ac_site_file" >&5 |
4a531bb0 L |
2138 | . "$ac_site_file" \ |
2139 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2140 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2141 | as_fn_error $? "failed to load site script $ac_site_file | |
2142 | See \`config.log' for more details" "$LINENO" 5; } | |
cd6ede75 UD |
2143 | fi |
2144 | done | |
2145 | ||
2146 | if test -r "$cache_file"; then | |
b08c89d9 UD |
2147 | # Some versions of bash will fail to source /dev/null (special files |
2148 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2149 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
322e23db | 2151 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
3a12e572 | 2152 | case $cache_file in |
26f56c1c UD |
2153 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2154 | *) . "./$cache_file";; | |
3a12e572 UD |
2155 | esac |
2156 | fi | |
cd6ede75 | 2157 | else |
b08c89d9 | 2158 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
322e23db | 2159 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
3a12e572 UD |
2160 | >$cache_file |
2161 | fi | |
2162 | ||
2163 | # Check that the precious variables saved in the cache have kept the same | |
2164 | # value. | |
2165 | ac_cache_corrupted=false | |
26f56c1c | 2166 | for ac_var in $ac_precious_vars; do |
3a12e572 UD |
2167 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2168 | eval ac_new_set=\$ac_env_${ac_var}_set | |
26f56c1c UD |
2169 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2170 | eval ac_new_val=\$ac_env_${ac_var}_value | |
3a12e572 UD |
2171 | case $ac_old_set,$ac_new_set in |
2172 | set,) | |
b08c89d9 | 2173 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
322e23db | 2174 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
3a12e572 UD |
2175 | ac_cache_corrupted=: ;; |
2176 | ,set) | |
b08c89d9 | 2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
322e23db | 2178 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
3a12e572 UD |
2179 | ac_cache_corrupted=: ;; |
2180 | ,);; | |
2181 | *) | |
2182 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
322e23db UD |
2183 | # differences in whitespace do not lead to failure. |
2184 | ac_old_val_w=`echo x $ac_old_val` | |
2185 | ac_new_val_w=`echo x $ac_new_val` | |
2186 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
b08c89d9 | 2187 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
322e23db UD |
2188 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2189 | ac_cache_corrupted=: | |
2190 | else | |
b08c89d9 | 2191 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
322e23db UD |
2192 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2193 | eval $ac_var=\$ac_old_val | |
2194 | fi | |
b08c89d9 | 2195 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
322e23db | 2196 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
b08c89d9 | 2197 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
322e23db | 2198 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
3a12e572 UD |
2199 | fi;; |
2200 | esac | |
2201 | # Pass precious variables to config.status. | |
2202 | if test "$ac_new_set" = set; then | |
2203 | case $ac_new_val in | |
322e23db | 2204 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
3a12e572 UD |
2205 | *) ac_arg=$ac_var=$ac_new_val ;; |
2206 | esac | |
2207 | case " $ac_configure_args " in | |
2208 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b08c89d9 | 2209 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
3a12e572 UD |
2210 | esac |
2211 | fi | |
2212 | done | |
2213 | if $ac_cache_corrupted; then | |
b08c89d9 | 2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
322e23db | 2215 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b08c89d9 | 2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
322e23db | 2217 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
4a531bb0 | 2218 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
cd6ede75 | 2219 | fi |
b08c89d9 UD |
2220 | ## -------------------- ## |
2221 | ## Main body of script. ## | |
2222 | ## -------------------- ## | |
cd6ede75 | 2223 | |
b08c89d9 UD |
2224 | ac_ext=c |
2225 | ac_cpp='$CPP $CPPFLAGS' | |
2226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3a12e572 UD |
2229 | |
2230 | ||
cd6ede75 | 2231 | |
b08c89d9 | 2232 | ac_config_headers="$ac_config_headers config.h" |
63bda0c1 | 2233 | |
b08c89d9 UD |
2234 | ac_aux_dir= |
2235 | for ac_dir in scripts "$srcdir"/scripts; do | |
4a531bb0 L |
2236 | if test -f "$ac_dir/install-sh"; then |
2237 | ac_aux_dir=$ac_dir | |
2238 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2239 | break | |
2240 | elif test -f "$ac_dir/install.sh"; then | |
2241 | ac_aux_dir=$ac_dir | |
2242 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2243 | break | |
2244 | elif test -f "$ac_dir/shtool"; then | |
2245 | ac_aux_dir=$ac_dir | |
2246 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2247 | break | |
2248 | fi | |
b08c89d9 UD |
2249 | done |
2250 | if test -z "$ac_aux_dir"; then | |
4a531bb0 | 2251 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5 |
b08c89d9 | 2252 | fi |
26f56c1c UD |
2253 | |
2254 | # These three variables are undocumented and unsupported, | |
2255 | # and are intended to be withdrawn in a future Autoconf release. | |
2256 | # They can cause serious problems if a builder's source tree is in a directory | |
2257 | # whose full name contains unusual characters. | |
2258 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2259 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2260 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2261 | ||
444518fe | 2262 | |
cd6ede75 | 2263 | |
8b748aed JM |
2264 | |
2265 | ||
2266 | # Check whether --with-pkgversion was given. | |
2267 | if test "${with_pkgversion+set}" = set; then : | |
2268 | withval=$with_pkgversion; case "$withval" in | |
2269 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; | |
2270 | no) PKGVERSION= ;; | |
2271 | *) PKGVERSION="($withval) " ;; | |
2272 | esac | |
2273 | else | |
2274 | PKGVERSION="(GNU libc) " | |
2275 | ||
2276 | fi | |
2277 | ||
2278 | PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'` | |
2279 | ||
2280 | ||
2281 | ||
2282 | ||
2283 | ||
2284 | # Check whether --with-bugurl was given. | |
2285 | if test "${with_bugurl+set}" = set; then : | |
2286 | withval=$with_bugurl; case "$withval" in | |
2287 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; | |
2288 | no) BUGURL= | |
2289 | ;; | |
2290 | *) BUGURL="$withval" | |
2291 | ;; | |
2292 | esac | |
2293 | else | |
2294 | BUGURL="http://www.gnu.org/software/libc/bugs.html" | |
2295 | ||
2296 | fi | |
2297 | ||
2298 | case ${BUGURL} in | |
2299 | "") | |
2300 | REPORT_BUGS_TO= | |
2301 | REPORT_BUGS_TEXI= | |
2302 | ;; | |
2303 | *) | |
2304 | REPORT_BUGS_TO="<$BUGURL>" | |
2305 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
2306 | ;; | |
2307 | esac; | |
2308 | ||
2309 | ||
2310 | ||
2311 | ||
2312 | cat >>confdefs.h <<_ACEOF | |
2313 | #define PKGVERSION "$PKGVERSION" | |
2314 | _ACEOF | |
2315 | ||
2316 | ||
2317 | cat >>confdefs.h <<_ACEOF | |
2318 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
2319 | _ACEOF | |
2320 | ||
2321 | ||
918b5606 L |
2322 | # Glibc should not depend on any header files |
2323 | ||
2324 | ||
bb931195 TS |
2325 | # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP |
2326 | # here to work around the Autoconf issue discussed in | |
2327 | # <http://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>. | |
2328 | # AC_PROG_CPP | |
2329 | ||
b5a5da23 TS |
2330 | # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf |
2331 | # issue discussed in | |
2332 | # <http://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>. | |
2333 | ||
2334 | ||
7967983f RM |
2335 | |
2336 | ||
2337 | subdirs="$subdirs " | |
2338 | ||
2339 | ||
c16a054d AS |
2340 | # Make sure we can run config.sub. |
2341 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
4a531bb0 | 2342 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
c16a054d | 2343 | |
b08c89d9 | 2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
c16a054d | 2345 | $as_echo_n "checking build system type... " >&6; } |
f318beb8 | 2346 | if ${ac_cv_build+:} false; then : |
c16a054d AS |
2347 | $as_echo_n "(cached) " >&6 |
2348 | else | |
2349 | ac_build_alias=$build_alias | |
2350 | test "x$ac_build_alias" = x && | |
2351 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2352 | test "x$ac_build_alias" = x && | |
4a531bb0 | 2353 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
c16a054d | 2354 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
4a531bb0 | 2355 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
c16a054d AS |
2356 | |
2357 | fi | |
b08c89d9 | 2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
c16a054d AS |
2359 | $as_echo "$ac_cv_build" >&6; } |
2360 | case $ac_cv_build in | |
2361 | *-*-*) ;; | |
4a531bb0 | 2362 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
c16a054d AS |
2363 | esac |
2364 | build=$ac_cv_build | |
2365 | ac_save_IFS=$IFS; IFS='-' | |
2366 | set x $ac_cv_build | |
2367 | shift | |
2368 | build_cpu=$1 | |
2369 | build_vendor=$2 | |
2370 | shift; shift | |
2371 | # Remember, the first character of IFS is used to create $*, | |
2372 | # except with old shells: | |
2373 | build_os=$* | |
2374 | IFS=$ac_save_IFS | |
2375 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2376 | ||
2377 | ||
b08c89d9 | 2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
c16a054d | 2379 | $as_echo_n "checking host system type... " >&6; } |
f318beb8 | 2380 | if ${ac_cv_host+:} false; then : |
c16a054d AS |
2381 | $as_echo_n "(cached) " >&6 |
2382 | else | |
2383 | if test "x$host_alias" = x; then | |
2384 | ac_cv_host=$ac_cv_build | |
2385 | else | |
2386 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
4a531bb0 | 2387 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
c16a054d AS |
2388 | fi |
2389 | ||
2390 | fi | |
b08c89d9 | 2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
c16a054d AS |
2392 | $as_echo "$ac_cv_host" >&6; } |
2393 | case $ac_cv_host in | |
2394 | *-*-*) ;; | |
4a531bb0 | 2395 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
c16a054d AS |
2396 | esac |
2397 | host=$ac_cv_host | |
2398 | ac_save_IFS=$IFS; IFS='-' | |
2399 | set x $ac_cv_host | |
2400 | shift | |
2401 | host_cpu=$1 | |
2402 | host_vendor=$2 | |
2403 | shift; shift | |
2404 | # Remember, the first character of IFS is used to create $*, | |
2405 | # except with old shells: | |
2406 | host_os=$* | |
2407 | IFS=$ac_save_IFS | |
2408 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2409 | ||
2410 | ||
2411 | ||
a152f366 UD |
2412 | ac_ext=c |
2413 | ac_cpp='$CPP $CPPFLAGS' | |
2414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2417 | if test -n "$ac_tool_prefix"; then | |
2418 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2419 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b08c89d9 | 2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2421 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2422 | if ${ac_cv_prog_CC+:} false; then : |
322e23db | 2423 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2424 | else |
2425 | if test -n "$CC"; then | |
2426 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2427 | else | |
2428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2429 | for as_dir in $PATH | |
2430 | do | |
2431 | IFS=$as_save_IFS | |
2432 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2433 | for ac_exec_ext in '' $ac_executable_extensions; do |
a152f366 UD |
2434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2435 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
b08c89d9 | 2436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2437 | break 2 |
2438 | fi | |
2439 | done | |
b08c89d9 | 2440 | done |
a152f366 | 2441 | IFS=$as_save_IFS |
c8f3e6db | 2442 | |
26f56c1c | 2443 | fi |
26f56c1c | 2444 | fi |
a152f366 UD |
2445 | CC=$ac_cv_prog_CC |
2446 | if test -n "$CC"; then | |
b08c89d9 | 2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
322e23db | 2448 | $as_echo "$CC" >&6; } |
a152f366 | 2449 | else |
b08c89d9 | 2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2451 | $as_echo "no" >&6; } |
26f56c1c UD |
2452 | fi |
2453 | ||
e41db95b | 2454 | |
e41db95b | 2455 | fi |
a152f366 UD |
2456 | if test -z "$ac_cv_prog_CC"; then |
2457 | ac_ct_CC=$CC | |
2458 | # Extract the first word of "gcc", so it can be a program name with args. | |
2459 | set dummy gcc; ac_word=$2 | |
b08c89d9 | 2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2461 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2462 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
322e23db | 2463 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 2464 | else |
a152f366 UD |
2465 | if test -n "$ac_ct_CC"; then |
2466 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
a5a0310d | 2467 | else |
a152f366 UD |
2468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2469 | for as_dir in $PATH | |
2470 | do | |
2471 | IFS=$as_save_IFS | |
2472 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2473 | for ac_exec_ext in '' $ac_executable_extensions; do |
a152f366 UD |
2474 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2475 | ac_cv_prog_ac_ct_CC="gcc" | |
b08c89d9 | 2476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2477 | break 2 |
2478 | fi | |
2479 | done | |
b08c89d9 | 2480 | done |
a152f366 | 2481 | IFS=$as_save_IFS |
cd6ede75 | 2482 | |
a152f366 UD |
2483 | fi |
2484 | fi | |
2485 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2486 | if test -n "$ac_ct_CC"; then | |
b08c89d9 | 2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
322e23db | 2488 | $as_echo "$ac_ct_CC" >&6; } |
cd6ede75 | 2489 | else |
b08c89d9 | 2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2491 | $as_echo "no" >&6; } |
26f56c1c UD |
2492 | fi |
2493 | ||
a152f366 UD |
2494 | if test "x$ac_ct_CC" = x; then |
2495 | CC="" | |
2496 | else | |
2497 | case $cross_compiling:$ac_tool_warned in | |
2498 | yes:) | |
b08c89d9 | 2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
322e23db | 2500 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
a152f366 UD |
2501 | ac_tool_warned=yes ;; |
2502 | esac | |
2503 | CC=$ac_ct_CC | |
2504 | fi | |
74a30a58 | 2505 | else |
a152f366 | 2506 | CC="$ac_cv_prog_CC" |
26f56c1c UD |
2507 | fi |
2508 | ||
a152f366 UD |
2509 | if test -z "$CC"; then |
2510 | if test -n "$ac_tool_prefix"; then | |
2511 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2512 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
b08c89d9 | 2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2514 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2515 | if ${ac_cv_prog_CC+:} false; then : |
322e23db | 2516 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2517 | else |
2518 | if test -n "$CC"; then | |
2519 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2520 | else | |
2521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2522 | for as_dir in $PATH | |
2523 | do | |
2524 | IFS=$as_save_IFS | |
2525 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2526 | for ac_exec_ext in '' $ac_executable_extensions; do |
a152f366 UD |
2527 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2528 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
b08c89d9 | 2529 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2530 | break 2 |
2531 | fi | |
2532 | done | |
b08c89d9 | 2533 | done |
a152f366 | 2534 | IFS=$as_save_IFS |
74a30a58 | 2535 | |
a152f366 UD |
2536 | fi |
2537 | fi | |
2538 | CC=$ac_cv_prog_CC | |
2539 | if test -n "$CC"; then | |
b08c89d9 | 2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
322e23db | 2541 | $as_echo "$CC" >&6; } |
5af3245a | 2542 | else |
b08c89d9 | 2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2544 | $as_echo "no" >&6; } |
26f56c1c UD |
2545 | fi |
2546 | ||
5af3245a | 2547 | |
a152f366 | 2548 | fi |
26f56c1c | 2549 | fi |
a152f366 UD |
2550 | if test -z "$CC"; then |
2551 | # Extract the first word of "cc", so it can be a program name with args. | |
2552 | set dummy cc; ac_word=$2 | |
b08c89d9 | 2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2554 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2555 | if ${ac_cv_prog_CC+:} false; then : |
322e23db | 2556 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2557 | else |
2558 | if test -n "$CC"; then | |
2559 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2560 | else | |
2561 | ac_prog_rejected=no | |
2562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2563 | for as_dir in $PATH | |
2564 | do | |
2565 | IFS=$as_save_IFS | |
2566 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2567 | for ac_exec_ext in '' $ac_executable_extensions; do |
a152f366 UD |
2568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2569 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2570 | ac_prog_rejected=yes | |
2571 | continue | |
2572 | fi | |
2573 | ac_cv_prog_CC="cc" | |
b08c89d9 | 2574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2575 | break 2 |
2576 | fi | |
2577 | done | |
b08c89d9 | 2578 | done |
a152f366 | 2579 | IFS=$as_save_IFS |
26f56c1c | 2580 | |
a152f366 UD |
2581 | if test $ac_prog_rejected = yes; then |
2582 | # We found a bogon in the path, so make sure we never use it. | |
2583 | set dummy $ac_cv_prog_CC | |
2584 | shift | |
2585 | if test $# != 0; then | |
2586 | # We chose a different compiler from the bogus one. | |
2587 | # However, it has the same basename, so the bogon will be chosen | |
2588 | # first if we set CC to just the basename; use the full file name. | |
2589 | shift | |
2590 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
6b3f2b3d | 2591 | fi |
4442d7e8 | 2592 | fi |
26f56c1c | 2593 | fi |
26f56c1c | 2594 | fi |
a152f366 UD |
2595 | CC=$ac_cv_prog_CC |
2596 | if test -n "$CC"; then | |
b08c89d9 | 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
322e23db | 2598 | $as_echo "$CC" >&6; } |
7dbde9db | 2599 | else |
b08c89d9 | 2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2601 | $as_echo "no" >&6; } |
26f56c1c UD |
2602 | fi |
2603 | ||
7dbde9db | 2604 | |
26f56c1c | 2605 | fi |
a152f366 UD |
2606 | if test -z "$CC"; then |
2607 | if test -n "$ac_tool_prefix"; then | |
2608 | for ac_prog in cl.exe | |
2609 | do | |
2610 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2611 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b08c89d9 | 2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2613 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2614 | if ${ac_cv_prog_CC+:} false; then : |
322e23db | 2615 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 2616 | else |
a152f366 UD |
2617 | if test -n "$CC"; then |
2618 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
cd6ede75 | 2619 | else |
a152f366 UD |
2620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2621 | for as_dir in $PATH | |
2622 | do | |
2623 | IFS=$as_save_IFS | |
2624 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2625 | for ac_exec_ext in '' $ac_executable_extensions; do |
a152f366 UD |
2626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2627 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
b08c89d9 | 2628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2629 | break 2 |
2630 | fi | |
2631 | done | |
b08c89d9 | 2632 | done |
a152f366 | 2633 | IFS=$as_save_IFS |
26f56c1c | 2634 | |
26f56c1c | 2635 | fi |
a152f366 UD |
2636 | fi |
2637 | CC=$ac_cv_prog_CC | |
2638 | if test -n "$CC"; then | |
b08c89d9 | 2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
322e23db | 2640 | $as_echo "$CC" >&6; } |
650425ce | 2641 | else |
b08c89d9 | 2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2643 | $as_echo "no" >&6; } |
26f56c1c UD |
2644 | fi |
2645 | ||
cd6ede75 | 2646 | |
a152f366 UD |
2647 | test -n "$CC" && break |
2648 | done | |
26f56c1c | 2649 | fi |
a152f366 UD |
2650 | if test -z "$CC"; then |
2651 | ac_ct_CC=$CC | |
2652 | for ac_prog in cl.exe | |
2653 | do | |
2654 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2655 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2657 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2658 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
322e23db | 2659 | $as_echo_n "(cached) " >&6 |
62ab42d6 | 2660 | else |
a152f366 UD |
2661 | if test -n "$ac_ct_CC"; then |
2662 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2663 | else | |
2664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2665 | for as_dir in $PATH | |
2666 | do | |
2667 | IFS=$as_save_IFS | |
2668 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2669 | for ac_exec_ext in '' $ac_executable_extensions; do |
a152f366 UD |
2670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2671 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
b08c89d9 | 2672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2673 | break 2 |
2674 | fi | |
2675 | done | |
b08c89d9 | 2676 | done |
a152f366 | 2677 | IFS=$as_save_IFS |
62ab42d6 UD |
2678 | |
2679 | fi | |
a152f366 UD |
2680 | fi |
2681 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2682 | if test -n "$ac_ct_CC"; then | |
b08c89d9 | 2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
322e23db | 2684 | $as_echo "$ac_ct_CC" >&6; } |
35f1e827 | 2685 | else |
b08c89d9 | 2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2687 | $as_echo "no" >&6; } |
26f56c1c UD |
2688 | fi |
2689 | ||
35f1e827 | 2690 | |
a152f366 UD |
2691 | test -n "$ac_ct_CC" && break |
2692 | done | |
35f1e827 | 2693 | |
a152f366 UD |
2694 | if test "x$ac_ct_CC" = x; then |
2695 | CC="" | |
2696 | else | |
2697 | case $cross_compiling:$ac_tool_warned in | |
2698 | yes:) | |
b08c89d9 | 2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
322e23db | 2700 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
a152f366 UD |
2701 | ac_tool_warned=yes ;; |
2702 | esac | |
2703 | CC=$ac_ct_CC | |
2704 | fi | |
26f56c1c | 2705 | fi |
cd6ede75 | 2706 | |
26f56c1c | 2707 | fi |
8d4b5a8a UD |
2708 | |
2709 | ||
b08c89d9 | 2710 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
322e23db | 2711 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4a531bb0 L |
2712 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2713 | See \`config.log' for more details" "$LINENO" 5; } | |
26f56c1c | 2714 | |
a152f366 | 2715 | # Provide some information about the compiler. |
b08c89d9 | 2716 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
322e23db UD |
2717 | set X $ac_compile |
2718 | ac_compiler=$2 | |
b08c89d9 UD |
2719 | for ac_option in --version -v -V -qversion; do |
2720 | { { ac_try="$ac_compiler $ac_option >&5" | |
a152f366 UD |
2721 | case "(($ac_try" in |
2722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2723 | *) ac_try_echo=$ac_try;; | |
2724 | esac | |
b08c89d9 UD |
2725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2726 | $as_echo "$ac_try_echo"; } >&5 | |
2727 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
a152f366 | 2728 | ac_status=$? |
b08c89d9 UD |
2729 | if test -s conftest.err; then |
2730 | sed '10a\ | |
2731 | ... rest of stderr output deleted ... | |
2732 | 10q' conftest.err >conftest.er1 | |
2733 | cat conftest.er1 >&5 | |
2734 | fi | |
2735 | rm -f conftest.er1 conftest.err | |
2736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2737 | test $ac_status = 0; } | |
2738 | done | |
26f56c1c | 2739 | |
a152f366 | 2740 | EXEEXT= |
b08c89d9 | 2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
322e23db | 2742 | $as_echo_n "checking for suffix of object files... " >&6; } |
f318beb8 | 2743 | if ${ac_cv_objext+:} false; then : |
322e23db | 2744 | $as_echo_n "(cached) " >&6 |
749a9a4f | 2745 | else |
b08c89d9 | 2746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 2747 | /* end confdefs.h. */ |
749a9a4f | 2748 | |
a152f366 UD |
2749 | int |
2750 | main () | |
2751 | { | |
749a9a4f | 2752 | |
a152f366 UD |
2753 | ; |
2754 | return 0; | |
2755 | } | |
2756 | _ACEOF | |
2757 | rm -f conftest.o conftest.obj | |
b08c89d9 | 2758 | if { { ac_try="$ac_compile" |
a152f366 UD |
2759 | case "(($ac_try" in |
2760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2761 | *) ac_try_echo=$ac_try;; | |
2762 | esac | |
b08c89d9 UD |
2763 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2764 | $as_echo "$ac_try_echo"; } >&5 | |
a152f366 UD |
2765 | (eval "$ac_compile") 2>&5 |
2766 | ac_status=$? | |
b08c89d9 UD |
2767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2768 | test $ac_status = 0; }; then : | |
a152f366 UD |
2769 | for ac_file in conftest.o conftest.obj conftest.*; do |
2770 | test -f "$ac_file" || continue; | |
2771 | case $ac_file in | |
322e23db | 2772 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
a152f366 UD |
2773 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2774 | break;; | |
2775 | esac | |
2776 | done | |
4df8c11d | 2777 | else |
322e23db | 2778 | $as_echo "$as_me: failed program was:" >&5 |
a152f366 | 2779 | sed 's/^/| /' conftest.$ac_ext >&5 |
26f56c1c | 2780 | |
b08c89d9 | 2781 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
322e23db | 2782 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4a531bb0 L |
2783 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2784 | See \`config.log' for more details" "$LINENO" 5; } | |
26f56c1c | 2785 | fi |
a152f366 | 2786 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
cd6ede75 | 2787 | fi |
b08c89d9 | 2788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
322e23db | 2789 | $as_echo "$ac_cv_objext" >&6; } |
a152f366 UD |
2790 | OBJEXT=$ac_cv_objext |
2791 | ac_objext=$OBJEXT | |
b08c89d9 | 2792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
322e23db | 2793 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
f318beb8 | 2794 | if ${ac_cv_c_compiler_gnu+:} false; then : |
322e23db | 2795 | $as_echo_n "(cached) " >&6 |
73237de3 | 2796 | else |
b08c89d9 | 2797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 2798 | /* end confdefs.h. */ |
73237de3 | 2799 | |
a152f366 UD |
2800 | int |
2801 | main () | |
2802 | { | |
2803 | #ifndef __GNUC__ | |
2804 | choke me | |
2805 | #endif | |
73237de3 | 2806 | |
a152f366 UD |
2807 | ; |
2808 | return 0; | |
2809 | } | |
2810 | _ACEOF | |
b08c89d9 | 2811 | if ac_fn_c_try_compile "$LINENO"; then : |
a152f366 UD |
2812 | ac_compiler_gnu=yes |
2813 | else | |
b08c89d9 | 2814 | ac_compiler_gnu=no |
26f56c1c | 2815 | fi |
a152f366 UD |
2816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2817 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
958f238f | 2818 | |
26f56c1c | 2819 | fi |
b08c89d9 | 2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
322e23db UD |
2821 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
2822 | if test $ac_compiler_gnu = yes; then | |
2823 | GCC=yes | |
2824 | else | |
2825 | GCC= | |
2826 | fi | |
a152f366 UD |
2827 | ac_test_CFLAGS=${CFLAGS+set} |
2828 | ac_save_CFLAGS=$CFLAGS | |
b08c89d9 | 2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
322e23db | 2830 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
f318beb8 | 2831 | if ${ac_cv_prog_cc_g+:} false; then : |
322e23db | 2832 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2833 | else |
2834 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2835 | ac_c_werror_flag=yes | |
2836 | ac_cv_prog_cc_g=no | |
2837 | CFLAGS="-g" | |
b08c89d9 | 2838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 2839 | /* end confdefs.h. */ |
26f56c1c | 2840 | |
a152f366 UD |
2841 | int |
2842 | main () | |
2843 | { | |
958f238f | 2844 | |
a152f366 UD |
2845 | ; |
2846 | return 0; | |
2847 | } | |
2848 | _ACEOF | |
b08c89d9 | 2849 | if ac_fn_c_try_compile "$LINENO"; then : |
a152f366 | 2850 | ac_cv_prog_cc_g=yes |
425ce2ed | 2851 | else |
b08c89d9 UD |
2852 | CFLAGS="" |
2853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a152f366 | 2854 | /* end confdefs.h. */ |
425ce2ed | 2855 | |
a152f366 UD |
2856 | int |
2857 | main () | |
2858 | { | |
425ce2ed | 2859 | |
a152f366 UD |
2860 | ; |
2861 | return 0; | |
2862 | } | |
2863 | _ACEOF | |
b08c89d9 | 2864 | if ac_fn_c_try_compile "$LINENO"; then : |
425ce2ed | 2865 | |
b08c89d9 UD |
2866 | else |
2867 | ac_c_werror_flag=$ac_save_c_werror_flag | |
a152f366 | 2868 | CFLAGS="-g" |
b08c89d9 | 2869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 2870 | /* end confdefs.h. */ |
425ce2ed | 2871 | |
a152f366 UD |
2872 | int |
2873 | main () | |
2874 | { | |
425ce2ed | 2875 | |
a152f366 UD |
2876 | ; |
2877 | return 0; | |
2878 | } | |
2879 | _ACEOF | |
b08c89d9 | 2880 | if ac_fn_c_try_compile "$LINENO"; then : |
a152f366 | 2881 | ac_cv_prog_cc_g=yes |
ff886b82 | 2882 | fi |
a152f366 | 2883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ff886b82 | 2884 | fi |
a152f366 UD |
2885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2886 | fi | |
a152f366 UD |
2887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2888 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ff886b82 | 2889 | fi |
b08c89d9 | 2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
322e23db | 2891 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
a152f366 UD |
2892 | if test "$ac_test_CFLAGS" = set; then |
2893 | CFLAGS=$ac_save_CFLAGS | |
2894 | elif test $ac_cv_prog_cc_g = yes; then | |
2895 | if test "$GCC" = yes; then | |
2896 | CFLAGS="-g -O2" | |
2897 | else | |
2898 | CFLAGS="-g" | |
2899 | fi | |
ff886b82 | 2900 | else |
a152f366 UD |
2901 | if test "$GCC" = yes; then |
2902 | CFLAGS="-O2" | |
2903 | else | |
2904 | CFLAGS= | |
ff886b82 | 2905 | fi |
ff886b82 | 2906 | fi |
a152f366 UD |
2907 | |
2908 | ac_ext=c | |
2909 | ac_cpp='$CPP $CPPFLAGS' | |
2910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2913 | ||
2914 | if test $host != $build; then | |
2915 | for ac_prog in gcc cc | |
2916 | do | |
2917 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2918 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2920 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2921 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
322e23db | 2922 | $as_echo_n "(cached) " >&6 |
ff886b82 | 2923 | else |
a152f366 UD |
2924 | if test -n "$BUILD_CC"; then |
2925 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
ff886b82 UD |
2926 | else |
2927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2928 | for as_dir in $PATH | |
2929 | do | |
2930 | IFS=$as_save_IFS | |
2931 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2932 | for ac_exec_ext in '' $ac_executable_extensions; do |
ff886b82 | 2933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a152f366 | 2934 | ac_cv_prog_BUILD_CC="$ac_prog" |
b08c89d9 | 2935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ff886b82 UD |
2936 | break 2 |
2937 | fi | |
2938 | done | |
b08c89d9 | 2939 | done |
ff886b82 UD |
2940 | IFS=$as_save_IFS |
2941 | ||
2942 | fi | |
2943 | fi | |
a152f366 UD |
2944 | BUILD_CC=$ac_cv_prog_BUILD_CC |
2945 | if test -n "$BUILD_CC"; then | |
b08c89d9 | 2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
322e23db | 2947 | $as_echo "$BUILD_CC" >&6; } |
ff886b82 | 2948 | else |
b08c89d9 | 2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2950 | $as_echo "no" >&6; } |
ff886b82 UD |
2951 | fi |
2952 | ||
2953 | ||
a152f366 | 2954 | test -n "$BUILD_CC" && break |
ff886b82 | 2955 | done |
ff886b82 UD |
2956 | |
2957 | fi | |
ff886b82 | 2958 | |
a152f366 UD |
2959 | # On Suns, sometimes $CPP names a directory. |
2960 | if test -n "$CPP" && test -d "$CPP"; then | |
2961 | CPP= | |
ff886b82 | 2962 | fi |
a152f366 | 2963 | if test -z "$CPP"; then |
bb931195 | 2964 | CPP="$CC -E" |
ff886b82 | 2965 | fi |
a152f366 UD |
2966 | |
2967 | # We need the C++ compiler only for testing. | |
2968 | ac_ext=cpp | |
2969 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2970 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2971 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2972 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2973 | if test -z "$CXX"; then | |
2974 | if test -n "$CCC"; then | |
2975 | CXX=$CCC | |
2976 | else | |
2977 | if test -n "$ac_tool_prefix"; then | |
2978 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2979 | do | |
2980 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2981 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b08c89d9 | 2982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2983 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2984 | if ${ac_cv_prog_CXX+:} false; then : |
322e23db | 2985 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2986 | else |
2987 | if test -n "$CXX"; then | |
2988 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2989 | else | |
2990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2991 | for as_dir in $PATH | |
2992 | do | |
2993 | IFS=$as_save_IFS | |
2994 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2995 | for ac_exec_ext in '' $ac_executable_extensions; do |
a152f366 UD |
2996 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2997 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
b08c89d9 | 2998 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2999 | break 2 |
3000 | fi | |
3001 | done | |
b08c89d9 | 3002 | done |
a152f366 UD |
3003 | IFS=$as_save_IFS |
3004 | ||
3005 | fi | |
3006 | fi | |
3007 | CXX=$ac_cv_prog_CXX | |
3008 | if test -n "$CXX"; then | |
b08c89d9 | 3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
322e23db | 3010 | $as_echo "$CXX" >&6; } |
a152f366 | 3011 | else |
b08c89d9 | 3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 3013 | $as_echo "no" >&6; } |
a152f366 UD |
3014 | fi |
3015 | ||
3016 | ||
3017 | test -n "$CXX" && break | |
3018 | done | |
3019 | fi | |
3020 | if test -z "$CXX"; then | |
3021 | ac_ct_CXX=$CXX | |
3022 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3023 | do | |
3024 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3025 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 3026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 3027 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 3028 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
322e23db | 3029 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
3030 | else |
3031 | if test -n "$ac_ct_CXX"; then | |
3032 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3033 | else | |
3034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3035 | for as_dir in $PATH | |
3036 | do | |
3037 | IFS=$as_save_IFS | |
3038 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 3039 | for ac_exec_ext in '' $ac_executable_extensions; do |
a152f366 UD |
3040 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3041 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
b08c89d9 | 3042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3043 | break 2 |
3044 | fi | |
3045 | done | |
b08c89d9 | 3046 | done |
a152f366 UD |
3047 | IFS=$as_save_IFS |
3048 | ||
3049 | fi | |
3050 | fi | |
3051 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3052 | if test -n "$ac_ct_CXX"; then | |
b08c89d9 | 3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
322e23db | 3054 | $as_echo "$ac_ct_CXX" >&6; } |
a152f366 | 3055 | else |
b08c89d9 | 3056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 3057 | $as_echo "no" >&6; } |
a152f366 UD |
3058 | fi |
3059 | ||
3060 | ||
3061 | test -n "$ac_ct_CXX" && break | |
3062 | done | |
3063 | ||
3064 | if test "x$ac_ct_CXX" = x; then | |
3065 | CXX="g++" | |
3066 | else | |
3067 | case $cross_compiling:$ac_tool_warned in | |
3068 | yes:) | |
b08c89d9 | 3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
322e23db | 3070 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
a152f366 UD |
3071 | ac_tool_warned=yes ;; |
3072 | esac | |
3073 | CXX=$ac_ct_CXX | |
3074 | fi | |
3075 | fi | |
3076 | ||
3077 | fi | |
3078 | fi | |
3079 | # Provide some information about the compiler. | |
b08c89d9 | 3080 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
322e23db UD |
3081 | set X $ac_compile |
3082 | ac_compiler=$2 | |
b08c89d9 UD |
3083 | for ac_option in --version -v -V -qversion; do |
3084 | { { ac_try="$ac_compiler $ac_option >&5" | |
a152f366 UD |
3085 | case "(($ac_try" in |
3086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3087 | *) ac_try_echo=$ac_try;; | |
3088 | esac | |
b08c89d9 UD |
3089 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3090 | $as_echo "$ac_try_echo"; } >&5 | |
3091 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
a152f366 | 3092 | ac_status=$? |
b08c89d9 UD |
3093 | if test -s conftest.err; then |
3094 | sed '10a\ | |
3095 | ... rest of stderr output deleted ... | |
3096 | 10q' conftest.err >conftest.er1 | |
3097 | cat conftest.er1 >&5 | |
3098 | fi | |
3099 | rm -f conftest.er1 conftest.err | |
3100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3101 | test $ac_status = 0; } | |
3102 | done | |
a152f366 | 3103 | |
b08c89d9 | 3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
322e23db | 3105 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
f318beb8 | 3106 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
322e23db | 3107 | $as_echo_n "(cached) " >&6 |
a152f366 | 3108 | else |
b08c89d9 | 3109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 UD |
3110 | /* end confdefs.h. */ |
3111 | ||
3112 | int | |
3113 | main () | |
3114 | { | |
a152f366 UD |
3115 | #ifndef __GNUC__ |
3116 | choke me | |
3117 | #endif | |
ff886b82 UD |
3118 | |
3119 | ; | |
3120 | return 0; | |
3121 | } | |
3122 | _ACEOF | |
b08c89d9 | 3123 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a152f366 | 3124 | ac_compiler_gnu=yes |
ff886b82 | 3125 | else |
b08c89d9 | 3126 | ac_compiler_gnu=no |
ff886b82 | 3127 | fi |
ff886b82 | 3128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a152f366 | 3129 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
ff886b82 | 3130 | |
ff886b82 | 3131 | fi |
b08c89d9 | 3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
322e23db UD |
3133 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
3134 | if test $ac_compiler_gnu = yes; then | |
3135 | GXX=yes | |
3136 | else | |
3137 | GXX= | |
3138 | fi | |
a152f366 UD |
3139 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3140 | ac_save_CXXFLAGS=$CXXFLAGS | |
b08c89d9 | 3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
322e23db | 3142 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
f318beb8 | 3143 | if ${ac_cv_prog_cxx_g+:} false; then : |
322e23db | 3144 | $as_echo_n "(cached) " >&6 |
ff886b82 | 3145 | else |
a152f366 UD |
3146 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3147 | ac_cxx_werror_flag=yes | |
3148 | ac_cv_prog_cxx_g=no | |
3149 | CXXFLAGS="-g" | |
b08c89d9 | 3150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 | 3151 | /* end confdefs.h. */ |
ff886b82 | 3152 | |
ff886b82 UD |
3153 | int |
3154 | main () | |
3155 | { | |
a152f366 | 3156 | |
ff886b82 UD |
3157 | ; |
3158 | return 0; | |
3159 | } | |
3160 | _ACEOF | |
b08c89d9 | 3161 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a152f366 | 3162 | ac_cv_prog_cxx_g=yes |
ff886b82 | 3163 | else |
b08c89d9 UD |
3164 | CXXFLAGS="" |
3165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a152f366 | 3166 | /* end confdefs.h. */ |
ff886b82 | 3167 | |
a152f366 UD |
3168 | int |
3169 | main () | |
3170 | { | |
ff886b82 | 3171 | |
a152f366 UD |
3172 | ; |
3173 | return 0; | |
3174 | } | |
ff886b82 | 3175 | _ACEOF |
b08c89d9 | 3176 | if ac_fn_cxx_try_compile "$LINENO"; then : |
ff886b82 | 3177 | |
b08c89d9 UD |
3178 | else |
3179 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
a152f366 | 3180 | CXXFLAGS="-g" |
b08c89d9 | 3181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 | 3182 | /* end confdefs.h. */ |
a152f366 | 3183 | |
ff886b82 UD |
3184 | int |
3185 | main () | |
3186 | { | |
a152f366 | 3187 | |
ff886b82 UD |
3188 | ; |
3189 | return 0; | |
3190 | } | |
3191 | _ACEOF | |
b08c89d9 | 3192 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a152f366 | 3193 | ac_cv_prog_cxx_g=yes |
ff886b82 | 3194 | fi |
a152f366 UD |
3195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3196 | fi | |
a152f366 UD |
3197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3198 | fi | |
a152f366 UD |
3199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3200 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3201 | fi | |
b08c89d9 | 3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
322e23db | 3203 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
a152f366 UD |
3204 | if test "$ac_test_CXXFLAGS" = set; then |
3205 | CXXFLAGS=$ac_save_CXXFLAGS | |
3206 | elif test $ac_cv_prog_cxx_g = yes; then | |
3207 | if test "$GXX" = yes; then | |
3208 | CXXFLAGS="-g -O2" | |
3209 | else | |
3210 | CXXFLAGS="-g" | |
3211 | fi | |
3a12e572 | 3212 | else |
a152f366 UD |
3213 | if test "$GXX" = yes; then |
3214 | CXXFLAGS="-O2" | |
3215 | else | |
3216 | CXXFLAGS= | |
3217 | fi | |
3a12e572 | 3218 | fi |
a152f366 UD |
3219 | ac_ext=c |
3220 | ac_cpp='$CPP $CPPFLAGS' | |
3221 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3222 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3223 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26f56c1c | 3224 | |
0cae3f4b MF |
3225 | if test -n "$ac_tool_prefix"; then |
3226 | # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args. | |
3227 | set dummy ${ac_tool_prefix}readelf; ac_word=$2 | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3229 | $as_echo_n "checking for $ac_word... " >&6; } | |
3230 | if ${ac_cv_prog_READELF+:} false; then : | |
3231 | $as_echo_n "(cached) " >&6 | |
3232 | else | |
3233 | if test -n "$READELF"; then | |
3234 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
3235 | else | |
3236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3237 | for as_dir in $PATH | |
3238 | do | |
3239 | IFS=$as_save_IFS | |
3240 | test -z "$as_dir" && as_dir=. | |
3241 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3242 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3243 | ac_cv_prog_READELF="${ac_tool_prefix}readelf" | |
3244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3245 | break 2 | |
3246 | fi | |
3247 | done | |
3248 | done | |
3249 | IFS=$as_save_IFS | |
3250 | ||
3251 | fi | |
3252 | fi | |
3253 | READELF=$ac_cv_prog_READELF | |
3254 | if test -n "$READELF"; then | |
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
3256 | $as_echo "$READELF" >&6; } | |
3257 | else | |
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3259 | $as_echo "no" >&6; } | |
3260 | fi | |
3261 | ||
3262 | ||
3263 | fi | |
3264 | if test -z "$ac_cv_prog_READELF"; then | |
3265 | ac_ct_READELF=$READELF | |
3266 | # Extract the first word of "readelf", so it can be a program name with args. | |
3267 | set dummy readelf; ac_word=$2 | |
3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3269 | $as_echo_n "checking for $ac_word... " >&6; } | |
3270 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | |
3271 | $as_echo_n "(cached) " >&6 | |
3272 | else | |
3273 | if test -n "$ac_ct_READELF"; then | |
3274 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | |
3275 | else | |
3276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3277 | for as_dir in $PATH | |
3278 | do | |
3279 | IFS=$as_save_IFS | |
3280 | test -z "$as_dir" && as_dir=. | |
3281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3282 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3283 | ac_cv_prog_ac_ct_READELF="readelf" | |
3284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3285 | break 2 | |
3286 | fi | |
3287 | done | |
3288 | done | |
3289 | IFS=$as_save_IFS | |
3290 | ||
3291 | fi | |
3292 | fi | |
3293 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | |
3294 | if test -n "$ac_ct_READELF"; then | |
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | |
3296 | $as_echo "$ac_ct_READELF" >&6; } | |
3297 | else | |
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3299 | $as_echo "no" >&6; } | |
3300 | fi | |
3301 | ||
3302 | if test "x$ac_ct_READELF" = x; then | |
3303 | READELF="false" | |
3304 | else | |
3305 | case $cross_compiling:$ac_tool_warned in | |
3306 | yes:) | |
3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3308 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3309 | ac_tool_warned=yes ;; | |
3310 | esac | |
3311 | READELF=$ac_ct_READELF | |
3312 | fi | |
3313 | else | |
3314 | READELF="$ac_cv_prog_READELF" | |
3315 | fi | |
3316 | ||
26f56c1c | 3317 | |
a152f366 | 3318 | if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then |
4a531bb0 | 3319 | as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5 |
26f56c1c | 3320 | fi |
3a12e572 | 3321 | |
a152f366 UD |
3322 | # This will get text that should go into config.make. |
3323 | config_vars= | |
3324 | ||
3325 | # Check for a --with-gd argument and set libgd-LDFLAGS in config.make. | |
3326 | ||
3327 | # Check whether --with-gd was given. | |
b08c89d9 | 3328 | if test "${with_gd+set}" = set; then : |
a152f366 UD |
3329 | withval=$with_gd; case "$with_gd" in |
3330 | yes|''|no) ;; | |
3331 | *) libgd_include="-I$withval/include" | |
3332 | libgd_ldflags="-L$withval/lib" ;; | |
26f56c1c | 3333 | esac |
cd6ede75 | 3334 | |
a152f366 | 3335 | fi |
cd6ede75 UD |
3336 | |
3337 | ||
a152f366 | 3338 | # Check whether --with-gd-include was given. |
b08c89d9 | 3339 | if test "${with_gd_include+set}" = set; then : |
a152f366 UD |
3340 | withval=$with_gd_include; case "$with_gd_include" in |
3341 | ''|no) ;; | |
3342 | *) libgd_include="-I$withval" ;; | |
cd6ede75 UD |
3343 | esac |
3344 | ||
a152f366 | 3345 | fi |
cd6ede75 | 3346 | |
0816838f | 3347 | |
a152f366 | 3348 | # Check whether --with-gd-lib was given. |
b08c89d9 | 3349 | if test "${with_gd_lib+set}" = set; then : |
a152f366 UD |
3350 | withval=$with_gd_lib; case "$with_gd_lib" in |
3351 | ''|no) ;; | |
3352 | *) libgd_ldflags="-L$withval" ;; | |
cd6ede75 UD |
3353 | esac |
3354 | ||
a808d541 UD |
3355 | fi |
3356 | ||
f4b07664 | 3357 | |
a152f366 UD |
3358 | if test -n "$libgd_include"; then |
3359 | config_vars="$config_vars | |
3360 | CFLAGS-memusagestat.c = $libgd_include" | |
3361 | fi | |
3362 | if test -n "$libgd_ldflags"; then | |
3363 | config_vars="$config_vars | |
3364 | libgd-LDFLAGS = $libgd_ldflags" | |
3365 | fi | |
2ceaa76a | 3366 | |
2ceaa76a | 3367 | |
a152f366 | 3368 | # Check whether --with-fp was given. |
b08c89d9 | 3369 | if test "${with_fp+set}" = set; then : |
a152f366 UD |
3370 | withval=$with_fp; with_fp=$withval |
3371 | else | |
3372 | with_fp=yes | |
26f56c1c UD |
3373 | fi |
3374 | ||
2ceaa76a | 3375 | |
8f73811b | 3376 | |
a152f366 | 3377 | # Check whether --with-binutils was given. |
b08c89d9 | 3378 | if test "${with_binutils+set}" = set; then : |
a152f366 UD |
3379 | withval=$with_binutils; path_binutils=$withval |
3380 | else | |
3381 | path_binutils='' | |
3382 | fi | |
ff886b82 UD |
3383 | |
3384 | ||
a152f366 | 3385 | # Check whether --with-selinux was given. |
b08c89d9 | 3386 | if test "${with_selinux+set}" = set; then : |
a152f366 UD |
3387 | withval=$with_selinux; with_selinux=$withval |
3388 | else | |
3389 | with_selinux=auto | |
3390 | fi | |
e0a3ed4f | 3391 | |
8f73811b | 3392 | |
e0a3ed4f | 3393 | |
a152f366 | 3394 | # Check whether --with-headers was given. |
b08c89d9 | 3395 | if test "${with_headers+set}" = set; then : |
a152f366 UD |
3396 | withval=$with_headers; sysheaders=$withval |
3397 | else | |
3398 | sysheaders='' | |
7efb9bd1 UD |
3399 | fi |
3400 | ||
dfd2257a | 3401 | |
f781ef40 RM |
3402 | |
3403 | ||
c91c505f | 3404 | |
f781ef40 RM |
3405 | # Check whether --with-default-link was given. |
3406 | if test "${with_default_link+set}" = set; then : | |
3407 | withval=$with_default_link; use_default_link=$withval | |
3408 | else | |
fd5e21c7 | 3409 | use_default_link=default |
f781ef40 RM |
3410 | fi |
3411 | ||
3412 | ||
a152f366 | 3413 | # Check whether --enable-sanity-checks was given. |
b08c89d9 | 3414 | if test "${enable_sanity_checks+set}" = set; then : |
a152f366 UD |
3415 | enableval=$enable_sanity_checks; enable_sanity=$enableval |
3416 | else | |
3417 | enable_sanity=yes | |
dfd2257a UD |
3418 | fi |
3419 | ||
cd6ede75 | 3420 | |
a152f366 | 3421 | # Check whether --enable-shared was given. |
b08c89d9 | 3422 | if test "${enable_shared+set}" = set; then : |
a152f366 UD |
3423 | enableval=$enable_shared; shared=$enableval |
3424 | else | |
a0da5fe1 | 3425 | shared=yes |
a152f366 | 3426 | fi |
cd6ede75 | 3427 | |
a152f366 | 3428 | # Check whether --enable-profile was given. |
b08c89d9 | 3429 | if test "${enable_profile+set}" = set; then : |
a152f366 UD |
3430 | enableval=$enable_profile; profile=$enableval |
3431 | else | |
3432 | profile=no | |
3433 | fi | |
cd6ede75 | 3434 | |
a152f366 | 3435 | # Check whether --enable-versioning was given. |
b08c89d9 | 3436 | if test "${enable_versioning+set}" = set; then : |
a152f366 UD |
3437 | enableval=$enable_versioning; enable_versioning=$enableval |
3438 | else | |
3439 | enable_versioning=yes | |
cd6ede75 | 3440 | fi |
a152f366 UD |
3441 | |
3442 | ||
3443 | # Check whether --enable-oldest-abi was given. | |
b08c89d9 | 3444 | if test "${enable_oldest_abi+set}" = set; then : |
a152f366 UD |
3445 | enableval=$enable_oldest_abi; oldest_abi=$enableval |
3446 | else | |
3447 | oldest_abi=no | |
2ceaa76a RM |
3448 | fi |
3449 | ||
a152f366 UD |
3450 | if test "$oldest_abi" = yes || test "$oldest_abi" = no; then |
3451 | oldest_abi=default | |
3452 | else | |
3453 | cat >>confdefs.h <<_ACEOF | |
3454 | #define GLIBC_OLDEST_ABI "$oldest_abi" | |
3455 | _ACEOF | |
cd6ede75 | 3456 | |
a152f366 | 3457 | fi |
cd6ede75 UD |
3458 | |
3459 | ||
740b3dbe L |
3460 | # Check whether --enable-hardcoded-path-in-tests was given. |
3461 | if test "${enable_hardcoded_path_in_tests+set}" = set; then : | |
3462 | enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval | |
3463 | else | |
3464 | hardcoded_path_in_tests=no | |
3465 | fi | |
3466 | ||
3467 | ||
3468 | ||
a152f366 | 3469 | # Check whether --enable-stackguard-randomization was given. |
b08c89d9 | 3470 | if test "${enable_stackguard_randomization+set}" = set; then : |
a152f366 UD |
3471 | enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval |
3472 | else | |
3473 | enable_stackguard_randomize=no | |
cd6ede75 UD |
3474 | fi |
3475 | ||
a152f366 | 3476 | if test "$enable_stackguard_randomize" = yes; then |
b08c89d9 | 3477 | $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h |
cd6ede75 | 3478 | |
a152f366 | 3479 | fi |
cd6ede75 | 3480 | |
a152f366 | 3481 | # Check whether --enable-add-ons was given. |
b08c89d9 | 3482 | if test "${enable_add_ons+set}" = set; then : |
a152f366 UD |
3483 | enableval=$enable_add_ons; |
3484 | else | |
3485 | enable_add_ons=yes | |
3486 | fi | |
cd6ede75 | 3487 | |
cd6ede75 | 3488 | |
a152f366 | 3489 | # Check whether --enable-hidden-plt was given. |
b08c89d9 | 3490 | if test "${enable_hidden_plt+set}" = set; then : |
a152f366 UD |
3491 | enableval=$enable_hidden_plt; hidden=$enableval |
3492 | else | |
3493 | hidden=yes | |
2de7874e | 3494 | fi |
cd6ede75 | 3495 | |
a152f366 | 3496 | if test "x$hidden" = xno; then |
b08c89d9 | 3497 | $as_echo "#define NO_HIDDEN 1" >>confdefs.h |
cd6ede75 | 3498 | |
a152f366 | 3499 | fi |
e0a3ed4f | 3500 | |
a152f366 | 3501 | # Check whether --enable-bind-now was given. |
b08c89d9 | 3502 | if test "${enable_bind_now+set}" = set; then : |
a152f366 UD |
3503 | enableval=$enable_bind_now; bindnow=$enableval |
3504 | else | |
3505 | bindnow=no | |
3506 | fi | |
e0a3ed4f | 3507 | |
e0a3ed4f | 3508 | |
e0a3ed4f | 3509 | |
a152f366 | 3510 | # Check whether --enable-static-nss was given. |
b08c89d9 | 3511 | if test "${enable_static_nss+set}" = set; then : |
a152f366 UD |
3512 | enableval=$enable_static_nss; static_nss=$enableval |
3513 | else | |
3514 | static_nss=no | |
3515 | fi | |
e0a3ed4f | 3516 | |
a152f366 UD |
3517 | if test x"$static_nss" = xyes || test x"$shared" = xno; then |
3518 | static_nss=yes | |
b08c89d9 | 3519 | $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h |
cd6ede75 | 3520 | |
a152f366 | 3521 | fi |
cd6ede75 | 3522 | |
a152f366 | 3523 | # Check whether --enable-force-install was given. |
b08c89d9 | 3524 | if test "${enable_force_install+set}" = set; then : |
a152f366 | 3525 | enableval=$enable_force_install; force_install=$enableval |
3a12e572 | 3526 | else |
a152f366 UD |
3527 | force_install=yes |
3528 | fi | |
ff886b82 | 3529 | |
3a12e572 | 3530 | |
cd6ede75 | 3531 | |
a152f366 | 3532 | # Check whether --enable-kernel was given. |
b08c89d9 | 3533 | if test "${enable_kernel+set}" = set; then : |
a152f366 | 3534 | enableval=$enable_kernel; minimum_kernel=$enableval |
cd6ede75 | 3535 | fi |
a152f366 UD |
3536 | |
3537 | if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then | |
3538 | # Better nothing than this. | |
3539 | minimum_kernel="" | |
3540 | else | |
3541 | if test "$minimum_kernel" = current; then | |
3542 | minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel= | |
cd6ede75 UD |
3543 | fi |
3544 | fi | |
cd6ede75 | 3545 | |
a152f366 | 3546 | # Check whether --enable-all-warnings was given. |
b08c89d9 | 3547 | if test "${enable_all_warnings+set}" = set; then : |
a152f366 UD |
3548 | enableval=$enable_all_warnings; all_warnings=$enableval |
3549 | fi | |
cd6ede75 | 3550 | |
5c2a0669 | 3551 | |
cd6ede75 | 3552 | |
a152f366 | 3553 | # Check whether --enable-multi-arch was given. |
b08c89d9 | 3554 | if test "${enable_multi_arch+set}" = set; then : |
a152f366 | 3555 | enableval=$enable_multi_arch; multi_arch=$enableval |
cd6ede75 | 3556 | else |
6f89d2f3 | 3557 | multi_arch=default |
cd6ede75 UD |
3558 | fi |
3559 | ||
4bca4c17 | 3560 | |
a152f366 | 3561 | # Check whether --enable-nss-crypt was given. |
b08c89d9 | 3562 | if test "${enable_nss_crypt+set}" = set; then : |
a152f366 | 3563 | enableval=$enable_nss_crypt; nss_crypt=$enableval |
4bca4c17 | 3564 | else |
a152f366 | 3565 | nss_crypt=no |
4bca4c17 UD |
3566 | fi |
3567 | ||
a152f366 UD |
3568 | if test x$nss_crypt = xyes; then |
3569 | nss_includes=-I$(nss-config --includedir 2>/dev/null) | |
3570 | if test $? -ne 0; then | |
4a531bb0 | 3571 | as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5 |
26f56c1c | 3572 | fi |
a152f366 UD |
3573 | old_CFLAGS="$CFLAGS" |
3574 | CFLAGS="$CFLAGS $nss_includes" | |
3575 | ||
b08c89d9 UD |
3576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3577 | /* end confdefs.h. */ | |
a152f366 UD |
3578 | typedef int PRBool; |
3579 | #include <hasht.h> | |
3580 | #include <nsslowhash.h> | |
3581 | void f (void) { NSSLOW_Init (); } | |
b68e08db RM |
3582 | int |
3583 | main () | |
3584 | { | |
3585 | ||
3586 | ; | |
3587 | return 0; | |
3588 | } | |
a152f366 | 3589 | _ACEOF |
b08c89d9 | 3590 | if ac_fn_c_try_compile "$LINENO"; then : |
a152f366 | 3591 | libc_cv_nss_crypt=yes |
63bda0c1 | 3592 | else |
4a531bb0 | 3593 | as_fn_error $? " |
b08c89d9 | 3594 | cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5 |
04be94a8 | 3595 | fi |
a152f366 UD |
3596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3597 | old_LIBS="$LIBS" | |
3598 | LIBS="$LIBS -lfreebl3" | |
b08c89d9 | 3599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 UD |
3600 | /* end confdefs.h. */ |
3601 | typedef int PRBool; | |
3602 | #include <hasht.h> | |
3603 | #include <nsslowhash.h> | |
3604 | int | |
3605 | main () | |
3606 | { | |
3607 | NSSLOW_Init(); | |
3608 | ; | |
3609 | return 0; | |
3610 | } | |
3611 | _ACEOF | |
b08c89d9 | 3612 | if ac_fn_c_try_link "$LINENO"; then : |
a152f366 | 3613 | libc_cv_nss_crypt=yes |
cd6ede75 | 3614 | else |
4a531bb0 | 3615 | as_fn_error $? " |
b08c89d9 | 3616 | cannot link program using lowlevel NSS hash functions" "$LINENO" 5 |
cd6ede75 | 3617 | fi |
b08c89d9 UD |
3618 | rm -f core conftest.err conftest.$ac_objext \ |
3619 | conftest$ac_exeext conftest.$ac_ext | |
a152f366 UD |
3620 | CFLAGS="$old_CFLAGS" |
3621 | LIBS="$old_LIBS" | |
4bca4c17 | 3622 | else |
a152f366 | 3623 | libc_cv_nss_crypt=no |
4bca4c17 UD |
3624 | fi |
3625 | ||
cd6ede75 | 3626 | |
3a097cc7 | 3627 | |
021db4be AJ |
3628 | # Check whether --enable-obsolete-rpc was given. |
3629 | if test "${enable_obsolete_rpc+set}" = set; then : | |
3630 | enableval=$enable_obsolete_rpc; link_obsolete_rpc=$enableval | |
3631 | else | |
3632 | link_obsolete_rpc=no | |
3633 | fi | |
3634 | ||
3635 | ||
3636 | ||
3637 | if test "$link_obsolete_rpc" = yes; then | |
3638 | $as_echo "#define LINK_OBSOLETE_RPC 1" >>confdefs.h | |
3639 | ||
3640 | fi | |
3641 | ||
3a097cc7 RM |
3642 | # Check whether --enable-systemtap was given. |
3643 | if test "${enable_systemtap+set}" = set; then : | |
3644 | enableval=$enable_systemtap; systemtap=$enableval | |
3645 | else | |
3646 | systemtap=no | |
3647 | fi | |
3648 | ||
3649 | if test "x$systemtap" != xno; then | |
3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5 | |
3651 | $as_echo_n "checking for systemtap static probe support... " >&6; } | |
3652 | if ${libc_cv_sdt+:} false; then : | |
3653 | $as_echo_n "(cached) " >&6 | |
3654 | else | |
3655 | old_CFLAGS="$CFLAGS" | |
3656 | CFLAGS="-std=gnu99 $CFLAGS" | |
3657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3658 | /* end confdefs.h. */ | |
3659 | #include <sys/sdt.h> | |
3660 | void foo (int i, void *p) | |
3661 | { | |
3662 | asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) "" | |
3663 | :: STAP_PROBE_ASM_OPERANDS (2, i, p)); | |
3664 | } | |
3665 | _ACEOF | |
3666 | if ac_fn_c_try_compile "$LINENO"; then : | |
3667 | libc_cv_sdt=yes | |
3668 | else | |
3669 | libc_cv_sdt=no | |
3670 | fi | |
3671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3672 | CFLAGS="$old_CFLAGS" | |
3673 | fi | |
3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5 | |
3675 | $as_echo "$libc_cv_sdt" >&6; } | |
3676 | if test $libc_cv_sdt = yes; then | |
3677 | $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h | |
3678 | ||
3679 | elif test "x$systemtap" != xauto; then | |
3680 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3681 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3682 | as_fn_error $? "systemtap support needs sys/sdt.h with asm support | |
3683 | See \`config.log' for more details" "$LINENO" 5; } | |
3684 | fi | |
3685 | fi | |
3686 | ||
c53d909c RM |
3687 | # Check whether --enable-build-nscd was given. |
3688 | if test "${enable_build_nscd+set}" = set; then : | |
3689 | enableval=$enable_build_nscd; build_nscd=$enableval | |
3690 | else | |
3691 | build_nscd=default | |
3692 | fi | |
3693 | ||
3694 | ||
3695 | ||
3cc3ef96 RM |
3696 | # Note the use of $use_nscd is near the bottom of the file. |
3697 | # Check whether --enable-nscd was given. | |
3698 | if test "${enable_nscd+set}" = set; then : | |
3699 | enableval=$enable_nscd; use_nscd=$enableval | |
3700 | else | |
3701 | use_nscd=yes | |
3702 | fi | |
3703 | ||
3704 | ||
a152f366 UD |
3705 | # The way shlib-versions is used to generate soversions.mk uses a |
3706 | # fairly simplistic model for name recognition that can't distinguish | |
3707 | # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os | |
3708 | # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can | |
3709 | # tell. This doesn't get used much beyond that, so it's fairly safe. | |
3710 | case "$host_os" in | |
3711 | linux*) | |
3712 | ;; | |
3713 | gnu*) | |
3714 | host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'` | |
3715 | ;; | |
26f56c1c | 3716 | esac |
3a12e572 | 3717 | |
a152f366 UD |
3718 | # We keep the original values in `$config_*' and never modify them, so we |
3719 | # can write them unchanged into config.make. Everything else uses | |
3720 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
3721 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
3a12e572 | 3722 | |
a152f366 UD |
3723 | # Don't allow vendor == "unknown" |
3724 | test "$config_vendor" = unknown && config_vendor= | |
3725 | config_os="`echo $config_os | sed 's/^unknown-//'`" | |
3a12e572 | 3726 | |
a152f366 | 3727 | # Some configurations imply other options. |
0269750c | 3728 | elf=yes |
3a12e572 | 3729 | |
a152f366 UD |
3730 | # The configure fragment of an add-on port can modify these to supplement |
3731 | # or override the table in the case statement below. No fragment should | |
3732 | # ever change the config_* variables, however. | |
3733 | machine=$config_machine | |
3734 | vendor=$config_vendor | |
3735 | os=$config_os | |
3736 | base_os='' | |
3a12e572 | 3737 | |
a152f366 UD |
3738 | # config.guess on some IBM machines says `rs6000' instead of `powerpc'. |
3739 | # Unify this here. | |
3740 | if test "$machine" = rs6000; then | |
3741 | machine="powerpc" | |
3742 | fi | |
3a12e572 | 3743 | |
a152f366 UD |
3744 | # Braindead PowerPC box with absolutely no FPU. |
3745 | case "$machine-$host_os" in | |
3746 | powerpc*-*soft) | |
3747 | with_fp=no | |
3748 | ;; | |
26f56c1c | 3749 | esac |
2abf9ff1 | 3750 | |
a152f366 | 3751 | submachine= |
26f56c1c | 3752 | |
a152f366 | 3753 | # Check whether --with-cpu was given. |
b08c89d9 | 3754 | if test "${with_cpu+set}" = set; then : |
a152f366 | 3755 | withval=$with_cpu; case "$withval" in |
4a531bb0 | 3756 | yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;; |
a152f366 UD |
3757 | no) ;; |
3758 | *) submachine="$withval" ;; | |
3759 | esac | |
3a12e572 UD |
3760 | |
3761 | fi | |
3a12e572 | 3762 | |
3a12e572 | 3763 | |
10a803e0 RM |
3764 | if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null` |
3765 | then | |
3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5 | |
3767 | $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; } | |
3768 | for frag in $frags; do | |
3769 | name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'` | |
3770 | echo $ECHO_N "$name $ECHO_C" >&6 | |
3771 | . "$frag" | |
3772 | done | |
3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | |
3774 | $as_echo "" >&6; } | |
3775 | fi | |
3776 | ||
a152f366 UD |
3777 | # An add-on can set this when it wants to disable the sanity check below. |
3778 | libc_config_ok=no | |
26f56c1c | 3779 | |
a152f366 | 3780 | subdirs="$subdirs " |
3a12e572 | 3781 | |
3a12e572 | 3782 | |
a152f366 UD |
3783 | case "$enable_add_ons" in |
3784 | ''|no) add_ons= ;; | |
3785 | yes|'*') | |
3786 | add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps | | |
3787 | sed 's@/[^/]*$@@' | sort | uniq` | |
3788 | add_ons_automatic=yes | |
3789 | ;; | |
3790 | *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'` | |
3791 | add_ons_automatic=no ;; | |
26f56c1c | 3792 | esac |
2abf9ff1 | 3793 | |
a152f366 UD |
3794 | configured_add_ons= |
3795 | add_ons_sfx= | |
3796 | add_ons_pfx= | |
3797 | if test x"$add_ons" != x; then | |
3798 | for f in $add_ons; do | |
3799 | # Some sanity checks | |
3800 | case "$f" in | |
3801 | crypt) | |
4a531bb0 | 3802 | as_fn_error $? " |
a152f366 UD |
3803 | *** It seems that you're using an old \`crypt' add-on. crypt is now |
3804 | *** part of glibc and using the old add-on will not work with this | |
3805 | *** release. Start again with fresh sources and without the old | |
b08c89d9 | 3806 | *** \`crypt' add-on." "$LINENO" 5 |
a152f366 UD |
3807 | ;; |
3808 | localedata) | |
4a531bb0 | 3809 | as_fn_error $? " |
a152f366 UD |
3810 | *** It seems that you're using an old \`localedata' add-on. localedata |
3811 | *** is now part of glibc and using the old add-on will not work with | |
3812 | *** this release. Start again with fresh sources and without the old | |
b08c89d9 | 3813 | *** \`localedata' add-on." "$LINENO" 5 |
a152f366 UD |
3814 | ;; |
3815 | esac | |
3816 | done | |
3a12e572 | 3817 | |
a152f366 UD |
3818 | # Now source each add-on's configure fragment. |
3819 | # The fragments can use $srcdir/$libc_add_on to find themselves, | |
3820 | # and test $add_ons_automatic to see if they were explicitly requested. | |
3821 | # A fragment can clear (or even change) $libc_add_on to affect | |
3822 | # whether it goes into the list to be actually used in the build. | |
3823 | use_add_ons= | |
3824 | for libc_add_on in $add_ons; do | |
3825 | # Test whether such a directory really exists. | |
3826 | # It can be absolute, or relative to $srcdir, or relative to the build dir. | |
3827 | case "$libc_add_on" in | |
3828 | /*) | |
3829 | libc_add_on_srcdir=$libc_add_on | |
3830 | ;; | |
3831 | *) | |
3832 | test -d "$srcdir/$libc_add_on" || { | |
77e8bddf | 3833 | if test -d "$libc_add_on"; then |
a152f366 UD |
3834 | libc_add_on="`pwd`/$libc_add_on" |
3835 | else | |
4a531bb0 | 3836 | as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5 |
a152f366 UD |
3837 | fi |
3838 | } | |
3839 | libc_add_on_srcdir=$srcdir/$libc_add_on | |
3840 | ;; | |
3841 | esac | |
2abf9ff1 | 3842 | |
a152f366 UD |
3843 | libc_add_on_frag=$libc_add_on_srcdir/configure |
3844 | libc_add_on_canonical= | |
7967983f | 3845 | libc_add_on_config_subdirs= |
a152f366 | 3846 | if test -r "$libc_add_on_frag"; then |
b08c89d9 | 3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5 |
322e23db | 3848 | $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;} |
a152f366 UD |
3849 | libc_add_on_canonical=unknown |
3850 | libc_add_on_subdirs= | |
3851 | . "$libc_add_on_frag" | |
3852 | test -z "$libc_add_on" || { | |
77e8bddf | 3853 | configured_add_ons="$configured_add_ons $libc_add_on" |
a152f366 | 3854 | if test "x$libc_add_on_canonical" = xunknown; then |
4a531bb0 | 3855 | as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5 |
a152f366 UD |
3856 | fi |
3857 | for d in $libc_add_on_subdirs; do | |
3858 | case "$libc_add_on" in | |
3859 | /*) subdir_srcdir="$libc_add_on" ;; | |
3860 | *) subdir_srcdir="\$(..)$libc_add_on" ;; | |
3861 | esac | |
3862 | case "$d" in | |
3863 | .) | |
3864 | d="${libc_add_on_canonical:-$libc_add_on}" | |
3865 | ;; | |
3866 | /*) | |
3867 | subdir_srcdir="$d" | |
3868 | ;; | |
3869 | *) | |
3870 | subdir_srcdir="$subdir_srcdir/$d" | |
3871 | ;; | |
3872 | esac | |
3873 | d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'` | |
3874 | add_on_subdirs="$add_on_subdirs $d" | |
3875 | test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars | |
3876 | $d-srcdir = $subdir_srcdir" | |
3877 | done | |
7967983f RM |
3878 | for d in $libc_add_on_config_subdirs; do |
3879 | case "$d" in | |
4a531bb0 | 3880 | /*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;; |
7967983f RM |
3881 | esac |
3882 | if test ! -d "$libc_add_on_srcdir/$d"; then | |
4a531bb0 | 3883 | as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5 |
7967983f RM |
3884 | fi |
3885 | case "$libc_add_on" in | |
4a531bb0 | 3886 | /*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;; |
7967983f RM |
3887 | esac |
3888 | subdirs="$subdirs $libc_add_on/$d" | |
3889 | done | |
a152f366 UD |
3890 | } |
3891 | fi | |
3892 | if test -n "$libc_add_on"; then | |
3893 | if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null` | |
10a803e0 RM |
3894 | then |
3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5 | |
322e23db | 3896 | $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; } |
10a803e0 RM |
3897 | for frag in $frags; do |
3898 | name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'` | |
3899 | echo $ECHO_N "$name $ECHO_C" >&6 | |
3900 | . "$frag" | |
3901 | done | |
3902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | |
322e23db | 3903 | $as_echo "" >&6; } |
10a803e0 | 3904 | fi |
a152f366 UD |
3905 | use_add_ons="$use_add_ons $libc_add_on" |
3906 | add_ons_pfx="$add_ons_pfx $libc_add_on/" | |
3907 | test -z "$libc_add_on_canonical" || | |
3908 | add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical" | |
3909 | fi | |
3910 | done | |
3911 | # Use echo to strip excess whitespace. | |
3912 | add_ons="`echo $use_add_ons`" | |
5c2a0669 | 3913 | fi |
26f56c1c | 3914 | |
3a12e572 | 3915 | |
3a12e572 | 3916 | |
3a12e572 | 3917 | |
a152f366 UD |
3918 | ### |
3919 | ### I put this here to prevent those annoying emails from people who cannot | |
3920 | ### read and try to compile glibc on unsupported platforms. --drepper | |
3921 | ### | |
3922 | ### By using the undocumented --enable-hacker-mode option for configure | |
3923 | ### one can skip this test to make the configuration not fail for unsupported | |
3924 | ### platforms. | |
3925 | ### | |
3926 | if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then | |
3927 | case "$machine-$host_os" in | |
2ce4f015 | 3928 | *-linux* | *-gnu*) |
a152f366 UD |
3929 | ;; |
3930 | *) | |
3931 | echo "*** The GNU C library is currently not available for this platform." | |
3932 | echo "*** So far nobody cared to port it and if there is no volunteer it" | |
3933 | echo "*** might never happen. So, if you have interest to see glibc on" | |
3934 | echo "*** this platform visit" | |
3935 | echo "*** http://www.gnu.org/software/libc/porting.html" | |
3936 | echo "*** and join the group of porters" | |
3937 | exit 1 | |
3938 | ;; | |
3939 | esac | |
3a12e572 | 3940 | fi |
2abf9ff1 | 3941 | |
a152f366 UD |
3942 | # Expand the configuration machine name into a subdirectory by architecture |
3943 | # type and particular chip. If an add-on configure fragment already set | |
3944 | # base_machine, we don't change it. | |
3945 | test -n "$base_machine" || case "$machine" in | |
a152f366 | 3946 | i[34567]86) base_machine=i386 machine=i386/$machine ;; |
a152f366 UD |
3947 | powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;; |
3948 | powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;; | |
3949 | s390) base_machine=s390 machine=s390/s390-32 ;; | |
3950 | s390x) base_machine=s390 machine=s390/s390-64 ;; | |
3951 | sh3*) base_machine=sh machine=sh/sh3 ;; | |
3952 | sh4*) base_machine=sh machine=sh/sh4 ;; | |
3953 | sparc | sparcv[67]) | |
3954 | base_machine=sparc machine=sparc/sparc32 ;; | |
3955 | sparcv8 | supersparc | hypersparc) | |
3956 | base_machine=sparc machine=sparc/sparc32/sparcv8 ;; | |
3957 | sparcv8plus | sparcv8plusa | sparcv9) | |
3958 | base_machine=sparc machine=sparc/sparc32/sparcv9 ;; | |
3959 | sparcv8plusb | sparcv9b) | |
3960 | base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;; | |
3961 | sparcv9v) | |
3962 | base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;; | |
3963 | sparcv9v2) | |
3964 | base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;; | |
3965 | sparc64) | |
3966 | base_machine=sparc machine=sparc/sparc64 ;; | |
3967 | sparc64b) | |
3968 | base_machine=sparc machine=sparc/sparc64/sparcv9b ;; | |
3969 | sparc64v) | |
3970 | base_machine=sparc machine=sparc/sparc64/sparcv9v ;; | |
3971 | sparc64v2) | |
3972 | base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;; | |
3973 | *) base_machine=$machine ;; | |
3974 | esac | |
26f56c1c | 3975 | |
3a12e572 | 3976 | |
a152f366 | 3977 | if test "$base_machine" = "i386"; then |
b08c89d9 | 3978 | $as_echo "#define USE_REGPARMS 1" >>confdefs.h |
2abf9ff1 | 3979 | |
cd6ede75 | 3980 | fi |
26f56c1c | 3981 | |
0cae3f4b MF |
3982 | # For the multi-arch option we need support in the assembler & linker. |
3983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5 | |
3984 | $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; } | |
3985 | if ${libc_cv_ld_gnu_indirect_function+:} false; then : | |
84b9230c MF |
3986 | $as_echo_n "(cached) " >&6 |
3987 | else | |
786b0b67 | 3988 | cat > conftest.S <<EOF |
84b9230c | 3989 | .type foo,%gnu_indirect_function |
0cae3f4b MF |
3990 | foo: |
3991 | .globl _start | |
3992 | _start: | |
3993 | .globl __start | |
3994 | __start: | |
3995 | .data | |
786b0b67 AS |
3996 | #ifdef _LP64 |
3997 | .quad foo | |
3998 | #else | |
0cae3f4b | 3999 | .long foo |
786b0b67 | 4000 | #endif |
84b9230c | 4001 | EOF |
0cae3f4b MF |
4002 | libc_cv_ld_gnu_indirect_function=no |
4003 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
4004 | -nostartfiles -nostdlib \ | |
786b0b67 | 4005 | -o conftest conftest.S 1>&5 2>&5; then |
0cae3f4b MF |
4006 | # Do a link to see if the backend supports IFUNC relocs. |
4007 | $READELF -r conftest 1>&5 | |
4008 | LC_ALL=C $READELF -r conftest | grep 'no relocations' >/dev/null || { | |
4009 | libc_cv_ld_gnu_indirect_function=yes | |
4010 | } | |
84b9230c MF |
4011 | fi |
4012 | rm -f conftest* | |
4013 | fi | |
0cae3f4b MF |
4014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5 |
4015 | $as_echo "$libc_cv_ld_gnu_indirect_function" >&6; } | |
84b9230c MF |
4016 | |
4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .text pseudo-op must be used" >&5 | |
4018 | $as_echo_n "checking whether .text pseudo-op must be used... " >&6; } | |
f318beb8 | 4019 | if ${libc_cv_dot_text+:} false; then : |
84b9230c MF |
4020 | $as_echo_n "(cached) " >&6 |
4021 | else | |
4022 | cat > conftest.s <<EOF | |
4023 | .text | |
4024 | EOF | |
4025 | libc_cv_dot_text= | |
4026 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' | |
4027 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
4028 | (eval $ac_try) 2>&5 | |
4029 | ac_status=$? | |
4030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4031 | test $ac_status = 0; }; }; then | |
4032 | libc_cv_dot_text=.text | |
4033 | fi | |
4034 | rm -f conftest* | |
4035 | fi | |
4036 | ||
4037 | if test -z "$libc_cv_dot_text"; then | |
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4039 | $as_echo "no" >&6; } | |
4040 | else | |
4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4042 | $as_echo "yes" >&6; } | |
4043 | fi | |
4044 | ||
0cae3f4b | 4045 | if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then |
84b9230c | 4046 | if test x"$multi_arch" = xyes; then |
4a531bb0 | 4047 | as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5 |
84b9230c MF |
4048 | else |
4049 | multi_arch=no | |
4050 | fi | |
4051 | fi | |
6270516e | 4052 | multi_arch_d= |
84b9230c MF |
4053 | if test x"$multi_arch" != xno; then |
4054 | multi_arch_d=/multiarch | |
4055 | fi | |
4056 | ||
a152f366 UD |
4057 | # Compute the list of sysdep directories for this configuration. |
4058 | # This can take a while to compute. | |
4059 | sysdep_dir=$srcdir/sysdeps | |
b08c89d9 | 4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5 |
322e23db | 4061 | $as_echo_n "checking sysdep dirs... " >&6; } |
a152f366 UD |
4062 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. |
4063 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" | |
4064 | ||
4065 | test "x$base_os" != x || case "$os" in | |
4066 | gnu*) | |
4067 | base_os=mach/hurd ;; | |
2ce4f015 | 4068 | linux*) |
a152f366 | 4069 | base_os=unix/sysv ;; |
a152f366 | 4070 | esac |
3a12e572 | 4071 | |
a152f366 UD |
4072 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. |
4073 | tail=$os | |
4074 | ostry=$os | |
4075 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
4076 | ostry="$ostry /$o" | |
4077 | tail=$o | |
3a12e572 | 4078 | done |
a152f366 UD |
4079 | o=`echo $tail | sed 's/[0-9]*$//'` |
4080 | if test $o != $tail; then | |
4081 | ostry="$ostry /$o" | |
4082 | fi | |
4083 | # For linux-gnu, try linux-gnu, then linux. | |
4084 | o=`echo $tail | sed 's/-.*$//'` | |
4085 | if test $o != $tail; then | |
4086 | ostry="$ostry /$o" | |
cd6ede75 | 4087 | fi |
3a12e572 | 4088 | |
a152f366 UD |
4089 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. |
4090 | base= | |
4091 | tail=$base_os | |
4092 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
4093 | set $b | |
4094 | base="$base /$1" | |
4095 | tail="$2" | |
4096 | done | |
cd6ede75 | 4097 | |
a152f366 UD |
4098 | # For sparc/sparc32, try sparc/sparc32 and then sparc. |
4099 | mach= | |
4100 | tail=$machine${submachine:+/$submachine} | |
4101 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
4102 | set $m | |
4103 | # Prepend the machine's FPU directory unless --without-fp. | |
4104 | if test "$with_fp" = yes; then | |
6270516e | 4105 | maybe_fpu=/fpu |
26f56c1c | 4106 | else |
6270516e | 4107 | maybe_fpu=/nofpu |
925c3c5c | 4108 | fi |
6270516e RM |
4109 | # For each machine term, try it with and then without /multiarch. |
4110 | for try_fpu in $maybe_fpu ''; do | |
4111 | for try_multi in $multi_arch_d ''; do | |
4112 | mach="$mach /$1$try_fpu$try_multi" | |
4113 | done | |
4114 | done | |
a152f366 | 4115 | tail="$2" |
925c3c5c | 4116 | done |
a152f366 UD |
4117 | |
4118 | ||
4119 | # Find what sysdep directories exist. | |
4120 | sysnames_add_ons= | |
4121 | sysnames= | |
4122 | for b in $base ''; do | |
4123 | for m0 in $mach ''; do | |
4124 | for v in /$vendor ''; do | |
4125 | test "$v" = / && continue | |
4126 | for o in /$ostry ''; do | |
4127 | test "$o" = / && continue | |
6270516e | 4128 | for m in $mach ''; do |
a152f366 UD |
4129 | for d in $add_ons_pfx ''; do |
4130 | for a in $add_ons_sfx ''; do | |
1c9f1a02 RM |
4131 | try_suffix="$m0$b$v$o$m" |
4132 | if test -n "$try_suffix"; then | |
77e8bddf AS |
4133 | try_srcdir="${srcdir}/" |
4134 | case "$d" in | |
a152f366 UD |
4135 | /*) try_srcdir= ;; |
4136 | esac | |
1c9f1a02 | 4137 | try="${d}sysdeps$try_suffix$a" |
a152f366 UD |
4138 | test -n "$enable_debug_configure" && |
4139 | echo "$0 DEBUG: try $try" >&2 | |
4140 | if test -d "$try_srcdir$try"; then | |
4141 | sysnames="$sysnames $try" | |
4142 | { test -n "$o" || test -n "$b"; } && os_used=t | |
4143 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
4144 | case x${m0:-$m} in | |
4145 | x*/$submachine) submachine_used=t ;; | |
4146 | esac | |
4147 | if test -n "$d"; then | |
4148 | case "$sysnames_add_ons" in | |
4149 | *" $d "*) ;; | |
4150 | *|'') sysnames_add_ons="$sysnames_add_ons $d" ;; | |
4151 | esac | |
4152 | fi | |
4153 | fi | |
4154 | fi | |
4155 | done | |
4156 | done | |
4157 | done | |
4158 | done | |
4159 | done | |
4160 | done | |
925c3c5c UD |
4161 | done |
4162 | ||
6f89d2f3 L |
4163 | # If the assembler supports gnu_indirect_function symbol type and the |
4164 | # architecture supports multi-arch, we enable multi-arch by default. | |
84b9230c MF |
4165 | case $sysnames_add_ons$sysnames in |
4166 | *"$multi_arch_d"*) | |
4167 | ;; | |
4168 | *) | |
77e8bddf | 4169 | test x"$multi_arch" = xdefault && multi_arch=no |
84b9230c MF |
4170 | ;; |
4171 | esac | |
4172 | if test x"$multi_arch" != xno; then | |
b08c89d9 | 4173 | $as_echo "#define USE_MULTIARCH 1" >>confdefs.h |
6f89d2f3 L |
4174 | |
4175 | fi | |
4176 | ||
4177 | ||
a152f366 | 4178 | if test -z "$os_used" && test "$os" != none; then |
4a531bb0 | 4179 | as_fn_error $? "Operating system $os is not supported." "$LINENO" 5 |
925c3c5c | 4180 | fi |
a152f366 | 4181 | if test -z "$machine_used" && test "$machine" != none; then |
4a531bb0 | 4182 | as_fn_error $? "The $machine is not supported." "$LINENO" 5 |
925c3c5c | 4183 | fi |
a152f366 | 4184 | if test -z "$submachine_used" && test -n "$submachine"; then |
4a531bb0 | 4185 | as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5 |
925c3c5c UD |
4186 | fi |
4187 | ||
26f56c1c | 4188 | |
a152f366 UD |
4189 | # We have now validated the configuration. |
4190 | ||
a152f366 UD |
4191 | # Expand the list of system names into a full list of directories |
4192 | # from each element's parent name and Implies file (if present). | |
4193 | set $sysnames | |
4194 | names= | |
4195 | while test $# -gt 0; do | |
4196 | name=$1 | |
4197 | shift | |
26f56c1c | 4198 | |
a152f366 UD |
4199 | case " $names " in *" $name "*) |
4200 | # Already in the list. | |
4201 | continue | |
4202 | esac | |
925c3c5c | 4203 | |
a152f366 UD |
4204 | # Report each name as we discover it, so there is no long pause in output. |
4205 | echo $ECHO_N "$name $ECHO_C" >&6 | |
925c3c5c | 4206 | |
a152f366 UD |
4207 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` |
4208 | ||
4209 | case $name in | |
4210 | /*) xsrcdir= ;; | |
4211 | *) xsrcdir=$srcdir/ ;; | |
4212 | esac | |
4213 | test -n "$enable_debug_configure" && | |
4214 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
4215 | ||
ba75122d RM |
4216 | for implies_file in Implies Implies-before Implies-after; do |
4217 | implies_type=`echo $implies_file | sed s/-/_/` | |
4218 | eval ${implies_type}= | |
4219 | if test -f $xsrcdir$name/$implies_file; then | |
4220 | # Collect more names from the `Implies' file (removing comments). | |
4221 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`" | |
4222 | for x in $implied_candidate; do | |
4223 | found=no | |
4224 | if test -d $xsrcdir$name_base/$x; then | |
4225 | eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\"" | |
a152f366 | 4226 | found=yes |
ba75122d RM |
4227 | fi |
4228 | for d in $add_ons_pfx ''; do | |
4229 | try="${d}sysdeps/$x" | |
4230 | case $d in | |
4231 | /*) try_srcdir= ;; | |
4232 | *) try_srcdir=$srcdir/ ;; | |
a152f366 | 4233 | esac |
ba75122d RM |
4234 | test -n "$enable_debug_configure" && |
4235 | echo "DEBUG: $name $implies_file $x try($d) {$try_srcdir}$try" >&2 | |
4236 | if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try; | |
4237 | then | |
4238 | eval "${implies_type}=\"\$${implies_type} \$try\"" | |
4239 | found=yes | |
4240 | case "$sysnames_add_ons" in | |
4241 | *" $d "*) ;; | |
4242 | *|'') sysnames_add_ons="$sysnames_add_ons $d" ;; | |
4243 | esac | |
4244 | fi | |
4245 | done | |
4246 | if test $found = no; then | |
4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5 | |
4248 | $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;} | |
a152f366 UD |
4249 | fi |
4250 | done | |
ba75122d RM |
4251 | fi |
4252 | done | |
925c3c5c | 4253 | |
a152f366 UD |
4254 | # Add NAME to the list of names. |
4255 | names="$names $name" | |
925c3c5c | 4256 | |
a152f366 UD |
4257 | # Find the parent of NAME, using the empty string if it has none. |
4258 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" | |
925c3c5c | 4259 | |
ba75122d RM |
4260 | test -n "$enable_debug_configure" && |
4261 | echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \ | |
57633811 | 4262 | Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2 |
ba75122d | 4263 | |
a152f366 UD |
4264 | # Add the names implied by NAME, and NAME's parent (if it has one), to |
4265 | # the list of names to be processed (the argument list). We prepend the | |
4266 | # implied names to the list and append the parent. We want implied | |
4267 | # directories to come before further directories inferred from the | |
4268 | # configuration components; this ensures that for sysv4, unix/common | |
4269 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
4270 | # after sysv4). | |
ba75122d | 4271 | sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`" |
a152f366 UD |
4272 | test -n "$sysnames" && set $sysnames |
4273 | done | |
2abf9ff1 | 4274 | |
a152f366 | 4275 | # Add the default directories. |
51d8bb8f | 4276 | default_sysnames="sysdeps/generic" |
a152f366 | 4277 | sysnames="$names $default_sysnames" |
26f56c1c | 4278 | |
a152f366 | 4279 | # The other names were emitted during the scan. |
b08c89d9 | 4280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5 |
322e23db | 4281 | $as_echo "$default_sysnames" >&6; } |
925c3c5c | 4282 | |
a152f366 UD |
4283 | # Collect the list of add-ons that supply partial sysdeps trees. |
4284 | sysdeps_add_ons= | |
4285 | for add_on in $add_ons; do | |
4286 | case "$add_on" in | |
4287 | /*) xsrcdir= ;; | |
4288 | *) xsrcdir="$srcdir/" ;; | |
4289 | esac | |
925c3c5c | 4290 | |
a152f366 UD |
4291 | test -d "$xsrcdir$add_on/sysdeps" || { |
4292 | case "$configured_add_ons " in | |
4293 | *" $add_on "*) ;; | |
4294 | *|'') | |
4a531bb0 | 4295 | as_fn_error $? "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5 |
a152f366 UD |
4296 | ;; |
4297 | esac | |
4298 | continue | |
4299 | } | |
2abf9ff1 | 4300 | |
a152f366 UD |
4301 | sysdeps_add_ons="$sysdeps_add_ons $add_on" |
4302 | case "$sysnames_add_ons" in | |
4303 | *" $add_on/ "*) ;; | |
4304 | *|'') | |
b08c89d9 | 4305 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5 |
322e23db | 4306 | $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;} |
a152f366 UD |
4307 | continue ;; |
4308 | esac | |
26f56c1c | 4309 | |
a152f366 UD |
4310 | found=no |
4311 | for d in $sysnames; do | |
4312 | case "$d" in | |
4313 | $add_on/sysdeps/*) ;; | |
4314 | *) continue ;; | |
4315 | esac | |
4316 | (cd "$xsrcdir$d" && for f in *[!~]; do | |
4317 | case "$f" in | |
4318 | sys|bits) | |
4319 | for ff in $f/*.h; do | |
4320 | test -d "$ff" || { test -e "$ff" && exit 88; } | |
4321 | done | |
4322 | ;; | |
4323 | *) | |
77e8bddf | 4324 | test -d "$f" || { test -e "$f" && exit 88; } |
a152f366 UD |
4325 | ;; |
4326 | esac | |
4327 | done) | |
4328 | if test $? -eq 88; then | |
4329 | found=yes | |
4330 | break | |
4331 | fi | |
4332 | done | |
4333 | if test $found = no; then | |
b08c89d9 | 4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5 |
322e23db | 4335 | $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;} |
a152f366 UD |
4336 | fi |
4337 | done | |
26f56c1c | 4338 | |
2abf9ff1 | 4339 | |
26f56c1c | 4340 | |
a152f366 | 4341 | ### Locate tools. |
26f56c1c | 4342 | |
a152f366 UD |
4343 | # Find a good install program. We prefer a C program (faster), |
4344 | # so one script is as good as another. But avoid the broken or | |
4345 | # incompatible versions: | |
4346 | # SysV /etc/install, /usr/sbin/install | |
4347 | # SunOS /usr/etc/install | |
4348 | # IRIX /sbin/install | |
4349 | # AIX /bin/install | |
4350 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4351 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4352 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4353 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4354 | # OS/2's system install, which has a completely different semantic | |
4355 | # ./install, which can be erroneously created by make from ./install.sh. | |
322e23db | 4356 | # Reject install programs that cannot install multiple files. |
b08c89d9 | 4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
322e23db | 4358 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
a152f366 | 4359 | if test -z "$INSTALL"; then |
f318beb8 | 4360 | if ${ac_cv_path_install+:} false; then : |
322e23db | 4361 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
4362 | else |
4363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4364 | for as_dir in $PATH | |
4365 | do | |
4366 | IFS=$as_save_IFS | |
4367 | test -z "$as_dir" && as_dir=. | |
b08c89d9 UD |
4368 | # Account for people who put trailing slashes in PATH elements. |
4369 | case $as_dir/ in #(( | |
4370 | ./ | .// | /[cC]/* | \ | |
a152f366 | 4371 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
b08c89d9 | 4372 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
a152f366 UD |
4373 | /usr/ucb/* ) ;; |
4374 | *) | |
4375 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4376 | # Don't use installbsd from OSF since it installs stuff as root | |
4377 | # by default. | |
4378 | for ac_prog in ginstall scoinst install; do | |
4379 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4380 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4381 | if test $ac_prog = install && | |
4382 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4383 | # AIX install. It has an incompatible calling convention. | |
4384 | : | |
4385 | elif test $ac_prog = install && | |
4386 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4387 | # program-specific install script used by HP pwplus--don't use. | |
4388 | : | |
4389 | else | |
322e23db UD |
4390 | rm -rf conftest.one conftest.two conftest.dir |
4391 | echo one > conftest.one | |
4392 | echo two > conftest.two | |
4393 | mkdir conftest.dir | |
4394 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4395 | test -s conftest.one && test -s conftest.two && | |
4396 | test -s conftest.dir/conftest.one && | |
4397 | test -s conftest.dir/conftest.two | |
4398 | then | |
4399 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4400 | break 3 | |
4401 | fi | |
a152f366 UD |
4402 | fi |
4403 | fi | |
4404 | done | |
4405 | done | |
4406 | ;; | |
26f56c1c | 4407 | esac |
322e23db | 4408 | |
b08c89d9 | 4409 | done |
a152f366 | 4410 | IFS=$as_save_IFS |
2abf9ff1 | 4411 | |
322e23db | 4412 | rm -rf conftest.one conftest.two conftest.dir |
26f56c1c | 4413 | |
925c3c5c | 4414 | fi |
a152f366 UD |
4415 | if test "${ac_cv_path_install+set}" = set; then |
4416 | INSTALL=$ac_cv_path_install | |
4417 | else | |
4418 | # As a last resort, use the slow shell script. Don't cache a | |
4419 | # value for INSTALL within a source directory, because that will | |
4420 | # break other packages using the cache if that directory is | |
4421 | # removed, or if the value is a relative name. | |
4422 | INSTALL=$ac_install_sh | |
4423 | fi | |
925c3c5c | 4424 | fi |
b08c89d9 | 4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
322e23db | 4426 | $as_echo "$INSTALL" >&6; } |
925c3c5c | 4427 | |
a152f366 UD |
4428 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4429 | # It thinks the first close brace ends the variable substitution. | |
4430 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
26f56c1c | 4431 | |
a152f366 UD |
4432 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4433 | ||
4434 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4435 | ||
4436 | if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then | |
4437 | # The makefiles need to use a different form to find it in $srcdir. | |
4438 | INSTALL='\$(..)./scripts/install-sh -c' | |
26f56c1c | 4439 | fi |
b08c89d9 | 4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
322e23db | 4441 | $as_echo_n "checking whether ln -s works... " >&6; } |
a152f366 UD |
4442 | LN_S=$as_ln_s |
4443 | if test "$LN_S" = "ln -s"; then | |
b08c89d9 | 4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
322e23db | 4445 | $as_echo "yes" >&6; } |
26f56c1c | 4446 | else |
b08c89d9 | 4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
322e23db | 4448 | $as_echo "no, using $LN_S" >&6; } |
26f56c1c | 4449 | fi |
a152f366 | 4450 | |
925c3c5c | 4451 | |
650425ce UD |
4452 | # Was a --with-binutils option given? |
4453 | if test -n "$path_binutils"; then | |
4454 | # Make absolute; ensure a single trailing slash. | |
4455 | path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'` | |
63bda0c1 | 4456 | CC="$CC -B$path_binutils" |
650425ce | 4457 | fi |
27a5bb33 UD |
4458 | AS=`$CC -print-prog-name=as` |
4459 | LD=`$CC -print-prog-name=ld` | |
5edb9387 | 4460 | AR=`$CC -print-prog-name=ar` |
cd6ede75 | 4461 | |
4baa087a RM |
4462 | OBJDUMP=`$CC -print-prog-name=objdump` |
4463 | ||
1b74661a RM |
4464 | OBJCOPY=`$CC -print-prog-name=objcopy` |
4465 | ||
4baa087a | 4466 | |
4baa087a | 4467 | # Determine whether we are using GNU binutils. |
b08c89d9 | 4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5 |
322e23db | 4469 | $as_echo_n "checking whether $AS is GNU as... " >&6; } |
f318beb8 | 4470 | if ${libc_cv_prog_as_gnu+:} false; then : |
322e23db | 4471 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
4472 | else |
4473 | # Most GNU programs take a -v and spit out some text including | |
4474 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
4475 | if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
4476 | libc_cv_prog_as_gnu=yes | |
4477 | else | |
4478 | libc_cv_prog_as_gnu=no | |
4479 | fi | |
4480 | rm -fr contest* | |
4481 | fi | |
b08c89d9 | 4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5 |
322e23db | 4483 | $as_echo "$libc_cv_prog_as_gnu" >&6; } |
4baa087a RM |
4484 | rm -f a.out |
4485 | gnu_as=$libc_cv_prog_as_gnu | |
4486 | ||
b08c89d9 | 4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5 |
322e23db | 4488 | $as_echo_n "checking whether $LD is GNU ld... " >&6; } |
f318beb8 | 4489 | if ${libc_cv_prog_ld_gnu+:} false; then : |
322e23db | 4490 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
4491 | else |
4492 | # Most GNU programs take a -v and spit out some text including | |
4493 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
4494 | if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
4495 | libc_cv_prog_ld_gnu=yes | |
4496 | else | |
4497 | libc_cv_prog_ld_gnu=no | |
4498 | fi | |
4499 | rm -fr contest* | |
4500 | fi | |
b08c89d9 | 4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5 |
322e23db | 4502 | $as_echo "$libc_cv_prog_ld_gnu" >&6; } |
4baa087a RM |
4503 | gnu_ld=$libc_cv_prog_ld_gnu |
4504 | ||
4505 | ||
bec039bc | 4506 | # Accept binutils 2.20 or newer. |
4baa087a RM |
4507 | for ac_prog in $AS |
4508 | do | |
4509 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4510 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 4512 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 4513 | if ${ac_cv_prog_AS+:} false; then : |
322e23db | 4514 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
4515 | else |
4516 | if test -n "$AS"; then | |
4517 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
4518 | else | |
4519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4520 | for as_dir in $PATH | |
4521 | do | |
4522 | IFS=$as_save_IFS | |
4523 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 4524 | for ac_exec_ext in '' $ac_executable_extensions; do |
26f56c1c | 4525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 4526 | ac_cv_prog_AS="$ac_prog" |
b08c89d9 | 4527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
4528 | break 2 |
4529 | fi | |
4530 | done | |
b08c89d9 | 4531 | done |
26f56c1c | 4532 | IFS=$as_save_IFS |
4baa087a RM |
4533 | |
4534 | fi | |
4535 | fi | |
4536 | AS=$ac_cv_prog_AS | |
4537 | if test -n "$AS"; then | |
b08c89d9 | 4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
322e23db | 4539 | $as_echo "$AS" >&6; } |
4baa087a | 4540 | else |
b08c89d9 | 4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 4542 | $as_echo "no" >&6; } |
4baa087a RM |
4543 | fi |
4544 | ||
26f56c1c | 4545 | |
4baa087a RM |
4546 | test -n "$AS" && break |
4547 | done | |
4548 | ||
4549 | if test -z "$AS"; then | |
4550 | ac_verc_fail=yes | |
4551 | else | |
4552 | # Found it, now check the version. | |
b08c89d9 | 4553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5 |
322e23db | 4554 | $as_echo_n "checking version of $AS... " >&6; } |
4baa087a RM |
4555 | ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
4556 | case $ac_prog_version in | |
4557 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
bec039bc | 4558 | 2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*) |
4baa087a RM |
4559 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
4560 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4561 | ||
4562 | esac | |
b08c89d9 | 4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
322e23db | 4564 | $as_echo "$ac_prog_version" >&6; } |
4baa087a RM |
4565 | fi |
4566 | if test $ac_verc_fail = yes; then | |
73588175 | 4567 | AS=: critic_missing="$critic_missing as" |
4baa087a RM |
4568 | fi |
4569 | ||
4570 | for ac_prog in $LD | |
4571 | do | |
4572 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4573 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 4575 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 4576 | if ${ac_cv_prog_LD+:} false; then : |
322e23db | 4577 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
4578 | else |
4579 | if test -n "$LD"; then | |
4580 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
4581 | else | |
4582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4583 | for as_dir in $PATH | |
4584 | do | |
4585 | IFS=$as_save_IFS | |
4586 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 4587 | for ac_exec_ext in '' $ac_executable_extensions; do |
26f56c1c | 4588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 4589 | ac_cv_prog_LD="$ac_prog" |
b08c89d9 | 4590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
4591 | break 2 |
4592 | fi | |
4593 | done | |
b08c89d9 | 4594 | done |
26f56c1c | 4595 | IFS=$as_save_IFS |
4baa087a RM |
4596 | |
4597 | fi | |
4598 | fi | |
4599 | LD=$ac_cv_prog_LD | |
4600 | if test -n "$LD"; then | |
b08c89d9 | 4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
322e23db | 4602 | $as_echo "$LD" >&6; } |
4baa087a | 4603 | else |
b08c89d9 | 4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 4605 | $as_echo "no" >&6; } |
4baa087a RM |
4606 | fi |
4607 | ||
26f56c1c | 4608 | |
4baa087a RM |
4609 | test -n "$LD" && break |
4610 | done | |
4611 | ||
4612 | if test -z "$LD"; then | |
4613 | ac_verc_fail=yes | |
4614 | else | |
4615 | # Found it, now check the version. | |
b08c89d9 | 4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 |
322e23db | 4617 | $as_echo_n "checking version of $LD... " >&6; } |
4baa087a RM |
4618 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` |
4619 | case $ac_prog_version in | |
4620 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
bec039bc | 4621 | 2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*) |
4baa087a RM |
4622 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
4623 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4624 | ||
4625 | esac | |
b08c89d9 | 4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
322e23db | 4627 | $as_echo "$ac_prog_version" >&6; } |
4baa087a RM |
4628 | fi |
4629 | if test $ac_verc_fail = yes; then | |
73588175 | 4630 | LD=: critic_missing="$critic_missing ld" |
4baa087a RM |
4631 | fi |
4632 | ||
4633 | ||
4baa087a RM |
4634 | # These programs are version sensitive. |
4635 | ||
4636 | for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc | |
4637 | do | |
4638 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4639 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 4641 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 4642 | if ${ac_cv_prog_CC+:} false; then : |
322e23db | 4643 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
4644 | else |
4645 | if test -n "$CC"; then | |
4646 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4647 | else | |
4648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4649 | for as_dir in $PATH | |
4650 | do | |
4651 | IFS=$as_save_IFS | |
4652 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 4653 | for ac_exec_ext in '' $ac_executable_extensions; do |
26f56c1c | 4654 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 4655 | ac_cv_prog_CC="$ac_prog" |
b08c89d9 | 4656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
4657 | break 2 |
4658 | fi | |
4659 | done | |
b08c89d9 | 4660 | done |
26f56c1c | 4661 | IFS=$as_save_IFS |
4baa087a RM |
4662 | |
4663 | fi | |
4664 | fi | |
4665 | CC=$ac_cv_prog_CC | |
4666 | if test -n "$CC"; then | |
b08c89d9 | 4667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
322e23db | 4668 | $as_echo "$CC" >&6; } |
4baa087a | 4669 | else |
b08c89d9 | 4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 4671 | $as_echo "no" >&6; } |
4baa087a RM |
4672 | fi |
4673 | ||
26f56c1c | 4674 | |
4baa087a RM |
4675 | test -n "$CC" && break |
4676 | done | |
4677 | ||
4678 | if test -z "$CC"; then | |
4679 | ac_verc_fail=yes | |
4680 | else | |
4681 | # Found it, now check the version. | |
b08c89d9 | 4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $CC" >&5 |
322e23db | 4683 | $as_echo_n "checking version of $CC... " >&6; } |
4baa087a RM |
4684 | ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'` |
4685 | case $ac_prog_version in | |
4686 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
0e7727f7 | 4687 | 4.[3-9].* | 4.[1-9][0-9].* | [5-9].* ) |
4baa087a RM |
4688 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
4689 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4690 | ||
4691 | esac | |
b08c89d9 | 4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
322e23db | 4693 | $as_echo "$ac_prog_version" >&6; } |
4baa087a RM |
4694 | fi |
4695 | if test $ac_verc_fail = yes; then | |
4696 | critic_missing="$critic_missing gcc" | |
4697 | fi | |
4698 | ||
4699 | for ac_prog in gnumake gmake make | |
4700 | do | |
4701 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4702 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 4704 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 4705 | if ${ac_cv_prog_MAKE+:} false; then : |
322e23db | 4706 | $as_echo_n "(cached) " >&6 |
4baa087a RM |
4707 | else |
4708 | if test -n "$MAKE"; then | |
4709 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
4710 | else | |
4711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4712 | for as_dir in $PATH | |
4713 | do | |
4714 | IFS=$as_save_IFS | |
4715 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 4716 | for ac_exec_ext in '' $ac_executable_extensions; do |
26f56c1c | 4717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 4718 | ac_cv_prog_MAKE="$ac_prog" |
b08c89d9 | 4719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
4720 | break 2 |
4721 | fi | |
4722 | done | |
b08c89d9 | 4723 | done |
26f56c1c | 4724 | IFS=$as_save_IFS |
4baa087a RM |
4725 | |
4726 | fi | |
4727 | fi | |
4728 | MAKE=$ac_cv_prog_MAKE | |
4729 | if test -n "$MAKE"; then | |
b08c89d9 | 4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 |
322e23db | 4731 | $as_echo "$MAKE" >&6; } |
4baa087a | 4732 | else |
b08c89d9 | 4733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 4734 | $as_echo "no" >&6; } |
4baa087a RM |
4735 | fi |
4736 | ||
26f56c1c | 4737 | |
4baa087a RM |
4738 | test -n "$MAKE" && break |
4739 | done | |
4740 | ||
4741 | if test -z "$MAKE"; then | |
4742 | ac_verc_fail=yes | |
4743 | else | |
4744 | # Found it, now check the version. | |
b08c89d9 | 4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5 |
322e23db | 4746 | $as_echo_n "checking version of $MAKE... " >&6; } |
4baa087a RM |
4747 | ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` |
4748 | case $ac_prog_version in | |
4749 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4750 | 3.79* | 3.[89]*) | |
4751 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
4752 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4753 | ||
4754 | esac | |
b08c89d9 | 4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
322e23db | 4756 | $as_echo "$ac_prog_version" >&6; } |
4baa087a RM |
4757 | fi |
4758 | if test $ac_verc_fail = yes; then | |
4759 | critic_missing="$critic_missing make" | |
4760 | fi | |
6e3d59bc | 4761 | |
cd6ede75 | 4762 | |
4baa087a RM |
4763 | for ac_prog in gnumsgfmt gmsgfmt msgfmt |
4764 | do | |
4765 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4766 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 4768 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 4769 | if ${ac_cv_prog_MSGFMT+:} false; then : |
322e23db | 4770 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 4771 | else |
4baa087a RM |
4772 | if test -n "$MSGFMT"; then |
4773 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
cd6ede75 | 4774 | else |
3a12e572 UD |
4775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4776 | for as_dir in $PATH | |
4777 | do | |
4778 | IFS=$as_save_IFS | |
4779 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 4780 | for ac_exec_ext in '' $ac_executable_extensions; do |
26f56c1c | 4781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 4782 | ac_cv_prog_MSGFMT="$ac_prog" |
b08c89d9 | 4783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
4784 | break 2 |
4785 | fi | |
4786 | done | |
b08c89d9 | 4787 | done |
26f56c1c | 4788 | IFS=$as_save_IFS |
3a12e572 | 4789 | |
cd6ede75 UD |
4790 | fi |
4791 | fi | |
4baa087a RM |
4792 | MSGFMT=$ac_cv_prog_MSGFMT |
4793 | if test -n "$MSGFMT"; then | |
b08c89d9 | 4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
322e23db | 4795 | $as_echo "$MSGFMT" >&6; } |
cd6ede75 | 4796 | else |
b08c89d9 | 4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 4798 | $as_echo "no" >&6; } |
cd6ede75 UD |
4799 | fi |
4800 | ||
26f56c1c | 4801 | |
4baa087a RM |
4802 | test -n "$MSGFMT" && break |
4803 | done | |
4804 | ||
4805 | if test -z "$MSGFMT"; then | |
4806 | ac_verc_fail=yes | |
4807 | else | |
4808 | # Found it, now check the version. | |
b08c89d9 | 4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5 |
322e23db | 4810 | $as_echo_n "checking version of $MSGFMT... " >&6; } |
4baa087a RM |
4811 | ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
4812 | case $ac_prog_version in | |
4813 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4814 | 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*) | |
4815 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
4816 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4817 | ||
4818 | esac | |
b08c89d9 | 4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
322e23db | 4820 | $as_echo "$ac_prog_version" >&6; } |
3a12e572 | 4821 | fi |
4baa087a RM |
4822 | if test $ac_verc_fail = yes; then |
4823 | MSGFMT=: aux_missing="$aux_missing msgfmt" | |
4824 | fi | |
4825 | ||
4826 | for ac_prog in makeinfo | |
4827 | do | |
4828 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4829 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 4831 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 4832 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
322e23db | 4833 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 4834 | else |
4baa087a RM |
4835 | if test -n "$MAKEINFO"; then |
4836 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
cd6ede75 | 4837 | else |
3a12e572 UD |
4838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4839 | for as_dir in $PATH | |
4840 | do | |
4841 | IFS=$as_save_IFS | |
4842 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 4843 | for ac_exec_ext in '' $ac_executable_extensions; do |
26f56c1c | 4844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 4845 | ac_cv_prog_MAKEINFO="$ac_prog" |
b08c89d9 | 4846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
4847 | break 2 |
4848 | fi | |
4849 | done | |
b08c89d9 | 4850 | done |
26f56c1c | 4851 | IFS=$as_save_IFS |
3a12e572 | 4852 | |
cd6ede75 UD |
4853 | fi |
4854 | fi | |
4baa087a RM |
4855 | MAKEINFO=$ac_cv_prog_MAKEINFO |
4856 | if test -n "$MAKEINFO"; then | |
b08c89d9 | 4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
322e23db | 4858 | $as_echo "$MAKEINFO" >&6; } |
cd6ede75 | 4859 | else |
b08c89d9 | 4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 4861 | $as_echo "no" >&6; } |
cd6ede75 UD |
4862 | fi |
4863 | ||
26f56c1c | 4864 | |
4baa087a RM |
4865 | test -n "$MAKEINFO" && break |
4866 | done | |
5edb9387 | 4867 | |
4baa087a RM |
4868 | if test -z "$MAKEINFO"; then |
4869 | ac_verc_fail=yes | |
5edb9387 | 4870 | else |
4baa087a | 4871 | # Found it, now check the version. |
b08c89d9 | 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5 |
322e23db | 4873 | $as_echo_n "checking version of $MAKEINFO... " >&6; } |
4baa087a RM |
4874 | ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` |
4875 | case $ac_prog_version in | |
4876 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
6a3951a0 | 4877 | 4.[5-9]*|4.[1-9][0-9]*|[5-9].*) |
4baa087a RM |
4878 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
4879 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5edb9387 | 4880 | |
4baa087a | 4881 | esac |
b08c89d9 | 4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
322e23db | 4883 | $as_echo "$ac_prog_version" >&6; } |
5edb9387 | 4884 | fi |
4baa087a RM |
4885 | if test $ac_verc_fail = yes; then |
4886 | MAKEINFO=: aux_missing="$aux_missing makeinfo" | |
5edb9387 | 4887 | fi |
cd6ede75 | 4888 | |
4baa087a | 4889 | for ac_prog in sed |
c4d23330 RM |
4890 | do |
4891 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4892 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 4894 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 4895 | if ${ac_cv_prog_SED+:} false; then : |
322e23db | 4896 | $as_echo_n "(cached) " >&6 |
c4d23330 | 4897 | else |
4baa087a RM |
4898 | if test -n "$SED"; then |
4899 | ac_cv_prog_SED="$SED" # Let the user override the test. | |
c4d23330 RM |
4900 | else |
4901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4902 | for as_dir in $PATH | |
4903 | do | |
4904 | IFS=$as_save_IFS | |
4905 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 4906 | for ac_exec_ext in '' $ac_executable_extensions; do |
26f56c1c | 4907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 4908 | ac_cv_prog_SED="$ac_prog" |
b08c89d9 | 4909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c4d23330 RM |
4910 | break 2 |
4911 | fi | |
4912 | done | |
b08c89d9 | 4913 | done |
26f56c1c | 4914 | IFS=$as_save_IFS |
c4d23330 RM |
4915 | |
4916 | fi | |
4917 | fi | |
4baa087a RM |
4918 | SED=$ac_cv_prog_SED |
4919 | if test -n "$SED"; then | |
b08c89d9 | 4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
322e23db | 4921 | $as_echo "$SED" >&6; } |
c4d23330 | 4922 | else |
b08c89d9 | 4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 4924 | $as_echo "no" >&6; } |
c4d23330 RM |
4925 | fi |
4926 | ||
26f56c1c | 4927 | |
4baa087a | 4928 | test -n "$SED" && break |
c4d23330 RM |
4929 | done |
4930 | ||
4baa087a | 4931 | if test -z "$SED"; then |
c4d23330 RM |
4932 | ac_verc_fail=yes |
4933 | else | |
4934 | # Found it, now check the version. | |
b08c89d9 | 4935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5 |
322e23db | 4936 | $as_echo_n "checking version of $SED... " >&6; } |
07e51550 | 4937 | ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
c4d23330 RM |
4938 | case $ac_prog_version in |
4939 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4baa087a | 4940 | 3.0[2-9]*|3.[1-9]*|[4-9]*) |
c4d23330 RM |
4941 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
4942 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4943 | ||
4944 | esac | |
b08c89d9 | 4945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
322e23db | 4946 | $as_echo "$ac_prog_version" >&6; } |
c4d23330 RM |
4947 | fi |
4948 | if test $ac_verc_fail = yes; then | |
4baa087a | 4949 | SED=: aux_missing="$aux_missing sed" |
c4d23330 RM |
4950 | fi |
4951 | ||
0786794f AM |
4952 | for ac_prog in gawk |
4953 | do | |
4954 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4955 | set dummy $ac_prog; ac_word=$2 | |
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4957 | $as_echo_n "checking for $ac_word... " >&6; } | |
4958 | if ${ac_cv_prog_AWK+:} false; then : | |
4959 | $as_echo_n "(cached) " >&6 | |
4960 | else | |
4961 | if test -n "$AWK"; then | |
4962 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4963 | else | |
4964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4965 | for as_dir in $PATH | |
4966 | do | |
4967 | IFS=$as_save_IFS | |
4968 | test -z "$as_dir" && as_dir=. | |
4969 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4970 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4971 | ac_cv_prog_AWK="$ac_prog" | |
4972 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4973 | break 2 | |
4974 | fi | |
4975 | done | |
4976 | done | |
4977 | IFS=$as_save_IFS | |
4978 | ||
4979 | fi | |
4980 | fi | |
4981 | AWK=$ac_cv_prog_AWK | |
4982 | if test -n "$AWK"; then | |
4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4984 | $as_echo "$AWK" >&6; } | |
4985 | else | |
4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4987 | $as_echo "no" >&6; } | |
4988 | fi | |
4989 | ||
4990 | ||
4991 | test -n "$AWK" && break | |
4992 | done | |
4993 | ||
4994 | if test -z "$AWK"; then | |
4995 | ac_verc_fail=yes | |
4996 | else | |
4997 | # Found it, now check the version. | |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5 | |
4999 | $as_echo_n "checking version of $AWK... " >&6; } | |
5000 | ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` | |
5001 | case $ac_prog_version in | |
5002 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5003 | [3-9].*) | |
5004 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5005 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5006 | ||
5007 | esac | |
5008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
5009 | $as_echo "$ac_prog_version" >&6; } | |
5010 | fi | |
5011 | if test $ac_verc_fail = yes; then | |
5012 | critic_missing="$critic_missing gawk" | |
5013 | fi | |
5014 | ||
4baa087a | 5015 | |
30b99d79 RM |
5016 | if test -n "$ac_tool_prefix"; then |
5017 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
5018 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5020 | $as_echo_n "checking for $ac_word... " >&6; } | |
5021 | if ${ac_cv_prog_NM+:} false; then : | |
5022 | $as_echo_n "(cached) " >&6 | |
5023 | else | |
5024 | if test -n "$NM"; then | |
5025 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
5026 | else | |
5027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5028 | for as_dir in $PATH | |
5029 | do | |
5030 | IFS=$as_save_IFS | |
5031 | test -z "$as_dir" && as_dir=. | |
5032 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5033 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5034 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
5035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5036 | break 2 | |
5037 | fi | |
5038 | done | |
5039 | done | |
5040 | IFS=$as_save_IFS | |
5041 | ||
5042 | fi | |
5043 | fi | |
5044 | NM=$ac_cv_prog_NM | |
5045 | if test -n "$NM"; then | |
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 | |
5047 | $as_echo "$NM" >&6; } | |
5048 | else | |
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5050 | $as_echo "no" >&6; } | |
5051 | fi | |
5052 | ||
5053 | ||
5054 | fi | |
5055 | if test -z "$ac_cv_prog_NM"; then | |
5056 | ac_ct_NM=$NM | |
5057 | # Extract the first word of "nm", so it can be a program name with args. | |
5058 | set dummy nm; ac_word=$2 | |
5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5060 | $as_echo_n "checking for $ac_word... " >&6; } | |
5061 | if ${ac_cv_prog_ac_ct_NM+:} false; then : | |
5062 | $as_echo_n "(cached) " >&6 | |
5063 | else | |
5064 | if test -n "$ac_ct_NM"; then | |
5065 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
5066 | else | |
5067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5068 | for as_dir in $PATH | |
5069 | do | |
5070 | IFS=$as_save_IFS | |
5071 | test -z "$as_dir" && as_dir=. | |
5072 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5073 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5074 | ac_cv_prog_ac_ct_NM="nm" | |
5075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5076 | break 2 | |
5077 | fi | |
5078 | done | |
5079 | done | |
5080 | IFS=$as_save_IFS | |
5081 | ||
5082 | fi | |
5083 | fi | |
5084 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
5085 | if test -n "$ac_ct_NM"; then | |
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 | |
5087 | $as_echo "$ac_ct_NM" >&6; } | |
5088 | else | |
5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5090 | $as_echo "no" >&6; } | |
5091 | fi | |
5092 | ||
5093 | if test "x$ac_ct_NM" = x; then | |
5094 | NM="false" | |
5095 | else | |
5096 | case $cross_compiling:$ac_tool_warned in | |
5097 | yes:) | |
5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5099 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5100 | ac_tool_warned=yes ;; | |
5101 | esac | |
5102 | NM=$ac_ct_NM | |
5103 | fi | |
5104 | else | |
5105 | NM="$ac_cv_prog_NM" | |
5106 | fi | |
5107 | ||
d30cf5bb | 5108 | |
476e7d78 | 5109 | for ac_prog in autoconf |
c4d23330 RM |
5110 | do |
5111 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5112 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 5114 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 5115 | if ${ac_cv_prog_AUTOCONF+:} false; then : |
322e23db | 5116 | $as_echo_n "(cached) " >&6 |
c4d23330 | 5117 | else |
4baa087a RM |
5118 | if test -n "$AUTOCONF"; then |
5119 | ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. | |
c4d23330 RM |
5120 | else |
5121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5122 | for as_dir in $PATH | |
5123 | do | |
5124 | IFS=$as_save_IFS | |
5125 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 5126 | for ac_exec_ext in '' $ac_executable_extensions; do |
26f56c1c | 5127 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4baa087a | 5128 | ac_cv_prog_AUTOCONF="$ac_prog" |
b08c89d9 | 5129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c4d23330 RM |
5130 | break 2 |
5131 | fi | |
5132 | done | |
b08c89d9 | 5133 | done |
26f56c1c | 5134 | IFS=$as_save_IFS |
c4d23330 RM |
5135 | |
5136 | fi | |
5137 | fi | |
4baa087a RM |
5138 | AUTOCONF=$ac_cv_prog_AUTOCONF |
5139 | if test -n "$AUTOCONF"; then | |
b08c89d9 | 5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 |
322e23db | 5141 | $as_echo "$AUTOCONF" >&6; } |
c4d23330 | 5142 | else |
b08c89d9 | 5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 5144 | $as_echo "no" >&6; } |
c4d23330 RM |
5145 | fi |
5146 | ||
26f56c1c | 5147 | |
4baa087a | 5148 | test -n "$AUTOCONF" && break |
c4d23330 | 5149 | done |
4baa087a | 5150 | test -n "$AUTOCONF" || AUTOCONF="no" |
c4d23330 | 5151 | |
476e7d78 RM |
5152 | case "x$AUTOCONF" in |
5153 | xno|x|x:) AUTOCONF=no ;; | |
5154 | *) | |
b08c89d9 | 5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5 |
322e23db | 5156 | $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; } |
f318beb8 | 5157 | if ${libc_cv_autoconf_works+:} false; then : |
322e23db | 5158 | $as_echo_n "(cached) " >&6 |
c4d23330 | 5159 | else |
476e7d78 RM |
5160 | if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then |
5161 | libc_cv_autoconf_works=yes | |
5162 | else | |
5163 | libc_cv_autoconf_works=no | |
5164 | fi | |
c4d23330 | 5165 | fi |
b08c89d9 | 5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5 |
322e23db | 5167 | $as_echo "$libc_cv_autoconf_works" >&6; } |
476e7d78 RM |
5168 | test $libc_cv_autoconf_works = yes || AUTOCONF=no |
5169 | ;; | |
5170 | esac | |
5f69cd2f | 5171 | if test "x$AUTOCONF" = xno; then |
476e7d78 | 5172 | aux_missing="$aux_missing autoconf" |
c4d23330 RM |
5173 | fi |
5174 | ||
4a531bb0 | 5175 | test -n "$critic_missing" && as_fn_error $? " |
32a448ed | 5176 | *** These critical programs are missing or too old:$critic_missing |
b08c89d9 | 5177 | *** Check the INSTALL file for required versions." "$LINENO" 5 |
32a448ed | 5178 | |
b08c89d9 | 5179 | test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
9c6fffc0 | 5180 | *** These auxiliary programs are missing or incompatible versions:$aux_missing |
ea9f119b | 5181 | *** some features will be disabled. |
3a12e572 | 5182 | *** Check the INSTALL file for required versions." >&5 |
322e23db | 5183 | $as_echo "$as_me: WARNING: |
3a12e572 UD |
5184 | *** These auxiliary programs are missing or incompatible versions:$aux_missing |
5185 | *** some features will be disabled. | |
5186 | *** Check the INSTALL file for required versions." >&2;} | |
ea9f119b | 5187 | |
3c720987 UD |
5188 | # if using special system headers, find out the compiler's sekrit |
5189 | # header directory and add that to the list. NOTE: Only does the right | |
5190 | # thing on a system that doesn't need fixincludes. (Not presently a problem.) | |
5191 | if test -n "$sysheaders"; then | |
67fbfa5c RM |
5192 | SYSINCLUDES=-nostdinc |
5193 | for d in include include-fixed; do | |
22dca1ea | 5194 | i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" && |
67fbfa5c RM |
5195 | SYSINCLUDES="$SYSINCLUDES -isystem $i" |
5196 | done | |
5197 | SYSINCLUDES="$SYSINCLUDES \ | |
3d6ce23a | 5198 | -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" |
ef226fec | 5199 | if test -n "$CXX"; then |
7872cfb0 | 5200 | CXX_SYSINCLUDES= |
67060746 AC |
5201 | for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \ |
5202 | | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do | |
5203 | test "x$cxxheaders" != x && | |
5204 | CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders" | |
5205 | done | |
ef226fec | 5206 | fi |
3c720987 UD |
5207 | fi |
5208 | ||
5209 | ||
ef226fec | 5210 | |
3911660e UD |
5211 | # Test if LD_LIBRARY_PATH contains the notation for the current directory |
5212 | # since this would lead to problems installing/building glibc. | |
5213 | # LD_LIBRARY_PATH contains the current directory if one of the following | |
5214 | # is true: | |
5215 | # - one of the terminals (":" and ";") is the first or last sign | |
5216 | # - two terminals occur directly after each other | |
5217 | # - the path contains an element with a dot in it | |
b08c89d9 | 5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5 |
322e23db | 5219 | $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; } |
3911660e UD |
5220 | case ${LD_LIBRARY_PATH} in |
5221 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
b3a86ae1 | 5222 | ld_library_path_setting="contains current directory" |
3911660e UD |
5223 | ;; |
5224 | *) | |
5225 | ld_library_path_setting="ok" | |
5226 | ;; | |
5227 | esac | |
b08c89d9 | 5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5 |
322e23db | 5229 | $as_echo "$ld_library_path_setting" >&6; } |
3911660e | 5230 | if test "$ld_library_path_setting" != "ok"; then |
4a531bb0 | 5231 | as_fn_error $? " |
3a12e572 UD |
5232 | *** LD_LIBRARY_PATH shouldn't contain the current directory when |
5233 | *** building glibc. Please change the environment variable | |
b08c89d9 | 5234 | *** and run configure again." "$LINENO" 5 |
3911660e UD |
5235 | fi |
5236 | ||
b08c89d9 | 5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -static-libgcc" >&5 |
322e23db | 5238 | $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; } |
f318beb8 | 5239 | if ${libc_cv_gcc_static_libgcc+:} false; then : |
322e23db | 5240 | $as_echo_n "(cached) " >&6 |
74bd2300 | 5241 | else |
8175a253 | 5242 | if $CC -v -static-libgcc 2>&1 | grep 'unrecognized option.*static-libgcc' >/dev/null; then |
74bd2300 UD |
5243 | libc_cv_gcc_static_libgcc= |
5244 | else | |
5245 | libc_cv_gcc_static_libgcc=-static-libgcc | |
5246 | fi | |
5247 | fi | |
b08c89d9 | 5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_static_libgcc" >&5 |
322e23db | 5249 | $as_echo "$libc_cv_gcc_static_libgcc" >&6; } |
74bd2300 UD |
5250 | |
5251 | ||
cd6ede75 UD |
5252 | # Extract the first word of "bash", so it can be a program name with args. |
5253 | set dummy bash; ac_word=$2 | |
b08c89d9 | 5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 5255 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 5256 | if ${ac_cv_path_BASH_SHELL+:} false; then : |
322e23db | 5257 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 5258 | else |
26f56c1c | 5259 | case $BASH_SHELL in |
3a12e572 | 5260 | [\\/]* | ?:[\\/]*) |
26f56c1c | 5261 | ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path. |
cd6ede75 UD |
5262 | ;; |
5263 | *) | |
3a12e572 UD |
5264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5265 | for as_dir in $PATH | |
5266 | do | |
5267 | IFS=$as_save_IFS | |
5268 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 5269 | for ac_exec_ext in '' $ac_executable_extensions; do |
26f56c1c UD |
5270 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5271 | ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext" | |
b08c89d9 | 5272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5273 | break 2 |
5274 | fi | |
5275 | done | |
b08c89d9 | 5276 | done |
26f56c1c | 5277 | IFS=$as_save_IFS |
3a12e572 | 5278 | |
26f56c1c | 5279 | test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no" |
cd6ede75 UD |
5280 | ;; |
5281 | esac | |
5282 | fi | |
26f56c1c UD |
5283 | BASH_SHELL=$ac_cv_path_BASH_SHELL |
5284 | if test -n "$BASH_SHELL"; then | |
b08c89d9 | 5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5 |
322e23db | 5286 | $as_echo "$BASH_SHELL" >&6; } |
cd6ede75 | 5287 | else |
b08c89d9 | 5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 5289 | $as_echo "no" >&6; } |
cd6ede75 UD |
5290 | fi |
5291 | ||
26f56c1c UD |
5292 | |
5293 | if test "$BASH_SHELL" != no && | |
5294 | $BASH_SHELL -c 'test "$BASH_VERSINFO" \ | |
6973fc01 | 5295 | && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then |
cd6ede75 UD |
5296 | libc_cv_have_bash2=yes |
5297 | else | |
5298 | libc_cv_have_bash2=no | |
5299 | fi | |
5300 | ||
5301 | ||
26f56c1c | 5302 | if test "$BASH_SHELL" = no; then |
cd6ede75 UD |
5303 | # Extract the first word of "ksh", so it can be a program name with args. |
5304 | set dummy ksh; ac_word=$2 | |
b08c89d9 | 5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 5306 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 5307 | if ${ac_cv_path_KSH+:} false; then : |
322e23db | 5308 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 5309 | else |
3a12e572 UD |
5310 | case $KSH in |
5311 | [\\/]* | ?:[\\/]*) | |
cd6ede75 UD |
5312 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. |
5313 | ;; | |
5314 | *) | |
3a12e572 UD |
5315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5316 | for as_dir in $PATH | |
5317 | do | |
5318 | IFS=$as_save_IFS | |
5319 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 5320 | for ac_exec_ext in '' $ac_executable_extensions; do |
26f56c1c | 5321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3a12e572 | 5322 | ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext" |
b08c89d9 | 5323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5324 | break 2 |
5325 | fi | |
5326 | done | |
b08c89d9 | 5327 | done |
26f56c1c | 5328 | IFS=$as_save_IFS |
3a12e572 | 5329 | |
cd6ede75 UD |
5330 | test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no" |
5331 | ;; | |
5332 | esac | |
5333 | fi | |
3a12e572 | 5334 | KSH=$ac_cv_path_KSH |
cd6ede75 | 5335 | if test -n "$KSH"; then |
b08c89d9 | 5336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSH" >&5 |
322e23db | 5337 | $as_echo "$KSH" >&6; } |
cd6ede75 | 5338 | else |
b08c89d9 | 5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 5340 | $as_echo "no" >&6; } |
cd6ede75 UD |
5341 | fi |
5342 | ||
26f56c1c | 5343 | |
cd6ede75 UD |
5344 | if test "$KSH" = no; then |
5345 | libc_cv_have_ksh=no | |
5346 | else | |
5347 | libc_cv_have_ksh=yes | |
5348 | fi | |
5349 | else | |
26f56c1c | 5350 | KSH="$BASH_SHELL" |
3a12e572 | 5351 | |
cd6ede75 UD |
5352 | libc_cv_have_ksh=yes |
5353 | fi | |
5354 | ||
5355 | ||
c0016081 UD |
5356 | # Extract the first word of "perl", so it can be a program name with args. |
5357 | set dummy perl; ac_word=$2 | |
b08c89d9 | 5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 5359 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 5360 | if ${ac_cv_path_PERL+:} false; then : |
322e23db | 5361 | $as_echo_n "(cached) " >&6 |
a2b08ee5 | 5362 | else |
3a12e572 UD |
5363 | case $PERL in |
5364 | [\\/]* | ?:[\\/]*) | |
a2b08ee5 UD |
5365 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
5366 | ;; | |
5367 | *) | |
3a12e572 UD |
5368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5369 | for as_dir in $PATH | |
5370 | do | |
5371 | IFS=$as_save_IFS | |
5372 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 5373 | for ac_exec_ext in '' $ac_executable_extensions; do |
26f56c1c | 5374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3a12e572 | 5375 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
b08c89d9 | 5376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5377 | break 2 |
5378 | fi | |
5379 | done | |
b08c89d9 | 5380 | done |
26f56c1c | 5381 | IFS=$as_save_IFS |
3a12e572 | 5382 | |
c0016081 | 5383 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" |
a2b08ee5 UD |
5384 | ;; |
5385 | esac | |
5386 | fi | |
3a12e572 | 5387 | PERL=$ac_cv_path_PERL |
a2b08ee5 | 5388 | if test -n "$PERL"; then |
b08c89d9 | 5389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
322e23db | 5390 | $as_echo "$PERL" >&6; } |
a2b08ee5 | 5391 | else |
b08c89d9 | 5392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 5393 | $as_echo "no" >&6; } |
a2b08ee5 UD |
5394 | fi |
5395 | ||
26f56c1c | 5396 | |
2fd5d029 RM |
5397 | if test "$PERL" != no && |
5398 | (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then | |
5399 | PERL=no | |
fc304e02 | 5400 | fi |
c0016081 UD |
5401 | # Extract the first word of "install-info", so it can be a program name with args. |
5402 | set dummy install-info; ac_word=$2 | |
b08c89d9 | 5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 5404 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 5405 | if ${ac_cv_path_INSTALL_INFO+:} false; then : |
322e23db | 5406 | $as_echo_n "(cached) " >&6 |
c0016081 | 5407 | else |
3a12e572 UD |
5408 | case $INSTALL_INFO in |
5409 | [\\/]* | ?:[\\/]*) | |
c0016081 UD |
5410 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
5411 | ;; | |
5412 | *) | |
3a12e572 | 5413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f4b07664 RM |
5414 | as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" |
5415 | for as_dir in $as_dummy | |
3a12e572 UD |
5416 | do |
5417 | IFS=$as_save_IFS | |
5418 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 5419 | for ac_exec_ext in '' $ac_executable_extensions; do |
26f56c1c | 5420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3a12e572 | 5421 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
b08c89d9 | 5422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5423 | break 2 |
5424 | fi | |
5425 | done | |
b08c89d9 | 5426 | done |
26f56c1c | 5427 | IFS=$as_save_IFS |
3a12e572 | 5428 | |
c0016081 UD |
5429 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" |
5430 | ;; | |
5431 | esac | |
5432 | fi | |
3a12e572 | 5433 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
c0016081 | 5434 | if test -n "$INSTALL_INFO"; then |
b08c89d9 | 5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
322e23db | 5436 | $as_echo "$INSTALL_INFO" >&6; } |
c0016081 | 5437 | else |
b08c89d9 | 5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 5439 | $as_echo "no" >&6; } |
c0016081 UD |
5440 | fi |
5441 | ||
26f56c1c | 5442 | |
ae113383 UD |
5443 | # Extract the first word of "bison", so it can be a program name with args. |
5444 | set dummy bison; ac_word=$2 | |
b08c89d9 | 5445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 5446 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 5447 | if ${ac_cv_path_BISON+:} false; then : |
322e23db | 5448 | $as_echo_n "(cached) " >&6 |
ae113383 | 5449 | else |
3a12e572 UD |
5450 | case $BISON in |
5451 | [\\/]* | ?:[\\/]*) | |
ae113383 UD |
5452 | ac_cv_path_BISON="$BISON" # Let the user override the test with a path. |
5453 | ;; | |
ae113383 | 5454 | *) |
3a12e572 | 5455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f4b07664 RM |
5456 | as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin" |
5457 | for as_dir in $as_dummy | |
3a12e572 UD |
5458 | do |
5459 | IFS=$as_save_IFS | |
5460 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 5461 | for ac_exec_ext in '' $ac_executable_extensions; do |
26f56c1c | 5462 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3a12e572 | 5463 | ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" |
b08c89d9 | 5464 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5465 | break 2 |
5466 | fi | |
5467 | done | |
b08c89d9 | 5468 | done |
26f56c1c | 5469 | IFS=$as_save_IFS |
3a12e572 | 5470 | |
ae113383 UD |
5471 | test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no" |
5472 | ;; | |
5473 | esac | |
5474 | fi | |
3a12e572 | 5475 | BISON=$ac_cv_path_BISON |
ae113383 | 5476 | if test -n "$BISON"; then |
b08c89d9 | 5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
322e23db | 5478 | $as_echo "$BISON" >&6; } |
ae113383 | 5479 | else |
b08c89d9 | 5480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 5481 | $as_echo "no" >&6; } |
ae113383 UD |
5482 | fi |
5483 | ||
5484 | ||
26f56c1c | 5485 | |
b08c89d9 | 5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libc-friendly stddef.h" >&5 |
322e23db | 5487 | $as_echo_n "checking for libc-friendly stddef.h... " >&6; } |
f318beb8 | 5488 | if ${libc_cv_friendly_stddef+:} false; then : |
322e23db | 5489 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 5490 | else |
b08c89d9 | 5491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2abf9ff1 | 5492 | /* end confdefs.h. */ |
cd6ede75 UD |
5493 | #define __need_size_t |
5494 | #define __need_wchar_t | |
5495 | #include <stddef.h> | |
5496 | #define __need_NULL | |
5497 | #include <stddef.h> | |
3a12e572 UD |
5498 | int |
5499 | main () | |
5500 | { | |
cd6ede75 UD |
5501 | size_t size; wchar_t wchar; |
5502 | #ifdef offsetof | |
5503 | #error stddef.h ignored __need_* | |
5504 | #endif | |
5505 | if (&size == NULL || &wchar == NULL) abort (); | |
3a12e572 UD |
5506 | ; |
5507 | return 0; | |
5508 | } | |
5509 | _ACEOF | |
b08c89d9 | 5510 | if ac_fn_c_try_compile "$LINENO"; then : |
cd6ede75 UD |
5511 | libc_cv_friendly_stddef=yes |
5512 | else | |
b08c89d9 | 5513 | libc_cv_friendly_stddef=no |
cd6ede75 | 5514 | fi |
26f56c1c | 5515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
cd6ede75 | 5516 | fi |
b08c89d9 | 5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_friendly_stddef" >&5 |
322e23db | 5518 | $as_echo "$libc_cv_friendly_stddef" >&6; } |
cd6ede75 UD |
5519 | if test $libc_cv_friendly_stddef = yes; then |
5520 | config_vars="$config_vars | |
5521 | override stddef.h = # The installed <stddef.h> seems to be libc-friendly." | |
5522 | fi | |
5523 | ||
b08c89d9 | 5524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to use -P to assemble .S files" >&5 |
322e23db | 5525 | $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; } |
f318beb8 | 5526 | if ${libc_cv_need_minus_P+:} false; then : |
322e23db | 5527 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
5528 | else |
5529 | cat > conftest.S <<EOF | |
5530 | #include "confdefs.h" | |
5531 | /* Nothing whatsoever. */ | |
5532 | EOF | |
3217788f | 5533 | if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5' |
b08c89d9 | 5534 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
61cea1c3 RM |
5535 | (eval $ac_try) 2>&5 |
5536 | ac_status=$? | |
b08c89d9 UD |
5537 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5538 | test $ac_status = 0; }; }; then | |
cd6ede75 UD |
5539 | libc_cv_need_minus_P=no |
5540 | else | |
5541 | libc_cv_need_minus_P=yes | |
5542 | fi | |
5543 | rm -f conftest* | |
5544 | fi | |
b08c89d9 | 5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_need_minus_P" >&5 |
322e23db | 5546 | $as_echo "$libc_cv_need_minus_P" >&6; } |
cd6ede75 UD |
5547 | if test $libc_cv_need_minus_P = yes; then |
5548 | config_vars="$config_vars | |
5549 | asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives." | |
5550 | fi | |
5551 | ||
b08c89d9 | 5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5 |
322e23db | 5553 | $as_echo_n "checking for .set assembler directive... " >&6; } |
f318beb8 | 5554 | if ${libc_cv_asm_set_directive+:} false; then : |
322e23db | 5555 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
5556 | else |
5557 | cat > conftest.s <<EOF | |
2293395f | 5558 | ${libc_cv_dot_text} |
cd6ede75 UD |
5559 | foo: |
5560 | .set glibc_conftest_frobozz,foo | |
7b8e0d49 | 5561 | .globl glibc_conftest_frobozz |
cd6ede75 UD |
5562 | EOF |
5563 | # The alpha-dec-osf1 assembler gives only a warning for `.set' | |
5564 | # (but it doesn't work), so we must do a linking check to be sure. | |
5565 | cat > conftest1.c <<\EOF | |
5566 | extern int glibc_conftest_frobozz; | |
640f0119 | 5567 | void _start() { glibc_conftest_frobozz = 1; } |
cd6ede75 UD |
5568 | EOF |
5569 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
640f0119 | 5570 | -nostartfiles -nostdlib \ |
cd6ede75 UD |
5571 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then |
5572 | libc_cv_asm_set_directive=yes | |
5573 | else | |
5574 | libc_cv_asm_set_directive=no | |
5575 | fi | |
5576 | rm -f conftest* | |
5577 | fi | |
b08c89d9 | 5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5 |
322e23db | 5579 | $as_echo "$libc_cv_asm_set_directive" >&6; } |
cd6ede75 | 5580 | if test $libc_cv_asm_set_directive = yes; then |
b08c89d9 | 5581 | $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h |
cd6ede75 UD |
5582 | |
5583 | fi | |
5584 | ||
b08c89d9 | 5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_unique_object symbol type" >&5 |
415ac3df | 5586 | $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; } |
f318beb8 | 5587 | if ${libc_cv_asm_unique_object+:} false; then : |
415ac3df UD |
5588 | $as_echo_n "(cached) " >&6 |
5589 | else | |
5590 | cat > conftest.s <<EOF | |
5591 | ${libc_cv_dot_text} | |
5592 | _sym: | |
b67e9372 | 5593 | .type _sym, %gnu_unique_object |
415ac3df UD |
5594 | EOF |
5595 | if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then | |
5596 | libc_cv_asm_unique_object=yes | |
5597 | else | |
5598 | libc_cv_asm_unique_object=no | |
5599 | fi | |
5600 | rm -f conftest* | |
5601 | fi | |
b08c89d9 | 5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_unique_object" >&5 |
415ac3df UD |
5603 | $as_echo "$libc_cv_asm_unique_object" >&6; } |
5604 | if test $libc_cv_asm_unique_object = yes; then | |
b08c89d9 | 5605 | $as_echo "#define HAVE_ASM_UNIQUE_OBJECT 1" >>confdefs.h |
415ac3df UD |
5606 | |
5607 | fi | |
5608 | ||
b08c89d9 | 5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .symver assembler directive" >&5 |
322e23db | 5610 | $as_echo_n "checking for .symver assembler directive... " >&6; } |
f318beb8 | 5611 | if ${libc_cv_asm_symver_directive+:} false; then : |
322e23db | 5612 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
5613 | else |
5614 | cat > conftest.s <<EOF | |
2293395f | 5615 | ${libc_cv_dot_text} |
cd6ede75 UD |
5616 | _sym: |
5617 | .symver _sym,sym@VERS | |
5618 | EOF | |
3217788f | 5619 | if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then |
cd6ede75 UD |
5620 | libc_cv_asm_symver_directive=yes |
5621 | else | |
5622 | libc_cv_asm_symver_directive=no | |
5623 | fi | |
5624 | rm -f conftest* | |
5625 | fi | |
b08c89d9 | 5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_symver_directive" >&5 |
322e23db | 5627 | $as_echo "$libc_cv_asm_symver_directive" >&6; } |
b08c89d9 | 5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5 |
322e23db | 5629 | $as_echo_n "checking for ld --version-script... " >&6; } |
f318beb8 | 5630 | if ${libc_cv_ld_version_script_option+:} false; then : |
322e23db | 5631 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
5632 | else |
5633 | if test $libc_cv_asm_symver_directive = yes; then | |
5634 | cat > conftest.s <<EOF | |
2293395f | 5635 | ${libc_cv_dot_text} |
cd6ede75 UD |
5636 | _sym: |
5637 | .symver _sym,sym@VERS | |
5638 | EOF | |
5639 | cat > conftest.map <<EOF | |
f43ce637 | 5640 | VERS_1 { |
cd6ede75 UD |
5641 | global: sym; |
5642 | }; | |
f43ce637 UD |
5643 | |
5644 | VERS_2 { | |
77e8bddf | 5645 | global: sym; |
f43ce637 | 5646 | } VERS_1; |
cd6ede75 | 5647 | EOF |
3217788f RM |
5648 | if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then |
5649 | if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared | |
5650 | -o conftest.so conftest.o | |
5651 | -nostartfiles -nostdlib | |
5652 | -Wl,--version-script,conftest.map | |
3a12e572 | 5653 | 1>&5' |
b08c89d9 | 5654 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
5655 | (eval $ac_try) 2>&5 |
5656 | ac_status=$? | |
b08c89d9 UD |
5657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5658 | test $ac_status = 0; }; }; | |
cd6ede75 UD |
5659 | then |
5660 | libc_cv_ld_version_script_option=yes | |
5661 | else | |
5662 | libc_cv_ld_version_script_option=no | |
5663 | fi | |
5664 | else | |
5665 | libc_cv_ld_version_script_option=no | |
5666 | fi | |
5667 | else | |
5668 | libc_cv_ld_version_script_option=no | |
5669 | fi | |
5670 | rm -f conftest* | |
5671 | fi | |
b08c89d9 | 5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_version_script_option" >&5 |
322e23db | 5673 | $as_echo "$libc_cv_ld_version_script_option" >&6; } |
7499a22a RM |
5674 | if test $shared != no && |
5675 | test $libc_cv_asm_symver_directive = yes && | |
650425ce UD |
5676 | test $libc_cv_ld_version_script_option = yes && |
5677 | test $enable_versioning = yes; then | |
cd6ede75 | 5678 | VERSIONING=yes |
b08c89d9 | 5679 | $as_echo "#define DO_VERSIONING 1" >>confdefs.h |
cd6ede75 UD |
5680 | |
5681 | else | |
5682 | VERSIONING=no | |
5683 | fi | |
5684 | ||
5685 | ||
a0da5fe1 | 5686 | if test $shared != no && test $VERSIONING = no; then |
f43ce637 | 5687 | echo "\ |
f4017d20 | 5688 | *** WARNING: You should not compile GNU libc without versioning. Not using |
f43ce637 UD |
5689 | *** versioning will introduce incompatibilities so that old binaries |
5690 | *** will not run anymore. | |
08a0d60a | 5691 | *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)." |
f43ce637 | 5692 | fi |
a0da5fe1 | 5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .previous assembler directive" >&5 |
322e23db | 5694 | $as_echo_n "checking for .previous assembler directive... " >&6; } |
f318beb8 | 5695 | if ${libc_cv_asm_previous_directive+:} false; then : |
322e23db | 5696 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 5697 | else |
a0da5fe1 | 5698 | cat > conftest.s <<EOF |
cd6ede75 UD |
5699 | .section foo_section |
5700 | .previous | |
5701 | EOF | |
a0da5fe1 | 5702 | if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' |
b08c89d9 | 5703 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
5704 | (eval $ac_try) 2>&5 |
5705 | ac_status=$? | |
b08c89d9 UD |
5706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5707 | test $ac_status = 0; }; }; then | |
a0da5fe1 UD |
5708 | libc_cv_asm_previous_directive=yes |
5709 | else | |
5710 | libc_cv_asm_previous_directive=no | |
5711 | fi | |
5712 | rm -f conftest* | |
cd6ede75 | 5713 | fi |
b08c89d9 | 5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_previous_directive" >&5 |
322e23db | 5715 | $as_echo "$libc_cv_asm_previous_directive" >&6; } |
a0da5fe1 UD |
5716 | if test $libc_cv_asm_previous_directive = yes; then |
5717 | $as_echo "#define HAVE_ASM_PREVIOUS_DIRECTIVE 1" >>confdefs.h | |
cd6ede75 | 5718 | |
a0da5fe1 UD |
5719 | else |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .popsection assembler directive" >&5 | |
322e23db | 5721 | $as_echo_n "checking for .popsection assembler directive... " >&6; } |
f318beb8 | 5722 | if ${libc_cv_asm_popsection_directive+:} false; then : |
322e23db | 5723 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 5724 | else |
a0da5fe1 | 5725 | cat > conftest.s <<EOF |
cd6ede75 UD |
5726 | .pushsection foo_section |
5727 | .popsection | |
5728 | EOF | |
a0da5fe1 | 5729 | if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' |
b08c89d9 | 5730 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
5731 | (eval $ac_try) 2>&5 |
5732 | ac_status=$? | |
b08c89d9 UD |
5733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5734 | test $ac_status = 0; }; }; then | |
a0da5fe1 UD |
5735 | libc_cv_asm_popsection_directive=yes |
5736 | else | |
5737 | libc_cv_asm_popsection_directive=no | |
5738 | fi | |
5739 | rm -f conftest* | |
cd6ede75 | 5740 | fi |
b08c89d9 | 5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_popsection_directive" >&5 |
322e23db | 5742 | $as_echo "$libc_cv_asm_popsection_directive" >&6; } |
a0da5fe1 UD |
5743 | if test $libc_cv_asm_popsection_directive = yes; then |
5744 | $as_echo "#define HAVE_ASM_POPSECTION_DIRECTIVE 1" >>confdefs.h | |
cd6ede75 | 5745 | |
cd6ede75 | 5746 | fi |
a0da5fe1 UD |
5747 | fi |
5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .protected and .hidden assembler directive" >&5 | |
322e23db | 5749 | $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; } |
f318beb8 | 5750 | if ${libc_cv_asm_protected_directive+:} false; then : |
322e23db | 5751 | $as_echo_n "(cached) " >&6 |
2d499f55 | 5752 | else |
a0da5fe1 | 5753 | cat > conftest.s <<EOF |
2d499f55 UD |
5754 | .protected foo |
5755 | foo: | |
5756 | .hidden bar | |
5757 | bar: | |
5758 | EOF | |
a0da5fe1 | 5759 | if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' |
b08c89d9 | 5760 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
5761 | (eval $ac_try) 2>&5 |
5762 | ac_status=$? | |
b08c89d9 UD |
5763 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5764 | test $ac_status = 0; }; }; then | |
a0da5fe1 UD |
5765 | libc_cv_asm_protected_directive=yes |
5766 | else | |
5767 | as_fn_error $? "assembler support for symbol visibility is required" "$LINENO" 5 | |
5768 | fi | |
5769 | rm -f conftest* | |
2d499f55 | 5770 | fi |
b08c89d9 | 5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_protected_directive" >&5 |
322e23db | 5772 | $as_echo "$libc_cv_asm_protected_directive" >&6; } |
2d499f55 | 5773 | |
a0da5fe1 UD |
5774 | if test $libc_cv_asm_protected_directive = yes; then |
5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5 | |
322e23db | 5776 | $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; } |
f318beb8 | 5777 | if ${libc_cv_visibility_attribute+:} false; then : |
322e23db | 5778 | $as_echo_n "(cached) " >&6 |
0d01dace UD |
5779 | else |
5780 | cat > conftest.c <<EOF | |
5781 | int foo __attribute__ ((visibility ("hidden"))) = 1; | |
5782 | int bar __attribute__ ((visibility ("protected"))) = 1; | |
5783 | EOF | |
5784 | libc_cv_visibility_attribute=no | |
61cea1c3 | 5785 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' |
b08c89d9 | 5786 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
61cea1c3 RM |
5787 | (eval $ac_try) 2>&5 |
5788 | ac_status=$? | |
b08c89d9 UD |
5789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5790 | test $ac_status = 0; }; }; then | |
0d01dace UD |
5791 | if grep '\.hidden.*foo' conftest.s >/dev/null; then |
5792 | if grep '\.protected.*bar' conftest.s >/dev/null; then | |
5793 | libc_cv_visibility_attribute=yes | |
5794 | fi | |
5795 | fi | |
5796 | fi | |
f7d82dc9 | 5797 | rm -f conftest.{c,s} |
0d01dace | 5798 | |
3a12e572 | 5799 | fi |
b08c89d9 | 5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5 |
322e23db | 5801 | $as_echo "$libc_cv_visibility_attribute" >&6; } |
a0da5fe1 UD |
5802 | if test $libc_cv_visibility_attribute != yes; then |
5803 | as_fn_error $? "compiler support for visibility attribute is required" "$LINENO" 5 | |
0d01dace | 5804 | fi |
a0da5fe1 | 5805 | fi |
0d01dace | 5806 | |
a0da5fe1 UD |
5807 | if test $libc_cv_visibility_attribute = yes; then |
5808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((visibility()))" >&5 | |
322e23db | 5809 | $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; } |
f318beb8 | 5810 | if ${libc_cv_broken_visibility_attribute+:} false; then : |
322e23db | 5811 | $as_echo_n "(cached) " >&6 |
37ba7d66 UD |
5812 | else |
5813 | cat > conftest.c <<EOF | |
5814 | int foo (int x); | |
5815 | int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden"))); | |
5816 | int bar (int x) { return x; } | |
5817 | EOF | |
5818 | libc_cv_broken_visibility_attribute=yes | |
f7d82dc9 | 5819 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' |
b08c89d9 | 5820 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
61cea1c3 RM |
5821 | (eval $ac_try) 2>&5 |
5822 | ac_status=$? | |
b08c89d9 UD |
5823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5824 | test $ac_status = 0; }; }; then | |
37ba7d66 UD |
5825 | if grep '\.hidden[ _]foo' conftest.s >/dev/null; then |
5826 | libc_cv_broken_visibility_attribute=no | |
5827 | fi | |
5828 | fi | |
5829 | rm -f conftest.c conftest.s | |
37ba7d66 | 5830 | |
3a12e572 | 5831 | fi |
b08c89d9 | 5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_visibility_attribute" >&5 |
322e23db | 5833 | $as_echo "$libc_cv_broken_visibility_attribute" >&6; } |
a0da5fe1 UD |
5834 | if test $libc_cv_broken_visibility_attribute = yes; then |
5835 | as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5 | |
37ba7d66 | 5836 | fi |
a0da5fe1 | 5837 | fi |
37ba7d66 | 5838 | |
a0da5fe1 | 5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5 |
322e23db | 5840 | $as_echo_n "checking for broken __attribute__((alias()))... " >&6; } |
f318beb8 | 5841 | if ${libc_cv_broken_alias_attribute+:} false; then : |
322e23db | 5842 | $as_echo_n "(cached) " >&6 |
37ba7d66 UD |
5843 | else |
5844 | cat > conftest.c <<EOF | |
a0da5fe1 UD |
5845 | extern int foo (int x) __asm ("xyzzy"); |
5846 | int bar (int x) { return x; } | |
5847 | extern __typeof (bar) foo __attribute ((weak, alias ("bar"))); | |
5848 | extern int dfoo; | |
5849 | extern __typeof (dfoo) dfoo __asm ("abccb"); | |
5850 | int dfoo = 1; | |
37ba7d66 | 5851 | EOF |
a0da5fe1 UD |
5852 | libc_cv_broken_alias_attribute=yes |
5853 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' | |
b08c89d9 | 5854 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
61cea1c3 RM |
5855 | (eval $ac_try) 2>&5 |
5856 | ac_status=$? | |
b08c89d9 UD |
5857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5858 | test $ac_status = 0; }; }; then | |
a0da5fe1 UD |
5859 | if grep 'xyzzy' conftest.s >/dev/null && |
5860 | grep 'abccb' conftest.s >/dev/null; then | |
5861 | libc_cv_broken_alias_attribute=no | |
5862 | fi | |
5863 | fi | |
5864 | rm -f conftest.c conftest.s | |
37ba7d66 | 5865 | |
3a12e572 | 5866 | fi |
b08c89d9 | 5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5 |
322e23db | 5868 | $as_echo "$libc_cv_broken_alias_attribute" >&6; } |
a0da5fe1 UD |
5869 | if test $libc_cv_broken_alias_attribute = yes; then |
5870 | as_fn_error $? "working alias attribute support required" "$LINENO" 5 | |
5871 | fi | |
37ba7d66 | 5872 | |
a0da5fe1 UD |
5873 | if test $libc_cv_visibility_attribute = yes; then |
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5 | |
322e23db | 5875 | $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; } |
f318beb8 | 5876 | if ${libc_cv_have_sdata_section+:} false; then : |
322e23db | 5877 | $as_echo_n "(cached) " >&6 |
0d01dace UD |
5878 | else |
5879 | echo "int i;" > conftest.c | |
5880 | libc_cv_have_sdata_section=no | |
dbc92dc6 | 5881 | if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \ |
0d01dace UD |
5882 | | grep '\.sdata' >/dev/null; then |
5883 | libc_cv_have_sdata_section=yes | |
5884 | fi | |
5885 | rm -f conftest.c conftest.so | |
0d01dace | 5886 | |
3a12e572 | 5887 | fi |
b08c89d9 | 5888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5 |
322e23db | 5889 | $as_echo "$libc_cv_have_sdata_section" >&6; } |
a0da5fe1 UD |
5890 | if test $libc_cv_have_sdata_section = yes; then |
5891 | $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h | |
0d01dace | 5892 | |
0d01dace | 5893 | fi |
a0da5fe1 | 5894 | fi |
0d01dace | 5895 | |
a0da5fe1 | 5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5 |
322e23db | 5897 | $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; } |
f318beb8 | 5898 | if ${libc_cv_initfini_array+:} false; then : |
322e23db | 5899 | $as_echo_n "(cached) " >&6 |
2c617417 | 5900 | else |
a0da5fe1 | 5901 | cat > conftest.c <<EOF |
2c617417 UD |
5902 | int _start (void) { return 0; } |
5903 | int __start (void) { return 0; } | |
07037eeb | 5904 | |
2c617417 UD |
5905 | int foo (void) { return 1; } |
5906 | int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; | |
07037eeb | 5907 | |
2c617417 | 5908 | EOF |
07037eeb JM |
5909 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest |
5910 | conftest.c -static -nostartfiles -nostdlib | |
5911 | 1>&5' | |
b08c89d9 | 5912 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
5913 | (eval $ac_try) 2>&5 |
5914 | ac_status=$? | |
b08c89d9 | 5915 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
07037eeb | 5916 | test $ac_status = 0; }; }; then : |
a0da5fe1 UD |
5917 | if $READELF -S conftest | fgrep INIT_ARRAY > /dev/null; then |
5918 | libc_cv_initfini_array=yes | |
2c617417 | 5919 | else |
ce33ee7c | 5920 | libc_cv_initfini_array=no |
2c617417 | 5921 | fi |
a0da5fe1 UD |
5922 | else |
5923 | libc_cv_initfini_array=no | |
5924 | fi | |
5925 | rm -f conftest* | |
07037eeb | 5926 | |
2c617417 | 5927 | fi |
b08c89d9 | 5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfini_array" >&5 |
322e23db | 5929 | $as_echo "$libc_cv_initfini_array" >&6; } |
a0da5fe1 UD |
5930 | if test $libc_cv_initfini_array != yes; then |
5931 | as_fn_error $? "Need linker with .init_array/.fini_array support." "$LINENO" 5 | |
5932 | fi | |
62bede13 | 5933 | |
a0da5fe1 | 5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5 |
62bede13 | 5935 | $as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; } |
f318beb8 | 5936 | if ${libc_cv_ctors_header+:} false; then : |
62bede13 RM |
5937 | $as_echo_n "(cached) " >&6 |
5938 | else | |
a0da5fe1 | 5939 | libc_cv_ctors_header=yes |
07037eeb JM |
5940 | cat > conftest.c <<EOF |
5941 | int _start (void) { return 0; } | |
5942 | int __start (void) { return 0; } | |
113ddea4 | 5943 | |
07037eeb JM |
5944 | __attribute__ ((constructor)) void ctor (void) { asm (""); } |
5945 | __attribute__ ((destructor)) void dtor (void) { asm (""); } | |
113ddea4 | 5946 | |
07037eeb JM |
5947 | EOF |
5948 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest | |
5949 | conftest.c -static -nostartfiles -nostdlib | |
5950 | 1>&5' | |
5951 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5952 | (eval $ac_try) 2>&5 | |
5953 | ac_status=$? | |
5954 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5955 | test $ac_status = 0; }; }; then : | |
113ddea4 | 5956 | if $READELF -WS conftest$ac_exeext | $AWK ' |
5f69cd2f | 5957 | { gsub(/\[ */, "[") } |
113ddea4 RM |
5958 | $2 == ".ctors" || $2 == ".dtors" { |
5959 | size = strtonum("0x" $6) | |
5960 | align = strtonum("0x" $NF) | |
5961 | seen[$2] = 1 | |
5962 | stub[$2] = size == align * 2 | |
5f69cd2f | 5963 | } |
113ddea4 RM |
5964 | END { |
5965 | ctors_ok = !seen[".ctors"] || stub[".ctors"] | |
5966 | dtors_ok = !seen[".dtors"] || stub[".dtors"] | |
5967 | exit ((ctors_ok && dtors_ok) ? 0 : 1) | |
5968 | } | |
5969 | '; then : | |
5970 | libc_cv_ctors_header=no | |
5971 | fi | |
5972 | ||
5973 | else | |
5974 | as_fn_error $? "missing __attribute__ ((constructor)) support??" "$LINENO" 5 | |
5975 | ||
5976 | fi | |
07037eeb | 5977 | rm -f conftest* |
113ddea4 | 5978 | |
62bede13 RM |
5979 | fi |
5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5 | |
5981 | $as_echo "$libc_cv_ctors_header" >&6; } | |
a0da5fe1 UD |
5982 | if test $libc_cv_ctors_header = no; then |
5983 | $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h | |
4a531bb0 | 5984 | |
a0da5fe1 | 5985 | fi |
2c617417 | 5986 | |
a0da5fe1 | 5987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5 |
322e23db | 5988 | $as_echo_n "checking for libunwind-support in compiler... " >&6; } |
f318beb8 | 5989 | if ${libc_cv_cc_with_libunwind+:} false; then : |
322e23db | 5990 | $as_echo_n "(cached) " >&6 |
c776b3d7 | 5991 | else |
c776b3d7 | 5992 | |
a0da5fe1 | 5993 | cat > conftest.c <<EOF |
cbdb12de UD |
5994 | int main (void) { return 0; } |
5995 | EOF | |
a0da5fe1 | 5996 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \ |
8175a253 | 5997 | conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then |
a0da5fe1 UD |
5998 | libc_cv_cc_with_libunwind=yes |
5999 | else | |
6000 | libc_cv_cc_with_libunwind=no | |
6001 | fi | |
6002 | rm -f conftest* | |
c776b3d7 | 6003 | fi |
b08c89d9 | 6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5 |
322e23db | 6005 | $as_echo "$libc_cv_cc_with_libunwind" >&6; } |
c776b3d7 | 6006 | |
a0da5fe1 UD |
6007 | if test $libc_cv_cc_with_libunwind = yes; then |
6008 | $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h | |
c776b3d7 | 6009 | |
a0da5fe1 | 6010 | fi |
c776b3d7 | 6011 | |
6bfea974 L |
6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z nodelete" >&5 |
6013 | $as_echo_n "checking for linker that supports -z nodelete... " >&6; } | |
6014 | libc_linker_feature=no | |
6015 | if test x"$gnu_ld" = x"yes"; then | |
6016 | libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z nodelete"` | |
6017 | if test -n "$libc_linker_check"; then | |
6018 | cat > conftest.c <<EOF | |
2f54c82d UD |
6019 | int _start (void) { return 42; } |
6020 | EOF | |
6bfea974 L |
6021 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
6022 | -Wl,--enable-new-dtags,-z,nodelete -nostdlib -nostartfiles | |
6023 | -fPIC -shared -o conftest.so conftest.c | |
6024 | 1>&5' | |
b08c89d9 | 6025 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
6026 | (eval $ac_try) 2>&5 |
6027 | ac_status=$? | |
b08c89d9 UD |
6028 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6029 | test $ac_status = 0; }; } | |
6bfea974 L |
6030 | then |
6031 | libc_linker_feature=yes | |
6032 | fi | |
6033 | rm -f conftest* | |
6034 | fi | |
6035 | fi | |
6036 | if test $libc_linker_feature = yes; then | |
a0da5fe1 UD |
6037 | libc_cv_z_nodelete=yes |
6038 | else | |
6039 | as_fn_error $? "linker with -z nodelete support required" "$LINENO" 5 | |
6040 | fi | |
6bfea974 L |
6041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
6042 | $as_echo "$libc_linker_feature" >&6; } | |
2f54c82d | 6043 | |
6bfea974 L |
6044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z nodlopen" >&5 |
6045 | $as_echo_n "checking for linker that supports -z nodlopen... " >&6; } | |
6046 | libc_linker_feature=no | |
6047 | if test x"$gnu_ld" = x"yes"; then | |
6048 | libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z nodlopen"` | |
6049 | if test -n "$libc_linker_check"; then | |
6050 | cat > conftest.c <<EOF | |
2f54c82d UD |
6051 | int _start (void) { return 42; } |
6052 | EOF | |
6bfea974 L |
6053 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
6054 | -Wl,--enable-new-dtags,-z,nodlopen -nostdlib -nostartfiles | |
6055 | -fPIC -shared -o conftest.so conftest.c | |
6056 | 1>&5' | |
b08c89d9 | 6057 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
6058 | (eval $ac_try) 2>&5 |
6059 | ac_status=$? | |
b08c89d9 UD |
6060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6061 | test $ac_status = 0; }; } | |
6bfea974 L |
6062 | then |
6063 | libc_linker_feature=yes | |
6064 | fi | |
6065 | rm -f conftest* | |
6066 | fi | |
6067 | fi | |
6068 | if test $libc_linker_feature = yes; then | |
a0da5fe1 UD |
6069 | libc_cv_z_nodlopen=yes |
6070 | else | |
6071 | as_fn_error $? "linker with -z nodlopen support required" "$LINENO" 5 | |
6072 | fi | |
6bfea974 L |
6073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
6074 | $as_echo "$libc_linker_feature" >&6; } | |
2f54c82d | 6075 | |
6bfea974 L |
6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z initfirst" >&5 |
6077 | $as_echo_n "checking for linker that supports -z initfirst... " >&6; } | |
6078 | libc_linker_feature=no | |
6079 | if test x"$gnu_ld" = x"yes"; then | |
6080 | libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z initfirst"` | |
6081 | if test -n "$libc_linker_check"; then | |
6082 | cat > conftest.c <<EOF | |
5d916713 UD |
6083 | int _start (void) { return 42; } |
6084 | EOF | |
6bfea974 L |
6085 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
6086 | -Wl,--enable-new-dtags,-z,initfirst -nostdlib -nostartfiles | |
6087 | -fPIC -shared -o conftest.so conftest.c | |
6088 | 1>&5' | |
b08c89d9 | 6089 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
6090 | (eval $ac_try) 2>&5 |
6091 | ac_status=$? | |
b08c89d9 UD |
6092 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6093 | test $ac_status = 0; }; } | |
6bfea974 L |
6094 | then |
6095 | libc_linker_feature=yes | |
6096 | fi | |
6097 | rm -f conftest* | |
6098 | fi | |
6099 | fi | |
6100 | if test $libc_linker_feature = yes; then | |
a0da5fe1 UD |
6101 | libc_cv_z_initfirst=yes |
6102 | else | |
6103 | as_fn_error $? "linker with -z initfirst support required" "$LINENO" 5 | |
6104 | fi | |
6bfea974 L |
6105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
6106 | $as_echo "$libc_linker_feature" >&6; } | |
5d916713 | 6107 | |
a0da5fe1 UD |
6108 | # Add-on fragments can set these for other machines. |
6109 | libc_commonpagesize=${libc_commonpagesize:-no} | |
6110 | libc_relro_required=${libc_relro_required:-no} | |
6111 | case "$base_machine" in | |
6112 | i[34567]86 | x86_64 | powerpc* | s390*) | |
6113 | libc_commonpagesize=0x1000 | |
6114 | libc_relro_required=yes | |
6115 | ;; | |
6116 | sparc*) | |
6117 | libc_commonpagesize=0x2000 | |
6118 | libc_relro_required=yes | |
6119 | ;; | |
a0da5fe1 | 6120 | esac |
574920b4 | 6121 | |
a0da5fe1 UD |
6122 | if test $libc_commonpagesize != no; then |
6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z relro option" >&5 | |
322e23db | 6124 | $as_echo_n "checking for -z relro option... " >&6; } |
f318beb8 | 6125 | if ${libc_cv_z_relro+:} false; then : |
322e23db | 6126 | $as_echo_n "(cached) " >&6 |
ed20b3d9 | 6127 | else |
a0da5fe1 UD |
6128 | libc_cv_z_relro=no |
6129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
574920b4 RM |
6130 | /* end confdefs.h. */ |
6131 | ||
6132 | int _start (void) { return 42; } | |
6133 | extern void _exit (int); | |
9fa2c032 RM |
6134 | /* Since these pointers are const, they should go in rodata. |
6135 | Since they refer to functions that have to be resolved by | |
6136 | dynamic linking, they should instead go in RELRO data. */ | |
defe9061 | 6137 | const void *const relro[] = { &_start, &_exit, 0 }; |
9fa2c032 RM |
6138 | /* GNU ld fails to produce RELRO data when it's very small and there is no |
6139 | normal writable data following it, or if only uninitialized (.bss) data | |
6140 | follows it, or only very small writable data. */ | |
6141 | int data[0x10000] = { 1, }; | |
574920b4 RM |
6142 | |
6143 | _ACEOF | |
a0da5fe1 | 6144 | cat > conftest.awk <<\EOF |
574920b4 RM |
6145 | BEGIN { |
6146 | result = "no" | |
6147 | commonpagesize = strtonum(commonpagesize) | |
6148 | } | |
6149 | { print "LINE:", $0 > "/dev/stderr" } | |
6150 | $1 == "GNU_RELRO" { | |
6151 | vaddr = strtonum($3) | |
6152 | memsz = strtonum($6) | |
6153 | end = vaddr + memsz | |
6154 | printf "vaddr %#x memsz %#x end %#x commonpagesize %#x\n", \ | |
6155 | vaddr, memsz, end, commonpagesize > "/dev/stderr" | |
6156 | result = (end % commonpagesize == 0) ? "yes" : "broken" | |
6157 | } | |
6158 | END { print result } | |
6159 | EOF | |
a0da5fe1 | 6160 | { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
574920b4 RM |
6161 | -fPIC -shared -o conftest.so conftest.c |
6162 | -nostartfiles -nostdlib | |
6163 | -Wl,-z,relro 1>&5' | |
b08c89d9 | 6164 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
ed20b3d9 UD |
6165 | (eval $ac_try) 2>&5 |
6166 | ac_status=$? | |
b08c89d9 | 6167 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
574920b4 | 6168 | test $ac_status = 0; }; } && |
a0da5fe1 | 6169 | { ac_try='$READELF -Wl conftest.so > conftest.ph' |
b08c89d9 | 6170 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
54beacab UD |
6171 | (eval $ac_try) 2>&5 |
6172 | ac_status=$? | |
b08c89d9 | 6173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
574920b4 | 6174 | test $ac_status = 0; }; } && |
a0da5fe1 | 6175 | { ac_try=' |
574920b4 RM |
6176 | $AWK -v commonpagesize=$libc_commonpagesize -f conftest.awk |
6177 | conftest.ph > conftest.cps | |
6178 | ' | |
6179 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6180 | (eval $ac_try) 2>&5 | |
6181 | ac_status=$? | |
6182 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6183 | test $ac_status = 0; }; } && | |
a0da5fe1 UD |
6184 | libc_cv_z_relro=`cat conftest.cps 2>&5` |
6185 | rm -f conftest* | |
ed20b3d9 | 6186 | fi |
b08c89d9 | 6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_relro" >&5 |
322e23db | 6188 | $as_echo "$libc_cv_z_relro" >&6; } |
a0da5fe1 UD |
6189 | if { test "x$libc_relro_required" = xyes && |
6190 | test "x$libc_cv_z_relro" != xyes | |
6191 | } | |
6192 | then | |
6193 | as_fn_error $? "linker with -z relro support required" "$LINENO" 5 | |
574920b4 | 6194 | fi |
a0da5fe1 UD |
6195 | else |
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing architecture parameter to check for working -z relro" >&5 | |
6197 | $as_echo "$as_me: WARNING: missing architecture parameter to check for working -z relro" >&2;} | |
6198 | fi | |
ed20b3d9 | 6199 | |
a0da5fe1 | 6200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bgroup option" >&5 |
322e23db | 6201 | $as_echo_n "checking for -Bgroup option... " >&6; } |
f318beb8 | 6202 | if ${libc_cv_Bgroup+:} false; then : |
322e23db | 6203 | $as_echo_n "(cached) " >&6 |
639c3248 | 6204 | else |
a0da5fe1 | 6205 | cat > conftest.c <<EOF |
639c3248 UD |
6206 | int _start (void) { return 42; } |
6207 | EOF | |
a0da5fe1 UD |
6208 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
6209 | -fPIC -shared -o conftest.so conftest.c | |
6210 | -Wl,-Bgroup -nostdlib 1>&5' | |
b08c89d9 | 6211 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
6212 | (eval $ac_try) 2>&5 |
6213 | ac_status=$? | |
b08c89d9 UD |
6214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6215 | test $ac_status = 0; }; } | |
a0da5fe1 UD |
6216 | then |
6217 | libc_cv_Bgroup=yes | |
6218 | else | |
6219 | libc_cv_Bgroup=no | |
6220 | fi | |
6221 | rm -f conftest* | |
639c3248 | 6222 | fi |
b08c89d9 | 6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_Bgroup" >&5 |
322e23db | 6224 | $as_echo "$libc_cv_Bgroup" >&6; } |
639c3248 | 6225 | |
a711b01d | 6226 | |
a0da5fe1 UD |
6227 | ASFLAGS_config= |
6228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5 | |
322e23db | 6229 | $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; } |
f318beb8 | 6230 | if ${libc_cv_as_noexecstack+:} false; then : |
322e23db | 6231 | $as_echo_n "(cached) " >&6 |
35915ec8 | 6232 | else |
a0da5fe1 | 6233 | cat > conftest.c <<EOF |
35915ec8 UD |
6234 | void foo (void) { } |
6235 | EOF | |
a0da5fe1 UD |
6236 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS |
6237 | -S -o conftest.s conftest.c 1>&5' | |
b08c89d9 | 6238 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
35915ec8 UD |
6239 | (eval $ac_try) 2>&5 |
6240 | ac_status=$? | |
b08c89d9 UD |
6241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6242 | test $ac_status = 0; }; } \ | |
8175a253 | 6243 | && grep .note.GNU-stack conftest.s >/dev/null \ |
a0da5fe1 UD |
6244 | && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack |
6245 | -c -o conftest.o conftest.s 1>&5' | |
b08c89d9 | 6246 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
35915ec8 UD |
6247 | (eval $ac_try) 2>&5 |
6248 | ac_status=$? | |
b08c89d9 UD |
6249 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6250 | test $ac_status = 0; }; } | |
a0da5fe1 UD |
6251 | then |
6252 | libc_cv_as_noexecstack=yes | |
6253 | else | |
6254 | libc_cv_as_noexecstack=no | |
6255 | fi | |
6256 | rm -f conftest* | |
35915ec8 | 6257 | fi |
b08c89d9 | 6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5 |
322e23db | 6259 | $as_echo "$libc_cv_as_noexecstack" >&6; } |
a0da5fe1 UD |
6260 | if test $libc_cv_as_noexecstack = yes; then |
6261 | ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack" | |
6262 | fi | |
35915ec8 | 6263 | |
2abf9ff1 | 6264 | |
a0da5fe1 | 6265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5 |
322e23db | 6266 | $as_echo_n "checking for -z combreloc... " >&6; } |
f318beb8 | 6267 | if ${libc_cv_z_combreloc+:} false; then : |
322e23db | 6268 | $as_echo_n "(cached) " >&6 |
a711b01d | 6269 | else |
a0da5fe1 | 6270 | cat > conftest.c <<EOF |
d555194c UD |
6271 | extern int bar (int); |
6272 | extern int mumble; | |
6273 | int foo (void) { return bar (mumble); } | |
a711b01d | 6274 | EOF |
a0da5fe1 | 6275 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
dbc92dc6 | 6276 | -fPIC -shared -o conftest.so conftest.c |
35cd3c97 | 6277 | -nostdlib -nostartfiles |
3a12e572 | 6278 | -Wl,-z,combreloc 1>&5' |
b08c89d9 | 6279 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
6280 | (eval $ac_try) 2>&5 |
6281 | ac_status=$? | |
b08c89d9 UD |
6282 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6283 | test $ac_status = 0; }; } | |
a0da5fe1 UD |
6284 | then |
6285 | if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then | |
6286 | libc_cv_z_combreloc=yes | |
fdde8349 UD |
6287 | else |
6288 | libc_cv_z_combreloc=no | |
a711b01d | 6289 | fi |
a0da5fe1 UD |
6290 | else |
6291 | libc_cv_z_combreloc=no | |
6292 | fi | |
6293 | rm -f conftest* | |
a711b01d | 6294 | fi |
b08c89d9 | 6295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5 |
322e23db | 6296 | $as_echo "$libc_cv_z_combreloc" >&6; } |
a0da5fe1 UD |
6297 | if test "$libc_cv_z_combreloc" = yes; then |
6298 | $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h | |
fdde8349 | 6299 | |
a0da5fe1 | 6300 | fi |
2abf9ff1 RM |
6301 | |
6302 | ||
6bfea974 L |
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5 |
6304 | $as_echo_n "checking for linker that supports -z execstack... " >&6; } | |
6305 | libc_linker_feature=no | |
6306 | if test x"$gnu_ld" = x"yes"; then | |
6307 | libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z execstack"` | |
6308 | if test -n "$libc_linker_check"; then | |
6309 | cat > conftest.c <<EOF | |
2abf9ff1 RM |
6310 | int _start (void) { return 42; } |
6311 | EOF | |
6bfea974 L |
6312 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
6313 | -Wl,-z,execstack -nostdlib -nostartfiles | |
6314 | -fPIC -shared -o conftest.so conftest.c | |
6315 | 1>&5' | |
b08c89d9 | 6316 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
2abf9ff1 RM |
6317 | (eval $ac_try) 2>&5 |
6318 | ac_status=$? | |
b08c89d9 UD |
6319 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6320 | test $ac_status = 0; }; } | |
6bfea974 L |
6321 | then |
6322 | libc_linker_feature=yes | |
6323 | fi | |
6324 | rm -f conftest* | |
6325 | fi | |
6326 | fi | |
6327 | if test $libc_linker_feature = yes; then | |
a0da5fe1 UD |
6328 | libc_cv_z_execstack=yes |
6329 | else | |
6330 | libc_cv_z_execstack=no | |
6331 | fi | |
6bfea974 L |
6332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
6333 | $as_echo "$libc_linker_feature" >&6; } | |
cd6ede75 | 6334 | |
0f124303 | 6335 | |
a0da5fe1 | 6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5 |
322e23db | 6337 | $as_echo_n "checking for -fpie... " >&6; } |
f318beb8 | 6338 | if ${libc_cv_fpie+:} false; then : |
322e23db | 6339 | $as_echo_n "(cached) " >&6 |
0f124303 | 6340 | else |
4da0431d | 6341 | if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null' |
b08c89d9 | 6342 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
0f124303 UD |
6343 | (eval $ac_try) 2>&5 |
6344 | ac_status=$? | |
b08c89d9 | 6345 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4da0431d | 6346 | test $ac_status = 0; }; }; then : |
a0da5fe1 UD |
6347 | libc_cv_fpie=yes |
6348 | else | |
6349 | libc_cv_fpie=no | |
6350 | fi | |
4da0431d | 6351 | |
0f124303 | 6352 | fi |
b08c89d9 | 6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5 |
322e23db | 6354 | $as_echo "$libc_cv_fpie" >&6; } |
0f124303 UD |
6355 | |
6356 | ||
871b9158 | 6357 | |
a0da5fe1 | 6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5 |
322e23db | 6359 | $as_echo_n "checking for --hash-style option... " >&6; } |
f318beb8 | 6360 | if ${libc_cv_hashstyle+:} false; then : |
322e23db | 6361 | $as_echo_n "(cached) " >&6 |
871b9158 | 6362 | else |
a0da5fe1 | 6363 | cat > conftest.c <<EOF |
871b9158 UD |
6364 | int _start (void) { return 42; } |
6365 | EOF | |
a0da5fe1 UD |
6366 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
6367 | -fPIC -shared -o conftest.so conftest.c | |
6368 | -Wl,--hash-style=both -nostdlib 1>&5' | |
b08c89d9 | 6369 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
871b9158 UD |
6370 | (eval $ac_try) 2>&5 |
6371 | ac_status=$? | |
b08c89d9 UD |
6372 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6373 | test $ac_status = 0; }; } | |
a0da5fe1 UD |
6374 | then |
6375 | libc_cv_hashstyle=yes | |
6376 | else | |
6377 | libc_cv_hashstyle=no | |
6378 | fi | |
6379 | rm -f conftest* | |
871b9158 | 6380 | fi |
b08c89d9 | 6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5 |
322e23db | 6382 | $as_echo "$libc_cv_hashstyle" >&6; } |
871b9158 | 6383 | |
fd5e21c7 | 6384 | |
a0da5fe1 UD |
6385 | # The linker's default -shared behavior is good enough if it |
6386 | # does these things that our custom linker scripts ensure that | |
6387 | # all allocated NOTE sections come first. | |
6388 | if test "$use_default_link" = default; then | |
6389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient default -shared layout" >&5 | |
fd5e21c7 | 6390 | $as_echo_n "checking for sufficient default -shared layout... " >&6; } |
f318beb8 | 6391 | if ${libc_cv_use_default_link+:} false; then : |
fd5e21c7 RM |
6392 | $as_echo_n "(cached) " >&6 |
6393 | else | |
a0da5fe1 UD |
6394 | libc_cv_use_default_link=no |
6395 | cat > conftest.s <<\EOF | |
fd5e21c7 RM |
6396 | .section .note.a,"a",%note |
6397 | .balign 4 | |
6398 | .long 4,4,9 | |
6399 | .string "GNU" | |
6400 | .string "foo" | |
6401 | .section .note.b,"a",%note | |
6402 | .balign 4 | |
6403 | .long 4,4,9 | |
6404 | .string "GNU" | |
6405 | .string "bar" | |
6406 | EOF | |
a0da5fe1 | 6407 | if { ac_try=' ${CC-cc} $ASFLAGS -shared -o conftest.so conftest.s 1>&5' |
fd5e21c7 RM |
6408 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6409 | (eval $ac_try) 2>&5 | |
6410 | ac_status=$? | |
6411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6412 | test $ac_status = 0; }; } && | |
6413 | ac_try=`$READELF -S conftest.so | sed -n \ | |
6414 | '${x;p;} | |
6415 | s/^ *\[ *[1-9][0-9]*\] *\([^ ][^ ]*\) *\([^ ][^ ]*\) .*$/\2 \1/ | |
6416 | t a | |
6417 | b | |
6418 | : a | |
6419 | H'` | |
a0da5fe1 UD |
6420 | then |
6421 | libc_seen_a=no libc_seen_b=no | |
6422 | set -- $ac_try | |
6423 | while test $# -ge 2 -a "$1" = NOTE; do | |
6424 | case "$2" in | |
6425 | .note.a) libc_seen_a=yes ;; | |
6426 | .note.b) libc_seen_b=yes ;; | |
6427 | esac | |
6428 | shift 2 | |
6429 | done | |
6430 | case "$libc_seen_a$libc_seen_b" in | |
6431 | yesyes) | |
6432 | libc_cv_use_default_link=yes | |
6433 | ;; | |
6434 | *) | |
6435 | echo >&5 "\ | |
fd5e21c7 RM |
6436 | $libc_seen_a$libc_seen_b from: |
6437 | $ac_try" | |
a0da5fe1 UD |
6438 | ;; |
6439 | esac | |
6440 | fi | |
6441 | rm -f conftest* | |
fd5e21c7 RM |
6442 | fi |
6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_use_default_link" >&5 | |
6444 | $as_echo "$libc_cv_use_default_link" >&6; } | |
a0da5fe1 | 6445 | use_default_link=$libc_cv_use_default_link |
2abf9ff1 | 6446 | fi |
f13df7c7 | 6447 | |
5c550700 RM |
6448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5 |
6449 | $as_echo_n "checking linker output format... " >&6; } | |
f318beb8 | 6450 | if ${libc_cv_output_format+:} false; then : |
5c550700 RM |
6451 | $as_echo_n "(cached) " >&6 |
6452 | else | |
6453 | if libc_cv_output_format=` | |
6454 | ${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&5` | |
6455 | then | |
6456 | : | |
6457 | else | |
6458 | libc_cv_output_format= | |
6459 | fi | |
6460 | test -n "$libc_cv_output_format" || libc_cv_output_format=unknown | |
6461 | fi | |
6462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5 | |
6463 | $as_echo "$libc_cv_output_format" >&6; } | |
6464 | ||
6465 | ||
b08c89d9 | 6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5 |
322e23db | 6467 | $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; } |
f318beb8 | 6468 | if ${libc_cv_fno_toplevel_reorder+:} false; then : |
322e23db | 6469 | $as_echo_n "(cached) " >&6 |
49803108 AJ |
6470 | else |
6471 | cat > conftest.c <<EOF | |
6472 | int foo; | |
6473 | EOF | |
22dca1ea | 6474 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors |
49803108 | 6475 | conftest.c 1>&5' |
b08c89d9 | 6476 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
49803108 AJ |
6477 | (eval $ac_try) 2>&5 |
6478 | ac_status=$? | |
b08c89d9 UD |
6479 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6480 | test $ac_status = 0; }; } | |
49803108 | 6481 | then |
18e2ac6d | 6482 | libc_cv_fno_toplevel_reorder=yes |
49803108 | 6483 | else |
18e2ac6d | 6484 | libc_cv_fno_toplevel_reorder=no |
49803108 AJ |
6485 | fi |
6486 | rm -f conftest* | |
6487 | fi | |
b08c89d9 | 6488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5 |
322e23db | 6489 | $as_echo "$libc_cv_fno_toplevel_reorder" >&6; } |
18e2ac6d | 6490 | if test $libc_cv_fno_toplevel_reorder = yes; then |
22dca1ea | 6491 | fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors" |
18e2ac6d | 6492 | else |
49803108 AJ |
6493 | fno_unit_at_a_time=-fno-unit-at-a-time |
6494 | fi | |
6495 | ||
6496 | ||
b08c89d9 | 6497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5 |
322e23db | 6498 | $as_echo_n "checking for -fstack-protector... " >&6; } |
f318beb8 | 6499 | if ${libc_cv_ssp+:} false; then : |
322e23db | 6500 | $as_echo_n "(cached) " >&6 |
10ffcd52 | 6501 | else |
17228132 | 6502 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null' |
b08c89d9 | 6503 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
10ffcd52 UD |
6504 | (eval $ac_try) 2>&5 |
6505 | ac_status=$? | |
b08c89d9 | 6506 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
17228132 | 6507 | test $ac_status = 0; }; }; then : |
10ffcd52 UD |
6508 | libc_cv_ssp=yes |
6509 | else | |
6510 | libc_cv_ssp=no | |
6511 | fi | |
17228132 | 6512 | |
10ffcd52 | 6513 | fi |
b08c89d9 | 6514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5 |
322e23db | 6515 | $as_echo "$libc_cv_ssp" >&6; } |
10ffcd52 UD |
6516 | |
6517 | ||
b08c89d9 | 6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline" >&5 |
322e23db | 6519 | $as_echo_n "checking for -fgnu89-inline... " >&6; } |
f318beb8 | 6520 | if ${libc_cv_gnu89_inline+:} false; then : |
322e23db | 6521 | $as_echo_n "(cached) " >&6 |
965cba04 UD |
6522 | else |
6523 | cat > conftest.c <<EOF | |
6524 | int foo; | |
6525 | #ifdef __GNUC_GNU_INLINE__ | |
6526 | main () { return 0;} | |
6527 | #else | |
6528 | #error | |
6529 | #endif | |
6530 | EOF | |
371f84a4 JJ |
6531 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline |
6532 | -o conftest.s conftest.c 1>&5' | |
b08c89d9 | 6533 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
965cba04 UD |
6534 | (eval $ac_try) 2>&5 |
6535 | ac_status=$? | |
b08c89d9 UD |
6536 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6537 | test $ac_status = 0; }; } | |
965cba04 UD |
6538 | then |
6539 | libc_cv_gnu89_inline=yes | |
6540 | else | |
6541 | libc_cv_gnu89_inline=no | |
6542 | fi | |
6543 | rm -f conftest* | |
6544 | fi | |
b08c89d9 | 6545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu89_inline" >&5 |
322e23db | 6546 | $as_echo "$libc_cv_gnu89_inline" >&6; } |
965cba04 | 6547 | if test $libc_cv_gnu89_inline = yes; then |
1c7570ff | 6548 | gnu89_inline=-fgnu89-inline |
965cba04 | 6549 | else |
1c7570ff | 6550 | gnu89_inline= |
965cba04 UD |
6551 | fi |
6552 | ||
6553 | ||
a0da5fe1 | 6554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5 |
322e23db | 6555 | $as_echo_n "checking whether cc puts quotes around section names... " >&6; } |
f318beb8 | 6556 | if ${libc_cv_have_section_quotes+:} false; then : |
322e23db | 6557 | $as_echo_n "(cached) " >&6 |
e26dd47f UD |
6558 | else |
6559 | cat > conftest.c <<EOF | |
a0da5fe1 UD |
6560 | static const int foo |
6561 | __attribute__ ((section ("bar"))) = 1; | |
e26dd47f | 6562 | EOF |
a0da5fe1 UD |
6563 | if ${CC-cc} -S conftest.c -o conftest.s; then |
6564 | if grep '\.section.*"bar"' conftest.s >/dev/null; then | |
6565 | libc_cv_have_section_quotes=yes | |
e26dd47f | 6566 | else |
a0da5fe1 | 6567 | libc_cv_have_section_quotes=no |
e26dd47f | 6568 | fi |
a0da5fe1 UD |
6569 | else |
6570 | libc_cv_have_section_quotes=unknown | |
6571 | fi | |
6572 | rm -f conftest.{c,s} | |
e26dd47f | 6573 | |
3a12e572 | 6574 | fi |
b08c89d9 | 6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5 |
322e23db | 6576 | $as_echo "$libc_cv_have_section_quotes" >&6; } |
a0da5fe1 UD |
6577 | if test $libc_cv_have_section_quotes = yes; then |
6578 | $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h | |
cd6ede75 | 6579 | |
9a97d1f7 UD |
6580 | fi |
6581 | ||
b08c89d9 | 6582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weak directive" >&5 |
322e23db | 6583 | $as_echo_n "checking for assembler .weak directive... " >&6; } |
f318beb8 | 6584 | if ${libc_cv_asm_weak_directive+:} false; then : |
322e23db | 6585 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
6586 | else |
6587 | cat > conftest.s <<EOF | |
2293395f | 6588 | ${libc_cv_dot_text} |
7b8e0d49 | 6589 | .globl foo |
cd6ede75 UD |
6590 | foo: |
6591 | .weak foo | |
6592 | .weak bar; bar = foo | |
6593 | EOF | |
3217788f | 6594 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' |
b08c89d9 | 6595 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
61cea1c3 RM |
6596 | (eval $ac_try) 2>&5 |
6597 | ac_status=$? | |
b08c89d9 UD |
6598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6599 | test $ac_status = 0; }; }; then | |
9a97d1f7 UD |
6600 | libc_cv_asm_weak_directive=yes |
6601 | else | |
6602 | libc_cv_asm_weak_directive=no | |
6603 | fi | |
6604 | rm -f conftest* | |
cd6ede75 | 6605 | fi |
b08c89d9 | 6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weak_directive" >&5 |
322e23db | 6607 | $as_echo "$libc_cv_asm_weak_directive" >&6; } |
cd6ede75 UD |
6608 | |
6609 | if test $libc_cv_asm_weak_directive = no; then | |
b08c89d9 | 6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weakext directive" >&5 |
322e23db | 6611 | $as_echo_n "checking for assembler .weakext directive... " >&6; } |
f318beb8 | 6612 | if ${libc_cv_asm_weakext_directive+:} false; then : |
322e23db | 6613 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
6614 | else |
6615 | cat > conftest.s <<EOF | |
2293395f | 6616 | ${libc_cv_dot_text} |
7b8e0d49 | 6617 | .globl foo |
cd6ede75 | 6618 | foo: |
9a97d1f7 UD |
6619 | .weakext bar foo |
6620 | .weakext baz | |
7b8e0d49 | 6621 | .globl baz |
9a97d1f7 | 6622 | baz: |
cd6ede75 | 6623 | EOF |
3217788f | 6624 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' |
b08c89d9 | 6625 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
61cea1c3 RM |
6626 | (eval $ac_try) 2>&5 |
6627 | ac_status=$? | |
b08c89d9 UD |
6628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6629 | test $ac_status = 0; }; }; then | |
cd6ede75 UD |
6630 | libc_cv_asm_weakext_directive=yes |
6631 | else | |
6632 | libc_cv_asm_weakext_directive=no | |
6633 | fi | |
6634 | rm -f conftest* | |
6635 | fi | |
b08c89d9 | 6636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weakext_directive" >&5 |
322e23db | 6637 | $as_echo "$libc_cv_asm_weakext_directive" >&6; } |
cd6ede75 | 6638 | |
9a97d1f7 | 6639 | fi # no .weak |
cd6ede75 UD |
6640 | |
6641 | if test $libc_cv_asm_weak_directive = yes; then | |
b08c89d9 | 6642 | $as_echo "#define HAVE_ASM_WEAK_DIRECTIVE 1" >>confdefs.h |
cd6ede75 UD |
6643 | |
6644 | elif test $libc_cv_asm_weakext_directive = yes; then | |
b08c89d9 | 6645 | $as_echo "#define HAVE_ASM_WEAKEXT_DIRECTIVE 1" >>confdefs.h |
cd6ede75 UD |
6646 | |
6647 | fi | |
6648 | ||
b08c89d9 | 6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported" >&5 |
322e23db | 6650 | $as_echo_n "checking whether CFI directives are supported... " >&6; } |
f318beb8 | 6651 | if ${libc_cv_asm_cfi_directives+:} false; then : |
322e23db | 6652 | $as_echo_n "(cached) " >&6 |
50189569 | 6653 | else |
ced368f7 UD |
6654 | case $machine in |
6655 | sparc/sparc64*) cfi_offset=2047;; | |
6656 | *) cfi_offset=0;; | |
6657 | esac | |
6658 | cat > conftest.s <<EOF | |
77e8bddf AS |
6659 | .text |
6660 | .type func,%function | |
50189569 | 6661 | func: |
77e8bddf | 6662 | .cfi_startproc |
f212e8dc | 6663 | .cfi_remember_state |
ced368f7 | 6664 | .cfi_rel_offset 1, $cfi_offset |
77e8bddf | 6665 | .cfi_endproc |
50189569 AJ |
6666 | EOF |
6667 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' | |
b08c89d9 | 6668 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
50189569 AJ |
6669 | (eval $ac_try) 2>&5 |
6670 | ac_status=$? | |
b08c89d9 UD |
6671 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6672 | test $ac_status = 0; }; }; then | |
50189569 AJ |
6673 | libc_cv_asm_cfi_directives=yes |
6674 | else | |
6675 | libc_cv_asm_cfi_directives=no | |
6676 | fi | |
6677 | rm -f conftest* | |
6678 | fi | |
b08c89d9 | 6679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_cfi_directives" >&5 |
322e23db | 6680 | $as_echo "$libc_cv_asm_cfi_directives" >&6; } |
50189569 | 6681 | if test $libc_cv_asm_cfi_directives = yes; then |
b08c89d9 | 6682 | $as_echo "#define HAVE_ASM_CFI_DIRECTIVES 1" >>confdefs.h |
50189569 AJ |
6683 | |
6684 | fi | |
6685 | ||
b08c89d9 | 6686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --no-whole-archive" >&5 |
322e23db | 6687 | $as_echo_n "checking for ld --no-whole-archive... " >&6; } |
f318beb8 | 6688 | if ${libc_cv_ld_no_whole_archive+:} false; then : |
322e23db | 6689 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
6690 | else |
6691 | cat > conftest.c <<\EOF | |
6692 | _start () {} | |
6693 | int __eh_pc; | |
6694 | __throw () {} | |
6695 | EOF | |
3217788f | 6696 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
cd6ede75 | 6697 | -nostdlib -nostartfiles -Wl,--no-whole-archive |
3a12e572 | 6698 | -o conftest conftest.c 1>&5' |
b08c89d9 | 6699 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
6700 | (eval $ac_try) 2>&5 |
6701 | ac_status=$? | |
b08c89d9 UD |
6702 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6703 | test $ac_status = 0; }; }; then | |
cd6ede75 UD |
6704 | libc_cv_ld_no_whole_archive=yes |
6705 | else | |
6706 | libc_cv_ld_no_whole_archive=no | |
6707 | fi | |
6708 | rm -f conftest* | |
6709 | fi | |
b08c89d9 | 6710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_no_whole_archive" >&5 |
322e23db | 6711 | $as_echo "$libc_cv_ld_no_whole_archive" >&6; } |
3ce1f295 UD |
6712 | if test $libc_cv_ld_no_whole_archive = no; then |
6713 | as_fn_error $? "support for --no-whole-archive is needed" "$LINENO" 5 | |
b17277cf | 6714 | fi |
cd6ede75 | 6715 | |
b08c89d9 | 6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fexceptions" >&5 |
322e23db | 6717 | $as_echo_n "checking for gcc -fexceptions... " >&6; } |
f318beb8 | 6718 | if ${libc_cv_gcc_exceptions+:} false; then : |
322e23db | 6719 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
6720 | else |
6721 | cat > conftest.c <<\EOF | |
6722 | _start () {} | |
6723 | int __eh_pc; | |
6724 | __throw () {} | |
6725 | EOF | |
3217788f | 6726 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
dff14448 | 6727 | -nostdlib -nostartfiles -fexceptions |
3a12e572 | 6728 | -o conftest conftest.c 1>&5' |
b08c89d9 | 6729 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
6730 | (eval $ac_try) 2>&5 |
6731 | ac_status=$? | |
b08c89d9 UD |
6732 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6733 | test $ac_status = 0; }; }; then | |
dff14448 | 6734 | libc_cv_gcc_exceptions=yes |
cd6ede75 | 6735 | else |
dff14448 | 6736 | libc_cv_gcc_exceptions=no |
cd6ede75 UD |
6737 | fi |
6738 | rm -f conftest* | |
6739 | fi | |
b08c89d9 | 6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_exceptions" >&5 |
322e23db | 6741 | $as_echo "$libc_cv_gcc_exceptions" >&6; } |
dff14448 UD |
6742 | if test $libc_cv_gcc_exceptions = yes; then |
6743 | exceptions=-fexceptions | |
b17277cf | 6744 | fi |
cd6ede75 | 6745 | |
ebcd12d4 UD |
6746 | if test "$host_cpu" = powerpc ; then |
6747 | # Check for a bug present in at least versions 2.8.x of GCC | |
6748 | # and versions 1.0.x of EGCS. | |
b08c89d9 | 6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clobbering cr0 causes problems" >&5 |
322e23db | 6750 | $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; } |
f318beb8 | 6751 | if ${libc_cv_c_asmcr0_bug+:} false; then : |
322e23db | 6752 | $as_echo_n "(cached) " >&6 |
ebcd12d4 | 6753 | else |
b08c89d9 | 6754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2abf9ff1 | 6755 | /* end confdefs.h. */ |
ebcd12d4 | 6756 | int tester(int x) { asm ("" : : : "cc"); return x & 123; } |
3a12e572 UD |
6757 | int |
6758 | main () | |
6759 | { | |
ebcd12d4 | 6760 | |
3a12e572 UD |
6761 | ; |
6762 | return 0; | |
6763 | } | |
6764 | _ACEOF | |
b08c89d9 | 6765 | if ac_fn_c_try_compile "$LINENO"; then : |
ebcd12d4 UD |
6766 | libc_cv_c_asmcr0_bug='no' |
6767 | else | |
b08c89d9 | 6768 | libc_cv_c_asmcr0_bug='yes' |
ebcd12d4 | 6769 | fi |
26f56c1c | 6770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ebcd12d4 | 6771 | fi |
b08c89d9 | 6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_c_asmcr0_bug" >&5 |
322e23db | 6773 | $as_echo "$libc_cv_c_asmcr0_bug" >&6; } |
ebcd12d4 | 6774 | if test "$libc_cv_c_asmcr0_bug" != 'no'; then |
b08c89d9 | 6775 | $as_echo "#define BROKEN_PPC_ASM_CR0 1" >>confdefs.h |
ebcd12d4 UD |
6776 | |
6777 | fi | |
6778 | fi | |
6779 | ||
b08c89d9 | 6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5 |
322e23db | 6781 | $as_echo_n "checking for __builtin_memset... " >&6; } |
f318beb8 | 6782 | if ${libc_cv_gcc_builtin_memset+:} false; then : |
322e23db | 6783 | $as_echo_n "(cached) " >&6 |
d555194c UD |
6784 | else |
6785 | cat > conftest.c <<\EOF | |
6786 | void zero (void *x) | |
6787 | { | |
a52d1562 | 6788 | __builtin_memset (x, 0, 1000); |
d555194c UD |
6789 | } |
6790 | EOF | |
3a12e572 | 6791 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null' |
b08c89d9 | 6792 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
6793 | (eval $ac_try) 2>&5 |
6794 | ac_status=$? | |
b08c89d9 UD |
6795 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6796 | test $ac_status = 0; }; }; | |
d555194c UD |
6797 | then |
6798 | libc_cv_gcc_builtin_memset=no | |
6799 | else | |
6800 | libc_cv_gcc_builtin_memset=yes | |
6801 | fi | |
3a12e572 | 6802 | rm -f conftest* |
d555194c | 6803 | fi |
b08c89d9 | 6804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5 |
322e23db | 6805 | $as_echo "$libc_cv_gcc_builtin_memset" >&6; } |
d555194c | 6806 | if test "$libc_cv_gcc_builtin_memset" = yes ; then |
b08c89d9 | 6807 | $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h |
d555194c UD |
6808 | |
6809 | fi | |
6810 | ||
b08c89d9 | 6811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5 |
322e23db | 6812 | $as_echo_n "checking for redirection of built-in functions... " >&6; } |
f318beb8 | 6813 | if ${libc_cv_gcc_builtin_redirection+:} false; then : |
322e23db | 6814 | $as_echo_n "(cached) " >&6 |
85dd1003 UD |
6815 | else |
6816 | cat > conftest.c <<\EOF | |
6817 | extern char *strstr (const char *, const char *) __asm ("my_strstr"); | |
6818 | char *foo (const char *a, const char *b) | |
6819 | { | |
6820 | return __builtin_strstr (a, b); | |
6821 | } | |
6822 | EOF | |
6823 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null' | |
b08c89d9 | 6824 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
85dd1003 UD |
6825 | (eval $ac_try) 2>&5 |
6826 | ac_status=$? | |
b08c89d9 UD |
6827 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6828 | test $ac_status = 0; }; }; | |
85dd1003 UD |
6829 | then |
6830 | libc_cv_gcc_builtin_redirection=yes | |
6831 | else | |
6832 | libc_cv_gcc_builtin_redirection=no | |
6833 | fi | |
6834 | rm -f conftest* | |
6835 | fi | |
b08c89d9 | 6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5 |
322e23db | 6837 | $as_echo "$libc_cv_gcc_builtin_redirection" >&6; } |
3ce1f295 UD |
6838 | if test "$libc_cv_gcc_builtin_redirection" = no; then |
6839 | as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5 | |
85dd1003 UD |
6840 | fi |
6841 | ||
3ce1f295 | 6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5 |
322e23db | 6843 | $as_echo_n "checking for __thread... " >&6; } |
f318beb8 | 6844 | if ${libc_cv_gcc___thread+:} false; then : |
322e23db | 6845 | $as_echo_n "(cached) " >&6 |
739d440d | 6846 | else |
5bbfc1ea | 6847 | cat > conftest.c <<\EOF |
fbb18522 RM |
6848 | __thread int a = 42; |
6849 | EOF | |
3ce1f295 | 6850 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5' |
b08c89d9 | 6851 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
6852 | (eval $ac_try) 2>&5 |
6853 | ac_status=$? | |
b08c89d9 UD |
6854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6855 | test $ac_status = 0; }; }; then | |
3ce1f295 UD |
6856 | libc_cv_gcc___thread=yes |
6857 | else | |
6858 | libc_cv_gcc___thread=no | |
6859 | fi | |
6860 | rm -f conftest* | |
739d440d | 6861 | fi |
b08c89d9 | 6862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5 |
322e23db | 6863 | $as_echo "$libc_cv_gcc___thread" >&6; } |
3ce1f295 UD |
6864 | if test "$libc_cv_gcc___thread" = no; then |
6865 | as_fn_error $? "support for the __thread keyword is required" "$LINENO" 5 | |
739d440d UD |
6866 | fi |
6867 | ||
3ce1f295 | 6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls_model attribute" >&5 |
322e23db | 6869 | $as_echo_n "checking for tls_model attribute... " >&6; } |
f318beb8 | 6870 | if ${libc_cv_gcc_tls_model_attr+:} false; then : |
322e23db | 6871 | $as_echo_n "(cached) " >&6 |
9b21e6bc | 6872 | else |
3ce1f295 | 6873 | cat > conftest.c <<\EOF |
9b21e6bc RM |
6874 | extern __thread int a __attribute__((tls_model ("initial-exec"))); |
6875 | EOF | |
3ce1f295 | 6876 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5' |
b08c89d9 | 6877 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
6878 | (eval $ac_try) 2>&5 |
6879 | ac_status=$? | |
b08c89d9 UD |
6880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6881 | test $ac_status = 0; }; }; then | |
3ce1f295 UD |
6882 | libc_cv_gcc_tls_model_attr=yes |
6883 | else | |
6884 | libc_cv_gcc_tls_model_attr=no | |
6885 | fi | |
6886 | rm -f conftest* | |
9b21e6bc | 6887 | fi |
b08c89d9 | 6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_tls_model_attr" >&5 |
322e23db | 6889 | $as_echo "$libc_cv_gcc_tls_model_attr" >&6; } |
3ce1f295 UD |
6890 | if test "$libc_cv_gcc_tls_model_attr" = no; then |
6891 | as_fn_error $? "support for the tls_model attribute is required" "$LINENO" 5 | |
9b21e6bc | 6892 | fi |
739d440d | 6893 | |
7998fa78 AS |
6894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5 |
6895 | $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; } | |
6896 | if ${libc_cv_cc_nofma+:} false; then : | |
6897 | $as_echo_n "(cached) " >&6 | |
6898 | else | |
6899 | libc_cv_cc_nofma= | |
6900 | for opt in -ffp-contract=off -mno-fused-madd; do | |
6901 | if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' | |
6902 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6903 | (eval $ac_try) 2>&5 | |
6904 | ac_status=$? | |
6905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6906 | test $ac_status = 0; }; }; then : | |
6907 | libc_cv_cc_nofma=$opt; break | |
6908 | fi | |
6909 | done | |
6910 | fi | |
6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5 | |
6912 | $as_echo "$libc_cv_cc_nofma" >&6; } | |
6913 | ||
2cf9ad57 | 6914 | if test -n "$submachine"; then |
b08c89d9 | 6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5 |
322e23db | 6916 | $as_echo_n "checking for compiler option for CPU variant... " >&6; } |
f318beb8 | 6917 | if ${libc_cv_cc_submachine+:} false; then : |
322e23db | 6918 | $as_echo_n "(cached) " >&6 |
2cf9ad57 RM |
6919 | else |
6920 | libc_cv_cc_submachine=no | |
6921 | for opt in "-march=$submachine" "-mcpu=$submachine"; do | |
6922 | if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' | |
b08c89d9 | 6923 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
2cf9ad57 RM |
6924 | (eval $ac_try) 2>&5 |
6925 | ac_status=$? | |
b08c89d9 | 6926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
40b601fb JM |
6927 | test $ac_status = 0; }; }; then : |
6928 | ||
2cf9ad57 RM |
6929 | libc_cv_cc_submachine="$opt" |
6930 | break | |
40b601fb | 6931 | fi |
2cf9ad57 RM |
6932 | done |
6933 | fi | |
b08c89d9 | 6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5 |
322e23db | 6935 | $as_echo "$libc_cv_cc_submachine" >&6; } |
2cf9ad57 | 6936 | if test "x$libc_cv_cc_submachine" = xno; then |
4a531bb0 | 6937 | as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5 |
2cf9ad57 RM |
6938 | fi |
6939 | fi | |
6940 | ||
6941 | ||
b08c89d9 | 6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5 |
322e23db | 6943 | $as_echo_n "checking for libgd... " >&6; } |
6dab8688 UD |
6944 | if test "$with_gd" != "no"; then |
6945 | old_CFLAGS="$CFLAGS" | |
6946 | CFLAGS="$CFLAGS $libgd_include" | |
6947 | old_LDFLAGS="$LDFLAGS" | |
6948 | LDFLAGS="$LDFLAGS $libgd_ldflags" | |
6949 | old_LIBS="$LIBS" | |
6950 | LIBS="$LIBS -lgd -lpng -lz -lm" | |
b08c89d9 | 6951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2abf9ff1 | 6952 | /* end confdefs.h. */ |
c8f3e6db | 6953 | #include <gd.h> |
3a12e572 UD |
6954 | int |
6955 | main () | |
6956 | { | |
c8f3e6db | 6957 | gdImagePng (0, 0) |
3a12e572 UD |
6958 | ; |
6959 | return 0; | |
6960 | } | |
6961 | _ACEOF | |
b08c89d9 | 6962 | if ac_fn_c_try_link "$LINENO"; then : |
c8f3e6db UD |
6963 | LIBGD=yes |
6964 | else | |
b08c89d9 | 6965 | LIBGD=no |
c8f3e6db | 6966 | fi |
b08c89d9 UD |
6967 | rm -f core conftest.err conftest.$ac_objext \ |
6968 | conftest$ac_exeext conftest.$ac_ext | |
6dab8688 UD |
6969 | CFLAGS="$old_CFLAGS" |
6970 | LDFLAGS="$old_LDFLAGS" | |
6971 | LIBS="$old_LIBS" | |
6972 | else | |
6973 | LIBGD=no | |
6974 | fi | |
b08c89d9 | 6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5 |
322e23db | 6976 | $as_echo "$LIBGD" >&6; } |
3a12e572 UD |
6977 | |
6978 | ||
74a30a58 UD |
6979 | # SELinux detection |
6980 | if test x$with_selinux = xno ; then | |
6981 | have_selinux=no; | |
6982 | else | |
6983 | # See if we have the SELinux library | |
b08c89d9 | 6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 |
322e23db | 6985 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } |
f318beb8 | 6986 | if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : |
322e23db | 6987 | $as_echo_n "(cached) " >&6 |
74a30a58 UD |
6988 | else |
6989 | ac_check_lib_save_LIBS=$LIBS | |
6990 | LIBS="-lselinux $LIBS" | |
b08c89d9 | 6991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
74a30a58 UD |
6992 | /* end confdefs.h. */ |
6993 | ||
26f56c1c UD |
6994 | /* Override any GCC internal prototype to avoid an error. |
6995 | Use char because int might match the return type of a GCC | |
6996 | builtin and then its argument prototype would still apply. */ | |
74a30a58 UD |
6997 | #ifdef __cplusplus |
6998 | extern "C" | |
6999 | #endif | |
74a30a58 UD |
7000 | char is_selinux_enabled (); |
7001 | int | |
7002 | main () | |
7003 | { | |
26f56c1c | 7004 | return is_selinux_enabled (); |
74a30a58 UD |
7005 | ; |
7006 | return 0; | |
7007 | } | |
7008 | _ACEOF | |
b08c89d9 | 7009 | if ac_fn_c_try_link "$LINENO"; then : |
74a30a58 UD |
7010 | ac_cv_lib_selinux_is_selinux_enabled=yes |
7011 | else | |
b08c89d9 | 7012 | ac_cv_lib_selinux_is_selinux_enabled=no |
74a30a58 | 7013 | fi |
b08c89d9 UD |
7014 | rm -f core conftest.err conftest.$ac_objext \ |
7015 | conftest$ac_exeext conftest.$ac_ext | |
74a30a58 UD |
7016 | LIBS=$ac_check_lib_save_LIBS |
7017 | fi | |
b08c89d9 | 7018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
322e23db | 7019 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } |
f318beb8 | 7020 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : |
74a30a58 UD |
7021 | have_selinux=yes |
7022 | else | |
7023 | have_selinux=no | |
7024 | fi | |
7025 | ||
7026 | # See if we have the SELinux header with the NSCD permissions in it. | |
7027 | if test x$have_selinux = xyes ; then | |
b08c89d9 | 7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5 |
322e23db | 7029 | $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; } |
b08c89d9 | 7030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
74a30a58 UD |
7031 | /* end confdefs.h. */ |
7032 | #include <selinux/av_permissions.h> | |
7033 | int | |
7034 | main () | |
7035 | { | |
7036 | #ifdef NSCD__SHMEMHOST | |
7037 | return 0; | |
7038 | #else | |
7039 | #error NSCD__SHMEMHOST not defined | |
7040 | #endif | |
7041 | ; | |
7042 | return 0; | |
7043 | } | |
7044 | _ACEOF | |
b08c89d9 | 7045 | if ac_fn_c_try_compile "$LINENO"; then : |
74a30a58 UD |
7046 | have_selinux=yes |
7047 | else | |
b08c89d9 | 7048 | have_selinux=no |
74a30a58 | 7049 | fi |
26f56c1c | 7050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b08c89d9 | 7051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_selinux" >&5 |
322e23db | 7052 | $as_echo "$have_selinux" >&6; } |
74a30a58 UD |
7053 | fi |
7054 | ||
8f1913a9 | 7055 | if test x$with_selinux = xyes ; then |
74a30a58 | 7056 | if test x$have_selinux = xno ; then |
4a531bb0 | 7057 | as_fn_error $? "SELinux explicitly required, but sufficiently recent SELinux library not found" "$LINENO" 5 |
74a30a58 UD |
7058 | fi |
7059 | fi | |
7060 | fi | |
7061 | # Check if we're building with SELinux support. | |
7062 | if test "x$have_selinux" = xyes; then | |
7063 | ||
b08c89d9 | 7064 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
74a30a58 | 7065 | |
b399a0c2 UD |
7066 | |
7067 | # See if we have the libaudit library | |
b08c89d9 | 7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5 |
322e23db | 7069 | $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; } |
f318beb8 | 7070 | if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then : |
322e23db | 7071 | $as_echo_n "(cached) " >&6 |
b399a0c2 UD |
7072 | else |
7073 | ac_check_lib_save_LIBS=$LIBS | |
7074 | LIBS="-laudit $LIBS" | |
b08c89d9 | 7075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b399a0c2 UD |
7076 | /* end confdefs.h. */ |
7077 | ||
26f56c1c UD |
7078 | /* Override any GCC internal prototype to avoid an error. |
7079 | Use char because int might match the return type of a GCC | |
7080 | builtin and then its argument prototype would still apply. */ | |
b399a0c2 UD |
7081 | #ifdef __cplusplus |
7082 | extern "C" | |
7083 | #endif | |
b2f97341 | 7084 | char audit_log_user_avc_message (); |
b399a0c2 UD |
7085 | int |
7086 | main () | |
7087 | { | |
26f56c1c | 7088 | return audit_log_user_avc_message (); |
b399a0c2 UD |
7089 | ; |
7090 | return 0; | |
7091 | } | |
7092 | _ACEOF | |
b08c89d9 | 7093 | if ac_fn_c_try_link "$LINENO"; then : |
b2f97341 | 7094 | ac_cv_lib_audit_audit_log_user_avc_message=yes |
b399a0c2 | 7095 | else |
b08c89d9 | 7096 | ac_cv_lib_audit_audit_log_user_avc_message=no |
b399a0c2 | 7097 | fi |
b08c89d9 UD |
7098 | rm -f core conftest.err conftest.$ac_objext \ |
7099 | conftest$ac_exeext conftest.$ac_ext | |
b399a0c2 UD |
7100 | LIBS=$ac_check_lib_save_LIBS |
7101 | fi | |
b08c89d9 | 7102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5 |
322e23db | 7103 | $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; } |
f318beb8 | 7104 | if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then : |
b399a0c2 UD |
7105 | have_libaudit=yes |
7106 | else | |
7107 | have_libaudit=no | |
7108 | fi | |
7109 | ||
7110 | if test "x$have_libaudit" = xyes; then | |
7111 | ||
b08c89d9 | 7112 | $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h |
b399a0c2 UD |
7113 | |
7114 | fi | |
7115 | ||
1f063dca UD |
7116 | |
7117 | # See if we have the libcap library | |
b08c89d9 | 7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5 |
322e23db | 7119 | $as_echo_n "checking for cap_init in -lcap... " >&6; } |
f318beb8 | 7120 | if ${ac_cv_lib_cap_cap_init+:} false; then : |
322e23db | 7121 | $as_echo_n "(cached) " >&6 |
1f063dca UD |
7122 | else |
7123 | ac_check_lib_save_LIBS=$LIBS | |
7124 | LIBS="-lcap $LIBS" | |
b08c89d9 | 7125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1f063dca UD |
7126 | /* end confdefs.h. */ |
7127 | ||
26f56c1c UD |
7128 | /* Override any GCC internal prototype to avoid an error. |
7129 | Use char because int might match the return type of a GCC | |
7130 | builtin and then its argument prototype would still apply. */ | |
1f063dca UD |
7131 | #ifdef __cplusplus |
7132 | extern "C" | |
7133 | #endif | |
1f063dca UD |
7134 | char cap_init (); |
7135 | int | |
7136 | main () | |
7137 | { | |
26f56c1c | 7138 | return cap_init (); |
1f063dca UD |
7139 | ; |
7140 | return 0; | |
7141 | } | |
7142 | _ACEOF | |
b08c89d9 | 7143 | if ac_fn_c_try_link "$LINENO"; then : |
1f063dca UD |
7144 | ac_cv_lib_cap_cap_init=yes |
7145 | else | |
b08c89d9 | 7146 | ac_cv_lib_cap_cap_init=no |
1f063dca | 7147 | fi |
b08c89d9 UD |
7148 | rm -f core conftest.err conftest.$ac_objext \ |
7149 | conftest$ac_exeext conftest.$ac_ext | |
1f063dca UD |
7150 | LIBS=$ac_check_lib_save_LIBS |
7151 | fi | |
b08c89d9 | 7152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5 |
322e23db | 7153 | $as_echo "$ac_cv_lib_cap_cap_init" >&6; } |
f318beb8 | 7154 | if test "x$ac_cv_lib_cap_cap_init" = xyes; then : |
1f063dca UD |
7155 | have_libcap=yes |
7156 | else | |
7157 | have_libcap=no | |
7158 | fi | |
7159 | ||
7160 | if test "x$have_libcap" = xyes; then | |
7161 | ||
b08c89d9 | 7162 | $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h |
1f063dca UD |
7163 | |
7164 | fi | |
7165 | ||
74a30a58 UD |
7166 | fi |
7167 | ||
7168 | ||
3a12e572 | 7169 | |
b08c89d9 UD |
7170 | # The cast to long int works around a bug in the HP C Compiler |
7171 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7172 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7173 | # This bug is HP SR number 8606223364. | |
7174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | |
7175 | $as_echo_n "checking size of long double... " >&6; } | |
f318beb8 | 7176 | if ${ac_cv_sizeof_long_double+:} false; then : |
b08c89d9 | 7177 | $as_echo_n "(cached) " >&6 |
3a12e572 | 7178 | else |
b08c89d9 | 7179 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : |
2abf9ff1 | 7180 | |
b08c89d9 UD |
7181 | else |
7182 | if test "$ac_cv_type_long_double" = yes; then | |
7183 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
322e23db | 7184 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4a531bb0 L |
7185 | as_fn_error 77 "cannot compute sizeof (long double) |
7186 | See \`config.log' for more details" "$LINENO" 5; } | |
26f56c1c UD |
7187 | else |
7188 | ac_cv_sizeof_long_double=0 | |
7189 | fi | |
3a12e572 | 7190 | fi |
b08c89d9 | 7191 | |
3a12e572 | 7192 | fi |
b08c89d9 | 7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
322e23db | 7194 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
26f56c1c UD |
7195 | |
7196 | ||
7197 | ||
3a12e572 | 7198 | cat >>confdefs.h <<_ACEOF |
8ed1e7d5 | 7199 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
3a12e572 | 7200 | _ACEOF |
8ed1e7d5 GK |
7201 | |
7202 | ||
7203 | sizeof_long_double=$ac_cv_sizeof_long_double | |
7204 | ||
7205 | ||
61653dfb RM |
7206 | CPPUNDEFS= |
7207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE predefine" >&5 | |
7208 | $as_echo_n "checking for _FORTIFY_SOURCE predefine... " >&6; } | |
7209 | if ${libc_cv_predef_fortify_source+:} false; then : | |
7210 | $as_echo_n "(cached) " >&6 | |
7211 | else | |
7212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7213 | /* end confdefs.h. */ | |
7214 | ||
7215 | int | |
7216 | main () | |
7217 | { | |
7218 | ||
7219 | #ifdef _FORTIFY_SOURCE | |
7220 | # error bogon | |
7221 | #endif | |
7222 | ; | |
7223 | return 0; | |
7224 | } | |
7225 | _ACEOF | |
7226 | if ac_fn_c_try_compile "$LINENO"; then : | |
7227 | libc_cv_predef_fortify_source=no | |
7228 | else | |
7229 | libc_cv_predef_fortify_source=yes | |
7230 | fi | |
7231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7232 | fi | |
7233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_fortify_source" >&5 | |
7234 | $as_echo "$libc_cv_predef_fortify_source" >&6; } | |
7235 | if test $libc_cv_predef_fortify_source = yes; then | |
7236 | CPPUNDEFS="${CPPUNDEFS:+$CPPUNDEFS }-U_FORTIFY_SOURCE" | |
7237 | fi | |
7238 | ||
7239 | ||
30b99d79 RM |
7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implicitly enables -fstack-protector" >&5 |
7241 | $as_echo_n "checking whether $CC implicitly enables -fstack-protector... " >&6; } | |
7242 | if ${libc_cv_predef_stack_protector+:} false; then : | |
7243 | $as_echo_n "(cached) " >&6 | |
7244 | else | |
7245 | ||
7246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7247 | /* end confdefs.h. */ | |
7248 | extern void foobar (char *); | |
7249 | int | |
7250 | main () | |
7251 | { | |
7252 | char large_array[2048]; foobar (large_array); | |
7253 | ; | |
7254 | return 0; | |
7255 | } | |
7256 | _ACEOF | |
7257 | if ac_fn_c_try_compile "$LINENO"; then : | |
7258 | ||
7259 | libc_undefs=`$NM -u conftest.o | | |
7260 | LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \ | |
7261 | 2>&5` || { | |
7262 | as_fn_error $? "confusing output from $NM -u" "$LINENO" 5 | |
7263 | } | |
7264 | echo >&5 "libc_undefs='$libc_undefs'" | |
59f0c22e JM |
7265 | # On some architectures, there are architecture-specific undefined |
7266 | # symbols (resolved by the linker), so filter out unknown symbols. | |
7267 | # This will fail to produce the correct result if the compiler | |
7268 | # defaults to -fstack-protector but this produces an undefined symbol | |
7269 | # other than __stack_chk_fail. However, compilers like that have not | |
7270 | # been encountered in practice. | |
7271 | libc_undefs=`echo "$libc_undefs" | egrep '^(foobar|__stack_chk_fail)$'` | |
30b99d79 RM |
7272 | case "$libc_undefs" in |
7273 | foobar) libc_cv_predef_stack_protector=no ;; | |
7274 | '__stack_chk_fail | |
7275 | foobar') libc_cv_predef_stack_protector=yes ;; | |
7276 | *) as_fn_error $? "unexpected symbols in test: $libc_undefs" "$LINENO" 5 ;; | |
7277 | esac | |
7278 | else | |
7279 | as_fn_error $? "test compilation failed" "$LINENO" 5 | |
7280 | fi | |
7281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7282 | ||
7283 | fi | |
7284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_stack_protector" >&5 | |
7285 | $as_echo "$libc_cv_predef_stack_protector" >&6; } | |
7286 | libc_extra_cflags= | |
7287 | if test $libc_cv_predef_stack_protector = yes; then | |
7288 | libc_extra_cflags=-fno-stack-protector | |
7289 | fi | |
7290 | ||
7291 | ||
cd6ede75 UD |
7292 | ### End of automated tests. |
7293 | ### Now run sysdeps configure fragments. | |
7294 | ||
cb343854 | 7295 | # They also can set these variables. |
b43b13ac | 7296 | use_ldconfig=no |
cb343854 | 7297 | ldd_rewrite_script=no |
77259608 | 7298 | libc_cv_sysconfdir=$sysconfdir |
4248b1b1 | 7299 | libc_cv_localstatedir=$localstatedir |
74bd2300 | 7300 | libc_cv_gcc_unwind_find_fde=no |
e2fd3cbe | 7301 | libc_cv_idn=no |
cb343854 | 7302 | |
cd6ede75 | 7303 | # Iterate over all the sysdep directories we will use, running their |
09055553 | 7304 | # configure fragments. |
cd6ede75 UD |
7305 | for dir in $sysnames; do |
7306 | case $dir in | |
7307 | /*) dest=$dir ;; | |
7308 | *) dest=$srcdir/$dir ;; | |
7309 | esac | |
7310 | if test -r $dest/configure; then | |
b08c89d9 | 7311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5 |
322e23db | 7312 | $as_echo "running configure fragment for $dir" >&6; } |
cd6ede75 UD |
7313 | . $dest/configure |
7314 | fi | |
cd6ede75 UD |
7315 | done |
7316 | ||
74bd2300 | 7317 | if test x$libc_cv_gcc_unwind_find_fde = xyes; then |
b08c89d9 | 7318 | $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h |
74bd2300 UD |
7319 | |
7320 | fi | |
7321 | ||
7322 | ||
6e6249d0 RM |
7323 | # A sysdeps configure fragment can reset this if IFUNC is not actually |
7324 | # usable even though the assembler knows how to generate the symbol type. | |
7325 | if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then | |
7326 | $as_echo "#define HAVE_IFUNC 1" >>confdefs.h | |
7327 | ||
7328 | fi | |
7329 | ||
3cc3ef96 RM |
7330 | # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps |
7331 | # configure fragment can override the value to prevent this AC_DEFINE. | |
7332 | ||
7333 | if test "x$use_nscd" != xno; then | |
7334 | $as_echo "#define USE_NSCD 1" >>confdefs.h | |
7335 | ||
7336 | fi | |
c53d909c RM |
7337 | if test "x$build_nscd" = xdefault; then |
7338 | build_nscd=$use_nscd | |
7339 | fi | |
3cc3ef96 | 7340 | |
a53bad16 UD |
7341 | # Test for old glibc 2.0.x headers so that they can be removed properly |
7342 | # Search only in includedir. | |
b08c89d9 | 7343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old glibc 2.0.x headers" >&5 |
322e23db | 7344 | $as_echo_n "checking for old glibc 2.0.x headers... " >&6; } |
011ce8ed | 7345 | if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h" |
a53bad16 UD |
7346 | then |
7347 | old_glibc_headers=yes | |
7348 | else | |
7349 | old_glibc_headers=no | |
7350 | fi | |
b08c89d9 | 7351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $old_glibc_headers" >&5 |
322e23db | 7352 | $as_echo "$old_glibc_headers" >&6; } |
a53bad16 | 7353 | if test ${old_glibc_headers} = yes; then |
b08c89d9 | 7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5 |
322e23db | 7355 | $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;} |
b08c89d9 | 7356 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** be removed." >&5 |
322e23db | 7357 | $as_echo "$as_me: WARNING: *** be removed." >&2;} |
a53bad16 | 7358 | fi |
26b4d766 | 7359 | |
cd6ede75 UD |
7360 | |
7361 | ||
7362 | ||
7363 | ||
7364 | ||
7365 | ||
cb343854 | 7366 | |
dff14448 | 7367 | |
77259608 | 7368 | |
3a12e572 | 7369 | |
bcd5f356 | 7370 | |
58a4b51a RM |
7371 | |
7372 | ||
06e51c8f | 7373 | |
b0ecde3a | 7374 | |
01f1f5ee | 7375 | |
091023f5 | 7376 | |
f57f8055 RM |
7377 | if test x$use_ldconfig = xyes; then |
7378 | $as_echo "#define USE_LDCONFIG 1" >>confdefs.h | |
7379 | ||
7380 | fi | |
af968f62 | 7381 | |
3b100462 | 7382 | |
eae47a36 | 7383 | |
7998fa78 | 7384 | |
650425ce | 7385 | |
a334319f | 7386 | |
b08c89d9 | 7387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5 |
322e23db | 7388 | $as_echo_n "checking whether -fPIC is default... " >&6; } |
f318beb8 | 7389 | if ${libc_cv_pic_default+:} false; then : |
322e23db | 7390 | $as_echo_n "(cached) " >&6 |
cc3fa755 | 7391 | else |
ff886b82 | 7392 | libc_cv_pic_default=yes |
cc3fa755 | 7393 | cat > conftest.c <<EOF |
9756dfe1 | 7394 | #if defined __PIC__ || defined __pic__ || defined PIC || defined pic |
cc3fa755 UD |
7395 | # error PIC is default. |
7396 | #endif | |
7397 | EOF | |
7398 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
ff886b82 | 7399 | libc_cv_pic_default=no |
cc3fa755 UD |
7400 | fi |
7401 | rm -f conftest.* | |
7402 | fi | |
b08c89d9 | 7403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5 |
322e23db | 7404 | $as_echo "$libc_cv_pic_default" >&6; } |
cc3fa755 UD |
7405 | |
7406 | ||
2103c260 | 7407 | |
2103c260 | 7408 | |
2103c260 | 7409 | |
cc3fa755 | 7410 | |
cd6ede75 UD |
7411 | |
7412 | ||
7413 | ||
ee74a442 UD |
7414 | VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h` |
7415 | RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h` | |
7416 | ||
cd6ede75 UD |
7417 | |
7418 | ||
728e272a | 7419 | ac_config_files="$ac_config_files config.make Makefile" |
f4b07664 | 7420 | |
26f56c1c | 7421 | ac_config_commands="$ac_config_commands default" |
f4b07664 | 7422 | |
3a12e572 | 7423 | cat >confcache <<\_ACEOF |
cd6ede75 UD |
7424 | # This file is a shell script that caches the results of configure |
7425 | # tests run on this system so they can be shared between configure | |
3a12e572 UD |
7426 | # scripts and configure runs, see configure's option --config-cache. |
7427 | # It is not useful on other systems. If it contains results you don't | |
7428 | # want to keep, you may remove or edit it. | |
cd6ede75 | 7429 | # |
3a12e572 UD |
7430 | # config.status only pays attention to the cache file if you give it |
7431 | # the --recheck option to rerun configure. | |
cd6ede75 | 7432 | # |
f4b07664 | 7433 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
3a12e572 UD |
7434 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
7435 | # following values. | |
7436 | ||
7437 | _ACEOF | |
7438 | ||
cd6ede75 UD |
7439 | # The following way of writing the cache mishandles newlines in values, |
7440 | # but we know of no workaround that is simple, portable, and efficient. | |
26f56c1c | 7441 | # So, we kill variables containing newlines. |
cd6ede75 UD |
7442 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7443 | # and sets the high bit in the cache file unless we assign to the vars. | |
26f56c1c UD |
7444 | ( |
7445 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7446 | eval ac_val=\$$ac_var | |
7447 | case $ac_val in #( | |
7448 | *${as_nl}*) | |
7449 | case $ac_var in #( | |
b08c89d9 | 7450 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
322e23db | 7451 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
26f56c1c UD |
7452 | esac |
7453 | case $ac_var in #( | |
7454 | _ | IFS | as_nl) ;; #( | |
322e23db | 7455 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b08c89d9 | 7456 | *) { eval $ac_var=; unset $ac_var;} ;; |
26f56c1c UD |
7457 | esac ;; |
7458 | esac | |
7459 | done | |
7460 | ||
3a12e572 | 7461 | (set) 2>&1 | |
26f56c1c UD |
7462 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7463 | *${as_nl}ac_space=\ *) | |
b08c89d9 UD |
7464 | # `set' does not quote correctly, so add quotes: double-quote |
7465 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
3a12e572 | 7466 | sed -n \ |
9382fcee RM |
7467 | "s/'/'\\\\''/g; |
7468 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
26f56c1c | 7469 | ;; #( |
3a12e572 UD |
7470 | *) |
7471 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
26f56c1c | 7472 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
3a12e572 | 7473 | ;; |
26f56c1c UD |
7474 | esac | |
7475 | sort | |
7476 | ) | | |
3a12e572 | 7477 | sed ' |
26f56c1c | 7478 | /^ac_cv_env_/b end |
3a12e572 | 7479 | t clear |
26f56c1c | 7480 | :clear |
3a12e572 UD |
7481 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7482 | t end | |
26f56c1c UD |
7483 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7484 | :end' >>confcache | |
7485 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7486 | if test -w "$cache_file"; then | |
f318beb8 | 7487 | if test "x$cache_file" != "x/dev/null"; then |
b08c89d9 | 7488 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
322e23db | 7489 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
f318beb8 UD |
7490 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
7491 | cat confcache >"$cache_file" | |
7492 | else | |
7493 | case $cache_file in #( | |
7494 | */* | ?:*) | |
7495 | mv -f confcache "$cache_file"$$ && | |
7496 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
7497 | *) | |
7498 | mv -f confcache "$cache_file" ;; | |
7499 | esac | |
7500 | fi | |
7501 | fi | |
cd6ede75 | 7502 | else |
b08c89d9 | 7503 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
322e23db | 7504 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
cd6ede75 UD |
7505 | fi |
7506 | fi | |
7507 | rm -f confcache | |
7508 | ||
cd6ede75 UD |
7509 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7510 | # Let make expand exec_prefix. | |
7511 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7512 | ||
cd6ede75 UD |
7513 | DEFS=-DHAVE_CONFIG_H |
7514 | ||
f4b07664 RM |
7515 | ac_libobjs= |
7516 | ac_ltlibobjs= | |
4a531bb0 | 7517 | U= |
f4b07664 RM |
7518 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7519 | # 1. Remove the extension, and $U if already installed. | |
26f56c1c | 7520 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
322e23db | 7521 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
26f56c1c UD |
7522 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
7523 | # will be set to the directory where LIBOBJS objects are built. | |
b08c89d9 UD |
7524 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
7525 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
f4b07664 RM |
7526 | done |
7527 | LIBOBJS=$ac_libobjs | |
7528 | ||
7529 | LTLIBOBJS=$ac_ltlibobjs | |
7530 | ||
7531 | ||
cd6ede75 | 7532 | |
f318beb8 | 7533 | : "${CONFIG_STATUS=./config.status}" |
322e23db | 7534 | ac_write_fail=0 |
3a12e572 UD |
7535 | ac_clean_files_save=$ac_clean_files |
7536 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b08c89d9 | 7537 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
322e23db | 7538 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b08c89d9 UD |
7539 | as_write_fail=0 |
7540 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
3a12e572 UD |
7541 | #! $SHELL |
7542 | # Generated by $as_me. | |
cd6ede75 | 7543 | # Run this file to recreate the current configuration. |
cd6ede75 | 7544 | # Compiler output produced by configure, useful for debugging |
3a12e572 | 7545 | # configure, is in config.log if it exists. |
cd6ede75 | 7546 | |
3a12e572 | 7547 | debug=false |
2abf9ff1 RM |
7548 | ac_cs_recheck=false |
7549 | ac_cs_silent=false | |
3a12e572 | 7550 | |
b08c89d9 UD |
7551 | SHELL=\${CONFIG_SHELL-$SHELL} |
7552 | export SHELL | |
7553 | _ASEOF | |
7554 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7555 | ## -------------------- ## | |
7556 | ## M4sh Initialization. ## | |
7557 | ## -------------------- ## | |
3a12e572 | 7558 | |
26f56c1c UD |
7559 | # Be more Bourne compatible |
7560 | DUALCASE=1; export DUALCASE # for MKS sh | |
b08c89d9 | 7561 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
3a12e572 UD |
7562 | emulate sh |
7563 | NULLCMD=: | |
322e23db | 7564 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
f4b07664 RM |
7565 | # is contrary to our usage. Disable this feature. |
7566 | alias -g '${1+"$@"}'='"$@"' | |
26f56c1c UD |
7567 | setopt NO_GLOB_SUBST |
7568 | else | |
b08c89d9 UD |
7569 | case `(set -o) 2>/dev/null` in #( |
7570 | *posix*) : | |
7571 | set -o posix ;; #( | |
7572 | *) : | |
7573 | ;; | |
26f56c1c | 7574 | esac |
26f56c1c UD |
7575 | fi |
7576 | ||
7577 | ||
322e23db UD |
7578 | as_nl=' |
7579 | ' | |
7580 | export as_nl | |
7581 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7582 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7583 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7584 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b08c89d9 UD |
7585 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
7586 | # but without wasting forks for bash or zsh. | |
7587 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7588 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7589 | as_echo='print -r --' | |
7590 | as_echo_n='print -rn --' | |
7591 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
322e23db UD |
7592 | as_echo='printf %s\n' |
7593 | as_echo_n='printf %s' | |
7594 | else | |
7595 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7596 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7597 | as_echo_n='/usr/ucb/echo -n' | |
a152f366 | 7598 | else |
322e23db UD |
7599 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
7600 | as_echo_n_body='eval | |
7601 | arg=$1; | |
b08c89d9 | 7602 | case $arg in #( |
322e23db UD |
7603 | *"$as_nl"*) |
7604 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7605 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7606 | esac; | |
7607 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7608 | ' | |
7609 | export as_echo_n_body | |
7610 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
a152f366 | 7611 | fi |
322e23db UD |
7612 | export as_echo_body |
7613 | as_echo='sh -c $as_echo_body as_echo' | |
7614 | fi | |
7615 | ||
7616 | # The user is always right. | |
7617 | if test "${PATH_SEPARATOR+set}" != set; then | |
7618 | PATH_SEPARATOR=: | |
7619 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7620 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7621 | PATH_SEPARATOR=';' | |
7622 | } | |
3a12e572 UD |
7623 | fi |
7624 | ||
f4b07664 | 7625 | |
26f56c1c UD |
7626 | # IFS |
7627 | # We need space, tab and new line, in precisely that order. Quoting is | |
7628 | # there to prevent editors from complaining about space-tab. | |
7629 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7630 | # splitting by setting IFS to empty value.) | |
26f56c1c UD |
7631 | IFS=" "" $as_nl" |
7632 | ||
7633 | # Find who we are. Look in the path if we contain no directory separator. | |
f318beb8 | 7634 | as_myself= |
b08c89d9 | 7635 | case $0 in #(( |
26f56c1c UD |
7636 | *[\\/]* ) as_myself=$0 ;; |
7637 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7638 | for as_dir in $PATH | |
7639 | do | |
7640 | IFS=$as_save_IFS | |
7641 | test -z "$as_dir" && as_dir=. | |
b08c89d9 UD |
7642 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
7643 | done | |
26f56c1c UD |
7644 | IFS=$as_save_IFS |
7645 | ||
7646 | ;; | |
7647 | esac | |
7648 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7649 | # in which case we are not to be found in the path. | |
7650 | if test "x$as_myself" = x; then | |
7651 | as_myself=$0 | |
7652 | fi | |
7653 | if test ! -f "$as_myself"; then | |
322e23db | 7654 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b08c89d9 | 7655 | exit 1 |
26f56c1c UD |
7656 | fi |
7657 | ||
b08c89d9 UD |
7658 | # Unset variables that we do not need and which cause bugs (e.g. in |
7659 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7660 | # suppresses any "Segmentation fault" message there. '((' could | |
7661 | # trigger a bug in pdksh 5.2.14. | |
7662 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7663 | do eval test x\${$as_var+set} = xset \ | |
7664 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
26f56c1c | 7665 | done |
f4b07664 RM |
7666 | PS1='$ ' |
7667 | PS2='> ' | |
7668 | PS4='+ ' | |
7669 | ||
7670 | # NLS nuisances. | |
322e23db UD |
7671 | LC_ALL=C |
7672 | export LC_ALL | |
7673 | LANGUAGE=C | |
7674 | export LANGUAGE | |
f4b07664 | 7675 | |
b08c89d9 UD |
7676 | # CDPATH. |
7677 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7678 | ||
7679 | ||
4a531bb0 L |
7680 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
7681 | # ---------------------------------------- | |
b08c89d9 UD |
7682 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
7683 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4a531bb0 | 7684 | # script with STATUS, using 1 if that was 0. |
b08c89d9 UD |
7685 | as_fn_error () |
7686 | { | |
4a531bb0 L |
7687 | as_status=$1; test $as_status -eq 0 && as_status=1 |
7688 | if test "$4"; then | |
7689 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7690 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b08c89d9 | 7691 | fi |
4a531bb0 | 7692 | $as_echo "$as_me: error: $2" >&2 |
b08c89d9 UD |
7693 | as_fn_exit $as_status |
7694 | } # as_fn_error | |
7695 | ||
7696 | ||
7697 | # as_fn_set_status STATUS | |
7698 | # ----------------------- | |
7699 | # Set $? to STATUS, without forking. | |
7700 | as_fn_set_status () | |
7701 | { | |
7702 | return $1 | |
7703 | } # as_fn_set_status | |
7704 | ||
7705 | # as_fn_exit STATUS | |
7706 | # ----------------- | |
7707 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7708 | as_fn_exit () | |
7709 | { | |
7710 | set +e | |
7711 | as_fn_set_status $1 | |
7712 | exit $1 | |
7713 | } # as_fn_exit | |
7714 | ||
7715 | # as_fn_unset VAR | |
7716 | # --------------- | |
7717 | # Portably unset VAR. | |
7718 | as_fn_unset () | |
7719 | { | |
7720 | { eval $1=; unset $1;} | |
7721 | } | |
7722 | as_unset=as_fn_unset | |
7723 | # as_fn_append VAR VALUE | |
7724 | # ---------------------- | |
7725 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7726 | # advantage of any shell optimizations that allow amortized linear growth over | |
7727 | # repeated appends, instead of the typical quadratic growth present in naive | |
7728 | # implementations. | |
7729 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7730 | eval 'as_fn_append () | |
7731 | { | |
7732 | eval $1+=\$2 | |
7733 | }' | |
7734 | else | |
7735 | as_fn_append () | |
7736 | { | |
7737 | eval $1=\$$1\$2 | |
7738 | } | |
7739 | fi # as_fn_append | |
7740 | ||
7741 | # as_fn_arith ARG... | |
7742 | # ------------------ | |
7743 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7744 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7745 | # must be portable across $(()) and expr. | |
7746 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7747 | eval 'as_fn_arith () | |
7748 | { | |
7749 | as_val=$(( $* )) | |
7750 | }' | |
7751 | else | |
7752 | as_fn_arith () | |
7753 | { | |
7754 | as_val=`expr "$@" || test $? -eq 1` | |
7755 | } | |
7756 | fi # as_fn_arith | |
7757 | ||
7758 | ||
26f56c1c UD |
7759 | if expr a : '\(a\)' >/dev/null 2>&1 && |
7760 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f4b07664 RM |
7761 | as_expr=expr |
7762 | else | |
7763 | as_expr=false | |
7764 | fi | |
7765 | ||
26f56c1c | 7766 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
f4b07664 RM |
7767 | as_basename=basename |
7768 | else | |
7769 | as_basename=false | |
7770 | fi | |
3a12e572 | 7771 | |
b08c89d9 UD |
7772 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7773 | as_dirname=dirname | |
7774 | else | |
7775 | as_dirname=false | |
7776 | fi | |
3a12e572 | 7777 | |
26f56c1c | 7778 | as_me=`$as_basename -- "$0" || |
3a12e572 UD |
7779 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7780 | X"$0" : 'X\(//\)$' \| \ | |
26f56c1c | 7781 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
322e23db | 7782 | $as_echo X/"$0" | |
26f56c1c UD |
7783 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
7784 | s//\1/ | |
7785 | q | |
7786 | } | |
7787 | /^X\/\(\/\/\)$/{ | |
7788 | s//\1/ | |
7789 | q | |
7790 | } | |
7791 | /^X\/\(\/\).*/{ | |
7792 | s//\1/ | |
7793 | q | |
7794 | } | |
7795 | s/.*/./; q'` | |
3a12e572 | 7796 | |
b08c89d9 UD |
7797 | # Avoid depending upon Character Ranges. |
7798 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7799 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7800 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7801 | as_cr_digits='0123456789' | |
7802 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
26f56c1c UD |
7803 | |
7804 | ECHO_C= ECHO_N= ECHO_T= | |
b08c89d9 | 7805 | case `echo -n x` in #((((( |
26f56c1c | 7806 | -n*) |
b08c89d9 | 7807 | case `echo 'xy\c'` in |
26f56c1c | 7808 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b08c89d9 UD |
7809 | xy) ECHO_C='\c';; |
7810 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7811 | ECHO_T=' ';; | |
26f56c1c UD |
7812 | esac;; |
7813 | *) | |
7814 | ECHO_N='-n';; | |
3a12e572 | 7815 | esac |
cd6ede75 | 7816 | |
3a12e572 | 7817 | rm -f conf$$ conf$$.exe conf$$.file |
26f56c1c UD |
7818 | if test -d conf$$.dir; then |
7819 | rm -f conf$$.dir/conf$$.file | |
7820 | else | |
7821 | rm -f conf$$.dir | |
322e23db UD |
7822 | mkdir conf$$.dir 2>/dev/null |
7823 | fi | |
7824 | if (echo >conf$$.file) 2>/dev/null; then | |
7825 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7826 | as_ln_s='ln -s' | |
7827 | # ... but there are two gotchas: | |
7828 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7829 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7830 | # In both cases, we have to default to `cp -p'. | |
7831 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
7832 | as_ln_s='cp -p' | |
7833 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7834 | as_ln_s=ln | |
7835 | else | |
3a12e572 | 7836 | as_ln_s='cp -p' |
322e23db | 7837 | fi |
3a12e572 UD |
7838 | else |
7839 | as_ln_s='cp -p' | |
cd6ede75 | 7840 | fi |
26f56c1c UD |
7841 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7842 | rmdir conf$$.dir 2>/dev/null | |
cd6ede75 | 7843 | |
b08c89d9 UD |
7844 | |
7845 | # as_fn_mkdir_p | |
7846 | # ------------- | |
7847 | # Create "$as_dir" as a directory, including parents if necessary. | |
7848 | as_fn_mkdir_p () | |
7849 | { | |
7850 | ||
7851 | case $as_dir in #( | |
7852 | -*) as_dir=./$as_dir;; | |
7853 | esac | |
7854 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7855 | as_dirs= | |
7856 | while :; do | |
7857 | case $as_dir in #( | |
7858 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7859 | *) as_qdir=$as_dir;; | |
7860 | esac | |
7861 | as_dirs="'$as_qdir' $as_dirs" | |
7862 | as_dir=`$as_dirname -- "$as_dir" || | |
7863 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7864 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7865 | X"$as_dir" : 'X\(//\)$' \| \ | |
7866 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7867 | $as_echo X"$as_dir" | | |
7868 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7869 | s//\1/ | |
7870 | q | |
7871 | } | |
7872 | /^X\(\/\/\)[^/].*/{ | |
7873 | s//\1/ | |
7874 | q | |
7875 | } | |
7876 | /^X\(\/\/\)$/{ | |
7877 | s//\1/ | |
7878 | q | |
7879 | } | |
7880 | /^X\(\/\).*/{ | |
7881 | s//\1/ | |
7882 | q | |
7883 | } | |
7884 | s/.*/./; q'` | |
7885 | test -d "$as_dir" && break | |
7886 | done | |
7887 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4a531bb0 | 7888 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b08c89d9 UD |
7889 | |
7890 | ||
7891 | } # as_fn_mkdir_p | |
f4b07664 | 7892 | if mkdir -p . 2>/dev/null; then |
b08c89d9 | 7893 | as_mkdir_p='mkdir -p "$as_dir"' |
f4b07664 | 7894 | else |
9382fcee | 7895 | test -d ./-p && rmdir ./-p |
f4b07664 RM |
7896 | as_mkdir_p=false |
7897 | fi | |
7898 | ||
26f56c1c UD |
7899 | if test -x / >/dev/null 2>&1; then |
7900 | as_test_x='test -x' | |
7901 | else | |
7902 | if ls -dL / >/dev/null 2>&1; then | |
7903 | as_ls_L_option=L | |
7904 | else | |
7905 | as_ls_L_option= | |
7906 | fi | |
7907 | as_test_x=' | |
7908 | eval sh -c '\'' | |
7909 | if test -d "$1"; then | |
322e23db | 7910 | test -d "$1/."; |
26f56c1c | 7911 | else |
b08c89d9 | 7912 | case $1 in #( |
322e23db | 7913 | -*)set "./$1";; |
26f56c1c | 7914 | esac; |
b08c89d9 | 7915 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
26f56c1c UD |
7916 | ???[sx]*):;;*)false;;esac;fi |
7917 | '\'' sh | |
7918 | ' | |
7919 | fi | |
7920 | as_executable_p=$as_test_x | |
cd6ede75 | 7921 | |
3a12e572 | 7922 | # Sed expression to map a string onto a valid CPP name. |
9382fcee | 7923 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
3a12e572 UD |
7924 | |
7925 | # Sed expression to map a string onto a valid variable name. | |
9382fcee | 7926 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
3a12e572 UD |
7927 | |
7928 | ||
3a12e572 | 7929 | exec 6>&1 |
b08c89d9 UD |
7930 | ## ----------------------------------- ## |
7931 | ## Main body of $CONFIG_STATUS script. ## | |
7932 | ## ----------------------------------- ## | |
7933 | _ASEOF | |
7934 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
3a12e572 | 7935 | |
b08c89d9 UD |
7936 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7937 | # Save the log message, to keep $0 and so on meaningful, and to | |
3a12e572 | 7938 | # report actual input values of CONFIG_FILES etc. instead of their |
26f56c1c UD |
7939 | # values after options handling. |
7940 | ac_log=" | |
f4b07664 | 7941 | This file was extended by GNU C Library $as_me (see version.h), which was |
f318beb8 | 7942 | generated by GNU Autoconf 2.68. Invocation command line was |
3a12e572 UD |
7943 | |
7944 | CONFIG_FILES = $CONFIG_FILES | |
7945 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7946 | CONFIG_LINKS = $CONFIG_LINKS | |
7947 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7948 | $ $0 $@ | |
7949 | ||
26f56c1c UD |
7950 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7951 | " | |
7952 | ||
3a12e572 UD |
7953 | _ACEOF |
7954 | ||
322e23db UD |
7955 | case $ac_config_files in *" |
7956 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7957 | esac | |
7958 | ||
7959 | case $ac_config_headers in *" | |
7960 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7961 | esac | |
7962 | ||
7963 | ||
7964 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3a12e572 | 7965 | # Files that config.status was made for. |
26f56c1c UD |
7966 | config_files="$ac_config_files" |
7967 | config_headers="$ac_config_headers" | |
7968 | config_commands="$ac_config_commands" | |
3a12e572 | 7969 | |
26f56c1c | 7970 | _ACEOF |
3a12e572 | 7971 | |
322e23db | 7972 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3a12e572 | 7973 | ac_cs_usage="\ |
b08c89d9 UD |
7974 | \`$as_me' instantiates files and other configuration actions |
7975 | from templates according to the current configuration. Unless the files | |
7976 | and actions are specified as TAGs, all are instantiated by default. | |
3a12e572 | 7977 | |
b08c89d9 | 7978 | Usage: $0 [OPTION]... [TAG]... |
3a12e572 UD |
7979 | |
7980 | -h, --help print this help, then exit | |
26f56c1c | 7981 | -V, --version print version number and configuration settings, then exit |
b08c89d9 | 7982 | --config print configuration, then exit |
322e23db UD |
7983 | -q, --quiet, --silent |
7984 | do not print progress messages | |
3a12e572 UD |
7985 | -d, --debug don't remove temporary files |
7986 | --recheck update $as_me by reconfiguring in the same conditions | |
322e23db UD |
7987 | --file=FILE[:TEMPLATE] |
7988 | instantiate the configuration file FILE | |
7989 | --header=FILE[:TEMPLATE] | |
7990 | instantiate the configuration header FILE | |
3a12e572 UD |
7991 | |
7992 | Configuration files: | |
7993 | $config_files | |
7994 | ||
7995 | Configuration headers: | |
7996 | $config_headers | |
7997 | ||
3a12e572 UD |
7998 | Configuration commands: |
7999 | $config_commands | |
8000 | ||
f318beb8 UD |
8001 | Report bugs to <http://sourceware.org/bugzilla/>. |
8002 | GNU C Library home page: <http://www.gnu.org/software/glibc/>. | |
b08c89d9 | 8003 | General help using GNU software: <http://www.gnu.org/gethelp/>." |
3a12e572 | 8004 | |
26f56c1c | 8005 | _ACEOF |
322e23db | 8006 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b08c89d9 | 8007 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
3a12e572 | 8008 | ac_cs_version="\\ |
f4b07664 | 8009 | GNU C Library config.status (see version.h) |
f318beb8 | 8010 | configured by $0, generated by GNU Autoconf 2.68, |
b08c89d9 | 8011 | with options \\"\$ac_cs_config\\" |
3a12e572 | 8012 | |
4a531bb0 | 8013 | Copyright (C) 2010 Free Software Foundation, Inc. |
3a12e572 UD |
8014 | This config.status script is free software; the Free Software Foundation |
8015 | gives unlimited permission to copy, distribute and modify it." | |
26f56c1c UD |
8016 | |
8017 | ac_pwd='$ac_pwd' | |
8018 | srcdir='$srcdir' | |
8019 | INSTALL='$INSTALL' | |
322e23db | 8020 | test -n "\$AWK" || AWK=awk |
3a12e572 UD |
8021 | _ACEOF |
8022 | ||
322e23db UD |
8023 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8024 | # The default lists apply if the user does not specify any file. | |
3a12e572 UD |
8025 | ac_need_defaults=: |
8026 | while test $# != 0 | |
8027 | do | |
8028 | case $1 in | |
f318beb8 | 8029 | --*=?*) |
26f56c1c UD |
8030 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8031 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
f4b07664 RM |
8032 | ac_shift=: |
8033 | ;; | |
f318beb8 UD |
8034 | --*=) |
8035 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
8036 | ac_optarg= | |
8037 | ac_shift=: | |
8038 | ;; | |
26f56c1c | 8039 | *) |
f4b07664 RM |
8040 | ac_option=$1 |
8041 | ac_optarg=$2 | |
8042 | ac_shift=shift | |
3a12e572 | 8043 | ;; |
cd6ede75 UD |
8044 | esac |
8045 | ||
f4b07664 | 8046 | case $ac_option in |
3a12e572 | 8047 | # Handling of the options. |
2abf9ff1 RM |
8048 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8049 | ac_cs_recheck=: ;; | |
26f56c1c | 8050 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
322e23db | 8051 | $as_echo "$ac_cs_version"; exit ;; |
b08c89d9 UD |
8052 | --config | --confi | --conf | --con | --co | --c ) |
8053 | $as_echo "$ac_cs_config"; exit ;; | |
26f56c1c | 8054 | --debug | --debu | --deb | --de | --d | -d ) |
3a12e572 UD |
8055 | debug=: ;; |
8056 | --file | --fil | --fi | --f ) | |
f4b07664 | 8057 | $ac_shift |
322e23db UD |
8058 | case $ac_optarg in |
8059 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
f318beb8 | 8060 | '') as_fn_error $? "missing file argument" ;; |
322e23db | 8061 | esac |
b08c89d9 | 8062 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
3a12e572 UD |
8063 | ac_need_defaults=false;; |
8064 | --header | --heade | --head | --hea ) | |
f4b07664 | 8065 | $ac_shift |
322e23db UD |
8066 | case $ac_optarg in |
8067 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8068 | esac | |
b08c89d9 | 8069 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
3a12e572 | 8070 | ac_need_defaults=false;; |
26f56c1c UD |
8071 | --he | --h) |
8072 | # Conflict between --help and --header | |
4a531bb0 | 8073 | as_fn_error $? "ambiguous option: \`$1' |
b08c89d9 | 8074 | Try \`$0 --help' for more information.";; |
26f56c1c | 8075 | --help | --hel | -h ) |
322e23db | 8076 | $as_echo "$ac_cs_usage"; exit ;; |
2abf9ff1 RM |
8077 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8078 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8079 | ac_cs_silent=: ;; | |
3a12e572 UD |
8080 | |
8081 | # This is an error. | |
4a531bb0 | 8082 | -*) as_fn_error $? "unrecognized option: \`$1' |
b08c89d9 | 8083 | Try \`$0 --help' for more information." ;; |
3a12e572 | 8084 | |
b08c89d9 | 8085 | *) as_fn_append ac_config_targets " $1" |
26f56c1c | 8086 | ac_need_defaults=false ;; |
cd6ede75 | 8087 | |
3a12e572 UD |
8088 | esac |
8089 | shift | |
8090 | done | |
8091 | ||
2abf9ff1 RM |
8092 | ac_configure_extra_args= |
8093 | ||
8094 | if $ac_cs_silent; then | |
8095 | exec 6>/dev/null | |
8096 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8097 | fi | |
8098 | ||
8099 | _ACEOF | |
322e23db | 8100 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2abf9ff1 | 8101 | if \$ac_cs_recheck; then |
322e23db UD |
8102 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8103 | shift | |
8104 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8105 | CONFIG_SHELL='$SHELL' | |
26f56c1c | 8106 | export CONFIG_SHELL |
322e23db | 8107 | exec "\$@" |
2abf9ff1 RM |
8108 | fi |
8109 | ||
3a12e572 | 8110 | _ACEOF |
322e23db | 8111 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
8112 | exec 5>>config.log |
8113 | { | |
8114 | echo | |
8115 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8116 | ## Running $as_me. ## | |
8117 | _ASBOX | |
322e23db | 8118 | $as_echo "$ac_log" |
26f56c1c | 8119 | } >&5 |
3a12e572 | 8120 | |
26f56c1c | 8121 | _ACEOF |
322e23db | 8122 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3a12e572 | 8123 | # |
26f56c1c | 8124 | # INIT-COMMANDS |
3a12e572 | 8125 | # |
3a12e572 UD |
8126 | config_vars='$config_vars' |
8127 | ||
8128 | _ACEOF | |
8129 | ||
322e23db | 8130 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
8131 | |
8132 | # Handling of arguments. | |
3a12e572 UD |
8133 | for ac_config_target in $ac_config_targets |
8134 | do | |
26f56c1c UD |
8135 | case $ac_config_target in |
8136 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
8137 | "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;; | |
728e272a | 8138 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
26f56c1c UD |
8139 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
8140 | ||
4a531bb0 | 8141 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
3a12e572 UD |
8142 | esac |
8143 | done | |
8144 | ||
26f56c1c | 8145 | |
3a12e572 UD |
8146 | # If the user did not use the arguments to specify the items to instantiate, |
8147 | # then the envvar interface is used. Set only those that are not. | |
8148 | # We use the long form for the default assignment because of an extremely | |
8149 | # bizarre bug on SunOS 4.1.3. | |
8150 | if $ac_need_defaults; then | |
8151 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8152 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
3a12e572 UD |
8153 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
8154 | fi | |
8155 | ||
2abf9ff1 | 8156 | # Have a temporary directory for convenience. Make it in the build tree |
26f56c1c | 8157 | # simply because there is no reason against having it here, and in addition, |
2abf9ff1 | 8158 | # creating and moving files from /tmp can sometimes cause problems. |
26f56c1c UD |
8159 | # Hook for its removal unless debugging. |
8160 | # Note that there is a small window in which the directory will not be cleaned: | |
8161 | # after its creation but before its name has been assigned to `$tmp'. | |
3a12e572 UD |
8162 | $debug || |
8163 | { | |
f318beb8 | 8164 | tmp= ac_tmp= |
26f56c1c | 8165 | trap 'exit_status=$? |
f318beb8 UD |
8166 | : "${ac_tmp:=$tmp}" |
8167 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
26f56c1c | 8168 | ' 0 |
b08c89d9 | 8169 | trap 'as_fn_exit 1' 1 2 13 15 |
3a12e572 | 8170 | } |
3a12e572 | 8171 | # Create a (secure) tmp directory for tmp files. |
2abf9ff1 | 8172 | |
3a12e572 | 8173 | { |
26f56c1c | 8174 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
f318beb8 | 8175 | test -d "$tmp" |
3a12e572 UD |
8176 | } || |
8177 | { | |
26f56c1c UD |
8178 | tmp=./conf$$-$RANDOM |
8179 | (umask 077 && mkdir "$tmp") | |
4a531bb0 | 8180 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
f318beb8 | 8181 | ac_tmp=$tmp |
3a12e572 | 8182 | |
322e23db UD |
8183 | # Set up the scripts for CONFIG_FILES section. |
8184 | # No need to generate them if there are no CONFIG_FILES. | |
8185 | # This happens for instance with `./config.status config.h'. | |
26f56c1c UD |
8186 | if test -n "$CONFIG_FILES"; then |
8187 | ||
a152f366 | 8188 | |
b08c89d9 UD |
8189 | ac_cr=`echo X | tr X '\015'` |
8190 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8191 | # But we know of no other shell where ac_cr would be empty at this | |
8192 | # point, so we can use a bashism as a fallback. | |
8193 | if test "x$ac_cr" = x; then | |
8194 | eval ac_cr=\$\'\\r\' | |
8195 | fi | |
322e23db UD |
8196 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
8197 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
4a531bb0 | 8198 | ac_cs_awk_cr='\\r' |
322e23db UD |
8199 | else |
8200 | ac_cs_awk_cr=$ac_cr | |
26f56c1c UD |
8201 | fi |
8202 | ||
f318beb8 | 8203 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
26f56c1c UD |
8204 | _ACEOF |
8205 | ||
8206 | ||
322e23db UD |
8207 | { |
8208 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8209 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8210 | echo "_ACEOF" | |
8211 | } >conf$$subs.sh || | |
4a531bb0 L |
8212 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8213 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
26f56c1c UD |
8214 | ac_delim='%!_!# ' |
8215 | for ac_last_try in false false false false false :; do | |
322e23db | 8216 | . ./conf$$subs.sh || |
4a531bb0 | 8217 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
322e23db UD |
8218 | |
8219 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8220 | if test $ac_delim_n = $ac_delim_num; then | |
26f56c1c UD |
8221 | break |
8222 | elif $ac_last_try; then | |
4a531bb0 | 8223 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
26f56c1c UD |
8224 | else |
8225 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8226 | fi | |
8227 | done | |
322e23db UD |
8228 | rm -f conf$$subs.sh |
8229 | ||
8230 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f318beb8 | 8231 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
322e23db UD |
8232 | _ACEOF |
8233 | sed -n ' | |
8234 | h | |
8235 | s/^/S["/; s/!.*/"]=/ | |
8236 | p | |
8237 | g | |
8238 | s/^[^!]*!// | |
8239 | :repl | |
8240 | t repl | |
8241 | s/'"$ac_delim"'$// | |
8242 | t delim | |
8243 | :nl | |
8244 | h | |
b08c89d9 | 8245 | s/\(.\{148\}\)..*/\1/ |
322e23db UD |
8246 | t more1 |
8247 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8248 | p | |
8249 | n | |
8250 | b repl | |
8251 | :more1 | |
8252 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8253 | p | |
8254 | g | |
8255 | s/.\{148\}// | |
8256 | t nl | |
8257 | :delim | |
8258 | h | |
b08c89d9 | 8259 | s/\(.\{148\}\)..*/\1/ |
322e23db UD |
8260 | t more2 |
8261 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8262 | p | |
8263 | b | |
8264 | :more2 | |
8265 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8266 | p | |
8267 | g | |
8268 | s/.\{148\}// | |
8269 | t delim | |
8270 | ' <conf$$subs.awk | sed ' | |
8271 | /^[^""]/{ | |
8272 | N | |
8273 | s/\n// | |
8274 | } | |
8275 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8276 | rm -f conf$$subs.awk | |
8277 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8278 | _ACAWK | |
f318beb8 | 8279 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
322e23db UD |
8280 | for (key in S) S_is_set[key] = 1 |
8281 | FS = "\a" | |
ff886b82 | 8282 | |
322e23db UD |
8283 | } |
8284 | { | |
8285 | line = $ 0 | |
8286 | nfields = split(line, field, "@") | |
8287 | substed = 0 | |
8288 | len = length(field[1]) | |
8289 | for (i = 2; i < nfields; i++) { | |
8290 | key = field[i] | |
8291 | keylen = length(key) | |
8292 | if (S_is_set[key]) { | |
8293 | value = S[key] | |
8294 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8295 | len += length(value) + length(field[++i]) | |
8296 | substed = 1 | |
8297 | } else | |
8298 | len += 1 + keylen | |
8299 | } | |
8300 | ||
8301 | print line | |
8302 | } | |
cd6ede75 | 8303 | |
322e23db | 8304 | _ACAWK |
26f56c1c | 8305 | _ACEOF |
322e23db UD |
8306 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8307 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8308 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8309 | else | |
8310 | cat | |
f318beb8 | 8311 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
4a531bb0 | 8312 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
3a12e572 | 8313 | _ACEOF |
26f56c1c | 8314 | |
4a531bb0 L |
8315 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
8316 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
26f56c1c UD |
8317 | # trailing colons and then remove the whole line if VPATH becomes empty |
8318 | # (actually we leave an empty line to preserve line numbers). | |
8319 | if test "x$srcdir" = x.; then | |
4a531bb0 L |
8320 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
8321 | h | |
8322 | s/// | |
8323 | s/^/:/ | |
8324 | s/[ ]*$/:/ | |
8325 | s/:\$(srcdir):/:/g | |
8326 | s/:\${srcdir}:/:/g | |
8327 | s/:@srcdir@:/:/g | |
8328 | s/^:*// | |
26f56c1c | 8329 | s/:*$// |
4a531bb0 L |
8330 | x |
8331 | s/\(=[ ]*\).*/\1/ | |
8332 | G | |
8333 | s/\n// | |
26f56c1c UD |
8334 | s/^[^=]*=[ ]*$// |
8335 | }' | |
8336 | fi | |
8337 | ||
322e23db | 8338 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
8339 | fi # test -n "$CONFIG_FILES" |
8340 | ||
322e23db UD |
8341 | # Set up the scripts for CONFIG_HEADERS section. |
8342 | # No need to generate them if there are no CONFIG_HEADERS. | |
8343 | # This happens for instance with `./config.status Makefile'. | |
8344 | if test -n "$CONFIG_HEADERS"; then | |
f318beb8 | 8345 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
322e23db UD |
8346 | BEGIN { |
8347 | _ACEOF | |
8348 | ||
8349 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
8350 | # here-document in config.status, that substitutes the proper values into | |
8351 | # config.h.in to produce config.h. | |
8352 | ||
8353 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8354 | # handling of long lines. | |
8355 | ac_delim='%!_!# ' | |
8356 | for ac_last_try in false false :; do | |
f318beb8 UD |
8357 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
8358 | if test -z "$ac_tt"; then | |
322e23db UD |
8359 | break |
8360 | elif $ac_last_try; then | |
4a531bb0 | 8361 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
322e23db UD |
8362 | else |
8363 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8364 | fi | |
8365 | done | |
8366 | ||
8367 | # For the awk script, D is an array of macro values keyed by name, | |
8368 | # likewise P contains macro parameters if any. Preserve backslash | |
8369 | # newline sequences. | |
8370 | ||
8371 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8372 | sed -n ' | |
8373 | s/.\{148\}/&'"$ac_delim"'/g | |
8374 | t rset | |
8375 | :rset | |
8376 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8377 | t def | |
8378 | d | |
8379 | :def | |
8380 | s/\\$// | |
8381 | t bsnl | |
8382 | s/["\\]/\\&/g | |
8383 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8384 | D["\1"]=" \3"/p | |
8385 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8386 | d | |
8387 | :bsnl | |
8388 | s/["\\]/\\&/g | |
8389 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8390 | D["\1"]=" \3\\\\\\n"\\/p | |
8391 | t cont | |
8392 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8393 | t cont | |
8394 | d | |
8395 | :cont | |
8396 | n | |
8397 | s/.\{148\}/&'"$ac_delim"'/g | |
8398 | t clear | |
8399 | :clear | |
8400 | s/\\$// | |
8401 | t bsnlc | |
8402 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8403 | d | |
8404 | :bsnlc | |
8405 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8406 | b cont | |
8407 | ' <confdefs.h | sed ' | |
8408 | s/'"$ac_delim"'/"\\\ | |
8409 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8410 | ||
8411 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8412 | for (key in D) D_is_set[key] = 1 | |
8413 | FS = "\a" | |
8414 | } | |
8415 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8416 | line = \$ 0 | |
8417 | split(line, arg, " ") | |
8418 | if (arg[1] == "#") { | |
8419 | defundef = arg[2] | |
8420 | mac1 = arg[3] | |
8421 | } else { | |
8422 | defundef = substr(arg[1], 2) | |
8423 | mac1 = arg[2] | |
8424 | } | |
8425 | split(mac1, mac2, "(") #) | |
8426 | macro = mac2[1] | |
8427 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8428 | if (D_is_set[macro]) { | |
8429 | # Preserve the white space surrounding the "#". | |
8430 | print prefix "define", macro P[macro] D[macro] | |
8431 | next | |
8432 | } else { | |
8433 | # Replace #undef with comments. This is necessary, for example, | |
8434 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8435 | # on some systems where configure will not decide to define it. | |
8436 | if (defundef == "undef") { | |
8437 | print "/*", prefix defundef, macro, "*/" | |
8438 | next | |
8439 | } | |
8440 | } | |
8441 | } | |
8442 | { print } | |
8443 | _ACAWK | |
8444 | _ACEOF | |
8445 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4a531bb0 | 8446 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
322e23db UD |
8447 | fi # test -n "$CONFIG_HEADERS" |
8448 | ||
26f56c1c | 8449 | |
322e23db UD |
8450 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
8451 | shift | |
8452 | for ac_tag | |
26f56c1c UD |
8453 | do |
8454 | case $ac_tag in | |
8455 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8456 | esac | |
8457 | case $ac_mode$ac_tag in | |
8458 | :[FHL]*:*);; | |
4a531bb0 | 8459 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
26f56c1c UD |
8460 | :[FH]-) ac_tag=-:-;; |
8461 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
cd6ede75 | 8462 | esac |
26f56c1c UD |
8463 | ac_save_IFS=$IFS |
8464 | IFS=: | |
8465 | set x $ac_tag | |
8466 | IFS=$ac_save_IFS | |
8467 | shift | |
8468 | ac_file=$1 | |
8469 | shift | |
8470 | ||
8471 | case $ac_mode in | |
8472 | :L) ac_source=$1;; | |
8473 | :[FH]) | |
8474 | ac_file_inputs= | |
8475 | for ac_f | |
8476 | do | |
8477 | case $ac_f in | |
f318beb8 | 8478 | -) ac_f="$ac_tmp/stdin";; |
26f56c1c UD |
8479 | *) # Look for the file first in the build tree, then in the source tree |
8480 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8481 | # because $ac_f cannot contain `:'. | |
8482 | test -f "$ac_f" || | |
8483 | case $ac_f in | |
8484 | [\\/$]*) false;; | |
8485 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8486 | esac || | |
4a531bb0 | 8487 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
26f56c1c | 8488 | esac |
322e23db | 8489 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
b08c89d9 | 8490 | as_fn_append ac_file_inputs " '$ac_f'" |
26f56c1c | 8491 | done |
cd6ede75 | 8492 | |
26f56c1c UD |
8493 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
8494 | # use $as_me), people would be surprised to read: | |
8495 | # /* config.h. Generated by config.status. */ | |
322e23db UD |
8496 | configure_input='Generated from '` |
8497 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8498 | `' by configure.' | |
26f56c1c UD |
8499 | if test x"$ac_file" != x-; then |
8500 | configure_input="$ac_file. $configure_input" | |
b08c89d9 | 8501 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
322e23db | 8502 | $as_echo "$as_me: creating $ac_file" >&6;} |
26f56c1c | 8503 | fi |
322e23db UD |
8504 | # Neutralize special characters interpreted by sed in replacement strings. |
8505 | case $configure_input in #( | |
8506 | *\&* | *\|* | *\\* ) | |
8507 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8508 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8509 | *) ac_sed_conf_input=$configure_input;; | |
8510 | esac | |
26f56c1c UD |
8511 | |
8512 | case $ac_tag in | |
f318beb8 | 8513 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
4a531bb0 | 8514 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
26f56c1c UD |
8515 | esac |
8516 | ;; | |
8517 | esac | |
8518 | ||
8519 | ac_dir=`$as_dirname -- "$ac_file" || | |
3a12e572 | 8520 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9382fcee RM |
8521 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
8522 | X"$ac_file" : 'X\(//\)$' \| \ | |
26f56c1c | 8523 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
322e23db | 8524 | $as_echo X"$ac_file" | |
26f56c1c UD |
8525 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8526 | s//\1/ | |
8527 | q | |
8528 | } | |
8529 | /^X\(\/\/\)[^/].*/{ | |
8530 | s//\1/ | |
8531 | q | |
8532 | } | |
8533 | /^X\(\/\/\)$/{ | |
8534 | s//\1/ | |
8535 | q | |
8536 | } | |
8537 | /^X\(\/\).*/{ | |
8538 | s//\1/ | |
8539 | q | |
8540 | } | |
8541 | s/.*/./; q'` | |
b08c89d9 | 8542 | as_dir="$ac_dir"; as_fn_mkdir_p |
3a12e572 UD |
8543 | ac_builddir=. |
8544 | ||
26f56c1c UD |
8545 | case "$ac_dir" in |
8546 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8547 | *) | |
322e23db | 8548 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 8549 | # A ".." for each directory in $ac_dir_suffix. |
322e23db | 8550 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
8551 | case $ac_top_builddir_sub in |
8552 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8553 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8554 | esac ;; | |
8555 | esac | |
8556 | ac_abs_top_builddir=$ac_pwd | |
8557 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8558 | # for backward compatibility: | |
8559 | ac_top_builddir=$ac_top_build_prefix | |
3a12e572 UD |
8560 | |
8561 | case $srcdir in | |
26f56c1c | 8562 | .) # We are building in place. |
3a12e572 | 8563 | ac_srcdir=. |
26f56c1c UD |
8564 | ac_top_srcdir=$ac_top_builddir_sub |
8565 | ac_abs_top_srcdir=$ac_pwd ;; | |
8566 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 8567 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
8568 | ac_top_srcdir=$srcdir |
8569 | ac_abs_top_srcdir=$srcdir ;; | |
8570 | *) # Relative name. | |
8571 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8572 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8573 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3a12e572 | 8574 | esac |
26f56c1c | 8575 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
9382fcee | 8576 | |
cd6ede75 | 8577 | |
26f56c1c UD |
8578 | case $ac_mode in |
8579 | :F) | |
8580 | # | |
8581 | # CONFIG_FILE | |
8582 | # | |
3a12e572 UD |
8583 | |
8584 | case $INSTALL in | |
8585 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
26f56c1c | 8586 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
cd6ede75 | 8587 | esac |
26f56c1c | 8588 | _ACEOF |
cd6ede75 | 8589 | |
322e23db | 8590 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
8591 | # If the template does not know about datarootdir, expand it. |
8592 | # FIXME: This hack should be removed a few years after 2.60. | |
8593 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
322e23db UD |
8594 | ac_sed_dataroot=' |
8595 | /datarootdir/ { | |
26f56c1c UD |
8596 | p |
8597 | q | |
8598 | } | |
8599 | /@datadir@/p | |
8600 | /@docdir@/p | |
8601 | /@infodir@/p | |
8602 | /@localedir@/p | |
b08c89d9 | 8603 | /@mandir@/p' |
322e23db | 8604 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
26f56c1c UD |
8605 | *datarootdir*) ac_datarootdir_seen=yes;; |
8606 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b08c89d9 | 8607 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
322e23db | 8608 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
26f56c1c | 8609 | _ACEOF |
322e23db | 8610 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
26f56c1c UD |
8611 | ac_datarootdir_hack=' |
8612 | s&@datadir@&$datadir&g | |
8613 | s&@docdir@&$docdir&g | |
8614 | s&@infodir@&$infodir&g | |
8615 | s&@localedir@&$localedir&g | |
8616 | s&@mandir@&$mandir&g | |
b08c89d9 | 8617 | s&\\\${datarootdir}&$datarootdir&g' ;; |
26f56c1c | 8618 | esac |
3a12e572 | 8619 | _ACEOF |
26f56c1c UD |
8620 | |
8621 | # Neutralize VPATH when `$srcdir' = `.'. | |
8622 | # Shell code in configure.ac might set extrasub. | |
8623 | # FIXME: do we really want to maintain this feature? | |
322e23db UD |
8624 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8625 | ac_sed_extra="$ac_vpsub | |
3a12e572 UD |
8626 | $extrasub |
8627 | _ACEOF | |
322e23db | 8628 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3a12e572 UD |
8629 | :t |
8630 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
322e23db | 8631 | s|@configure_input@|$ac_sed_conf_input|;t t |
26f56c1c | 8632 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
322e23db | 8633 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
26f56c1c UD |
8634 | s&@srcdir@&$ac_srcdir&;t t |
8635 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8636 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8637 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8638 | s&@builddir@&$ac_builddir&;t t | |
8639 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8640 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8641 | s&@INSTALL@&$ac_INSTALL&;t t | |
8642 | $ac_datarootdir_hack | |
322e23db | 8643 | " |
f318beb8 UD |
8644 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
8645 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
26f56c1c UD |
8646 | |
8647 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
f318beb8 UD |
8648 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
8649 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
8650 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
b08c89d9 | 8651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
4a531bb0 | 8652 | which seems to be undefined. Please make sure it is defined" >&5 |
322e23db | 8653 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
4a531bb0 | 8654 | which seems to be undefined. Please make sure it is defined" >&2;} |
26f56c1c | 8655 | |
f318beb8 | 8656 | rm -f "$ac_tmp/stdin" |
3a12e572 | 8657 | case $ac_file in |
f318beb8 UD |
8658 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
8659 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
322e23db | 8660 | esac \ |
4a531bb0 | 8661 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
26f56c1c UD |
8662 | ;; |
8663 | :H) | |
8664 | # | |
8665 | # CONFIG_HEADER | |
8666 | # | |
3a12e572 | 8667 | if test x"$ac_file" != x-; then |
322e23db UD |
8668 | { |
8669 | $as_echo "/* $configure_input */" \ | |
f318beb8 UD |
8670 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
8671 | } >"$ac_tmp/config.h" \ | |
4a531bb0 | 8672 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
f318beb8 | 8673 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
b08c89d9 | 8674 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
322e23db | 8675 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
3a12e572 | 8676 | else |
322e23db | 8677 | rm -f "$ac_file" |
f318beb8 | 8678 | mv "$ac_tmp/config.h" "$ac_file" \ |
4a531bb0 | 8679 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
f4b07664 RM |
8680 | fi |
8681 | else | |
322e23db | 8682 | $as_echo "/* $configure_input */" \ |
f318beb8 | 8683 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
4a531bb0 | 8684 | || as_fn_error $? "could not create -" "$LINENO" 5 |
f4b07664 | 8685 | fi |
26f56c1c | 8686 | ;; |
9382fcee | 8687 | |
b08c89d9 | 8688 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
322e23db | 8689 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
26f56c1c UD |
8690 | ;; |
8691 | esac | |
3a12e572 UD |
8692 | |
8693 | ||
26f56c1c UD |
8694 | case $ac_file$ac_mode in |
8695 | "default":C) | |
c0fb8a56 UD |
8696 | case $CONFIG_FILES in *config.make*) |
8697 | echo "$config_vars" >> config.make;; | |
8698 | esac | |
3a12e572 | 8699 | test -d bits || mkdir bits ;; |
26f56c1c | 8700 | |
3a12e572 | 8701 | esac |
26f56c1c | 8702 | done # for ac_tag |
3a12e572 | 8703 | |
3a12e572 | 8704 | |
b08c89d9 | 8705 | as_fn_exit 0 |
3a12e572 | 8706 | _ACEOF |
3a12e572 UD |
8707 | ac_clean_files=$ac_clean_files_save |
8708 | ||
322e23db | 8709 | test $ac_write_fail = 0 || |
4a531bb0 | 8710 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
322e23db | 8711 | |
3a12e572 UD |
8712 | |
8713 | # configure is writing to config.log, and then calls config.status. | |
8714 | # config.status does its own redirection, appending to config.log. | |
8715 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8716 | # by configure, so config.status won't be able to write to it; its | |
8717 | # output is simply discarded. So we exec the FD to /dev/null, | |
8718 | # effectively closing config.log, so it can be properly (re)opened and | |
8719 | # appended to by config.status. When coming back to configure, we | |
8720 | # need to make the FD available again. | |
8721 | if test "$no_create" != yes; then | |
8722 | ac_cs_success=: | |
2abf9ff1 RM |
8723 | ac_config_status_args= |
8724 | test "$silent" = yes && | |
8725 | ac_config_status_args="$ac_config_status_args --quiet" | |
3a12e572 | 8726 | exec 5>/dev/null |
2abf9ff1 | 8727 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
3a12e572 UD |
8728 | exec 5>>config.log |
8729 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8730 | # would make configure fail if this is the last instruction. | |
4a531bb0 | 8731 | $ac_cs_success || as_fn_exit 1 |
3a12e572 | 8732 | fi |
cd6ede75 | 8733 | |
3a12e572 UD |
8734 | # |
8735 | # CONFIG_SUBDIRS section. | |
8736 | # | |
cd6ede75 UD |
8737 | if test "$no_recursion" != yes; then |
8738 | ||
322e23db UD |
8739 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
8740 | # so they do not pile up. | |
cd6ede75 UD |
8741 | ac_sub_configure_args= |
8742 | ac_prev= | |
26f56c1c UD |
8743 | eval "set x $ac_configure_args" |
8744 | shift | |
8745 | for ac_arg | |
8746 | do | |
cd6ede75 UD |
8747 | if test -n "$ac_prev"; then |
8748 | ac_prev= | |
8749 | continue | |
8750 | fi | |
3a12e572 | 8751 | case $ac_arg in |
cd6ede75 UD |
8752 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
8753 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
8754 | ac_prev=cache_file ;; | |
8755 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
3a12e572 UD |
8756 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
8757 | | --c=*) | |
8758 | ;; | |
8759 | --config-cache | -C) | |
cd6ede75 UD |
8760 | ;; |
8761 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
8762 | ac_prev=srcdir ;; | |
8763 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
8764 | ;; | |
3a12e572 UD |
8765 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
8766 | ac_prev=prefix ;; | |
8767 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
8768 | ;; | |
322e23db UD |
8769 | --disable-option-checking) |
8770 | ;; | |
26f56c1c UD |
8771 | *) |
8772 | case $ac_arg in | |
322e23db | 8773 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26f56c1c | 8774 | esac |
b08c89d9 | 8775 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
cd6ede75 UD |
8776 | esac |
8777 | done | |
8778 | ||
3a12e572 UD |
8779 | # Always prepend --prefix to ensure using the same prefix |
8780 | # in subdir configurations. | |
26f56c1c UD |
8781 | ac_arg="--prefix=$prefix" |
8782 | case $ac_arg in | |
322e23db | 8783 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26f56c1c UD |
8784 | esac |
8785 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
8786 | ||
8787 | # Pass --silent | |
8788 | if test "$silent" = yes; then | |
8789 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
8790 | fi | |
3a12e572 | 8791 | |
322e23db UD |
8792 | # Always prepend --disable-option-checking to silence warnings, since |
8793 | # different subdirs can have different --enable and --with options. | |
8794 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
8795 | ||
3a12e572 UD |
8796 | ac_popdir=`pwd` |
8797 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
cd6ede75 UD |
8798 | |
8799 | # Do not complain, so a configure script can configure whichever | |
8800 | # parts of a large source tree are present. | |
26f56c1c UD |
8801 | test -d "$srcdir/$ac_dir" || continue |
8802 | ||
8803 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
b08c89d9 | 8804 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
322e23db | 8805 | $as_echo "$ac_msg" >&6 |
b08c89d9 | 8806 | as_dir="$ac_dir"; as_fn_mkdir_p |
3a12e572 | 8807 | ac_builddir=. |
cd6ede75 | 8808 | |
26f56c1c UD |
8809 | case "$ac_dir" in |
8810 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8811 | *) | |
322e23db | 8812 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 8813 | # A ".." for each directory in $ac_dir_suffix. |
322e23db | 8814 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
8815 | case $ac_top_builddir_sub in |
8816 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8817 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8818 | esac ;; | |
8819 | esac | |
8820 | ac_abs_top_builddir=$ac_pwd | |
8821 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8822 | # for backward compatibility: | |
8823 | ac_top_builddir=$ac_top_build_prefix | |
cd6ede75 | 8824 | |
3a12e572 | 8825 | case $srcdir in |
26f56c1c | 8826 | .) # We are building in place. |
3a12e572 | 8827 | ac_srcdir=. |
26f56c1c UD |
8828 | ac_top_srcdir=$ac_top_builddir_sub |
8829 | ac_abs_top_srcdir=$ac_pwd ;; | |
8830 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 8831 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
8832 | ac_top_srcdir=$srcdir |
8833 | ac_abs_top_srcdir=$srcdir ;; | |
8834 | *) # Relative name. | |
8835 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8836 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8837 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
9382fcee | 8838 | esac |
26f56c1c | 8839 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
3a12e572 UD |
8840 | |
8841 | ||
26f56c1c | 8842 | cd "$ac_dir" |
cd6ede75 UD |
8843 | |
8844 | # Check for guested configure; otherwise get Cygnus style configure. | |
26f56c1c UD |
8845 | if test -f "$ac_srcdir/configure.gnu"; then |
8846 | ac_sub_configure=$ac_srcdir/configure.gnu | |
8847 | elif test -f "$ac_srcdir/configure"; then | |
8848 | ac_sub_configure=$ac_srcdir/configure | |
8849 | elif test -f "$ac_srcdir/configure.in"; then | |
8850 | # This should be Cygnus configure. | |
8851 | ac_sub_configure=$ac_aux_dir/configure | |
cd6ede75 | 8852 | else |
b08c89d9 | 8853 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
322e23db | 8854 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
cd6ede75 UD |
8855 | ac_sub_configure= |
8856 | fi | |
8857 | ||
8858 | # The recursion is here. | |
8859 | if test -n "$ac_sub_configure"; then | |
cd6ede75 | 8860 | # Make the cache file name correct relative to the subdirectory. |
3a12e572 UD |
8861 | case $cache_file in |
8862 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
26f56c1c UD |
8863 | *) # Relative name. |
8864 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
cd6ede75 | 8865 | esac |
cd6ede75 | 8866 | |
b08c89d9 | 8867 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
322e23db | 8868 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
cd6ede75 | 8869 | # The eval makes quoting arguments work. |
26f56c1c UD |
8870 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
8871 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
4a531bb0 | 8872 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
cd6ede75 UD |
8873 | fi |
8874 | ||
26f56c1c | 8875 | cd "$ac_popdir" |
cd6ede75 UD |
8876 | done |
8877 | fi | |
322e23db | 8878 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b08c89d9 | 8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
322e23db UD |
8880 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
8881 | fi | |
cd6ede75 | 8882 |